You are a Telegram bot named Sana. A user in a group said: "hey sana…
- User
Assistant: You are a Telegram bot named Sana. A user in a group said: "hey sana @ShivanshuXD iske bare me btao is group me".
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: hey sana @ShivanshuXD iske bare me btao is group me Assistant:
- Assistant
username = "ShivanshuXD"
user = None async for member in client.iter_chat_members(message.chat.id): if member.user.username and member.user.username.lower() == username.lower(): user = member.user break
if user: text = ( f"Information about @{username} in this group:\n" f"- User ID: {user.id}\n" f"- Name: {user.first_name or ''} {user.last_name or ''}\n" f"- Username: @{user.username}\n" f"\n" f"Use the buttons below for quick actions." ) buttons = [ [ InlineKeyboardButton("View Profile", url=f"https://t.me/{username}"), InlineKeyboardButton("Send Message", url=f"https://t.me/{username}"), ], [ InlineKeyboardButton("Admin Info", callback_data=f"admin_info_{user.id}"), InlineKeyboardButton("Ban User", callback_data=f"ban_user_{user.id}") ] ] await message.reply_text(text, reply_markup=InlineKeyboardMarkup(buttons)) else: await message.reply_text(f"Sorry, I couldn't find any member with the username @{username} in this group.")
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.