mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🐛 Fix group_command
This commit is contained in:
parent
2bd8957e2c
commit
f11baa685f
@ -82,9 +82,10 @@ class SetCommandPlugin(Plugin):
|
||||
BotCommand("update", "更新"),
|
||||
]
|
||||
await context.bot.set_my_commands(commands=group_command) # 留空,default 为 botCommandScopeDefault, 所有聊天可见
|
||||
await context.bot.set_my_commands(commands=user_command, scope=BotCommandScopeAllPrivateChats())
|
||||
await context.bot.set_my_commands(commands=user_command + group_command, scope=BotCommandScopeAllPrivateChats())
|
||||
if config.error.notification_chat_id:
|
||||
await context.bot.set_my_commands(
|
||||
commands=admin_command, scope=BotCommandScopeChat(config.error.notification_chat_id)
|
||||
commands=admin_command + group_command + user_command,
|
||||
scope=BotCommandScopeChat(config.error.notification_chat_id),
|
||||
)
|
||||
await message.reply_text("设置命令成功")
|
||||
|
Loading…
Reference in New Issue
Block a user