ChatMemberRestricted

data class ChatMemberRestricted(status: String, user: User, is_member: Boolean, can_change_info: Boolean, can_invite_users: Boolean, can_pin_messages: Boolean, can_send_messages: Boolean, can_send_media_messages: Boolean, can_send_polls: Boolean, can_send_other_messages: Boolean, can_add_web_page_previews: Boolean, until_date: Long) : ChatMember

Represents a chat member that is under certain restrictions in the chat. Supergroups only.

Constructors

ChatMemberRestricted
Link copied to clipboard
fun ChatMemberRestricted(status: String, user: User, is_member: Boolean, can_change_info: Boolean, can_invite_users: Boolean, can_pin_messages: Boolean, can_send_messages: Boolean, can_send_media_messages: Boolean, can_send_polls: Boolean, can_send_other_messages: Boolean, can_add_web_page_previews: Boolean, until_date: Long)

Properties

can_add_web_page_previews
Link copied to clipboard
val can_add_web_page_previews: Boolean
True, if the user is allowed to add web page previews to their messages
can_change_info
Link copied to clipboard
val can_change_info: Boolean
True, if the user is allowed to change the chat title, photo and other settings
can_invite_users
Link copied to clipboard
val can_invite_users: Boolean
True, if the user is allowed to invite new users to the chat
can_pin_messages
Link copied to clipboard
val can_pin_messages: Boolean
True, if the user is allowed to pin messages
can_send_media_messages
Link copied to clipboard
val can_send_media_messages: Boolean
True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes
can_send_messages
Link copied to clipboard
val can_send_messages: Boolean
True, if the user is allowed to send text messages, contacts, locations and venues
can_send_other_messages
Link copied to clipboard
val can_send_other_messages: Boolean
True, if the user is allowed to send animations, games, stickers and use inline bots
can_send_polls
Link copied to clipboard
val can_send_polls: Boolean
True, if the user is allowed to send polls
is_member
Link copied to clipboard
val is_member: Boolean
True, if the user is a member of the chat at the moment of the request
status
Link copied to clipboard
val status: String
The member's status in the chat, always “restricted”
until_date
Link copied to clipboard
val until_date: Long
Date when restrictions will be lifted for this user; unix time.
user
Link copied to clipboard
val user: User
Information about the user