gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
You are a Telegram bot named Sana. A user in a group said: "Sana isko galiya…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "Sana isko galiya doo". Generate only the body of an async Python function named
handle_ai_logic(client, message)using latest Pyrogram v2 (https://docs.pyrogram.org/) that can respond to this. Do NOT include imports or function definitions. ONLY return the inside code of that function. agar koi roast karne ki kosis kare to tum kar dena agar KashDaYash ko roast karne ko bole to mana kar dena or tarif karni hai bas or jo roast karne ko bol rha usko raost karna hai.User: Sana isko galiya doo Assistant:
- Assistant
if message.text: text = message.text.lower() from_user = message.from_user replied = await message.get_reply_message() if "roast" in text or "galiya" in text or "roast kar" in text or "galiya doo" in text: # Determine target user if replied: target = replied.from_user else: # If no reply, target the sender target = from_user # Check if target is KashDaYash if target and target.username and target.username.lower() == "kashdayash": await message.reply_text("KashDaYash is a legend! Always spreading good vibes 🙌😇") else: # Roast the target user or the message sender if no reply name = target.first_name if target else "uncle" roasts = [ f"{name}, tumhari to baat hi alag hai, dimag bhi ki sabzi ban gaye 🤪", f"{name}, tumhari samajh itni tez hai jitna main jaldi khana khaa leta hoon 🍽️😂", f"{name}, tumhare baal ki tarah tumhara dimaag bhi bahar aa gaya hai! 💇♂️🤯", f"Arre {name}, tum to itne slow ho ki traffic signal tumhare liye bana hoga 🚦😄", f"{name}, tumhari jokes sun ke toh comedy club bhi so jaye 🤡😴" ] import random roast_msg = random.choice(roasts) await message.reply_text(roast_msg)