Readonly
_peersReadonly
isWhether the message is scheduled. If it is, then its date is set to future.
Readonly
rawRaw TL object.
Readonly
updateMessage action. null
for non-service messages
or for unsupported events.
For unsupported events, use .raw.action
directly.
Whether this message can be forwarded
false
for service mesasges and private restricted chats/chanenls
Unique identifier of the business connection from which the message was received.
Date when the message was sent
Date when the message was last edited
Message text/caption entities (may be empty)
If this message is a forward, contains info about it.
For channel posts, number of forwards
null
for service messages and non-post messages, or
if the current user is not an admin in the channel
Same as groupedId, but is globally unique across chats.
Whether there are unread media attachments in this message
Whether the message should be considered unedited, even if editDate ≠ null
Unique message identifier inside this chat
If set, any eventual webpage preview should be shown on top of the message instead of at the bottom.
Whether the message is a channel post that was automatically forwarded to the connected discussion group
Whether this is a broadcast channel post
Whether this message has content protection (i.e. disabled forwards)
Whether this is a premium media (e.g. >2gb file or fullscreen sticker) that was forwarded without author by a non-premium user
Whether the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message
Whether this message was automatically sent from a scheduled message.
Note: for messages sent by other users, this is always false
.
Whether this message contains mention of the current user
Whether the message is incoming or outgoing:
outgoing = false
)outgoing = true
)outgoing = false
)Whether the message is pinned in the current chat
Whether this message is a service message
Whether this is a silent message (no notification triggered)
Whether this message is in a forum topic
Generated permalink to this message, only for groups and channels
Reply markup provided with this message, if any.
Message media. null
for text-only and service messages
and for unsupported media types.
For unsupported media types, use .raw.media
directly.
If non-null, this message is not actually sent, and is instead inside a group of "quick reply" messages under the given shortcut ID
Reactions added to this message, if any
Information about comments (for channels) or replies (for groups)
For replies, information about the that is being replied to.
Mutually exclusive with replyToStory
For replies, information about the story that is being replied to
Mutually exclusive with replyToMessage
Message sender.
Usually is a User, but can be a Chat in case the message was sent by an anonymous admin, anonymous premium user, or if the message is a forwarded channel post.
If the message was sent by an anonymous admin, sender will equal to chat.
If the message is a forwarded channel post, sender is the channel itself.
Number of boosts applied to this chat by the sender
For channel posts with signatures enabled, name of the post author
Message text or media caption.
Empty string for service messages (you should handle i18n yourself)
TTL period of the message, in seconds.
For channel posts, number of views
null
for service messages and non-post messages.
Update about a new or edited business message.