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 is reply…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "sana is reply message wale ka photo bhejo". 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 is reply message wale ka photo bhejo Assistant:
- Assistant
if message.text and "sana is reply message wale ka photo bhejo" in message.text.lower(): if message.reply_to_message and message.reply_to_message.from_user: user = message.reply_to_message.from_user photos = await client.get_user_photos(user.id, limit=1) if photos: await client.send_photo(message.chat.id, photos[0].file_id, reply_to_message_id=message.message_id) else: await message.reply_text("Us user ke paas koi photo nahi hai.") else: await message.reply_text("Kripya reply message mein user ka photo bhejne ke liye reply karein.")