class ChatMemberRestricted implements ChatMemberInterface

Represents a chat member that is under certain restrictions in the chat. Supergroups only.

Methods

__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

string
getStatus()

The member's status in the chat, always “restricted”.

getUser()

Information about the user.

bool
getIsMember()

True, if the user is a member of the chat at the moment of the request.

bool
getCanChangeInfo()

True, if the user is allowed to change the chat title, photo and other settings.

bool
getCanInviteUsers()

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

bool
getCanPinMessages()

True, if the user is allowed to pin messages.

bool
getCanManageTopics()

True, if the user is allowed to create forum topics.

bool
getCanSendMessages()

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

bool
getCanSendMediaMessages()

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

bool
getCanSendPolls()

True, if the user is allowed to send polls.

bool
getCanSendOtherMessages()

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

bool
getCanAddWebPagePreviews()

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

int
getUntilDate()

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

Parameters

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

at line 45
string getStatus()

The member's status in the chat, always “restricted”.

Return Value

string

at line 53
User getUser()

Information about the user.

Return Value

User

at line 61
bool getIsMember()

True, if the user is a member of the chat at the moment of the request.

Return Value

bool

at line 69
bool getCanChangeInfo()

True, if the user is allowed to change the chat title, photo and other settings.

Return Value

bool

at line 77
bool getCanInviteUsers()

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

Return Value

bool

at line 85
bool getCanPinMessages()

True, if the user is allowed to pin messages.

Return Value

bool

at line 93
bool getCanManageTopics()

True, if the user is allowed to create forum topics.

Return Value

bool

at line 101
bool getCanSendMessages()

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

Return Value

bool

at line 109
bool getCanSendMediaMessages()

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

Return Value

bool

at line 117
bool getCanSendPolls()

True, if the user is allowed to send polls.

Return Value

bool

at line 125
bool getCanSendOtherMessages()

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

Return Value

bool

at line 133
bool getCanAddWebPagePreviews()

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

Return Value

bool

at line 141
int getUntilDate()

Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever.

Return Value

int