How to receive messages in group chats using telegram bot api

后端 未结 5 486
一向
一向 2020-12-14 14:44

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 mess

5条回答
  •  既然无缘
    2020-12-14 15:27

    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

提交回复
热议问题