Message class

Inheritance

Constructors

Message({int id, MessageSender sender, int chatId, MessageSendingState sendingState, MessageSchedulingState schedulingState, bool isOutgoing, bool isPinned, bool canBeEdited, bool canBeForwarded, bool canBeDeletedOnlyForSelf, bool canBeDeletedForAllUsers, bool canGetStatistics, bool canGetMessageThread, bool isChannelPost, bool containsUnreadMention, int date, int editDate, MessageForwardInfo forwardInfo, MessageInteractionInfo interactionInfo, int replyInChatId, int replyToMessageId, int messageThreadId, int ttl, double ttlExpiresIn, int viaBotUserId, String authorSignature, int mediaAlbumId, String restrictionReason, MessageContent content, ReplyMarkup replyMarkup})
Describes a message
Message.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

authorSignature String
authorSignature For channel posts and anonymous group messages, optional author signature
read / write
canBeDeletedForAllUsers bool
canBeDeletedForAllUsers True, if the message can be deleted for all users
read / write
canBeDeletedOnlyForSelf bool
canBeDeletedOnlyForSelf True, if the message can be deleted only for the current user while other users will continue to see it
read / write
canBeEdited bool
canBeEdited 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
read / write
canBeForwarded bool
canBeForwarded True, if the message can be forwarded
read / write
canGetMessageThread bool
canGetMessageThread True, if the message thread info is available
read / write
canGetStatistics bool
canGetStatistics True, if the message statistics are available
read / write
chatId int
chatId Chat identifier
read / write
containsUnreadMention bool
containsUnreadMention True, if the message contains an unread mention for the current user
read / write
content MessageContent
content Content of the message
read / write
date int
date Point in time (Unix timestamp) when the message was sent
read / write
editDate int
editDate Point in time (Unix timestamp) when the message was last edited
read / write
extra ↔ dynamic
callback sign
read / write
forwardInfo MessageForwardInfo
forwardInfo Information about the initial message sender; may be null
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
id Message identifier; unique for the chat to which the message belongs
read / write
interactionInfo MessageInteractionInfo
interactionInfo Information about interactions with the message; may be null
read / write
isChannelPost bool
isChannelPost True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts
read / write
isOutgoing bool
isOutgoing True, if the message is outgoing
read / write
isPinned bool
isPinned True, if the message is pinned
read / write
mediaAlbumId int
mediaAlbumId Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums
read / write
messageThreadId int
messageThreadId If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs
read / write
replyInChatId int
replyInChatId 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
read / write
replyMarkup ReplyMarkup
replyMarkup Reply markup for the message; may be null
read / write
replyToMessageId int
replyToMessageId If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message
read / write
restrictionReason String
restrictionReason If non-empty, contains a human-readable description of the reason why access to this message must be restricted
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
schedulingState MessageSchedulingState
schedulingState Information about the scheduling state of the message; may be null
read / write
sender MessageSender
sender The sender of the message
read / write
sendingState MessageSendingState
sendingState Information about the sending state of the message; may be null
read / write
ttl int
ttl 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
read / write
ttlExpiresIn double
ttlExpiresIn Time left before the message expires, in seconds
read / write
viaBotUserId int
viaBotUserId If non-zero, the user identifier of the bot through which this message was sent
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
'message'