ChatPermissions
class ChatPermissions
Describes actions that a non-administrator user is allowed to take in a chat.
Methods
No description
Optional. True, if the user is allowed to send text messages, contacts, locations and venues.
Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages.
Optional. True, if the user is allowed to send polls, implies can_send_messages.
Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages.
Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages.
Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups.
Optional. True, if the user is allowed to invite new users to the chat.
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups.
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
at line 37
bool|null
getCanSendMessages()
Optional. True, if the user is allowed to send text messages, contacts, locations and venues.
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.
at line 53
bool|null
getCanSendPolls()
Optional. True, if the user is allowed to send polls, implies can_send_messages.
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.
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.
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.
at line 85
bool|null
getCanInviteUsers()
Optional. True, if the user is allowed to invite new users to the chat.
at line 93
bool|null
getCanPinMessages()
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups.
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.