promote Chat Member
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.
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.
Parameters
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Unique identifier of the target user
Pass True, if the administrator's presence in the chat is hidden
Pass True, if the administrator can change chat title, photo and other settings
Pass True, if the administrator can create channel posts, channels only
Pass True, if the administrator can edit messages of other users and can pin messages, channels only
Pass True, if the administrator can delete messages of other users
Pass True, if the administrator can invite new users to the chat
Pass True, if the administrator can restrict, ban or unban chat members
Pass True, if the administrator can pin messages, supergroups only
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)