Source code for libbot.pyrogram.classes.commandset
fromdataclassesimportdataclassfromtypingimportListtry:frompyrogram.typesimport(BotCommand,BotCommandScopeAllChatAdministrators,BotCommandScopeAllGroupChats,BotCommandScopeAllPrivateChats,BotCommandScopeChat,BotCommandScopeChatAdministrators,BotCommandScopeChatMember,BotCommandScopeDefault,)exceptImportErrorasexc:raiseImportError("You need to install libbot[pyrogram] in order to use this class.")fromexc
[docs]@dataclassclassCommandSet:"""Command stored in PyroClient's 'commands' attribute"""commands:List[BotCommand]scope:(BotCommandScopeDefault|BotCommandScopeAllPrivateChats|BotCommandScopeAllGroupChats|BotCommandScopeAllChatAdministrators|BotCommandScopeChat|BotCommandScopeChatAdministrators|BotCommandScopeChatMember)=BotCommandScopeDefaultlanguage_code:str=""