docs
5.2.1
common
docs
/
dev.inmo.tgbotapi.types
/
ChatIdentifier
Chat
Identifier
@
Serializable
(
with
=
ChatIdentifierSerializer::class
)
interface
ChatIdentifier
Extensions
Inheritors
Inheritors
IdChatIdentifier
Link copied to clipboard
Username
Link copied to clipboard
Extensions
chat
Id
Or
Null
Link copied to clipboard
inline
fun
ChatIdentifier
.
chatIdOrNull
(
)
:
ChatId
?
chat
Id
Or
Throw
Link copied to clipboard
inline
fun
ChatIdentifier
.
chatIdOrThrow
(
)
:
ChatId
chat
Id
With
Thread
Id
Or
Null
Link copied to clipboard
inline
fun
ChatIdentifier
.
chatIdWithThreadIdOrNull
(
)
:
ChatIdWithThreadId
?
chat
Id
With
Thread
Id
Or
Throw
Link copied to clipboard
inline
fun
ChatIdentifier
.
chatIdWithThreadIdOrThrow
(
)
:
ChatIdWithThreadId
id
Chat
Identifier
Or
Null
Link copied to clipboard
inline
fun
ChatIdentifier
.
idChatIdentifierOrNull
(
)
:
IdChatIdentifier
?
id
Chat
Identifier
Or
Throw
Link copied to clipboard
inline
fun
ChatIdentifier
.
idChatIdentifierOrThrow
(
)
:
IdChatIdentifier
if
Chat
Id
Link copied to clipboard
inline
fun
<
T
>
ChatIdentifier
.
ifChatId
(
block
:
(
ChatId
)
->
T
)
:
T
?
if
Chat
Id
With
Thread
Id
Link copied to clipboard
inline
fun
<
T
>
ChatIdentifier
.
ifChatIdWithThreadId
(
block
:
(
ChatIdWithThreadId
)
->
T
)
:
T
?
if
Id
Chat
Identifier
Link copied to clipboard
inline
fun
<
T
>
ChatIdentifier
.
ifIdChatIdentifier
(
block
:
(
IdChatIdentifier
)
->
T
)
:
T
?
if
Username
Link copied to clipboard
inline
fun
<
T
>
ChatIdentifier
.
ifUsername
(
block
:
(
Username
)
->
T
)
:
T
?
thread
Id
Link copied to clipboard
val
ChatIdentifier
.
threadId
:
MessageThreadId
?
username
Or
Null
Link copied to clipboard
inline
fun
ChatIdentifier
.
usernameOrNull
(
)
:
Username
?
username
Or
Throw
Link copied to clipboard
inline
fun
ChatIdentifier
.
usernameOrThrow
(
)
:
Username