2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 21:07:39 +00:00

setWebHook as GET

This commit is contained in:
Yago 2015-06-29 12:08:25 +02:00
parent e9ec46a2de
commit 90145efb89

View File

@ -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', qs: qs})
return this._request(path, {qs: qs})
.then(function (resp) {
if (!resp) {
throw new Error(resp);