yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.17k stars 1.5k forks source link

Polling error #1045

Closed zephyr-developer closed 1 year ago

zephyr-developer commented 1 year ago

Bug Report

I have read:

I am using the latest version of the library.

Expected Behavior

Actual Behavior

Steps to reproduce the Behavior

Feature Request

I have:

Introduction

Example

Question

danielperez9430 commented 1 year ago

Hi @ALVINTAN159 we need more info that only this message. You can get more infomation if you add to your bot code this:

// Listen polling errors events

bot.on('polling_error', (error) => {
  // console.log(error)
  console.log("Polling error code: ",error.code);
  console.log("Error Message: ", error.message);
  console.log("Stack trace: ", error.stack);
});