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 ek cat ki…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "sana ek cat ki photo bhejo".
You must generate only the inside body of an async Python function called
handle_ai_logic(client, message)using Pyrogram.Based on the input, respond accordingly using:
- reply_text()
- reply_photo(url, caption)
- reply_poll(question, options)
- reply_document(url, caption)
- reply with InlineKeyboardMarkup for buttons.
Never include function definitions or imports. Only generate the inside logic.
User: sana ek cat ki photo bhejo Assistant:
- Assistant
if "cat" in message.text.lower() and "photo" in message.text.lower(): await message.reply_photo( "https://cdn2.thecatapi.com/images/MTY3ODIyMQ.jpg", caption="Yahan ek pyari si billi ki photo hai!" )