Bots are often added to groups; by default, a bot with privacy mode enabled will not receive all messages, but only messages that meet these conditions:

Privacy mode is enabled by default in all bots. It can be turned off and in this case the bot will start receiving all messages, like any user of the group. All members of the group will see the current status of the privacy mode in the list of members.

To change the privacy mode, you need to write /setprivacy in BotFather and select the bot you want to change the privacy mode

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/88ea2f9c-ec61-4055-8bf5-afaba3967a45/Untitled.png

If you want the bot to be able to read all messages in the group, you need to turn it off (DISABLE)

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/fd6cedce-2eeb-4033-9b8a-e905a8376fdc/Untitled.png