MadelineProto/docs/TD_docs/constructors/chatMemberStatusRestricted.md
2017-08-25 15:05:53 +02:00

1.4 KiB

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

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