Is the queue being processed now?
Queue of scheduled API calls.
Stats object.
VK API token.
Call a VK API Method.
It is highly recommended to use scheduleCall instead to not exceed the API quota and to check whether the call was successful or not!
VK API method name
parameters for the method, access_token
and v
will be added automatically
Checks if the required permissions for bot to work properly are present, and emits a warning if that is not the case.
Move forward through the queue, processing at most API_QUOTA items
Schedules a call to a VK API Method.
After the call completes, a check will be performed to see if the call was successful or not, and in the latter case a warning will be logged.
VK API method name
parameters for the method, access_token
and v
will be added automatically
promise, which resolves with json.response
when the request is completed
and a response is given, and rejects if an error happened
Sends a message to a user via Peer ID.
Note that it is much easier to use the Context object passed to handlers to compose and send messages, keyboards and attachments!
peer ID
message text (required, if attachment is empty)
list of attachments, comma-separated (see VK API Docs for further information) (required if message is empty)
json of keyboard
Generated using TypeDoc
Used to call API methods.
You can get the API object from a Context object:
// Assuming your Context object is $ var api = $.api
Or from Core (after initialization with bot:
var api = core.api