Answer the question
In order to leave comments, you need to log in
Telegram bot gives an error?
Hello, I am making a telegram bot and it gives an error when running on node.js.
The JS code itself:
const TelegramBot = require('node-telegram-bot-api');
const token = '762233114:AAFbAhRpMgOVH1nbF3EXVDyqp8Nya6zXhiU';
const bot = new TelegramBot(token, {
polling: true
});
bot.on('message', (msg) => {
console.log(msg)
}) // прослушка на событие
error: [polling_error] {"code":"EFATAL","message":"EFATAL: Error: read ECONNRESET"}
Answer the question
In order to leave comments, you need to log in
In short, put a VPN on your computer (not on a browser) and everything will be chiki farts;)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question