Airgram

Guides
/
/
Output types

Message

Describes a message.

This is an alias for the MessageUnion type.


NameTypeDescription
_"message"
idnumber Message identifier; unique for the chat to which the message belongs
senderId Identifier of the sender of the message
chatIdnumber Chat identifier
sendingState The sending state of the message; may be null
schedulingState The scheduling state of the message; may be null
isOutgoingboolean True, if the message is outgoing
isPinnedboolean True, if the message is pinned
canBeEditedboolean True, if the message can be edited. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message by the application
canBeForwardedboolean True, if the message can be forwarded
canBeSavedboolean True, if content of the message can be saved locally or copied
canBeDeletedOnlyForSelfboolean True, if the message can be deleted only for the current user while other users will continue to see it
canBeDeletedForAllUsersboolean True, if the message can be deleted for all users
canGetStatisticsboolean True, if the message statistics are available
canGetMessageThreadboolean True, if the message thread info is available
canGetViewersboolean True, if chat members already viewed the message can be received through getMessageViewers
canGetMediaTimestampLinksboolean True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description
hasTimestampedMediaboolean True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message
isChannelPostboolean True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts
containsUnreadMentionboolean True, if the message contains an unread mention for the current user
datenumber Point in time (Unix timestamp) when the message was sent
editDatenumber Point in time (Unix timestamp) when the message was last edited
forwardInfo Information about the initial message sender; may be null
interactionInfo Information about interactions with the message; may be null
replyInChatIdnumber If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different reply_in_chat_id and chat_id
replyToMessageIdnumber If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message
messageThreadIdnumber If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs
ttlnumber For self-destructing messages, the message's TTL (Time To Live), in seconds; 0 if none. TDLib will send updateDeleteMessages or updateMessageContent once the TTL expires
ttlExpiresInnumber Time left before the message expires, in seconds. If the TTL timer isn't started yet, equals to the value of the ttl field
viaBotUserIdnumber If non-zero, the user identifier of the bot through which this message was sent
authorSignaturestring For channel posts and anonymous group messages, optional author signature
mediaAlbumIdstring Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums
restrictionReasonstring If non-empty, contains a human-readable description of the reason why access to this message must be restricted
content Content of the message
replyMarkup Reply markup for the message; may be null