toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.message
/
RawMessageEntity
Raw
Message
Entity
@
Serializable
data
class
RawMessageEntity
(
val
type
:
String
,
val
offset
:
Int
,
val
length
:
Int
,
val
url
:
String
?
=
null
,
val
user
:
User
?
=
null
,
val
language
:
String
?
=
null
,
val
custom_emoji_id
:
CustomEmojiId
?
=
null
)
Members
Members & Extensions
Constructors
Raw
Message
Entity
Link copied to clipboard
constructor
(
type
:
String
,
offset
:
Int
,
length
:
Int
,
url
:
String
?
=
null
,
user
:
User
?
=
null
,
language
:
String
?
=
null
,
custom_emoji_id
:
CustomEmojiId
?
=
null
)
Properties
custom_emoji_id
Link copied to clipboard
val
custom_emoji_id
:
CustomEmojiId
?
=
null
language
Link copied to clipboard
val
language
:
String
?
=
null
length
Link copied to clipboard
val
length
:
Int
offset
Link copied to clipboard
val
offset
:
Int
priority
Link copied to clipboard
val
priority
:
Int
type
Link copied to clipboard
val
type
:
String
url
Link copied to clipboard
val
url
:
String
?
=
null
user
Link copied to clipboard
val
user
:
User
?
=
null
Functions
as
Text
Source
Link copied to clipboard
fun
RawMessageEntity
.
asTextSource
(
source
:
String
,
subParts
:
List
<
Pair
<
Int
,
TextSource
>
>
)
:
TextSource