toggle menu
Telegram Bot
7.5.0
common
switch theme
search in API
Telegram Bot
/
eu.vendeli.tgbot.types.msg
/
MessageOrigin
/
Channel
Channel
@
Serializable
@
SerialName
(
value
=
"channel"
)
data
class
Channel
(
val
date
:
Instant
,
val
chat
:
Chat
,
val
messageId
:
Long
,
val
authorSignature
:
String
?
=
null
)
:
MessageOrigin
Members
Constructors
Channel
Link copied to clipboard
constructor
(
date
:
Instant
,
chat
:
Chat
,
messageId
:
Long
,
authorSignature
:
String
?
=
null
)
Properties
author
Signature
Link copied to clipboard
val
authorSignature
:
String
?
=
null
chat
Link copied to clipboard
val
chat
:
Chat
date
Link copied to clipboard
@
Serializable
(
with
=
InstantSerializer::class
)
open
override
val
date
:
Instant
from
Link copied to clipboard
open
val
from
:
User
?
from
Chat
Link copied to clipboard
open
override
val
fromChat
:
Chat
from
Message
Id
Link copied to clipboard
open
override
val
fromMessageId
:
Long
message
Id
Link copied to clipboard
val
messageId
:
Long
sender
Name
Link copied to clipboard
open
val
senderName
:
String
?
signature
Link copied to clipboard
open
override
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
?