Class CommandAttribute
Registers method as command handler with specified name. By default name retrieved from method name in format 'commandname'. Can be used along with ActionAttribute.
Inheritance
System.Object
CommandAttribute
Namespace: TelegramModularFramework.Modules
Assembly: TelegramModularFramework.dll
Syntax
public class CommandAttribute : Attribute
Constructors
| Improve this Doc View SourceCommandAttribute()
Declaration
public CommandAttribute()
CommandAttribute(String, Boolean)
Declaration
public CommandAttribute(string name = null, bool hideFromList = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Boolean | hideFromList |
Properties
| Improve this Doc View SourceHideFromList
Hide from /help and SetMyCommands()
Declaration
public bool HideFromList { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |