getChatMember
Retrieve detailed information about a specific user in a chat, including their role and permissions. Works reliably when the bot is an administrator in the chat.
Instructions
Get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a ChatMember object on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) | |
| user_id | Yes | Unique identifier of the target user |