N
N
Nodir Malikov2021-07-15 08:19:17
Bots
Nodir Malikov, 2021-07-15 08:19:17

How to immediately find out in a Telegram bot that a user has unsubscribed from the channel?

There is a bot with an audience of 10,000 people. The bot has a condition that the user must always be subscribed to the channel, but there is one problem: if the user has unsubscribed from the channel, his status must be changed immediately.

I tried using a timer to run a function to check everyone, but this slows down the bot very much.

How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anastasia, 2021-07-15
@nastya97core

So do a check before sending a message from the bot to the user. If subscribed - allow commands, else { tg('sendMessage', "Well, I SUBSCRIBE QUICKLY")
check like this:
How to check a subscription to a telegram channel?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question