Add 'sticker' flag for sticker messages in post parsing

This commit is contained in:
vvzvlad
2025-03-11 13:50:27 +03:00
parent e2701d7979
commit a83533cfd6
+4
View File
@@ -213,6 +213,10 @@ class PostParser:
# Add flag for posts without images
if not message.media or message.media == MessageMediaType.POLL:
flags.append("no_image")
# Add flag for sticker messages
if message.media == MessageMediaType.STICKER:
flags.append("sticker")
# Check if the message text contains variations of the word "стрим", "вебинар"
# or "онлайн-лекция" in a case-insensitive manner.