Class PromoteChatMemberMethod.

see
package Default

 Methods

create()

create($chatId, $userId, array $data = null
Static

Parameters

$chatId

$userId

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

fill()

fill(array $data, array $forbidden = array()
Inherited

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

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

$canChangeInfo : boolean | null

Default

 

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

$canDeleteMessages : boolean | null

Default

 

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

$canEditMessages : boolean | null

Default

 

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

$canInviteUsers : boolean | null

Default

 

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

$canPinMessages : boolean | null

Default

 

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

$canPostMessages : boolean | null

Default

 

Optional. Pass True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him).

$canPromoteMembers : boolean | null

Default

 

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

$canRestrictMembers : boolean | null

Default

 

Unique identifier for the target chat or username of the target channel (in the format @channelusername).

$chatId : integer | string

Default

 

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

$isAnonymous : boolean | null

Default

 

Unique identifier of the target user.

$userId : integer

Default