Update README.hbs

experimental
Yago 10 years ago
parent 1ce816c794
commit 9654b336e2
  1. 1
      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];

Loading…
Cancel
Save