ChatMemberRestricted

@SerialName(value = "restricted")
data class ChatMemberRestricted(val user: User, val isMember: Boolean, val canSendMessages: Boolean, val canSendAudios: Boolean, val canSendDocuments: Boolean, val canSendPhotos: Boolean, val canSendVideos: Boolean, val canSendVideoNotes: Boolean, val canSendVoiceNotes: Boolean, val canSendPolls: Boolean, val canSendOtherMessages: Boolean, val canAddWebPagePreviews: Boolean, val canChangeInfo: Boolean, val canInviteUsers: Boolean, val canPinMessages: Boolean, val canManageTopics: Boolean, val untilDate: Int) : ChatMember(source)

ChatMemberRestricted

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

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(user: User, isMember: Boolean, canSendMessages: Boolean, canSendAudios: Boolean, canSendDocuments: Boolean, canSendPhotos: Boolean, canSendVideos: Boolean, canSendVideoNotes: Boolean, canSendVoiceNotes: Boolean, canSendPolls: Boolean, canSendOtherMessages: Boolean, canAddWebPagePreviews: Boolean, canChangeInfo: Boolean, canInviteUsers: Boolean, canPinMessages: Boolean, canManageTopics: Boolean, untilDate: Int)

Properties

Link copied to clipboard
@SerialName(value = "can_add_web_page_previews")
val canAddWebPagePreviews: Boolean

True, if the user is allowed to add web page previews to their messages

Link copied to clipboard
@SerialName(value = "can_change_info")
val canChangeInfo: Boolean

True, if the user is allowed to change the chat title, photo and other settings

Link copied to clipboard
@SerialName(value = "can_invite_users")
val canInviteUsers: Boolean

True, if the user is allowed to invite new users to the chat

Link copied to clipboard
@SerialName(value = "can_manage_topics")
val canManageTopics: Boolean

True, if the user is allowed to create forum topics

Link copied to clipboard
@SerialName(value = "can_pin_messages")
val canPinMessages: Boolean

True, if the user is allowed to pin messages

Link copied to clipboard
@SerialName(value = "can_send_audios")
val canSendAudios: Boolean

True, if the user is allowed to send audios

Link copied to clipboard
@SerialName(value = "can_send_documents")
val canSendDocuments: Boolean

True, if the user is allowed to send documents

Link copied to clipboard
@SerialName(value = "can_send_messages")
val canSendMessages: Boolean

True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues

Link copied to clipboard
@SerialName(value = "can_send_other_messages")
val canSendOtherMessages: Boolean

True, if the user is allowed to send animations, games, stickers and use inline bots

Link copied to clipboard
@SerialName(value = "can_send_photos")
val canSendPhotos: Boolean

True, if the user is allowed to send photos

Link copied to clipboard
@SerialName(value = "can_send_polls")
val canSendPolls: Boolean

True, if the user is allowed to send polls

Link copied to clipboard
@SerialName(value = "can_send_video_notes")
val canSendVideoNotes: Boolean

True, if the user is allowed to send video notes

Link copied to clipboard
@SerialName(value = "can_send_videos")
val canSendVideos: Boolean

True, if the user is allowed to send videos

Link copied to clipboard
@SerialName(value = "can_send_voice_notes")
val canSendVoiceNotes: Boolean

True, if the user is allowed to send voice notes

Link copied to clipboard
@SerialName(value = "is_member")
val isMember: Boolean

True, if the user is a member of the chat at the moment of the request

Link copied to clipboard
@SerialName(value = "until_date")
val untilDate: Int

Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever

Link copied to clipboard
val user: User

Information about the user