diff --git a/post_parser.py b/post_parser.py index 0ef4db4..57a5ea3 100644 --- a/post_parser.py +++ b/post_parser.py @@ -291,7 +291,7 @@ class PostParser: return None def _format_reply_info(self, message: Message) -> Union[str, None]: - logger.error(f"Reply info: {str(message)}") + logger.error(f"_format_reply_info message: {str(message)}") if getattr(message, "service", None) and 'PINNED_MESSAGE' in str(message.service) and (reply_to := getattr(message, "reply_to_message", None)): reply_text = reply_to.text or reply_to.caption or '' if len(reply_text) > 100: @@ -546,6 +546,8 @@ class PostParser: if reply_html := self._format_reply_info(message): content_body.append(reply_html) + logger.error(f"_generate_html_body message: {str(message)}") + if message.text: text = message.text.html elif message.caption: text = message.caption.html else: text = ''