My telegram bot receives messages sent by user to my bot in private chats but not receives messages sent by users in group chats. Any options/api for getting group chat messages also,.
Another note is that the bot MUST be an admin on that group, regardless of the privacy settings. Otherwise, it will NOT be able to read any of the group messages. No, either the bot needs to be an admin OR privacy mode needs to be disabled.
A telegram bot, which can forward messages from channel, group or chat to another channel, group or chat automatically.
Open the Telegram's menu and click New group. In the pop-up window you need to write a name for your group and click Next. On the next step invite new members to the group. Now you need to find your bot, choose it and click Create.
Talk to @botfather and disable the privacy mode.
Sequence within a BotFather chat:
You: /setprivacy
BotFather: Choose a bot to change group messages settings.
You: @your_name_bot
BotFather: '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.
Current status is: ENABLED
You: Disable
BotFather: Success! The new status is: DISABLED. /help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With