Class ChatPermissionsType Describes actions that a non-administrator user is allowed to take in a chat.

see
package Default

 Methods

create()

create(array|null $data = null) : \TgBotApi\BotApiBase\Type\ChatPermissionsType
Static

Parameters

$data

arraynull

Returns

\TgBotApi\BotApiBase\Type\ChatPermissionsType

fill()

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

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages.

$canAddWebPagePreviews : boolean

Default

 

Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups.

$canChangeInfo : boolean

Default

 

Optional. True, if the user is allowed to invite new users to the chat.

$canInviteUsers : boolean

Default

 

Optional. True, if the user is allowed to pin messages. Ignored in public supergroups.

$canPinMessages : boolean

Default

 

Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages.

$canSendMediaMessages : boolean

Default

 

Optional. True, if the user is allowed to send text messages, contacts, locations and venues.

$canSendMessages : boolean

Default

 

Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages.

$canSendOtherMessages : boolean

Default

 

Optional. True, if the user is allowed to send polls, implies can_send_messages.

$canSendPolls : boolean

Default