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" }
javaapi.getChatAdministrators(incomingMsg.getChat().getId());
javascriptapi.getChatAdministrators(chat.id);
pythonnapi.get_chat_administrators("chatId")
Response
json{ "chatAdministrators": { "chat": { "id": "666441028753124102" }, "administrators": [ { "id": "85552103147965410" }, { "id": "14032658541020014" } ] }, "method": "chatAdministrators" }