2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 05:17:41 +00:00

Merge pull request #1 from yagop/develop

setWebHook as GET
This commit is contained in:
Yago 2015-06-29 22:05:46 +02:00
commit 860dc0aa91

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);