t.me/boost links as donat flag

This commit is contained in:
vvzvlad
2025-04-11 03:04:38 +03:00
parent 26790780ac
commit 7d9b0bfd65
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -318,6 +318,10 @@ class PostParser:
if re.search(r'(?i)\bдонат\w*\b', message_text):
flags.append("donat")
# Check for t.me/boost links and add donat flag
if re.search(r'https?://(?:www\.)?t\.me/boost/', message_text):
flags.append("donat")
# Check if the post's reactions contain more clown emojis (🤡).
if getattr(message, "reactions", None):
for reaction in message.reactions.reactions: