fix method calls
This commit is contained in:
parent
c4809a20ea
commit
1749bd5f5e
|
@ -103,15 +103,14 @@ class Notifier:
|
||||||
return
|
return
|
||||||
|
|
||||||
for chat_id in chat_ids:
|
for chat_id in chat_ids:
|
||||||
self.__register_request_and_wait()
|
self.__count_request_and_wait()
|
||||||
self.bot.send_message(
|
self.bot.send_message(
|
||||||
chat_id=chat_id,
|
chat_id=chat_id,
|
||||||
text=f'Updates from the {feed_title} feed:'
|
text=f'Updates from the {feed_title} feed:'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
for update in updates:
|
for update in updates:
|
||||||
self.__register_request_and_wait()
|
self.__count_request_and_wait()
|
||||||
self.__send_update(chat_id, update)
|
self.__send_update(chat_id, update)
|
||||||
|
|
||||||
def __send_update(self, chat_id: int, update: FeedItem):
|
def __send_update(self, chat_id: int, update: FeedItem):
|
||||||
|
|
Loading…
Reference in a new issue