mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
initial chat options implementation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Kruzya.TelegramBot.Core.Options;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class OptionAttribute : Attribute
|
||||
{
|
||||
public string OptionId { get; }
|
||||
public object DefaultValue { get; }
|
||||
|
||||
public OptionAttribute(string optionId, object defaultValue = default)
|
||||
{
|
||||
OptionId = optionId;
|
||||
DefaultValue = defaultValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user