KtGram
Toggle table of contents
9.5.0
common
Target filter
common
Switch theme
Search in API
Skip to content
KtGram
telegram-bot
/
eu.vendeli.tgbot.types.component
/
MessageUpdate
Message
Update
@
Serializable
(
with
=
MessageUpdate.Companion::class
)
data
class
MessageUpdate
(
val
updateId
:
Int
,
val
origin
:
Update
,
val
message
:
Message
)
:
ProcessedUpdate
,
UserReference
,
ChatReference
,
MessageReference
(
source
)
Members
Members & Extensions
Constructors
Message
Update
Link copied to clipboard
constructor
(
updateId
:
Int
,
origin
:
Update
,
message
:
Message
)
Properties
chat
Link copied to clipboard
open
override
val
chat
:
Chat
chat
Or
Null
Link copied to clipboard
val
ProcessedUpdate
.
chatOrNull
:
Chat
?
message
Link copied to clipboard
val
message
:
Message
message
Kind
Link copied to clipboard
open
override
val
messageKind
:
MessageKind
origin
Link copied to clipboard
open
override
val
origin
:
Update
text
Link copied to clipboard
open
override
val
text
:
String
update
Id
Link copied to clipboard
open
override
val
updateId
:
Int
user
Link copied to clipboard
open
override
val
user
:
User
user
Or
Null
Link copied to clipboard
val
ProcessedUpdate
.
userOrNull
:
User
?
Functions
as
Link copied to clipboard
inline
fun
<
T
:
ProcessedUpdate
>
ProcessedUpdate
.
as
(
)
:
T
?
get
Chat
Link copied to clipboard
inline
fun
ProcessedUpdate
.
getChat
(
)
:
Chat
get
Message
Link copied to clipboard
open
override
fun
MessageReference
.
getMessage
(
)
:
Message
get
User
Link copied to clipboard
inline
fun
ProcessedUpdate
.
getUser
(
)
:
User