From 1fa388d6099f7fce902cfc4f81ec2e15ae6214df Mon Sep 17 00:00:00 2001 From: yago Date: Tue, 30 Jun 2015 00:57:16 +0200 Subject: [PATCH] Add token to webHook url --- src/telegram.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/telegram.js b/src/telegram.js index 06f0b5c..8974557 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -76,9 +76,8 @@ TelegramBot.prototype._configureWebHook = function (port, host, key, cert) { }; TelegramBot.prototype._requestListener = function (req, res) { - console.log(req) var self = this; - var url = '/bot'; + var url = '/bot'+this.token; if (req.url === url && req.method === 'POST') { var fullBody = ''; req.on('data', function (chunk) {