add ban for forwarding posts. fix 2

This commit is contained in:
Rykov7
2024-10-07 15:01:16 +03:00
parent 62d3603f14
commit ef09c09cd7
+1 -1
View File
@@ -28,7 +28,7 @@ def in_caption_spam_list(message: types.Message) -> bool:
logging.info("[BAN CAPTION]" + LOG_COMM % (title, from_user_id, from_user_name, message.caption))
return True
if message.forward_from: # Запрет репостов для Медиа.
logging.info("[BAN REPOST]" + LOG_COMM % (title, from_user_id, from_user_name))
logging.info(f"[BAN REPOST] [{title}] {from_user_id}: {from_user_name}")
return True
return False