Drycell
Drycell

Reputation: 41

python telegram bot(Telepot) group chat

I'm making telegram bot using telepot.

The group chat message work a handler when it started with '/'.

Is there a way to get all group chat message?

Upvotes: 3

Views: 4969

Answers (2)

Rusca8
Rusca8

Reputation: 602

Bots have a privacy setting that stops them from reading everything that is sent in a group. You can disable this privacy setting by talking to @botfather, or make your bot an admin of the group (admins see everything regardless of the privacy setting).

With the BotFather option just tell him /setprivacy, then choose your bot, and then choose Disable.

Admin settings are on the top_pencil_drawing / administrators if your are on the phone, and on the three_dots_menu / Manage Group / administrators if on desktop.

Upvotes: 1

tashakori
tashakori

Reputation: 2441

there are 2 ways to get all the messages of a group:

1.your bot should be added as an admin in that group.

  1. disable privacy mode in settings of your bot via @botfather(it is enabled as default(except for bots that are added as admin))

Upvotes: 1

Related Questions