ChatMember

Types

Link copied to clipboard
@Serializable
@SerialName(value = "administrator")
data class Administrator(val user: User, val canBeEdited: Boolean, val isAnonymous: Boolean, val canManageChat: Boolean, val canDeleteMessages: Boolean, val canRestrictMembers: Boolean, val canPromoteMembers: Boolean, val canChangeInfo: Boolean, val canInviteUsers: Boolean, val canPostMessages: Boolean? = null, val canEditMessages: Boolean? = null, val canPinMessages: Boolean? = null, val canManageVideoChats: Boolean, val canManageTopics: Boolean? = null, val canPostStories: Boolean, val canEditStories: Boolean, val canDeleteStories: Boolean, val customTitle: String? = null) : ChatMember
Link copied to clipboard
@Serializable
@SerialName(value = "kicked")
data class Banned(val user: User, val untilDate: Instant) : ChatMember
Link copied to clipboard
@Serializable
@SerialName(value = "left")
data class Left(val user: User) : ChatMember
Link copied to clipboard
@Serializable
@SerialName(value = "member")
data class Member(val user: User, val untilDate: Instant? = null) : ChatMember
Link copied to clipboard
@Serializable
@SerialName(value = "creator")
data class Owner(val user: User, val isAnonymous: Boolean, val customTitle: String? = null) : ChatMember
Link copied to clipboard
@Serializable
@SerialName(value = "restricted")
data class Restricted(val user: User, val isMember: Boolean, val canChangeInfo: Boolean, val canInviteUsers: Boolean, val canPinMessages: 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 canManageTopics: Boolean, val untilDate: Instant) : ChatMember

Properties

Link copied to clipboard
Link copied to clipboard
abstract val user: User