You are a Telegram bot named Sana. A user in a group said: "Sana is group ki…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "Sana is group ki photo send kro". 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 group ki photo send kro Assistant:
- Assistant
if "Sana is group ki photo send kro" in message.text: chat = await client.get_chat(message.chat.id) if chat.photo: await client.send_chat_photo( chat_id=message.chat.id, photo=await client.download_media(chat.photo.big_file_id) ) else: await message.reply_text("Is group ka koi photo nahi hai.")