Allow messaging one bot in the group
seanfhear opened this issue · comments
Currently when you @ a bot in the telegram group it doesn't respond appropriately.
The message is forwarded to only that bot (we know since Yoshi sent Michael the invalid user message when he tried and none of the other bots replied) so the problem is likely that the message the bot gets is the command and the tag for the bot instead of just the command.
Need to look at message payload and see if there is a different value that can be used, or some way of stripping the tag out.
So it looks like this isn't possible per telegram docs
https://core.telegram.org/bots/faq#what-messages-will-my-bot-get
Bots with privacy mode enabled will receive:
- Commands explicitly meant for them (e.g., /command@this_bot).
- General commands from users (e.g. /start) if the bot was the last bot to send a message to the group.
So only one bot at a time can receive a general command. The solution to this is to give bots access to all messages (make admin or disable privacy mode) but then tagging the bots doesn't work because they will get all messages regardless.
We could make it work by manually checking the tags for the bot's name, which means the tags will have to be created with the bot's name in it somewhere.