Repository navigation
2.3.0-rc1
Pre-release
Pre-release
Dispatch
bot.command(name, ...)now ignores commands addressed to another bot: in a
group,/start@some_botruns the handler only when@some_botis this bot's
own username (compared case-insensitively, as Telegram usernames are);
/start@other_botfalls through to downstream middleware, and a bare/start
still always matches. The command name itself stays case-sensitive. To make
the comparison, the bot learns its own@usernameviagetMe(), called once
insidebot.init()and kept for the process lifetime (a bot's username is
permanent, so there is no refresh). The bot's identity is exposed as
bot.botInfo(User | undefined) and to handlers asctx.me.
Full diff: v2.3.0-rc0...v2.3.0-rc1