Answer the question
In order to leave comments, you need to log in
An error occurs when starting the bot: error: [pulling_error]{}, who had this?
Good afternoon/evening, when I run my bot, I get the following error: error: [pulling_error] {}, used vpn "CyberGhost", connected to servers in Germany, Netherlands, Romania, but nothing changes, tried to google, but could not do anything find who knows how to solve this problem?
var TelegramBot = require('node-telegram-bot-api'),
token = '*************',
bot = new TelegramBot(token, {polling: true });
bot.on('message', function (msg){
var chatId = msg.chat.id;
bot.sendMassage(chatId, "Received your message");
});
Answer the question
In order to leave comments, you need to log in
Unhandled error.
In this case, it's a typo in "sendMassage". Should be "sendMessage".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question