Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
@Serializable(with = UserSerializer::class)
sealed class Bot : User
Link copied to clipboard
Link copied to clipboard
@Serializable
data class ChannelChatImpl(val id: ChatId, val title: String, val username: Username? = null) : ChannelChat
Link copied to clipboard
@Serializable(with = PreviewChatSerializer::class)
interface Chat
Link copied to clipboard
@Serializable
data class ChatJoinRequest(val chat: PublicChat, val from: User, val date: TelegramDate, val inviteLink: ChatInviteLink? = null, val bio: String? = null) : FromUser

Represent a ChatJoinRequest

Link copied to clipboard
@Serializable
data class ChatPermissions(val canSendMessages: Boolean = false, val canSendMediaMessages: 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)
Link copied to clipboard
@Serializable(with = ChatTypeSerializer::class)
sealed class ChatType
Link copied to clipboard
object ChatTypeSerializer : KSerializer<ChatType>
Link copied to clipboard
@Serializable
data class CommonBot(val id: UserId, val username: Username, val firstName: String, val lastName: String = "") : Bot
Link copied to clipboard
@Serializable
data class CommonUser(val id: UserId, val firstName: String, val lastName: String = "", val username: Username? = null, val ietfLanguageCode: IetfLanguageCode? = null, val isPremium: Boolean = false, val addedToAttachmentMenu: Boolean = false) : User, WithOptionalLanguageCode, PossiblyPremiumChat, AbleToAddInAttachmentMenuChat
Link copied to clipboard
@Serializable
data class ExtendedBot(val id: UserId, val username: Username, val firstName: String, val lastName: String = "", val canJoinGroups: Boolean = false, val canReadAllGroupMessages: Boolean = false, val supportsInlineQueries: Boolean = false) : Bot
Link copied to clipboard
@Serializable
data class ExtendedChannelChatImpl(val id: ChatId, val title: String, val username: Username? = null, val activeUsernames: List<Username> = emptyList(), val chatPhoto: ChatPhoto? = null, val description: String = "", val inviteLink: String? = null, val pinnedMessage: Message? = null, val linkedGroupChatId: IdChatIdentifier? = null) : ExtendedChannelChat
Link copied to clipboard
@Serializable(with = ExtendedChatSerializer::class)
interface ExtendedChat : Chat
Link copied to clipboard
sealed class ExtendedChatSerializer : KSerializer<ExtendedChat>
Link copied to clipboard
Link copied to clipboard
@Serializable
data class ExtendedForumChatImpl(val id: IdChatIdentifier, val title: String, val username: Username? = null, val activeUsernames: List<Username> = emptyList(), val chatPhoto: ChatPhoto? = null, val permissions: ChatPermissions, val description: String = "", val inviteLink: String? = null, val pinnedMessage: Message? = null, val stickerSetName: StickerSetName? = null, val slowModeDelay: Long? = null, val canSetStickerSet: Boolean = false, val linkedChannelChatId: IdChatIdentifier? = null, val location: ChatLocation? = null, val requiresJoinForMessaging: Boolean = false, val requireAdminApproveToJoin: Boolean = false) : ExtendedForumChat
Link copied to clipboard
Link copied to clipboard
@Serializable
data class ExtendedGroupChatImpl(val id: ChatId, val title: String, val chatPhoto: ChatPhoto? = null, val permissions: ChatPermissions, val description: String = "", val inviteLink: String? = null, val pinnedMessage: Message? = null) : ExtendedGroupChat
Link copied to clipboard
@Serializable
data class ExtendedPrivateChatImpl(val id: IdChatIdentifier, val chatPhoto: ChatPhoto? = null, val username: Username? = null, val activeUsernames: List<Username> = emptyList(), val firstName: String = "", val lastName: String = "", val bio: String = "", val hasPrivateForwards: Boolean = false, val hasRestrictedVoiceAndVideoMessages: Boolean = false, val statusEmojiId: CustomEmojiId? = null) : ExtendedPrivateChat
Link copied to clipboard
Link copied to clipboard
@Serializable
data class ExtendedSupergroupChatImpl(val id: ChatId, val title: String, val username: Username? = null, val activeUsernames: List<Username> = emptyList(), val chatPhoto: ChatPhoto? = null, val permissions: ChatPermissions, val description: String = "", val inviteLink: String? = null, val pinnedMessage: Message? = null, val stickerSetName: StickerSetName? = null, val slowModeDelay: Long? = null, val canSetStickerSet: Boolean = false, val linkedChannelChatId: IdChatIdentifier? = null, val location: ChatLocation? = null, val requiresJoinForMessaging: Boolean = false, val requireAdminApproveToJoin: Boolean = false) : ExtendedSupergroupChat
Link copied to clipboard
Link copied to clipboard
@Serializable(with = PreviewChatSerializer::class)
interface ForumChat : SupergroupChat
Link copied to clipboard
@Serializable
data class ForumChatImpl(val id: IdChatIdentifier, val title: String, val username: Username? = null) : ForumChat
Link copied to clipboard
@Serializable(with = PreviewChatSerializer::class)
interface GroupChat : PublicChat
Link copied to clipboard
@Serializable
data class GroupChatImpl(val id: ChatId, val title: String) : GroupChat
Link copied to clipboard
@Serializable(with = PreviewChatSerializer::class)
interface PossiblyPremiumChat : Chat
Link copied to clipboard
object PreviewChatSerializer : KSerializer<Chat>
Link copied to clipboard
@Serializable(with = PreviewChatSerializer::class)
interface PrivateChat : Chat, UsernameChat
Link copied to clipboard
@Serializable
data class PrivateChatImpl(val id: IdChatIdentifier, val username: Username? = null, val firstName: String = "", val lastName: String = "") : PrivateChat
Link copied to clipboard
@Serializable(with = PreviewChatSerializer::class)
interface PublicChat : Chat
Link copied to clipboard
Link copied to clipboard
@Serializable
data class SupergroupChatImpl(val id: ChatId, val title: String, val username: Username? = null) : SupergroupChat
Link copied to clipboard
Link copied to clipboard
data class UnknownChatType(val id: IdChatIdentifier, val raw: String, val rawJson: JsonObject) : Chat
Link copied to clipboard
data class UnknownExtendedChat(val id: IdChatIdentifier, val raw: String, val rawJson: JsonObject) : ExtendedChat
Link copied to clipboard
@Serializable(with = UserSerializer::class)
sealed class User : PrivateChat
Link copied to clipboard
@Serializable(with = PreviewChatSerializer::class)
interface UsernameChat : Chat
Link copied to clipboard
object UserSerializer : KSerializer<User>

Properties