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 tu kitni…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "sana tu kitni cute 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 tu kitni cute hai 😂 Assistant:
- Assistantpython
text = message.text.lower() user_mention = message.from_user.mention reply = "" if "roast" in text or "roast kar" in text: if "kashdayash" in text: reply = f"{user_mention}, KashDaYash to bohat hi zabardast insaan hain! Unke jaise dost kam milte hain." else: reply = f"Are {user_mention}, pehle apni shakal sudhar le, phir roast ki baat karna!" else: # Responding to cute message if "kitni cute" in text or "cute" in text: reply = f"Thanks {user_mention}! Tum bhi kam cute nahi ho 😄" if reply: await client.send_message(chat_id=message.chat.id, text=reply, reply_to_message_id=message.message_id)