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 kitna…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "sana abhi kitna time hai". Generate only the body of an async Python function named
handle_ai_logic(client, message)using latest Pyrogram version (https://docs.pyrogram.org/) that can respond to this. Do NOT include imports or function definitions. ONLY return the inside code of that function.User: sana abhi kitna time hai Assistant:
- Assistantpython
from datetime import datetime import pytz if "sana abhi kitna time hai" in message.text.lower(): # Set timezone to India Standard Time (IST) ist = pytz.timezone("Asia/Kolkata") current_time = datetime.now(ist).strftime("%I:%M %p") await message.reply_text(f"Abhi ka samay hai: {current_time}")