Socket
Socket
Sign inDemoInstall

tgb

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.1

2

package.json
{
"name": "tgb",
"version": "0.6.0",
"version": "0.6.1",
"description": "The best choice for your Telegram Bots",

@@ -5,0 +5,0 @@ "homepage": "https://666.io",

@@ -83,9 +83,14 @@ //-----------------------------------------------------

function load() {
let reqDead = false;
let tmReqTtl = setTimeout(() => (reqDead = true, wait()), 1000 * 6);
bot
.getUpdates(options)
.then(function(data) {
if(stopped) {
clearTimeout(tmReqTtl);
if(stopped || reqDead) {
return;
}
if(data.length <= 0) {

@@ -120,2 +125,8 @@ wait();

.catch(function(error) {
clearTimeout(tmReqTtl);
if(stopped || reqDead) {
return;
}
switch(error.code) {

@@ -122,0 +133,0 @@ case client.ERR_USED_WEBHOOK:

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc