mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-28 21:07:39 +00:00
Query strings on webHook
This commit is contained in:
parent
172578dd0e
commit
ddc9032e41
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user