feat(telegram): add delete_commands

This commit is contained in:
InfinityPacer
2024-10-26 04:48:07 +08:00
parent e876ba38a7
commit 3c24ae5351

View File

@@ -256,6 +256,15 @@ class Telegram:
]
)
def delete_commands(self):
"""
清理菜单命令
"""
if not self._bot:
return
# 清理菜单命令
self._bot.delete_my_commands()
def stop(self):
"""
停止Telegram消息接收服务