API.
Attachments, which will be used in the reply
Does this Context's response need auto-sending?
Name of the event.
Object of the Keyboard, which will be used in the reply
Incoming user message.
Note: If Core.cmd handler, contains message without cmd_prefix
and the command
Full object passed by Callback API.
Note: If message_new
, message_reply
, message_edit
or no_match
event,
this is a Private message object.
Else, see Callback API docs or
Groups Events docs for more information.
The ID of a peer, to which the reply is going to be sent
Note: You can change this using setPid method, the original Peer ID can be obtained using getOriginalPid.
Text, which will be used in the reply
Adds an attachment to the message.
Note: More information on the parameters can be found in VK API docs.
the type of attachment
resource owner ID
resource ID
resource access key, if needed; see Access Key page in API docs for more information
Clears the buffer and resets the Peer ID back to original.
For example, after calling this you can compose another message to the same user.
Returns the original peer ID from the Callback API object.
Returns the current peer ID.
Attaches a keyboard.
the keyboard
Does this Context's response need auto-sending?
Prevents this handler from sending the message automatically after it finishes.
Attaches an empty keyboard.
Sends the composed message to user. Note: After the handler finishes its work, this method is called automatically (if noAutoSend was not called)
Sets a new peer ID.
new peer ID
Sets the reply message text.
new text
Generated using TypeDoc
Context, which is passed to every handler.