Spaces:
Running
Running
main.py
CHANGED
@@ -685,7 +685,8 @@ async def markdown_code(client, message):
|
|
685 |
is_moderator, reason = check_anti_word_by_ryzenth(message.text)
|
686 |
if is_moderator:
|
687 |
logging.info(f"check_anti_word_by_ryzenth: Blocked message from {message.from_user.first_name} in {message.chat.title}")
|
688 |
-
|
|
|
689 |
return await message.delete()
|
690 |
|
691 |
@bot.on_message(filters.regex(eval_regex) & filters.group)
|
|
|
685 |
is_moderator, reason = check_anti_word_by_ryzenth(message.text)
|
686 |
if is_moderator:
|
687 |
logging.info(f"check_anti_word_by_ryzenth: Blocked message from {message.from_user.first_name} in {message.chat.title}")
|
688 |
+
full_reason = f"[{message.from_user.first_name}](tg://user?id={message.from_user.id})" + reason
|
689 |
+
await message.reply_text(full_reason)
|
690 |
return await message.delete()
|
691 |
|
692 |
@bot.on_message(filters.regex(eval_regex) & filters.group)
|