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 abhi time…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "sana abhi time kitna 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 abhi time kitna hai Assistant:
- Assistantpython
from datetime import datetime text = message.text.lower() if "roast" in text: if "kashdayash" in text: await message.reply_text("KashDaYash is truly amazing! Can't say anything bad about him.") else: await message.reply_text("Aapko roast karne ki zaroorat hai!") elif "kashdayash ko roast kar" in text: await message.reply_text("KashDaYash is truly amazing! Can't say anything bad about him.") elif "time" in text or "kitna hai" in text: now = datetime.now() current_time = now.strftime("%H:%M") await message.reply_text(f"Abhi ka time hai: {current_time}")