mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🎨 Update Bot Command
This commit is contained in:
parent
4c2133180b
commit
5c3a444a6c
@ -82,6 +82,7 @@ class SetCommandPlugin(Plugin):
|
||||
BotCommand("send_log", "发送日志"),
|
||||
BotCommand("update", "更新"),
|
||||
BotCommand("set_command", "重设命令"),
|
||||
BotCommand("status", "当前Bot运行状态"),
|
||||
]
|
||||
await context.bot.set_my_commands(commands=group_command) # 留空,default 为 botCommandScopeDefault, 所有聊天可见
|
||||
await context.bot.set_my_commands(commands=user_command + group_command, scope=BotCommandScopeAllPrivateChats())
|
||||
|
Loading…
Reference in New Issue
Block a user