Update manager #23

Merged
Miroslavsckaya merged 20 commits from feature_rss_update into master 2022-07-08 19:23:12 +00:00
Showing only changes of commit 1749bd5f5e - Show all commits

View file

@ -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):