toggle menu
Telegram Bot
7.5.0
common
switch theme
search in API
Telegram Bot
/
eu.vendeli.tgbot.types.msg
/
MessageOrigin
/
UserOrigin
User
Origin
@
Serializable
@
SerialName
(
value
=
"user"
)
data
class
UserOrigin
(
val
date
:
Instant
,
val
senderUser
:
User
)
:
MessageOrigin
Members
Constructors
User
Origin
Link copied to clipboard
constructor
(
date
:
Instant
,
senderUser
:
User
)
Properties
date
Link copied to clipboard
@
Serializable
(
with
=
InstantSerializer::class
)
open
override
val
date
:
Instant
from
Link copied to clipboard
open
override
val
from
:
User
from
Chat
Link copied to clipboard
open
val
fromChat
:
Chat
?
from
Message
Id
Link copied to clipboard
open
val
fromMessageId
:
Long
?
sender
Name
Link copied to clipboard
open
val
senderName
:
String
?
sender
User
Link copied to clipboard
val
senderUser
:
User
signature
Link copied to clipboard
open
val
signature
:
String
?
type
Link copied to clipboard
val
type
:
String
Functions
as
Channel
Link copied to clipboard
inline
fun
asChannel
(
)
:
MessageOrigin.Channel
?
as
Chat
Origin
Link copied to clipboard
inline
fun
asChatOrigin
(
)
:
MessageOrigin.ChatOrigin
?
as
Hidden
User
Link copied to clipboard
inline
fun
asHiddenUser
(
)
:
MessageOrigin.HiddenUser
?
as
User
Origin
Link copied to clipboard
inline
fun
asUserOrigin
(
)
:
MessageOrigin.UserOrigin
?