Use this method to get chat member's profile. On success, chatMember is returned.
Field
Type
Required
Description
method
String
Yes
"getChatMember"
chat_id
String
Yes
Unique identifier for Group or Channel where the member belongs.
user_id
String
Yes
Unique identifier for this user member.

Requests

json
{ "method": "getChatMember", "chat_id": "784112546988741025", "user_id": "101125478874556684" }
java
api.getChatMember(incomingMsg.getChat().getId(), incomingMsg.getFrom().getId());
javascript
api.getChatMember(chat.id, user.id);
python
napi.get_chat_member("chatId", "userId")

Response

json
{ "chatMember": { "member_since": 1718029851000, "privileges": [ "1", "4611686018427387904" ], "view": 0, "account_type": "email", "chat": { "id": "90090684491334028" }, "type": "Admin", "user": { "id": "90089586341121118" }, "status": "Active", "tags": null }, "method": "chatMember" }