Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AdministratorChatMemberImpl(val user: PreviewUser, val canBeEdited: Boolean = false, val canChangeInfo: Boolean = false, val canPostMessages: Boolean = false, val canEditMessages: Boolean = false, val canRemoveMessages: Boolean = false, val canInviteUsers: Boolean = false, val canRestrictMembers: Boolean = false, val canPinMessages: Boolean = false, val canPromoteMembers: Boolean = false, val canManageVideoChats: Boolean = false, val canManageChat: Boolean = false, val isAnonymous: Boolean = false, val customTitle: String? = null, val canManageTopics: Boolean = false, val canPostStories: Boolean = false, val canEditStories: Boolean = false, val canDeleteStories: Boolean = false) : AdministratorChatMember
Link copied to clipboard
Link copied to clipboard
@Serializable
data class ChatCommonAdministratorRights(val canChangeInfo: Boolean = false, val canPostMessages: Boolean = false, val canEditMessages: Boolean = false, val canRemoveMessages: Boolean = false, val canInviteUsers: Boolean = false, val canRestrictMembers: Boolean = false, val canPinMessages: Boolean = false, val canPromoteMembers: Boolean = false, val canManageVideoChats: Boolean = false, val canManageChat: Boolean = false, val isAnonymous: Boolean = false, val canManageTopics: Boolean = false, val canPostStories: Boolean = false, val canEditStories: Boolean = false, val canDeleteStories: Boolean = false) : ChatAdministratorRights
Link copied to clipboard
@Serializable(with = ChatMemberSerializer::class)
sealed interface ChatMember : WithUser
Link copied to clipboard
object ChatMemberSerializer : KSerializer<ChatMember>
Link copied to clipboard
@Serializable
data class ChatMemberUpdated(val chat: PreviewChat, val user: PreviewUser, val date: TelegramDate, val oldChatMemberState: ChatMember, val newChatMemberState: ChatMember, val inviteLink: ChatInviteLink? = null, val viaChatFolderInviteLink: Boolean? = false, val viaJoinRequest: Boolean? = false) : WithPreviewChat, WithUser
Link copied to clipboard
@Serializable
data class KickedChatMember(val user: PreviewUser, val untilDate: TelegramDate? = null) : RestrictedChatMember
Link copied to clipboard
@Serializable(with = ChatMemberSerializer::class)
sealed interface LeftChatMember : ChatMember
Link copied to clipboard
@Serializable
data class LeftChatMemberImpl(val user: PreviewUser) : LeftChatMember
Link copied to clipboard
@Serializable(with = ChatMemberSerializer::class)
sealed interface MemberChatMember : ChatMember
Link copied to clipboard
@Serializable
data class MemberChatMemberImpl(val user: PreviewUser) : MemberChatMember
Link copied to clipboard
@Serializable
data class OwnerChatMember(val user: PreviewUser, val isAnonymous: Boolean = false, val customTitle: String? = null) : AdministratorChatMember
Link copied to clipboard
@Serializable(with = ChatMemberSerializer::class)
sealed interface RestrictedChatMember : ChatMember, UntilDate
Link copied to clipboard
@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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class SubscriptionMemberChatMemberImpl(val user: PreviewUser, val untilDate: TelegramDate) : SubscriptionMemberChatMember