toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types
/
ChatId
Chat
Id
@
Serializable
(
with
=
ChatIdentifierSerializer::class
)
@
JvmInline
value
class
ChatId
(
val
chatId
:
RawChatId
)
:
IdChatIdentifier
Members
Members & Extensions
Constructors
Chat
Id
Link copied to clipboard
constructor
(
chatId
:
RawChatId
)
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
open
override
val
chatId
:
RawChatId
thread
Id
Link copied to clipboard
open
val
threadId
:
MessageThreadId
?
thread
Id
Link copied to clipboard
val
ChatIdentifier
.
threadId
:
MessageThreadId
?
user
Link
Link copied to clipboard
val
UserId
.
userLink
:
String
https://core.telegram.org/bots/api#formatting-options
Functions
mention
Link copied to clipboard
inline
fun
UserId
.
mention
(
text
:
String
)
:
TextMentionTextSource
inline
fun
UserId
.
mention
(
parts
:
TextSourcesList
)
:
TextMentionTextSource
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