diff --git a/active_bots/telegrambot.py b/active_bots/telegrambot.py index e916943..00fb01a 100644 --- a/active_bots/telegrambot.py +++ b/active_bots/telegrambot.py @@ -17,6 +17,8 @@ class TelegramBot(Bot): except TypeError: updates = tb.get_updates().wait() reports = [] + if updates == None: + return reports for update in updates: if update == 404: return reports