diff --git a/post_parser.py b/post_parser.py index d3c3045..0865e87 100644 --- a/post_parser.py +++ b/post_parser.py @@ -609,7 +609,7 @@ class PostParser: content_body.append(f'
') content_body.append(f'{self._generate_html_media(message)}') content_body.append(f'
') - + if poll_html: content_body.append(poll_html) # Poll if message.forward_origin: content_body.append(f"
--- Forwarded post end ---") # Forward info end content_body.append(f'
') @@ -651,7 +651,8 @@ class PostParser: else: # Handle case where channel_username is None (e.g., log or add placeholder) logger.warning(f"Could not generate PDF link for {message.id}: ch username is missing.") - content_media.append(f'
[PDF-файл]
') # Add placeholder without link + # Add placeholder without link + content_media.append(f'
[PDF-файл]
') elif message.media in [MessageMediaType.PHOTO, MessageMediaType.DOCUMENT]: content_media.append(f'')