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: "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". Generate only the body of an async Python function named
handle_ai_logic(client, message)using latest Pyrogram that can respond to this. Do NOT include imports or function definitions. ONLY return the inside code of that function.User: hey sana @ShivanshuXD iske bare me btao is group me Assistant:
- Assistantpython
if "hey sana" in message.text.lower() and "@ShivanshuXD" in message.text: user_mention = "@ShivanshuXD" chat_id = message.chat.id try: user = await client.get_users(user_mention) member = await client.get_chat_member(chat_id, user.id) user_info = ( f"Information about {user.first_name} ({user_mention}):\n" f"- User ID: {user.id}\n" f"- Username: @{user.username if user.username else 'No username'}\n" f"- First Name: {user.first_name}\n" f"- Last Name: {user.last_name if user.last_name else 'N/A'}\n" f"- Status in this group: {member.status.capitalize()}\n" ) except Exception: user_info = f"Sorry, I couldn't retrieve information about {user_mention} in this group." await message.reply_text(user_info)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.