node-vk-sdk
Advanced tools
Comparing version 1.0.4 to 1.0.5
export { VKApi } from './src/VKApi'; | ||
export { BaseLogger } from './src/logger/BaseLogger'; | ||
export { ConsoleLogger } from './src/logger/ConsoleLogger'; | ||
export { BotsLongPollUpdatesProvider } from './src/botsLongPoll/BotsLongPollUpdatesProvider'; |
@@ -7,2 +7,4 @@ "use strict"; | ||
exports.ConsoleLogger = ConsoleLogger_1.ConsoleLogger; | ||
var BotsLongPollUpdatesProvider_1 = require("./src/botsLongPoll/BotsLongPollUpdatesProvider"); | ||
exports.BotsLongPollUpdatesProvider = BotsLongPollUpdatesProvider_1.BotsLongPollUpdatesProvider; | ||
//# sourceMappingURL=index.js.map |
export { VKApi } from './src/VKApi' | ||
export { BaseLogger } from './src/logger/BaseLogger' | ||
export { ConsoleLogger } from './src/logger/ConsoleLogger' | ||
export { BotsLongPollUpdatesProvider } from './src/botsLongPoll/BotsLongPollUpdatesProvider' |
{ | ||
"name": "node-vk-sdk", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./distr/index.js", |
@@ -134,1 +134,20 @@ # node-vk-sdk | ||
## Bots Long Poll API | ||
To receive group updates using Bots Long Poll API use `BotsLongPollUpdatesProvider` class: | ||
```typescript | ||
import {VKApi, ConsoleLogger, BotsLongPollUpdatesProvider} from 'node-vk-sdk' | ||
let api = new VKApi({ | ||
token: 'GROUP_TOKEN_HERE', | ||
logger: new ConsoleLogger() | ||
}) | ||
let updatesProvider = new BotsLongPollUpdatesProvider(api, GROUP_ID_HERE) | ||
updatesProvider.getUpdates(updates => { | ||
console.log('got updates: ', updates) | ||
}) | ||
``` | ||
Sorry, the diff of this file is not supported yet
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
2707529
140
102365
153