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:
@@ -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
|
||||
|
Reference in New Issue
Block a user