From bbeab1fb33b22cc9b586ae3b1c8d7515bbcbfd1c Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Fri, 18 Apr 2025 05:02:25 +0300 Subject: [PATCH] fix channel_username retrieval to use sender_chat instead of chat in PostParser --- post_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post_parser.py b/post_parser.py index 82afbce..18955b4 100644 --- a/post_parser.py +++ b/post_parser.py @@ -310,7 +310,7 @@ class PostParser: if len(reply_text) > 100: reply_text = reply_text[:100] + '...' - channel_username = getattr(reply_to.chat, "username", None) + channel_username = getattr(reply_to.sender_chat, "username", None) if channel_username: reply_link = f'#{reply_to.id}' return f'
Reply to {reply_link}: {reply_text}

'