diff --git a/examples/polling.js b/examples/polling.js index c5a0cd8..22f54e8 100644 --- a/examples/polling.js +++ b/examples/polling.js @@ -11,7 +11,7 @@ var bot = new TelegramBot(token, options); bot.getMe().then(function (me) { console.log('Hi my name is %s!', me.username); }); -bot.on('message', function (msg) { +bot.on('text', function (msg) { var chatId = msg.chat.id; if (msg.text == '/photo') { // From file