class ChatPermissions

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

Methods

__construct(bool|null $can_send_messages = null, bool|null $can_send_media_messages = null, bool|null $can_send_polls = null, bool|null $can_send_other_messages = null, bool|null $can_add_web_page_previews = null, bool|null $can_change_info = null, bool|null $can_invite_users = null, bool|null $can_pin_messages = null, bool|null $can_manage_topics = null)

No description

bool|null
getCanSendMessages()

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

bool|null
getCanSendMediaMessages()

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

bool|null
getCanSendPolls()

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

bool|null
getCanSendOtherMessages()

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

bool|null
getCanAddWebPagePreviews()

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

bool|null
getCanChangeInfo()

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

bool|null
getCanInviteUsers()

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

bool|null
getCanPinMessages()

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

bool|null
getCanManageTopics()

Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages.

Details

at line 21
__construct(bool|null $can_send_messages = null, bool|null $can_send_media_messages = null, bool|null $can_send_polls = null, bool|null $can_send_other_messages = null, bool|null $can_add_web_page_previews = null, bool|null $can_change_info = null, bool|null $can_invite_users = null, bool|null $can_pin_messages = null, bool|null $can_manage_topics = null)

No description

Parameters

bool|null $can_send_messages
bool|null $can_send_media_messages
bool|null $can_send_polls
bool|null $can_send_other_messages
bool|null $can_add_web_page_previews
bool|null $can_change_info
bool|null $can_invite_users
bool|null $can_pin_messages
bool|null $can_manage_topics

at line 37
bool|null getCanSendMessages()

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

Return Value

bool|null

at line 45
bool|null getCanSendMediaMessages()

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

Return Value

bool|null

at line 53
bool|null getCanSendPolls()

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

Return Value

bool|null

at line 61
bool|null getCanSendOtherMessages()

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

Return Value

bool|null

at line 69
bool|null getCanAddWebPagePreviews()

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

Return Value

bool|null

at line 77
bool|null getCanChangeInfo()

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

Return Value

bool|null

at line 85
bool|null getCanInviteUsers()

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

Return Value

bool|null

at line 93
bool|null getCanPinMessages()

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

Return Value

bool|null

at line 101
bool|null getCanManageTopics()

Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages.

Return Value

bool|null