toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types
/
IdChatIdentifier
Id
Chat
Identifier
@
Serializable
(
with
=
ChatIdentifierSerializer::class
)
sealed
interface
IdChatIdentifier
:
ChatIdentifier
Also used as User Identifier
Inheritors
ChatId
ChatIdWithThreadId
BusinessChatId
Members
Members & Extensions
Types
Companion
Link copied to clipboard
object
Companion
Properties
business
Connection
Id
Link copied to clipboard
open
val
businessConnectionId
:
BusinessConnectionId
?
business
Connection
Id
Link copied to clipboard
val
ChatIdentifier
.
businessConnectionId
:
BusinessConnectionId
?
chat
Id
Link copied to clipboard
abstract
val
chatId
:
RawChatId
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