refactor(notification): add detailed logging and improve error handling

This commit is contained in:
2026-07-29 22:12:06 +05:00
parent e2e067894d
commit 183f0aa9bb
2 changed files with 57 additions and 19 deletions
+4 -1
View File
@@ -145,6 +145,8 @@ class TelegramStarsBot:
post_message_id = None
post_id = post.get("post_id")
post = await self.lolz_api.get_post(post_id=post_id)
poster_user_id = post.get("poster_user_id")
poster_username = post.get("poster_username", "Неизвестный пользователь")
@@ -235,7 +237,8 @@ class TelegramStarsBot:
if self.notification_bot:
await self.notification_bot.success(
link=parsed_link, post_message_id=post_message_id
link=f"https://t.me/{channel}/{message_id}",
post_message_id=post_message_id,
)
else: