Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to receive messages in group chats using telegram bot api

Tags:

telegram-bot

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,.

like image 937
Jijo John Avatar asked Jul 25 '16 10:07

Jijo John


People also ask

Can Telegram BOT read group messages?

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.

Can a telegram bot forward message to group?

A telegram bot, which can forward messages from channel, group or chat to another channel, group or chat automatically.

How do I make a bot for Telegram group chat?

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.


2 Answers

Talk to @botfather and disable the privacy mode.

like image 96
Johannes Kuhn Avatar answered Sep 18 '22 17:09

Johannes Kuhn


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

like image 20
apascualb Avatar answered Sep 21 '22 17:09

apascualb