RestrictedMemberChatMember

@Serializable
data class RestrictedMemberChatMember(val user: PreviewUser, val untilDate: TelegramDate? = null, val isMember: Boolean = false, val canSendMessages: Boolean = false, val canSendAudios: Boolean = false, val canSendDocuments: Boolean = false, val canSendPhotos: Boolean = false, val canSendVideos: Boolean = false, val canSendVideoNotes: Boolean = false, val canSendVoiceNotes: Boolean = false, val canSendPolls: Boolean = false, val canSendOtherMessages: Boolean = false, val canAddWebPagePreviews: Boolean = false, val canChangeInfo: Boolean = false, val canInviteUsers: Boolean = false, val canPinMessages: Boolean = false, val canManageTopics: Boolean = false) : RestrictedChatMember, SpecialRightsChatMember, MemberChatMember, ChatPermissions

Represents ChatMemberRestricted from telegram bots api and means that member is still member of chat but has been restricted in his rights

Constructors

Link copied to clipboard
constructor(user: PreviewUser, untilDate: TelegramDate? = null, isMember: Boolean = false, canSendMessages: Boolean = false, canSendAudios: Boolean = false, canSendDocuments: Boolean = false, canSendPhotos: Boolean = false, canSendVideos: Boolean = false, canSendVideoNotes: Boolean = false, canSendVoiceNotes: Boolean = false, canSendPolls: Boolean = false, canSendOtherMessages: Boolean = false, canAddWebPagePreviews: Boolean = false, canChangeInfo: Boolean = false, canInviteUsers: Boolean = false, canPinMessages: Boolean = false, canManageTopics: Boolean = false)

Properties

Link copied to clipboard
@SerialName(value = "can_add_web_page_previews")
open override val canAddWebPagePreviews: Boolean = false
Link copied to clipboard
@SerialName(value = "can_change_info")
open override val canChangeInfo: Boolean = false
Link copied to clipboard
@SerialName(value = "can_invite_users")
open override val canInviteUsers: Boolean = false
Link copied to clipboard
@SerialName(value = "can_manage_topics")
open override val canManageTopics: Boolean = false
Link copied to clipboard
@SerialName(value = "can_pin_messages")
open override val canPinMessages: Boolean = false
Link copied to clipboard
@SerialName(value = "can_send_audios")
open override val canSendAudios: Boolean = false
Link copied to clipboard
@SerialName(value = "can_send_documents")
open override val canSendDocuments: Boolean = false
Link copied to clipboard
open val canSendGifs: Boolean?
Link copied to clipboard
@SerialName(value = "can_send_messages")
open override val canSendMessages: Boolean = false
Link copied to clipboard
@SerialName(value = "can_send_other_messages")
open override val canSendOtherMessages: Boolean = false
Link copied to clipboard
@SerialName(value = "can_send_photos")
open override val canSendPhotos: Boolean = false
Link copied to clipboard
@SerialName(value = "can_send_polls")
open override val canSendPolls: Boolean = false
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "can_send_video_notes")
open override val canSendVideoNotes: Boolean = false
Link copied to clipboard
@SerialName(value = "can_send_videos")
open override val canSendVideos: Boolean = false
Link copied to clipboard
@SerialName(value = "can_send_voice_notes")
open override val canSendVoiceNotes: Boolean = false
Link copied to clipboard
@Transient
open val isGranular: Boolean
Link copied to clipboard
@SerialName(value = "is_member")
val isMember: Boolean = false
Link copied to clipboard
@SerialName(value = "status")
@Required
@EncodeDefault
open override val status: ChatMember.Status
Link copied to clipboard
@SerialName(value = "until_date")
open override val untilDate: TelegramDate? = null
Link copied to clipboard
@SerialName(value = "user")
open override val user: PreviewUser

Functions

Link copied to clipboard
open fun copyCommon(canSendPolls: Boolean? = this.canSendPolls, canSendOtherMessages: Boolean? = this.canSendOtherMessages, canAddWebPagePreviews: Boolean? = this.canAddWebPagePreviews, canChangeInfo: Boolean? = this.canChangeInfo, canInviteUsers: Boolean? = this.canInviteUsers, canPinMessages: Boolean? = this.canPinMessages): ChatPermissions

Copying current instance as ChatPermissions, but realizations of this interface may differently override this method

Link copied to clipboard
open fun copyGranular(canSendMessages: Boolean? = this.canSendMessages, canSendAudios: Boolean? = this.canSendAudios, canSendDocuments: Boolean? = this.canSendDocuments, canSendPhotos: Boolean? = this.canSendPhotos, canSendVideos: Boolean? = this.canSendVideos, canSendVideoNotes: Boolean? = this.canSendVideoNotes, canSendVoiceNotes: Boolean? = this.canSendVoiceNotes, canSendPolls: Boolean? = this.canSendPolls, canSendOtherMessages: Boolean? = this.canSendOtherMessages, canAddWebPagePreviews: Boolean? = this.canAddWebPagePreviews, canChangeInfo: Boolean? = this.canChangeInfo, canInviteUsers: Boolean? = this.canInviteUsers, canPinMessages: Boolean? = this.canPinMessages): ChatPermissions

Copying current instance as ChatPermissions, but realizations of this interface may differently override this method