tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

How do I know that the bot is stopped? #2896

Closed fat-complex closed 5 months ago

fat-complex commented 5 months ago

I need to find out when the bot needs to be restarted. For example, I stopped it from another client, stopped and blocked it, cleared the history. What update should I watch to find out when to restart the bot?

levlam commented 5 months ago

There are no update for changes of a user's block list. The latest state is fetched via getUserFullInfo when the chat is opened.

fat-complex commented 5 months ago

@levlam Thx)))