alo /aben

This commit is contained in:
huker667 committed 2026-07-14 08:48:13 +03:00
1 parent 2cce59fb58
commit b5c986f784
1 file changed
+34 -1
+34 -1
View File
@@ -31,7 +31,20 @@ from supergenerator import *
router = Router() router = Router()
commands = ["/stats", "/broadcast", "/ben", "/reporn", "/start", "/prompt", "/config", "/settings", "/clear", "/stop", "/markpidor"] commands = [
"/stats",
"/broadcast",
"/ben",
"/reporn",
"/start",
"/prompt",
"/config",
"/settings",
"/clear",
"/stop",
"/markpidor",
"/aben"
]
@router.message(Command("stats")) @router.message(Command("stats"))
async def stats_handler(message: Message): async def stats_handler(message: Message):
@@ -146,6 +159,26 @@ async def ben_handler(message: Message):
return return
@router.message(Command("aben"))
async def ben_handler(message: Message):
if message.chat.type in [ChatType.GROUP, ChatType.SUPERGROUP]:
if message.chat.id in ABEN_IDS:
replied = message.reply_to_message or None
if replied:
name = replied.from_user.first_name
ben_id = replied.from_user.id
else:
name = message.from_user.first_name
ben_id = message.from_user.id
await message.reply(f"""✅ *Benned*
• 👤 *User:* {name} ({ben_id})
👮 *Admin:* a (https://t.me/U837373) (8539910994)
💬 *Reason:* a completely dishonest person: he lies, and even admits it himself. He has no shame in lying. He is fake and hypocritical. He says one thing to your face and another behind your back. And, if he gets the chance, he'll stab you in the back.""")
return
@router.message(Command("reporn")) @router.message(Command("reporn"))
async def reporn_handler(message: Message): async def reporn_handler(message: Message):