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