Open BjoernPetersen opened 2 years ago
We could periodically use https://core.telegram.org/bots/api#sendchataction to see whether the chat still exists
I don't wanna rob you of implementing your better idea, feel free to give this a go.
As per your adivce (https://github.com/preparingforexams/hhh-diff-bot/pull/47#pullrequestreview-808874670) I won't work on this either.
I was kinda hoping that this'd trigger a
left_chat_member
event for bots..I can't see an event for this either (https://python-telegram-bot.readthedocs.io/en/stable/telegram.ext.filters.html?highlight=left_chat_member#telegram.ext.filters.Filters.status_update).
I've just tested it with
dispatcher.add_handler(MessageHandler(Filters.all, filters_all))
and a debug breakpoint infilters_all
, this doesn't trigger.I only see a periodic inspection of all chats as a viable option to check if they still exist.
Do you've a better idea?