toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.business_connection
/
BusinessConnection
Business
Connection
@
Serializable
(
with
=
BusinessConnection.Companion::class
)
sealed
interface
BusinessConnection
:
WithBusinessConnectionId
Inheritors
Enabled
Disabled
Members
Types
Companion
Link copied to clipboard
object
Companion
:
KSerializer
<
BusinessConnection
>
Disabled
Link copied to clipboard
@
Serializable
data
class
Disabled
(
val
id
:
BusinessConnectionId
,
val
user
:
PreviewUser
,
val
userChatId
:
ChatId
,
val
date
:
TelegramDate
,
val
canReply
:
Boolean
)
:
BusinessConnection
Enabled
Link copied to clipboard
@
Serializable
data
class
Enabled
(
val
id
:
BusinessConnectionId
,
val
user
:
PreviewUser
,
val
userChatId
:
ChatId
,
val
date
:
TelegramDate
,
val
canReply
:
Boolean
)
:
BusinessConnection
Properties
business
Connection
Id
Link copied to clipboard
open
override
val
businessConnectionId
:
BusinessConnectionId
can
Reply
Link copied to clipboard
abstract
val
canReply
:
Boolean
date
Link copied to clipboard
abstract
val
date
:
TelegramDate
id
Link copied to clipboard
abstract
val
id
:
BusinessConnectionId
is
Enabled
Link copied to clipboard
abstract
val
isEnabled
:
Boolean
user
Link copied to clipboard
abstract
val
user
:
PreviewUser
user
Chat
Id
Link copied to clipboard
abstract
val
userChatId
:
ChatId