# dev.inmo.tgbotapi.types.chat

docs

# Package dev.inmo.tgbotapi.types.chat

## Types

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

Represent a ChatJoinRequest

ChatPermissions
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)
Content copied to clipboard
ChatType
Link copied to clipboard
sealed class ChatType
Content copied to clipboard
ChatTypeSerializer
Link copied to clipboard
object ChatTypeSerializer : KSerializer< ChatType >
Content copied to clipboard
CommonBot
Link copied to clipboard
data class CommonBot ( val id: UserId , val username: Username , val firstName: String , val lastName: String = "") : Bot
Content copied to clipboard
CommonUser
Link copied to clipboard
data class CommonUser ( val id: UserId , val firstName: String , val lastName: String = "", val username: Username ? = null, val ietfLanguageCode: IetfLanguageCode? = null) : User, WithOptionalLanguageCode
Content copied to clipboard
ExtendedBot
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
Content copied to clipboard
ExtendedChannelChat
Link copied to clipboard
interface ExtendedChannelChat : ChannelChat, ExtendedPublicChat
Content copied to clipboard
ExtendedChannelChatImpl
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
Content copied to clipboard
ExtendedChat
Link copied to clipboard
interface ExtendedChat : Chat
Content copied to clipboard
ExtendedChatSerializer
Link copied to clipboard
object ExtendedChatSerializer : KSerializer< ExtendedChat >
Content copied to clipboard
ExtendedGroupChat
Link copied to clipboard
interface ExtendedGroupChat : GroupChat, ExtendedPublicChat
Content copied to clipboard
ExtendedGroupChatImpl
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
Content copied to clipboard
ExtendedPrivateChat
Link copied to clipboard
interface ExtendedPrivateChat : PrivateChat, ExtendedChat
Content copied to clipboard
ExtendedPrivateChatImpl
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
Content copied to clipboard
ExtendedPublicChat
Link copied to clipboard
interface ExtendedPublicChat : ExtendedChat, PublicChat
Content copied to clipboard
ExtendedSupergroupChat
Link copied to clipboard
interface ExtendedSupergroupChat : SupergroupChat, ExtendedGroupChat
Content copied to clipboard
ExtendedSupergroupChatImpl
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) : ExtendedSupergroupChat
Content copied to clipboard
ExtendedUser
Link copied to clipboard
typealias ExtendedUser = ExtendedPrivateChatImpl
Content copied to clipboard
GroupChat
Link copied to clipboard
interface GroupChat : PublicChat
Content copied to clipboard
GroupChatImpl
Link copied to clipboard
data class GroupChatImpl (val id: ChatId , val title: String ) : GroupChat
Content copied to clipboard
PreviewChatSerializer
Link copied to clipboard
object PreviewChatSerializer : KSerializer< Chat >
Content copied to clipboard
PrivateChat
Link copied to clipboard
interface PrivateChat : Chat, UsernameChat
Content copied to clipboard
PrivateChatImpl
Link copied to clipboard
data class PrivateChatImpl ( val id: ChatId , val username: Username ? = null, val firstName: String = "", val lastName: String = "") : PrivateChat
Content copied to clipboard
PublicChat
Link copied to clipboard
interface PublicChat : Chat
Content copied to clipboard
SupergroupChat
Link copied to clipboard
interface SupergroupChat : GroupChat, SuperPublicChat
Content copied to clipboard
SupergroupChatImpl
Link copied to clipboard
data class SupergroupChatImpl ( val id: ChatId , val title: String , val username: Username ? = null) : SupergroupChat
Content copied to clipboard
SuperPublicChat
Link copied to clipboard
interface SuperPublicChat : PublicChat, UsernameChat
Content copied to clipboard
UnknownChatType
Link copied to clipboard
data class UnknownChatType (val id: ChatId , val raw: String ) : Chat
Content copied to clipboard
UnknownExtendedChat
Link copied to clipboard
data class UnknownExtendedChat (val id: ChatId , val raw: String ) : ExtendedChat
Content copied to clipboard
User
Link copied to clipboard
sealed class User : PrivateChat
Content copied to clipboard
UsernameChat
Link copied to clipboard
interface UsernameChat : Chat
Content copied to clipboard
UserSerializer
Link copied to clipboard
object UserSerializer : KSerializer< User >
Content copied to clipboard

## Properties

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