toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.chat
/
CommonBot
Common
Bot
@
Serializable
data
class
CommonBot
(
val
id
:
UserId
,
val
firstName
:
String
,
val
lastName
:
String
=
""
,
val
username
:
Username
?
=
null
)
:
PreviewBot
Members
Members & Extensions
Constructors
Common
Bot
Link copied to clipboard
constructor
(
id
:
UserId
,
firstName
:
String
,
lastName
:
String
=
""
,
username
:
Username
?
=
null
)
Properties
first
Name
Link copied to clipboard
@
SerialName
(
value
=
"first_name"
)
open
override
val
firstName
:
String
id
Link copied to clipboard
open
override
val
id
:
UserId
last
Name
Link copied to clipboard
@
SerialName
(
value
=
"last_name"
)
open
override
val
lastName
:
String
user
Link
Link copied to clipboard
val
User
.
userLink
:
String
username
Link copied to clipboard
@
SerialName
(
value
=
"username"
)
open
override
val
username
:
Username
?
=
null
Functions
is
Fake
Telegram
User
Link copied to clipboard
fun
User
.
isFakeTelegramUser
(
)
:
Boolean
mention
Link copied to clipboard
inline
fun
User
.
mention
(
text
:
String
)
:
TextMentionTextSource
inline
fun
User
.
mention
(
parts
:
TextSourcesList
)
:
TextMentionTextSource