T
T
TheDarhi2020-05-01 20:33:30
Telegram
TheDarhi, 2020-05-01 20:33:30

How to get all messages from the group in which he is a member in a telegram bot?

Good afternoon!
I wrote a bot that responds to the words sent to the chat, such as "Hello"
, Dorova, I'm a bot ... , by function:

if message.text == "Привет":
    bot.send_message(message.chat.id, "Дорова, я бот ...")

When using the bot in the LAN, everything works great, but if you add it to the group, then it does not respond to the words in the chat, but only responds to the words that are sent to it in response. That is, if you write to him with answers, then there is a reaction!
Question: how to make it react to words sent in a group without a dedicated response to the bot!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
y0u, 2020-05-01
@TheDarhi

@BotFather needs to set /setprivacy to disabled.
https://core.telegram.org/bots#privacy-mode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question