If there are multiple bots in a group, you can disambiguate commands by postfixing the command with bot's @username, e.g. /command@YourBot. When autocompleting a command (if you have told Telegram about your bot's commands via /setcommands to BotFather), Telegram does this automatically.
It'd be great if morse.handlers/command would support this out of the box. If I understand Telegram's FAQ correctly, you won't ever get messages that were meant for other bots in the group, even if your bot is not in the privacy mode. This means morse could just split the received commands on @ and match on the first part - there's no need to know the bot's username.
If there are multiple bots in a group, you can disambiguate commands by postfixing the command with bot's @username, e.g.
/command@YourBot
. When autocompleting a command (if you have told Telegram about your bot's commands via/setcommands
to BotFather), Telegram does this automatically.It'd be great if
morse.handlers/command
would support this out of the box. If I understand Telegram's FAQ correctly, you won't ever get messages that were meant for other bots in the group, even if your bot is not in the privacy mode. This means morse could just split the received commands on@
and match on the first part - there's no need to know the bot's username.