Currently, the bot supports /ai command prompts like /ai What is the meaning of life? in group chats, but I realize it's not the right/intended way to build a bot because of:
Only the last bot to send a message in the group chat will receive an untargeted command like /ai instead of /ai@some_bot
Targeted commands (/ai@some_bot) are painful to write. Telegram clearly wants you to just click on them from the command menu which doesn't let you provide an argument.
Commands with arguments (/ai {text}) aren't the intended way to impl commands. Telegram's UI works against this sort of usage.
I'm not sure of the intended way for bots to interact with group chats.
I know that bots are guaranteed to receive your message if you reply to them in a group chat, so I think that's the way to go.
But one issue is that you can't reply to a bot that isn't on screen. Maybe I should implement a /hi command that makes the bot say something in chat so that you can easily respond to it?
The bot isn't very nice to use in group chats.
Telegram's rules for when bots receive messages in group chats are confusing (https://core.telegram.org/bots/faq#what-messages-will-my-bot-get). Since I never use bots nor group chats on Telegram, I'm not sure how it should work.
Currently, the bot supports
/ai
command prompts like/ai What is the meaning of life?
in group chats, but I realize it's not the right/intended way to build a bot because of:/ai
instead of/ai@some_bot
/ai@some_bot
) are painful to write. Telegram clearly wants you to just click on them from the command menu which doesn't let you provide an argument./ai {text}
) aren't the intended way to impl commands. Telegram's UI works against this sort of usage.I'm not sure of the intended way for bots to interact with group chats.
I know that bots are guaranteed to receive your message if you reply to them in a group chat, so I think that's the way to go.
But one issue is that you can't reply to a bot that isn't on screen. Maybe I should implement a
/hi
command that makes the bot say something in chat so that you can easily respond to it?