Answer the question
In order to leave comments, you need to log in
Why won't the NPM server start?
I am making a bot for telegrams, but at the very beginning I ran into the following problem.
The local server fails to start with the following error:
[nodemon] 1.17.3
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node index.js`
node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
In the future, you will have to enable it yourself.
See https://github.com/yagop/node-telegram-bot-api/issues/319. module.js:643:30
error: [polling_error] {"code":"EFATAL","message":"EFATAL: Error: getaddrinfo ENOTFOUND api.telegram.org api.telegram.org:443"}
const TelegramBot = require('node-telegram-bot-api')
const TOKEN = '///'
const bot = new TelegramBot(TOKEN, {
polling: true
})
bot.onText(/\/start/, msg => {
console.log(msg)
})
proxy=http://190.2.133.216:1080
https-proxy=http://162.220.52.141:3128
from hidemy.name . Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question