mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-11 01:43:25 +08:00
feat(telegram): register command menu and menu button on bot start
Add setMyCommands and setChatMenuButton to the Telegram Bot API client and register a 12-command menu with a commands-type menu button when a bot runtime connects. Menu setup failures are logged as warnings and do not block startup. Co-authored-by: xmanrui <841206367@qq.com>
This commit is contained in:
parent
7fbb459e00
commit
60e00bbca9
4 changed files with 284 additions and 132 deletions
258
lib/index.js
258
lib/index.js
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue