Search Results for

    Show / Hide Table of Contents

    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 Source

    CommandAttribute()

    Declaration
    public CommandAttribute()
    | Improve this Doc View Source

    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 Source

    HideFromList

    Hide from /help and SetMyCommands()

    Declaration
    public bool HideFromList { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top
    TelegramModularFramework (c) 2022-2022
    ☀
    ☾