From 24a3f6dadefcad80c09208ca1d6a0ec4b3f64ef0 Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Sun, 29 Jan 2017 18:59:05 +0300 Subject: [PATCH] examples: Minor cleanup --- examples/herokuWebHook.js | 7 +++---- examples/httpsWebHook.js | 2 +- examples/openShiftWebHook.js | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/herokuWebHook.js b/examples/herokuWebHook.js index 6ae5fc9..a348c32 100644 --- a/examples/herokuWebHook.js +++ b/examples/herokuWebHook.js @@ -6,11 +6,10 @@ const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN'; const TelegramBot = require('..'); - const options = { webHook: { - //Port which you should bind to is assigned to $PORT variable - //See: https://devcenter.heroku.com/articles/dynos#local-environment-variables + // Port to which you should bind is assigned to $PORT variable + // See: https://devcenter.heroku.com/articles/dynos#local-environment-variables port: process.env.PORT // you do NOT need to set up certificates since Heroku provides // the SSL certs already (https://.herokuapp.com) @@ -32,5 +31,5 @@ bot.setWebHook(`${url}/bot${TOKEN}`); // Just to ping! bot.on('message', function onMessage(msg) { - bot.sendMessage(msg.chat.id, 'Running on Heroku!'); + bot.sendMessage(msg.chat.id, 'I am alive on Heroku!'); }); diff --git a/examples/httpsWebHook.js b/examples/httpsWebHook.js index ad0f40a..c2a27ef 100644 --- a/examples/httpsWebHook.js +++ b/examples/httpsWebHook.js @@ -26,5 +26,5 @@ bot.setWebHook(`${url}/bot${TOKEN}`, { // Just to ping! bot.on('message', function onMessage(msg) { - bot.sendMessage(msg.chat.id, "I'm alive!"); + bot.sendMessage(msg.chat.id, 'I am alive!'); }); diff --git a/examples/openShiftWebHook.js b/examples/openShiftWebHook.js index 90b15fa..162d02a 100644 --- a/examples/openShiftWebHook.js +++ b/examples/openShiftWebHook.js @@ -28,5 +28,5 @@ bot.setWebHook(`${url}/bot${TOKEN}`); // Just to ping! bot.on('message', function onMessage(msg) { - bot.sendMessage(msg.chat.id, "I'm alive on OpenShift!"); + bot.sendMessage(msg.chat.id, 'I am alive on OpenShift!'); });