ktgbotapi
common
tgbotapi.core
/
dev.inmo.tgbotapi.types.chat
/
ExtendedBot
Extended
Bot
@
Serializable
data
class
ExtendedBot
(
val
id
:
UserId
,
val
username
:
Username
,
val
firstName
:
String
,
val
lastName
:
String
=
""
,
val
canJoinGroups
:
Boolean
=
false
,
val
canReadAllGroupMessages
:
Boolean
=
false
,
val
supportsInlineQueries
:
Boolean
=
false
)
:
Bot
Members
Members & Extensions
Constructors
Extended
Bot
Link copied to clipboard
constructor
(
id
:
UserId
,
username
:
Username
,
firstName
:
String
,
lastName
:
String
=
""
,
canJoinGroups
:
Boolean
=
false
,
canReadAllGroupMessages
:
Boolean
=
false
,
supportsInlineQueries
:
Boolean
=
false
)
Functions
mention
Link copied to clipboard
inline
fun
User
.
mention
(
text
:
String
)
:
TextMentionTextSource
inline
fun
User
.
mention
(
parts
:
TextSourcesList
)
:
TextMentionTextSource
Properties
can
Join
Groups
Link copied to clipboard
val
canJoinGroups
:
Boolean
=
false
can
Read
All
Group
Messages
Link copied to clipboard
val
canReadAllGroupMessages
:
Boolean
=
false
first
Name
Link copied to clipboard
open
override
val
firstName
:
String
id
Link copied to clipboard
open
override
val
id
:
UserId
last
Name
Link copied to clipboard
open
override
val
lastName
:
String
link
Link copied to clipboard
val
User
.
link
:
String
supports
Inline
Queries
Link copied to clipboard
val
supportsInlineQueries
:
Boolean
=
false
user
Link
Link copied to clipboard
val
User
.
userLink
:
String
username
Link copied to clipboard
open
override
val
username
:
Username