Query strings on webHook

experimental
Yago 11 years ago
parent 172578dd0e
commit ddc9032e41
  1. 2
      src/telegram.js

@ -151,7 +151,7 @@ TelegramBot.prototype.getMe = function () {
TelegramBot.prototype.setWebHook = function (url) { TelegramBot.prototype.setWebHook = function (url) {
var path = 'setWebHook'; var path = 'setWebHook';
var qs = {url: url}; var qs = {url: url};
return this._request(path, {method: 'POST'}) return this._request(path, {method: 'POST', qs: qs})
.then(function (resp) { .then(function (resp) {
if (!resp) { if (!resp) {
throw new Error(resp); throw new Error(resp);

Loading…
Cancel
Save