From 9654b336e2c19f22ac29e4b93c1399f7fd9c90d5 Mon Sep 17 00:00:00 2001 From: Yago Date: Tue, 20 Oct 2015 09:46:56 +0200 Subject: [PATCH] Update README.hbs --- README.hbs | 1 + 1 file changed, 1 insertion(+) diff --git a/README.hbs b/README.hbs index b70c62b..13f381f 100644 --- a/README.hbs +++ b/README.hbs @@ -13,6 +13,7 @@ var token = 'YOUR_TELEGRAM_BOT_TOKEN'; // Setup polling way var bot = new TelegramBot(token, {polling: true}); +// Matches /echo [whatever] bot.onText(/\/echo (.+)/, function (msg, match) { var fromId = msg.from.id; var resp = match[1];