Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
sealed class Bot : User
Link copied to clipboard
sealed interface BusinessChat : Chat
Link copied to clipboard
Link copied to clipboard
sealed interface ChannelChat : SuperPublicChat
Link copied to clipboard
data class ChannelChatImpl(val id: ChatId, val title: String, val username: Username? = null) : PreviewChannelChat
Link copied to clipboard
Link copied to clipboard
data class ChannelDirectMessagesChatImpl(val id: IdChatIdentifier, val title: String, val username: Username? = null) : PreviewChannelDirectMessagesChat
Link copied to clipboard
sealed interface Chat
Link copied to clipboard
Link copied to clipboard
data class ChatJoinRequest(val chat: PublicChat, val from: User, val userChatId: UserId, val date: TelegramDate, val inviteLink: ChatInviteLink? = null, val bio: String? = null) : FromUser

Represent a ChatJoinRequest

Link copied to clipboard
data class ChatMessageReactionsCountUpdated(val chat: PreviewChat, val messageId: MessageId, val date: TelegramDate, val reactions: List<ReactionsCount>) : WithPreviewChatAndMessageId
Link copied to clipboard
interface ChatPermissions

Represents any type with common permissions list

Link copied to clipboard
Link copied to clipboard
sealed class ChatType
Link copied to clipboard
Link copied to clipboard
data class CommonBot(val id: UserId, val firstName: String, val lastName: String = "", val username: Username? = null) : PreviewBot
Link copied to clipboard
data class CommonUser(val id: IdChatIdentifier, val firstName: String, val lastName: String = "", val username: Username? = null, val ietfLanguageCode: <Error class: unknown class>? = null, val isPremium: Boolean = false, val addedToAttachmentMenu: Boolean = false) : PreviewUser, WithOptionalLanguageCode, PossiblyPremiumChat, AbleToAddInAttachmentMenuChat
Link copied to clipboard
data class DirectMessagesTopic(val threadId: DirectMessageThreadId, val user: PreviewUser? = null) : OptionallyWithUser
Link copied to clipboard
data class ExtendedBot(val id: UserId, val firstName: String, val lastName: String = "", val username: Username? = null, val canJoinGroups: Boolean = false, val canReadAllGroupMessages: Boolean = false, val supportsInlineQueries: Boolean = false, val canConnectToBusiness: Boolean = false, val chatPhoto: ChatPhoto? = null, val accentColorId: ColorId = ColorId(0), val profileAccentColorId: ColorId? = null, val backgroundCustomEmojiId: CustomEmojiId? = null, val profileBackgroundCustomEmojiId: CustomEmojiId? = null, val maxReactionsCount: Int = 3, val hasMainWebApp: Boolean = false, val hasTopicsEnabled: Boolean = false, val allowUsersToCreateTopics: Boolean = false, val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), val uniqueGiftColors: UniqueGiftColors? = null) : Bot, ExtendedChat
Link copied to clipboard
Link copied to clipboard
data class ExtendedChannelChatImpl(val id: ChatId, val title: String, val acceptedGiftTypes: AcceptedGiftTypes, 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 canSendPaidMedia: Boolean = false, val linkedGroupChatId: IdChatIdentifier? = null, val membersHidden: Boolean = false, val availableReactions: List<Reaction>? = null, val statusEmojiId: CustomEmojiId? = null, val statusEmojiExpiration: TelegramDate? = null, val accentColorId: ColorId = ColorId(0), val profileAccentColorId: ColorId? = null, val backgroundCustomEmojiId: CustomEmojiId? = null, val profileBackgroundCustomEmojiId: CustomEmojiId? = null, val newMembersSeeHistory: Boolean = false, val maxReactionsCount: Int = 3, val uniqueGiftColors: UniqueGiftColors? = null) : ExtendedChannelChat
Link copied to clipboard
data class ExtendedChannelDirectMessagesChatImpl(val id: IdChatIdentifier, val title: String, val channelChat: PreviewChannelChat, 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, val isAggressiveAntiSpamEnabled: Boolean = false, val membersHidden: Boolean = false, val availableReactions: List<Reaction>? = null, val statusEmojiId: CustomEmojiId? = null, val statusEmojiExpiration: TelegramDate? = null, val accentColorId: ColorId = ColorId(0), val profileAccentColorId: ColorId? = null, val backgroundCustomEmojiId: CustomEmojiId? = null, val profileBackgroundCustomEmojiId: CustomEmojiId? = null, val newMembersSeeHistory: Boolean = false, val unrestrictBoostsCount: Int? = null, val customEmojiStickerSetName: StickerSetName? = null, val maxReactionsCount: Int = 3, val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), val paidMessageStarCount: Int? = null, val uniqueGiftColors: UniqueGiftColors? = null) : ExtendedChannelDirectMessagesChat
Link copied to clipboard
sealed interface ExtendedChat : Chat
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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, val isAggressiveAntiSpamEnabled: Boolean = false, val membersHidden: Boolean = false, val availableReactions: List<Reaction>? = null, val statusEmojiId: CustomEmojiId? = null, val statusEmojiExpiration: TelegramDate? = null, val accentColorId: ColorId = ColorId(0), val profileAccentColorId: ColorId? = null, val backgroundCustomEmojiId: CustomEmojiId? = null, val profileBackgroundCustomEmojiId: CustomEmojiId? = null, val newMembersSeeHistory: Boolean = false, val unrestrictBoostsCount: Int? = null, val customEmojiStickerSetName: StickerSetName? = null, val maxReactionsCount: Int = 3, val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), val paidMessageStarCount: Int? = null, val uniqueGiftColors: UniqueGiftColors? = null) : ExtendedForumChat
Link copied to clipboard
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, val membersHidden: Boolean = false, val availableReactions: List<Reaction>? = null, val statusEmojiId: CustomEmojiId? = null, val statusEmojiExpiration: TelegramDate? = null, val accentColorId: ColorId = ColorId(0), val profileAccentColorId: ColorId? = null, val backgroundCustomEmojiId: CustomEmojiId? = null, val profileBackgroundCustomEmojiId: CustomEmojiId? = null, val newMembersSeeHistory: Boolean = false, val maxReactionsCount: Int = 3, val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), val paidMessageStarCount: Int? = null, val uniqueGiftColors: UniqueGiftColors? = null) : ExtendedGroupChat
Link copied to clipboard
sealed interface ExtendedNonBotChat : ExtendedChat
Link copied to clipboard
data class ExtendedPrivateChatImpl(val id: UserId, 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, val statusEmojiExpiration: TelegramDate? = null, val accentColorId: ColorId = ColorId(0), val profileAccentColorId: ColorId? = null, val backgroundCustomEmojiId: CustomEmojiId? = null, val profileBackgroundCustomEmojiId: CustomEmojiId? = null, val businessIntro: BusinessIntro? = null, val businessLocation: BusinessLocation? = null, val businessOpeningHours: BusinessOpeningHours? = null, val birthdate: Birthdate? = null, val personalChat: PreviewChannelChat? = null, val maxReactionsCount: Int = 3, val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), val paidMessageStarCount: Int? = null, val firstProfileAudio: AudioFile? = null, val rating: UserRating? = null, val uniqueGiftColors: UniqueGiftColors? = null) : ExtendedPrivateChat
Link copied to clipboard
data class ExtendedPrivateForumChatImpl(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, val statusEmojiExpiration: TelegramDate? = null, val accentColorId: ColorId = ColorId(0), val profileAccentColorId: ColorId? = null, val backgroundCustomEmojiId: CustomEmojiId? = null, val profileBackgroundCustomEmojiId: CustomEmojiId? = null, val businessIntro: BusinessIntro? = null, val businessLocation: BusinessLocation? = null, val businessOpeningHours: BusinessOpeningHours? = null, val birthdate: Birthdate? = null, val personalChat: PreviewChannelChat? = null, val maxReactionsCount: Int = 3, val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), val paidMessageStarCount: Int? = null, val firstProfileAudio: AudioFile? = null, val rating: UserRating? = null, val uniqueGiftColors: UniqueGiftColors? = null) : ExtendedPrivateForumChat
Link copied to clipboard
Link copied to clipboard
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, val isAggressiveAntiSpamEnabled: Boolean = false, val membersHidden: Boolean = false, val availableReactions: List<Reaction>? = null, val statusEmojiId: CustomEmojiId? = null, val statusEmojiExpiration: TelegramDate? = null, val accentColorId: ColorId = ColorId(0), val profileAccentColorId: ColorId? = null, val backgroundCustomEmojiId: CustomEmojiId? = null, val profileBackgroundCustomEmojiId: CustomEmojiId? = null, val newMembersSeeHistory: Boolean = false, val unrestrictBoostsCount: Int? = null, val customEmojiStickerSetName: StickerSetName? = null, val maxReactionsCount: Int = 3, val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), val paidMessageStarCount: Int? = null, val uniqueGiftColors: UniqueGiftColors? = null) : ExtendedSupergroupChat
Link copied to clipboard
Link copied to clipboard
sealed interface ForumChat : Chat
Link copied to clipboard
data class ForumChatImpl(val id: IdChatIdentifier, val title: String, val username: Username? = null) : PreviewForumChat
Link copied to clipboard
sealed interface GroupChat : PublicChat
Link copied to clipboard
data class GroupChatImpl(val id: ChatId, val title: String) : PreviewGroupChat
Link copied to clipboard
sealed interface PossiblyPremiumChat : Chat
Link copied to clipboard
sealed class PreviewBot : PreviewUser
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface PreviewChat : Chat
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface PrivateChat : Chat, UsernameChat
Link copied to clipboard
data class PrivateChatImpl(val id: UserId, val username: Username? = null, val firstName: String = "", val lastName: String = "") : PreviewPrivateChat
Link copied to clipboard
Link copied to clipboard
data class PrivateForumChatImpl(val id: IdChatIdentifier, val username: Username? = null, val firstName: String = "", val lastName: String = "") : PreviewPrivateForumChat
Link copied to clipboard
sealed interface PrivateUserChat : PrivateChat
Link copied to clipboard
sealed interface PublicChat : Chat
Link copied to clipboard
Link copied to clipboard
data class SupergroupChatImpl(val id: ChatId, val title: String, val username: Username? = null) : PreviewSupergroupChat
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class UnknownChatType(val id: IdChatIdentifier, val raw: String, val rawJson: <Error class: unknown class>) : Chat, PreviewChat
Link copied to clipboard
data class UnknownExtendedChat(val id: IdChatIdentifier, val raw: String, val rawJson: <Error class: unknown class>) : ExtendedChat
Link copied to clipboard
sealed class User : PrivateChat
Link copied to clipboard
sealed interface UsernameChat : Chat
Link copied to clipboard
data class UserRating(val level: Level, val rating: Rating, val currentLevelRating: Rating, val nextLevelRating: Rating? = null)
Link copied to clipboard