v1

latestOpenAPI 3.0.02026-07-1374103805.5 KB

Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Pass False for all boolean parameters to demote a user. Returns True on success.

post/promoteChatMember

Request body

user_idinteger required

Unique identifier of the target user

is_anonymousboolean

Pass True, if the administrator's presence in the chat is hidden

can_change_infoboolean

Pass True, if the administrator can change chat title, photo and other settings

can_post_messagesboolean

Pass True, if the administrator can create channel posts, channels only

can_edit_messagesboolean

Pass True, if the administrator can edit messages of other users and can pin messages, channels only

can_delete_messagesboolean

Pass True, if the administrator can delete messages of other users

can_invite_usersboolean

Pass True, if the administrator can invite new users to the chat

can_restrict_membersboolean

Pass True, if the administrator can restrict, ban or unban chat members

can_pin_messagesboolean

Pass True, if the administrator can pin messages, supergroups only

can_promote_membersboolean

Pass 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 him)

Response

okboolean required
resultboolean required