From ddc9032e41c9baac11523d58ca71105901cbbab7 Mon Sep 17 00:00:00 2001 From: Yago Date: Mon, 29 Jun 2015 10:05:13 +0200 Subject: [PATCH] Query strings on webHook --- src/telegram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram.js b/src/telegram.js index 1b8494e..3a00248 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -151,7 +151,7 @@ TelegramBot.prototype.getMe = function () { TelegramBot.prototype.setWebHook = function (url) { var path = 'setWebHook'; var qs = {url: url}; - return this._request(path, {method: 'POST'}) + return this._request(path, {method: 'POST', qs: qs}) .then(function (resp) { if (!resp) { throw new Error(resp);