Message class

Implemented types

Constructors

Message({int id, int senderUserId, int chatId, dynamic sendingState, bool isOutgoing, bool canBeEdited, bool canBeForwarded, bool canBeDeletedOnlyForSelf, bool canBeDeletedForAllUsers, bool isChannelPost, bool containsUnreadMention, int date, int editDate, MessageForwardInfo forwardInfo, int replyToMessageId, int ttl, double ttlExpiresIn, int viaBotUserId, String authorSignature, int views, int mediaAlbumId, dynamic content, dynamic replyMarkup})
Describes a message. id Message identifier, unique for the chat to which the message belongs. senderUserId Identifier of the user who sent the message; 0 if unknown. Currently, it is unknown for channel posts and for channel posts automatically forwarded to discussion group. chatId Chat identifier. sendingState Information about the sending state of the message; may be null. isOutgoing True, if the message is outgoing. 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 client. canBeForwarded True, if the message can be forwarded. canBeDeletedOnlyForSelf True, if the message can be deleted only for the current user while other users will continue to see it. canBeDeletedForAllUsers True, if the message can be deleted for all users. isChannelPost True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts. containsUnreadMention True, if the message contains an unread mention for the current user. date Point in time (Unix timestamp) when the message was sent. editDate Point in time (Unix timestamp) when the message was last edited. forwardInfo Information about the initial message sender; may be null. replyToMessageId If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message. 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. ttlExpiresIn Time left before the message expires, in seconds. viaBotUserId If non-zero, the user identifier of the bot through which this message was sent. authorSignature For channel posts, optional author signature. views Number of times this message was viewed. mediaAlbumId Unique identifier of an album this message belongs to. Only photos and videos can be grouped together in albums. content Content of the message. replyMarkup Reply markup for the message; may be null
Message.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

authorSignature String
read / write
canBeDeletedForAllUsers bool
read / write
canBeDeletedOnlyForSelf bool
read / write
canBeEdited bool
read / write
canBeForwarded bool
read / write
chatId int
read / write
containsUnreadMention bool
read / write
content ↔ dynamic
read / write
date int
read / write
editDate int
read / write
extra ↔ dynamic
read / write
forwardInfo MessageForwardInfo
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write
isChannelPost bool
read / write
isOutgoing bool
read / write
mediaAlbumId int
read / write
replyMarkup ↔ dynamic
read / write
replyToMessageId int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
senderUserId int
read / write
sendingState ↔ dynamic
read / write
ttl int
read / write
ttlExpiresIn double
read / write
viaBotUserId int
read / write
views int
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
Returns a string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
"message"