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}

'