From f11baa685fe43bf260d551ea08dfbfd5a3fa5aee Mon Sep 17 00:00:00 2001 From: CHxCOOH Date: Fri, 24 Nov 2023 01:37:43 +0800 Subject: [PATCH] :bug: Fix `group_command` --- plugins/admin/set_command.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/admin/set_command.py b/plugins/admin/set_command.py index aa3bfcef..7df3e6df 100644 --- a/plugins/admin/set_command.py +++ b/plugins/admin/set_command.py @@ -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("设置命令成功")