From 51f6e417bd3c56fda2d51dcc7c6a757b12aa2888 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 29 Jul 2026 22:48:35 +0500 Subject: [PATCH] refactor(stars_bot): remove redundant notification calls --- modules/stars_bot.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/modules/stars_bot.py b/modules/stars_bot.py index b0d9e26..2f051aa 100644 --- a/modules/stars_bot.py +++ b/modules/stars_bot.py @@ -167,28 +167,12 @@ class TelegramStarsBot: f"Пост {post_id} уже имеет комментарии. Пропускаю обработку." ) self.processed_manager.mark_processed(post_id) - - if self.notification_bot: - await self.notification_bot.failure( - post=post, - reason=f"пост уже имеет комментарии", - post_message_id=post_message_id, - ) - return post_content = post.get("post_body_html") or post.get("post_body") if not post_content: logger.warning(f"У поста {post_id} отсутствует содержимое. Пропускаем.") self.processed_manager.mark_processed(post_id) - - if self.notification_bot: - await self.notification_bot.failure( - post=post, - reason=f"у поста отсутствует содержимое", - post_message_id=post_message_id, - ) - return links = TelegramLinkExtractor.extract(post_content)