Bot behavior in groups is depended on bot’s privacy mode.

  • ‘Enable’ - your bot will only receive messages that either start with the ‘/’ symbol or mention the bot by username.
  • ‘Disable’ - your bot will receive all messages that people send to groups.

You can chat with @botfather to update privacy mode for your bot at any time.

setPrivacy

Bot with Enable Privacy Mode

If the bot was the last bot to send a message to the group

It will receive all messages start with the ‘/’ symbol.

bot in groups

How to ensure my bot receive message in group chat

You will need to call the bot explicit Commands.
You can chat with @botfather to create explicit commands for your bot.

setcommands

Bot with Disable Privacy Mode

I don’t recommend you to disable bot privacy mode. But if you do, your bot will receive and response to all messages sent.

Reading