Use this method to get a list of administrators in a chat. On success, returns an Array of objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.
643 matches
60 actions
Telegram
60 actions
- post_addStickerToSetPOSTv1.0.0
- post_answerInlineQueryPOSTv1.0.0
- post_answerPreCheckoutQueryPOSTv1.0.0
- post_closePOSTv1.0.0
- post_copyMessagePOSTv1.0.0
- post_createNewStickerSetPOSTv1.0.0
- post_editMessageCaptionPOSTv1.0.0
- post_editMessageLiveLocationPOSTv1.0.0
- post_editMessageMediaPOSTv1.0.0
- post_editMessageReplyMarkupPOSTv1.0.0
- post_editMessageTextPOSTv1.0.0
- post_forwardMessagePOSTv1.0.0
- post_getChatPOSTv1.0.0
- post_getChatAdministratorsPOSTv1.0.0
- post_getChatMemberPOSTv1.0.0
- post_getChatMembersCountPOSTv1.0.0
- post_getFilePOSTv1.0.0
- post_getGameHighScoresPOSTv1.0.0
- post_getMePOSTv1.0.0
- post_getMyCommandsPOSTv1.0.0
- post_getStickerSetPOSTv1.0.0
- post_getUpdatesPOSTv1.0.0
- post_getUserProfilePhotosPOSTv1.0.0
- post_kickChatMemberPOSTv1.0.0
- post_leaveChatPOSTv1.0.0
- post_logOutPOSTv1.0.0
- post_pinChatMessagePOSTv1.0.0
- post_promoteChatMemberPOSTv1.0.0
- post_restrictChatMemberPOSTv1.0.0
- post_sendAnimationPOSTv1.0.0
- post_sendAudioPOSTv1.0.0
- post_sendChatActionPOSTv1.0.0
- post_sendContactPOSTv1.0.0
- post_sendDicePOSTv1.0.0
- post_sendDocumentPOSTv1.0.0
- post_sendGamePOSTv1.0.0
- post_sendInvoicePOSTv1.0.0
- post_sendLocationPOSTv1.0.0
- post_sendMediaGroupPOSTv1.0.0
- post_sendMessagePOSTv1.0.0
- post_sendPhotoPOSTv1.0.0
- post_sendPollPOSTv1.0.0
- post_sendStickerPOSTv1.0.0
- post_sendVenuePOSTv1.0.0
- post_sendVideoPOSTv1.0.0
- post_sendVideoNotePOSTv1.0.0
- post_sendVoicePOSTv1.0.0
- post_setChatAdministratorCustomTitlePOSTv1.0.0
- post_setChatDescriptionPOSTv1.0.0
- post_setChatPermissionsPOSTv1.0.0
- post_setChatPhotoPOSTv1.0.0
- post_setChatStickerSetPOSTv1.0.0
- post_setChatTitlePOSTv1.0.0
- post_setGameScorePOSTv1.0.0
- post_setMyCommandsPOSTv1.0.0
- post_setPassportDataErrorsPOSTv1.0.0
- post_setStickerPositionInSetPOSTv1.0.0
- post_setStickerSetThumbPOSTv1.0.0
- post_stopMessageLiveLocationPOSTv1.0.0
- post_stopPollPOSTv1.0.0
Communication/Telegram
post_getChatAdministrators
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
{
"type": "object",
"required": [
"chat_id"
],
"properties": {
"chat_id": {
"description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format `@channelusername`)",
"type": "object"
}
}
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
{
"type": "object",
"required": [
"ok",
"result"
],
"properties": {
"ok": {
"type": "boolean"
},
"result": {
"type": "array",
"items": {
"type": "object",
"description": "This object contains information about one member of a chat.",
"required": [
"user",
"status"
],
"properties": {
"can_add_web_page_previews": {
"type": "boolean",
"description": "*Optional*. Restricted only. True, if the user is allowed to add web page previews to their messages"
},
"can_be_edited": {
"type": "boolean",
"description": "*Optional*. Administrators only. True, if the bot is allowed to edit administrator privileges of that user"
},
"can_change_info": {
"type": "boolean",
"description": "*Optional*. Administrators and restricted only. True, if the user is allowed to change the chat title, photo and other settings"
},
"can_delete_messages": {
"type": "boolean",
"description": "*Optional*. Administrators only. True, if the administrator can delete messages of other users"
},
"can_edit_messages": {
"type": "boolean",
"description": "*Optional*. Administrators only. True, if the administrator can edit messages of other users and can pin messages; channels only"
},
"can_invite_users": {
"type": "boolean",
"description": "*Optional*. Administrators and restricted only. True, if the user is allowed to invite new users to the chat"
},
"can_pin_messages": {
"type": "boolean",
"description": "*Optional*. Administrators and restricted only. True, if the user is allowed to pin messages; groups and supergroups only"
},
"can_post_messages": {
"type": "boolean",
"description": "*Optional*. Administrators only. True, if the administrator can post in the channel; channels only"
},
"can_promote_members": {
"type": "boolean",
"description": "*Optional*. Administrators only. True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)"
},
"can_restrict_members": {
"type": "boolean",
"description": "*Optional*. Administrators only. True, if the administrator can restrict, ban or unban chat members"
},
"can_send_media_messages": {
"type": "boolean",
"description": "*Optional*. Restricted only. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes"
},
"can_send_messages": {
"type": "boolean",
"description": "*Optional*. Restricted only. True, if the user is allowed to send text messages, contacts, locations and venues"
},
"can_send_other_messages": {
"type": "boolean",
"description": "*Optional*. Restricted only. True, if the user is allowed to send animations, games, stickers and use inline bots"
},
"can_send_polls": {
"type": "boolean",
"description": "*Optional*. Restricted only. True, if the user is allowed to send polls"
},
"custom_title": {
"type": "string",
"description": "*Optional*. Owner and administrators only. Custom title for this user"
},
"is_anonymous": {
"type": "boolean",
"description": "*Optional*. Owner and administrators only. True, if the user's presence in the chat is hidden"
},
"is_member": {
"type": "boolean",
"description": "*Optional*. Restricted only. True, if the user is a member of the chat at the moment of the request"
},
"status": {
"type": "string",
"description": "The member's status in the chat. Can be “creator”, “administrator”, “member”, “restricted”, “left” or “kicked”",
"enum": [
"creator",
"administrator",
"member",
"restricted",
"left",
"kicked"
]
},
"until_date": {
"type": "integer",
"description": "*Optional*. Restricted and kicked only. Date when restrictions will be lifted for this user; unix time"
},
"user": {
"type": "object",
"description": "This object represents a Telegram user or bot.",
"required": [
"id",
"is_bot",
"first_name"
],
"properties": {
"can_join_groups": {
"type": "boolean",
"description": "*Optional*. True, if the bot can be invited to groups. Returned only in [getMe](https://core.telegram.org/bots/api/#getme)."
},
"can_read_all_group_messages": {
"type": "boolean",
"description": "*Optional*. True, if [privacy mode](https://core.telegram.org/bots#privacy-mode) is disabled for the bot. Returned only in [getMe](https://core.telegram.org/bots/api/#getme)."
},
"first_name": {
"type": "string",
"description": "User's or bot's first name"
},
"id": {
"type": "integer",
"description": "Unique identifier for this user or bot"
},
"is_bot": {
"type": "boolean",
"description": "True, if this user is a bot"
},
"language_code": {
"type": "string",
"description": "*Optional*. [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) of the user's language"
},
"last_name": {
"type": "string",
"description": "*Optional*. User's or bot's last name"
},
"supports_inline_queries": {
"type": "boolean",
"description": "*Optional*. True, if the bot supports inline queries. Returned only in [getMe](https://core.telegram.org/bots/api/#getme)."
},
"username": {
"type": "string",
"description": "*Optional*. User's or bot's username"
}
}
}
}
}
}
}
}