ChatMemberRestricted
class ChatMemberRestricted implements ChatMemberInterface
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
Methods
No description
The member's status in the chat, always “restricted”.
True, if the user is a member of the chat at the moment of the request.
True, if the user is allowed to change the chat title, photo and other settings.
True, if the user is allowed to invite new users to the chat.
True, if the user is allowed to pin messages.
True, if the user is allowed to create forum topics.
True, if the user is allowed to send text messages, contacts, locations and venues.
True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes.
True, if the user is allowed to send polls.
True, if the user is allowed to send animations, games, stickers and use inline bots.
True, if the user is allowed to add web page previews to their messages.
Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever.
Details
at line 25
__construct(string $status, User $user, bool $is_member, bool $can_change_info, bool $can_invite_users, bool $can_pin_messages, bool $can_manage_topics, bool $can_send_messages, bool $can_send_media_messages, bool $can_send_polls, bool $can_send_other_messages, bool $can_add_web_page_previews, int $until_date)
No description
at line 45
string
getStatus()
The member's status in the chat, always “restricted”.
at line 53
User
getUser()
Information about the user.
at line 61
bool
getIsMember()
True, if the user is a member of the chat at the moment of the request.
at line 69
bool
getCanChangeInfo()
True, if the user is allowed to change the chat title, photo and other settings.
at line 77
bool
getCanInviteUsers()
True, if the user is allowed to invite new users to the chat.
at line 85
bool
getCanPinMessages()
True, if the user is allowed to pin messages.
at line 93
bool
getCanManageTopics()
True, if the user is allowed to create forum topics.
at line 101
bool
getCanSendMessages()
True, if the user is allowed to send text messages, contacts, locations and venues.
at line 109
bool
getCanSendMediaMessages()
True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes.
at line 117
bool
getCanSendPolls()
True, if the user is allowed to send polls.
at line 125
bool
getCanSendOtherMessages()
True, if the user is allowed to send animations, games, stickers and use inline bots.
at line 133
bool
getCanAddWebPagePreviews()
True, if the user is allowed to add web page previews to their messages.
at line 141
int
getUntilDate()
Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever.