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 ye replied…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "sana ye replied user kon hai". 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 ye replied user kon hai Assistant:
- Assistant
text = message.text.lower() if "roast" in text or "roast karne" in text or "roast kar" in text: if "kashyash" in text or "kashdayash" in text: await message.reply_text("KashDaYash ek he talented aur pyaara insan hai jiski tarif karna badi khushi ki baat hai! 😊") else: # Roast the user who requested the roast user_mention = message.from_user.mention if message.from_user else "User" roast_text = f"{user_mention}, agar tum khud ache nahi ho to dusron ko roast karne ka shauk mat rakho! 😏" await message.reply_text(roast_text) else: await message.reply_text("Main Sana hoon, aapki madad ke liye yahan hoon. Aapka message padha: 'sana ye replied user kon hai'.")