Add token to webHook url

experimental
yago 11 years ago
parent aa9636e1b2
commit 1fa388d609
  1. 3
      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) {

Loading…
Cancel
Save