Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@streamsty/telebot

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@streamsty/telebot - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

13

lib/telebot.js
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 @@

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc