Readonly
_nameReadonly
_peersReadonly
clientReadonly
isWhether this update is about a message group
Readonly
isWhether the message is scheduled. If it is, then its date is set to future.
Readonly
messagesList of messages in the message group.
For other updates, this is a list with a single element (this
).
Readonly
rawRaw TL object.
Message 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
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.
Send a media to the same chat (and topic, if applicable) as a given message
Rest
...params: [media: string | InputMediaLike, params?: CommonSendParams & { Send a media group to the same chat (and topic, if applicable) as a given message
Rest
...params: [medias: (string | InputMediaLike)[], params?: CommonSendParams & { Send a text message to the same chat (and topic, if applicable) as a given message
Rest
...params: [text: InputText, params?: CommonSendParams & { Send a media as a comment to this message
Rest
...params: [media: string | InputMediaLike, params?: CommonSendParams & { Send a media group as a comment to this message
Rest
...params: [medias: (string | InputMediaLike)[], params?: CommonSendParams & { Send a text as a comment to this message
Rest
...params: [text: InputText, params?: CommonSendParams & { Send a copy of this message (message group)
Delete this message (message group)
Optional
params: DeleteMessagesParamsEdit this message
Forward this message (message group)
Get complete information about chat
Learn more: Incomplete peers
Get complete information about sender
Learn more: Incomplete peers
Pin this message
Optional
params: OmitInputMessageId<InputMessageId & { Send a media in reply to this message
Send a media group in reply to this message
Send a text message in reply to this message
React to this message
Send a media in reply to this message
Rest
...params: [media: string | InputMediaLike, params?: CommonSendParams & { Send a media group in reply to this message
Rest
...params: [medias: (string | InputMediaLike)[], params?: CommonSendParams & { Send a text message in reply to this message
Rest
...params: [text: InputText, params?: CommonSendParams & {
Context of a message-related update.
This is a subclass of Message, so all fields of the message are available.
For message groups, own fields are related to the last message in the group. To access all messages, use MessageContext#messages.