preparingforexams / hhh-diff-bot

MIT License
1 stars 2 forks source link

Groups aren't removed from list if they're deleted #48

Open BjoernPetersen opened 2 years ago

torbencarstens commented 2 years ago

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 in filters_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?

BjoernPetersen commented 2 years ago

We could periodically use https://core.telegram.org/bots/api#sendchataction to see whether the chat still exists

torbencarstens commented 2 years ago

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.