MessageModel class
Model Message.
- Implementers
Constructors
-
MessageModel(Map<
String, dynamic> payload)
Properties
-
action
→ Map<
String, dynamic> ? -
Information about the service action with the chat.
no setter
- actionEmail → String?
-
Email invited or excluded.
no setter
- actionMemberId → int?
-
The ID of the user who was invited or excluded from the chat, or who pinned or unpinned the message.
no setter
- actionOldText → String?
-
An old conversation title.
no setter
- actionPhoto50 → String?
-
The URL of the 50 px wide copy of the conversation photo.
no setter
- actionPhoto100 → String?
-
The URL of the 100 px wide copy of the conversation photo.
no setter
- actionPhoto200 → String?
-
The URL of the 200 px wide copy of the conversation photo.
no setter
- actionText → String?
-
New title of the conversation.
no setter
- actionType → String?
-
Chat action type.
no setter
- adminAuthorId → int?
-
For community messages only. Contains the ID of the user (community administrator) who sent this message.
no setter
- adminId → int?
-
ID of the conversation creator.
no setter
-
attachments
→ List<
AttachmentModel> -
Media attachments of the message (photos, links, etc.).
no setter
-
chatActive
→ List<
int> ? -
IDs of the authors of the last messages of the conversation.
no setter
- chatId → int?
-
The ID of the conversation.
no setter
-
clientInfo
→ Map<
String, dynamic> -
Client info.
no setter
- conversationMessageId → int?
-
A unique automatically incrementing number for all messages with this peer.
no setter
- createdAt → int?
-
The time of sending in Unix time.
no setter
-
forwards
→ List<
MessageModel> ? -
the archive of forwarded messages (if any).
The maximum number of elements is 100.
The maximum nesting depth for forwarded messages is 45, the total maximum number in the chain, taking into account nesting, is 500.
no setter
-
geo
→ Map<
String, dynamic> ? -
Location Information.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
The ID of the message.
no setter
- isCropped → bool?
-
This message is cropped for the bot.
no setter
- isImportant → bool?
-
true if the message is marked as important.
no setter
- isMentionedUser → bool?
-
The flag indicates whether the user is mentioned in this message.
Added since version 5.217
no setter
- isWasListened → bool?
-
Whether the attached audio message has already been listened to by you.
no setter
-
keyboard
→ Map<
String, dynamic> ? -
A keyboard object for bots.
no setter
- membersCount → int?
-
The number of participants.
no setter
-
message
→ Map<
String, dynamic> -
Message object.
no setter
- messagePayload → String?
-
A service field for messages to bots (payload).
no setter
- messageTag → String?
-
A string for matching the Notify user and VKontakte.
no setter
-
payload
↔ Map<
String, dynamic> -
Update data.
latefinal
- peerId → int
-
The destination ID.
no setter
- peerType → MessageSource
-
The type of destination.
no setter
- pinnedAt → int?
-
The date when the message was pinned to Unixtime.
no setter
-
pushSettings
→ Map<
String, dynamic> ? -
Notification settings for the conversation, if any.
no setter
- randomId → int?
-
The ID used when sending the message.
It is returned only for outgoing messages.
no setter
- ref → String?
-
An arbitrary parameter for working with transition
sources.
no setter
- refSource → String?
-
An arbitrary parameter for working with transition
sources.
no setter
- replyMessage → MessageModel?
-
The message that the current one was sent in response to.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderId → int
-
The sender's ID.
no setter
- senderType → MessageSource
-
The sender's type.
no setter
- text → String
-
The text of the message.
no setter
- updateTime → int?
-
The date when the message was updated in Unixtime.
no setter
- usersCount → int?
-
The number of participants in the conversation.
no setter
Methods
-
applyPayload(
Map< String, dynamic> payload) → void - Apply payload.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited