ChatMemberRestricted
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
Поля
statusString
The member's status in the chat, always “restricted”
Tag of the member
is_memberBoolean
True, if the user is a member of the chat at the moment of the request
can_send_messagesBoolean
True, if the user is allowed to send text messages, rich messages, contacts, giveaways, giveaway winners, invoices, locations and venues
can_send_audiosBoolean
True, if the user is allowed to send audios
can_send_documentsBoolean
True, if the user is allowed to send documents
can_send_photosBoolean
True, if the user is allowed to send photos
can_send_videosBoolean
True, if the user is allowed to send videos
can_send_video_notesBoolean
True, if the user is allowed to send video notes
can_send_voice_notesBoolean
True, if the user is allowed to send voice notes
can_send_pollsBoolean
True, if the user is allowed to send polls and checklists
can_send_other_messagesBoolean
True, if the user is allowed to send animations, games, stickers and use inline bots
can_add_web_page_previewsBoolean
True, if the user is allowed to add web page previews to their messages
can_react_to_messagesBoolean
True, if the user is allowed to react to messages
can_edit_tagBoolean
True, if the user is allowed to edit their own tag
can_change_infoBoolean
True, if the user is allowed to change the chat title, photo and other settings
can_invite_usersBoolean
True, if the user is allowed to invite new users to the chat
can_pin_messagesBoolean
True, if the user is allowed to pin messages
can_manage_topicsBoolean
True, if the user is allowed to create forum topics
until_dateInteger
Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever.
Минимальный JSON
JSON
{
"status": "restricted",
"user": {
"id": 1780243423,
"is_bot": true,
"first_name": "..."
},
"is_member": true,
"can_send_messages": true,
"can_send_audios": true,
"can_send_documents": true,
"can_send_photos": true,
"can_send_videos": true,
"can_send_video_notes": true,
"can_send_voice_notes": true,
"can_send_polls": true,
"can_send_other_messages": true,
"can_add_web_page_previews": true,
"can_react_to_messages": true,
"can_edit_tag": true,
"can_change_info": true,
"can_invite_users": true,
"can_pin_messages": true,
"can_manage_topics": true,
"until_date": 1
}Где используется
Типы