Package dev.inmo.tgbotapi.types.chat

Types

Link copied to clipboard
interface AbleToAddInAttachmentMenuChat : Chat
Link copied to clipboard
sealed class Bot : User
Link copied to clipboard
interface ChannelChat : SuperPublicChat
Link copied to clipboard
data class ChannelChatImpl(    val id: ChatId,     val title: String,     val username: Username? = null) : ChannelChat
Link copied to clipboard
interface Chat
Link copied to clipboard
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
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
sealed class ChatType
Link copied to clipboard
object ChatTypeSerializer : KSerializer<ChatType>
Link copied to clipboard
data class CommonBot(    val id: UserId,     val username: Username,     val firstName: String,     val lastName: String = "") : Bot
Link copied to clipboard
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
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
interface ExtendedChannelChat : ChannelChat, ExtendedPublicChat
Link copied to clipboard
data class ExtendedChannelChatImpl(    val id: ChatId,     val title: String,     val username: Username? = null,     val chatPhoto: ChatPhoto? = null,     val description: String = "",     val inviteLink: String? = null,     val pinnedMessage: Message? = null,     val linkedGroupChatId: ChatId? = null) : ExtendedChannelChat
Link copied to clipboard
interface ExtendedChat : Chat
Link copied to clipboard
object ExtendedChatSerializer : KSerializer<ExtendedChat>
Link copied to clipboard
interface ExtendedGroupChat : GroupChat, ExtendedPublicChat
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) : ExtendedGroupChat
Link copied to clipboard
interface ExtendedPrivateChat : PrivateChat, ExtendedChat
Link copied to clipboard
data class ExtendedPrivateChatImpl(    val id: ChatId,     val chatPhoto: ChatPhoto? = null,     val username: Username? = null,     val firstName: String = "",     val lastName: String = "",     val bio: String = "",     val hasPrivateForwards: Boolean = false) : ExtendedPrivateChat
Link copied to clipboard
interface ExtendedPublicChat : ExtendedChat, PublicChat
Link copied to clipboard
interface ExtendedSupergroupChat : SupergroupChat, ExtendedGroupChat
Link copied to clipboard
data class ExtendedSupergroupChatImpl(    val id: ChatId,     val title: String,     val username: Username? = null,     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: ChatId? = null,     val location: ChatLocation? = null,     val requiresJoinForMessaging: Boolean = false,     val requireAdminApproveToJoin: Boolean = false) : ExtendedSupergroupChat
Link copied to clipboard
typealias ExtendedUser = ExtendedPrivateChatImpl
Link copied to clipboard
interface GroupChat : PublicChat
Link copied to clipboard
data class GroupChatImpl(val id: ChatId, val title: String) : GroupChat
Link copied to clipboard
interface PossiblyPremiumChat : Chat
Link copied to clipboard
object PreviewChatSerializer : KSerializer<Chat>
Link copied to clipboard
interface PrivateChat : Chat, UsernameChat
Link copied to clipboard
data class PrivateChatImpl(    val id: ChatId,     val username: Username? = null,     val firstName: String = "",     val lastName: String = "") : PrivateChat
Link copied to clipboard
interface PublicChat : Chat
Link copied to clipboard
interface SupergroupChat : GroupChat, SuperPublicChat
Link copied to clipboard
data class SupergroupChatImpl(    val id: ChatId,     val title: String,     val username: Username? = null) : SupergroupChat
Link copied to clipboard
interface SuperPublicChat : PublicChat, UsernameChat
Link copied to clipboard
data class UnknownChatType(    val id: ChatId,     val raw: String,     val rawJson: JsonObject) : Chat
Link copied to clipboard
data class UnknownExtendedChat(    val id: ChatId,     val raw: String,     val rawJson: JsonObject) : ExtendedChat
Link copied to clipboard
sealed class User : PrivateChat
Link copied to clipboard
interface UsernameChat : Chat
Link copied to clipboard
object UserSerializer : KSerializer<User>

Properties

Link copied to clipboard
val String.asChatType: ChatType
Link copied to clipboard
val LeftRestrictionsChatPermissions: ChatPermissions
Link copied to clipboard
val RestrictionsChatPermissions: ChatPermissions