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 2 button…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "sana 2 button bnao hi hello name se".
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 2 button bnao hi hello name se Assistant:
- Assistant
buttons = [ [InlineKeyboardButton("hello", callback_data="hello_1"), InlineKeyboardButton("hello", callback_data="hello_2")] ] await message.reply_text( "Here are your 2 buttons named 'hello':", reply_markup=InlineKeyboardMarkup(buttons) )