mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 13:27:44 +00:00
setWebHook as GET
This commit is contained in:
parent
e9ec46a2de
commit
90145efb89
@ -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', qs: qs})
|
return this._request(path, {qs: qs})
|
||||||
.then(function (resp) {
|
.then(function (resp) {
|
||||||
if (!resp) {
|
if (!resp) {
|
||||||
throw new Error(resp);
|
throw new Error(resp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user