getChatAdministrators

Use this method to get chat administrators. On success, the chatAdministrators message will be received.
Field
Type
Required
Description
method
String
Yes
"getChatAdministrators"
chat_id
String
Yes
Unique identifier for Group or Channel.

Requests

json
{ "method": "getChatAdministrators", "chat_id": "65845123214785475" }
java
api.getChatAdministrators(incomingMsg.getChat().getId());
javascript
api.getChatAdministrators(chat.id);
python
napi.get_chat_administrators("chatId")

Response

json
{ "chatAdministrators": { "chat": { "id": "666441028753124102" }, "administrators": [ { "id": "85552103147965410" }, { "id": "14032658541020014" } ] }, "method": "chatAdministrators" }