node-vk-bot-api
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -8,3 +8,3 @@ class Context { | ||
reply(...args) { | ||
this.bot.sendMessage(this.message.from_id, ...args) | ||
this.bot.sendMessage(this.message.peer_id, ...args) | ||
} | ||
@@ -11,0 +11,0 @@ } |
module.exports = function (method, settings, callback = () => {}) { | ||
this.methods.push({ | ||
code: `API.${method}(${JSON.stringify(settings)})`, | ||
code: `API.${method}(${JSON.stringify({ | ||
v: '5.80', | ||
...settings | ||
})})`, | ||
callback, | ||
@@ -5,0 +8,0 @@ }) |
@@ -9,5 +9,5 @@ const toArray = value => (Array.isArray(value) ? value : [value]) | ||
Object.assign( | ||
{ | ||
user_ids: toArray(userId).join(','), | ||
}, | ||
userId < 2000000000 | ||
? { user_ids: toArray(userId).join(',') } | ||
: { peer_id: userId }, | ||
typeof args[0] === 'object' | ||
@@ -14,0 +14,0 @@ ? args[0] |
{ | ||
"name": "node-vk-bot-api", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "🤖 Vk bot framework for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
[![node-vk-bot-api](https://img.shields.io/npm/v/node-vk-bot-api.svg?style=flat-square)](https://www.npmjs.com/package/node-vk-bot-api/) | ||
[![node-vk-bot-api](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/) | ||
![node-vk-bot-api](https://img.shields.io/badge/code%20style-airbnb-brightgreen.svg?style=flat-square) | ||
@@ -4,0 +4,0 @@ # node-vk-bot-api |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18688
420
25