2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-31 14:25:57 +00:00

Changed event message to event text on exmaple polling

This commit is contained in:
yago
2015-08-08 12:06:38 +02:00
parent 1dd81e4343
commit 58298ce724

View File

@@ -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