@streamsty/telebot
Advanced tools
Comparing version 1.0.0 to 1.1.0
const request = require('request'); | ||
const webhook = require('./webhook.js'); | ||
const standardUpdates = require('./updates.js'); | ||
@@ -169,3 +168,2 @@ const standardMethods = require('./methods.js'); | ||
console.log(`[bot.webhook] set to "${url}"`); | ||
return webhook.call(this, this, this.webhook); | ||
@@ -270,2 +268,13 @@ }).catch((error) => { | ||
handleUpdates(req, res) { | ||
try { | ||
bot.receiveUpdates([req.body]).then(() => res.end()); | ||
} catch (error) { | ||
if (bot.logging) { | ||
console.log('[bot.error.webhook]', error); | ||
} | ||
res.end(); | ||
} | ||
} | ||
/* Fetch updates */ | ||
@@ -272,0 +281,0 @@ |
{ | ||
"name": "@streamsty/telebot", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Port of telebot for Serverless Cloud", | ||
@@ -5,0 +5,0 @@ "main": "lib/telebot.js", |
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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
3
0
79093
16
1433