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)