🐛 Fix user_command

This commit is contained in:
CHxCOOH 2023-11-24 01:28:21 +08:00
parent 948759b26e
commit 2bd8957e2c

View File

@ -82,7 +82,7 @@ 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, scope=BotCommandScopeAllPrivateChats())
if config.error.notification_chat_id:
await context.bot.set_my_commands(
commands=admin_command, scope=BotCommandScopeChat(config.error.notification_chat_id)