VkDartMessageEventUpdate class
The message event model.
See https://dev.vk.com/ru/api/community-events/json-schema#message_event
Constructors
- VkDartMessageEventUpdate(Vkontakte _vkontakte, VkDartUpdate update)
Properties
- conversationMessageId → int?
-
The ID of the message in the conversation.
It is not transmitted for conversation keyboards.
no setter
- eventId → String
-
A random string.
Active for a minute, becomes invalid after a minute.
no setter
- eventPayload → Object?
-
Additional information specified in the key.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- peerId → int
-
The ID of the dialog on the bot's side.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- update → VkDartUpdate
-
final
- userId → int
-
The user ID.
no setter
Methods
-
answer(
{required String type, String? text, String? link, int? appId, int? ownerId, String? hash}) → Future< bool> -
Sends an event with the action that will occur when the callback button is clicked.
Calls the
messages.send
method, with the properties eventId, peerId, userId. Thetype
property accepts only one of these values:show_snackbar
,open_link
,open_app
. If the type is unknown or the required properties are unknown, an ArgumentError will be thrown. -
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