Skip to content

feat(telegram): add command aliases, the command menu and bot mentions - #60

Merged
m1ngsama merged 1 commit into
mainfrom
feat/telegram-commands
Sep 23, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
feat/telegram-commands

Conversation

@m1ngsama

@m1ngsama m1ngsama commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Last step of #56: commands barely worked on Telegram. /日程@nbtca_bot and @nbtca_bot mentions were read as plain text, and there was no command menu.

  • [Command] takes an optional Alias: /schedule, /next, /mc, /events, /tickets and /summary. Both the reflection path and the source generator pass it through.
  • Telegram maps /alias and /alias@nbtca_bot to the command and ignores commands addressed to other bots. /日程 works too.
  • @nbtca_bot becomes an at, so AIChat can be mentioned on Telegram.
  • After each plugin loads, Telegram calls setMyCommands with the aliases and /help.
  • On Telegram, 帮助 lists /alias <参数> — 描述. QQ gets the same reply as before; a new test pins its text.
  • Aliases do nothing on QQ.

Closes #56

@m1ngsama
m1ngsama merged commit 47ac133 into main Sep 23, 2026
8 checks passed
@m1ngsama
m1ngsama deleted the feat/telegram-commands branch September 23, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telegram message design

1 participant