refactor(notification): add detailed logging and improve error handling
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user