3

I made a simple chatbot using Microsoft Bot Framework and integrated it with Telegram. He works fine whenever I message him privately but whenever I put him in a group with my friends, he doesn't reply, even when I mention him. /setjoingroups is enabled, and so is /setprivacy.

4 Answers 4

5

First make sure it is not caused by Microsoft Bot itself. Then for all normal bots --

Always add a Telegram bot to a group via the bot's info window, instead of inviting the bot to a group via the group's info window.

It's a clear trap for beginners. I'm surprised that Telegram didn't note this in their documentation.

3
  • I am having the same issue
    – fccoelho
    Jan 19, 2019 at 12:53
  • 1
    I can confirm it works, while adding Telegram bots via the group's info window doesn't.
    – xpt
    Jan 30, 2019 at 3:29
  • @xpt well, it does... for a while. Until it does not.
    – jjmerelo
    Mar 16, 2021 at 18:30
4

When you configured your bot on Telegram, did you make it an inline bot? It's been my experience that inline bots cannot participate in group chats, but can message privately. If not, please open a GitHub issue here and we'll follow up there.

1
  • It is not inline, so I will open an issue.
    – Matt G
    May 16, 2016 at 17:32
2

Beyond all other suggestions like turning off inline functions, setting privacy to disabled and allowing to participate in groups, I also made the bot an admin of my group. And now it processes all messages. That's what's worked for me.

1
  • you can also set this option via the botfather. works for me also. thanks.
    – Kevin O.
    Feb 17, 2022 at 15:59
0

I had this same problem, and I found that I just needed to add the bot as an 'admin' to the chat instead of just a normal member. The telegram bot must have admin privileges to access every message/image that the users of the group-chat send.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.