aboutsummaryrefslogtreecommitdiff
path: root/commands.py
diff options
context:
space:
mode:
authorhuker667 <huker@tuta.io>2026-07-14 08:48:13 +0300
committerhuker667 <huker@tuta.io>2026-07-14 08:48:13 +0300
commitb5c986f78462eb3d8415e1874a2e957e6392a602 (patch)
treef05894925334a7f37fd0263da37cf03c851fc38d /commands.py
parent2cce59fb5806633db002d4145070035414e9c42d (diff)
downloaduzbekgpt-b5c986f78462eb3d8415e1874a2e957e6392a602.tar.gz
uzbekgpt-b5c986f78462eb3d8415e1874a2e957e6392a602.tar.bz2
uzbekgpt-b5c986f78462eb3d8415e1874a2e957e6392a602.zip
alo /aben
Diffstat (limited to 'commands.py')
-rw-r--r--commands.py35
1 files changed, 34 insertions, 1 deletions
diff --git a/commands.py b/commands.py
index 9944314..b521ad1 100644
--- a/commands.py
+++ b/commands.py
@@ -31,7 +31,20 @@ from supergenerator import *
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"))
async def stats_handler(message: Message):
@@ -146,6 +159,26 @@ async def ben_handler(message: Message):
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"))
async def reporn_handler(message: Message):