S
S
sstovpivsky2018-06-13 23:47:56
JavaScript
sstovpivsky, 2018-06-13 23:47:56

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

1 answer(s)
A
Alexander Semak, 2018-08-15
@semakalexander

Unhandled error.
In this case, it's a typo in "sendMassage". Should be "sendMessage".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question