toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types
/
BusinessChatId
Business
Chat
Id
@
Serializable
(
with
=
ChatIdentifierSerializer::class
)
@
JvmInline
value
class
BusinessChatId
(
val
chatIdWithBusinessConnectionId
:
Pair
<
RawChatId
,
BusinessConnectionId
>
)
:
IdChatIdentifier
Members
Members & Extensions
Constructors
Business
Chat
Id
Link copied to clipboard
constructor
(
chatId
:
RawChatId
,
businessConnectionId
:
BusinessConnectionId
)
constructor
(
chatIdWithBusinessConnectionId
:
Pair
<
RawChatId
,
BusinessConnectionId
>
)
Properties
business
Connection
Id
Link copied to clipboard
open
override
val
businessConnectionId
:
BusinessConnectionId
business
Connection
Id
Link copied to clipboard
val
ChatIdentifier
.
businessConnectionId
:
BusinessConnectionId
?
chat
Id
Link copied to clipboard
open
override
val
chatId
:
RawChatId
chat
Id
With
Business
Connection
Id
Link copied to clipboard
val
chatIdWithBusinessConnectionId
:
Pair
<
RawChatId
,
BusinessConnectionId
>
thread
Id
Link copied to clipboard
open
val
threadId
:
MessageThreadId
?
thread
Id
Link copied to clipboard
val
ChatIdentifier
.
threadId
:
MessageThreadId
?
Functions
to
Business
Chat
Id
Link copied to clipboard
fun
IdChatIdentifier
.
toBusinessChatId
(
businessConnectionId
:
BusinessConnectionId
)
:
BusinessChatId
to
Chat
Id
Link copied to clipboard
fun
IdChatIdentifier
.
toChatId
(
)
:
ChatId
to
Chat
With
Thread
Id
Link copied to clipboard
fun
IdChatIdentifier
.
toChatWithThreadId
(
threadId
:
MessageThreadId
)
:
ChatIdWithThreadId