Message class
Describes a message
Constructors
-
Message({String? extra, int? client_id, int53? id, MessageSender? sender_id, int53? chat_id, MessageSendingState? sending_state, MessageSchedulingState? scheduling_state, Bool? is_outgoing, Bool? is_pinned, Bool? can_be_edited, Bool? can_be_forwarded, Bool? can_be_saved, Bool? can_be_deleted_only_for_self, Bool? can_be_deleted_for_all_users, Bool? can_get_added_reactions, Bool? can_get_statistics, Bool? can_get_message_thread, Bool? can_get_viewers, Bool? can_get_media_timestamp_links, Bool? can_report_reactions, Bool? has_timestamped_media, Bool? is_channel_post, Bool? is_topic_message, Bool? contains_unread_mention, int32? date, int32? edit_date, MessageForwardInfo? forward_info, MessageInteractionInfo? interaction_info, vector<
UnreadReaction> ? unread_reactions, int53? reply_in_chat_id, int53? reply_to_message_id, int53? message_thread_id, int32? self_destruct_time, double? self_destruct_in, double? auto_delete_in, int53? via_bot_user_id, string? author_signature, int64? media_album_id, string? restriction_reason, MessageContent? content, ReplyMarkup? reply_markup}) -
Message.fromMap(Map<
String, dynamic> map)
Properties
-
For channel posts and anonymous group messages, optional author signature
getter/setter pair
- auto_delete_in ↔ double?
-
Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never. TDLib will send updateDeleteMessages or updateMessageContent once the time expires
getter/setter pair
- can_be_deleted_for_all_users ↔ Bool?
-
True, if the message can be deleted for all users
getter/setter pair
- can_be_deleted_only_for_self ↔ Bool?
-
True, if the message can be deleted only for the current user while other users will continue to see it
getter/setter pair
- can_be_edited ↔ Bool?
-
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
getter/setter pair
- can_be_forwarded ↔ Bool?
-
True, if the message can be forwarded
getter/setter pair
- can_be_saved ↔ Bool?
-
True, if content of the message can be saved locally or copied
getter/setter pair
- can_get_added_reactions ↔ Bool?
-
True, if the list of added reactions is available through getMessageAddedReactions
getter/setter pair
- can_get_media_timestamp_links ↔ Bool?
-
True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description through getMessageLink
getter/setter pair
- can_get_message_thread ↔ Bool?
-
True, if information about the message thread is available through getMessageThread and getMessageThreadHistory
getter/setter pair
- can_get_statistics ↔ Bool?
-
True, if the message statistics are available through getMessageStatistics
getter/setter pair
- can_get_viewers ↔ Bool?
-
True, if chat members already viewed the message can be received through getMessageViewers
getter/setter pair
- can_report_reactions ↔ Bool?
-
True, if reactions on the message can be reported through reportMessageReactions
getter/setter pair
- chat_id ↔ int53?
-
Chat identifier
getter/setter pair
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- contains_unread_mention ↔ Bool?
-
True, if the message contains an unread mention for the current user
getter/setter pair
- content ↔ MessageContent?
-
Content of the message
getter/setter pair
- date ↔ int32?
-
Point in time (Unix timestamp) when the message was sent
getter/setter pair
- edit_date ↔ int32?
-
Point in time (Unix timestamp) when the message was last edited
getter/setter pair
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- forward_info ↔ MessageForwardInfo?
-
Information about the initial message sender; may be null
getter/setter pair
- has_timestamped_media ↔ Bool?
-
True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int53?
-
Message identifier; unique for the chat to which the message belongs
getter/setter pair
- interaction_info ↔ MessageInteractionInfo?
-
Information about interactions with the message; may be null
getter/setter pair
- is_channel_post ↔ Bool?
-
True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts
getter/setter pair
- is_outgoing ↔ Bool?
-
True, if the message is outgoing
getter/setter pair
- is_pinned ↔ Bool?
-
True, if the message is pinned
getter/setter pair
- is_topic_message ↔ Bool?
-
True, if the message is a forum topic message
getter/setter pair
- media_album_id ↔ int64?
-
Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums
getter/setter pair
- message_thread_id ↔ int53?
-
If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs
getter/setter pair
- reply_in_chat_id ↔ int53?
-
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
getter/setter pair
- reply_markup ↔ ReplyMarkup?
-
Reply markup for the message; may be null
getter/setter pair
- reply_to_message_id ↔ int53?
-
If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message
getter/setter pair
- restriction_reason ↔ string?
-
If non-empty, contains a human-readable description of the reason why access to this message must be restricted
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduling_state ↔ MessageSchedulingState?
-
The scheduling state of the message; may be null
getter/setter pair
- self_destruct_in ↔ double?
-
Time left before the message self-destruct timer expires, in seconds. If the self-destruct timer isn't started yet, equals to the value of the self_destruct_time field
getter/setter pair
- self_destruct_time ↔ int32?
-
The message's self-destruct time, in seconds; 0 if none. TDLib will send updateDeleteMessages or updateMessageContent once the time expires
getter/setter pair
- sender_id ↔ MessageSender?
-
Identifier of the sender of the message
getter/setter pair
- sending_state ↔ MessageSendingState?
-
The sending state of the message; may be null
getter/setter pair
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
-
unread_reactions
↔ vector<
UnreadReaction> ? -
Information about unread reactions added to the message
getter/setter pair
- via_bot_user_id ↔ int53?
-
If non-zero, the user identifier of the bot through which this message was sent
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited