From 65cf8410155cd3b9cb6d4d1ca8499bea9f492cc4 Mon Sep 17 00:00:00 2001 From: SwissCorePy <51398037+SwissCorePy@users.noreply.github.com> Date: Wed, 23 Jun 2021 16:09:40 +0200 Subject: [PATCH] Update util.py added `allowed_updates` list (used by `_init_._retrieve_all_updates` because `chat_member` is not requested by default) --- telebot/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telebot/util.py b/telebot/util.py index cb12577..8af740c 100644 --- a/telebot/util.py +++ b/telebot/util.py @@ -38,6 +38,10 @@ content_type_service = [ 'voice_chat_participants_invited', 'message_auto_delete_timer_changed' ] +allowed_updates = ["update_id", "message", "edited_message", "channel_post", "edited_channel_post", + "inline_query", "chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query", + "poll", "poll_answer", "my_chat_member", "chat_member" +] class WorkerThread(threading.Thread): count = 0