From 7b7191b4643f8408640d298522ce9a4832742be1 Mon Sep 17 00:00:00 2001 From: yago Date: Sat, 8 Aug 2015 12:01:52 +0200 Subject: [PATCH] Emits typo --- examples/polling.js | 2 +- src/telegram.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/polling.js b/examples/polling.js index 3ce3bdb..c5a0cd8 100644 --- a/examples/polling.js +++ b/examples/polling.js @@ -5,7 +5,7 @@ var options = { polling: true }; -var token = 'YOUR_TELEGRAM_BOT_TOKEN'; +var token = process.env.TELEGRAM_BOT_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN'; var bot = new TelegramBot(token, options); bot.getMe().then(function (me) { diff --git a/src/telegram.js b/src/telegram.js index d2d0704..cd064e1 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -16,7 +16,7 @@ var requestPromise = Promise.promisify(request); /** * Both request method to obtain messages are implemented. To use standard polling, set `polling: true` * on `options`. Notice that [webHook](https://core.telegram.org/bots/api#setwebhook) will need a valid (not self signed) SSL certificate. - * Emmits `message` when a message arrives. + * Emits `message` when a message arrives. * * @class TelegramBot * @constructor