yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.45k stars 1.53k forks source link

Error: connect ETIMEDOUT #941

Closed fengqifengluo closed 2 years ago

fengqifengluo commented 2 years ago

The console shows: error: [polling_error] {"code":"EFATAL","message":"EFATAL: Error: connect ETIMEDOUT 182.50.139.56:443"}

why could it happen? the programm can't connect to the server?

danielperez9430 commented 2 years ago

You can get better error messages with this piece of code:

 bot.on('polling_error', (err) => {
     console.log(err)
});

But yes, in the end you have a internet problem connection to the Telegram servers