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.

NameTypeDescription
is_memberboolTrue, if the user is a member of the chat.
restricted_until_datenumberPoint 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_messagesboolTrue, if the user can send text messages, contacts, locations, and venues.
can_send_media_messagesboolTrue, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions.
can_send_other_messagesboolTrue, if the user can send animations, games, and stickers and use inline bots. Implies can_send_media_messages permissions.
can_add_web_page_previewsboolTrue, if the user may add a web page preview to his messages. Implies can_send_messages permissions.

More details on telegram’s documentation.