From 58298ce724a80eab4e0488b7d8d1ad2578a16676 Mon Sep 17 00:00:00 2001 From: yago Date: Sat, 8 Aug 2015 12:06:38 +0200 Subject: [PATCH] Changed event message to event text on exmaple polling --- examples/polling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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