MadelineProtoDocs/docs/TD_docs/constructors/chatMemberStatusRestricted.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

1.5 KiB

title description image
chatMemberStatusRestricted User has some additional restrictions in the chat. Unsupported in group chats and broadcast channels https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: chatMemberStatusRestricted

Back to constructors index

User has some additional restrictions in the chat. Unsupported in group chats and broadcast channels

Attributes:

Name Type Required Description
is_member Bool Yes True, if user is chat member
restricted_until_date int Yes Date when the user will be unrestricted, 0 if never. Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time it considered to be restricted forever
can_send_messages Bool Yes True, if the user can send text messages, contacts, locations and venues
can_send_media_messages Bool Yes True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages
can_send_other_messages Bool Yes True, if the user can send animations, games, stickers and use inline bots, implies can_send_media_messages
can_add_web_page_previews Bool Yes True, if user may add web page preview to his messages, implies can_send_messages

Type: ChatMemberStatus