TDLib v0.0.2 TDLib.Object.ChatMemberStatusRestricted View Source
The user is under certain restrictions in the chat. Not supported in basic groups and channels.
Name | Type | Description |
---|---|---|
is_member | bool | True, if the user is a member of the chat. |
restricted_until_date | number | Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever. |
can_send_messages | bool | True, if the user can send text messages, contacts, locations, and venues. |
can_send_media_messages | bool | True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions. |
can_send_other_messages | bool | True, if the user can send animations, games, and stickers and use inline bots. Implies can_send_media_messages permissions. |
can_add_web_page_previews | bool | True, if the user may add a web page preview to his messages. Implies can_send_messages permissions. |
More details on telegram’s documentation.