From 1749bd5f5e47bf6a625cf4889bf00514d01f5ca4 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Fri, 8 Jul 2022 22:15:46 +0000 Subject: [PATCH] fix method calls --- telegram.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/telegram.py b/telegram.py index cddcb58..74ef36a 100644 --- a/telegram.py +++ b/telegram.py @@ -103,15 +103,14 @@ class Notifier: return for chat_id in chat_ids: - self.__register_request_and_wait() + self.__count_request_and_wait() self.bot.send_message( chat_id=chat_id, text=f'Updates from the {feed_title} feed:' ) - for update in updates: - self.__register_request_and_wait() + self.__count_request_and_wait() self.__send_update(chat_id, update) def __send_update(self, chat_id: int, update: FeedItem):