all repos — telegram-bot-api @ 87a279827eeea20b1bb05b6e5a2fac4b5ee34679

Golang bindings for the Telegram Bot API

Merge branch 'master' of github.com-syfaro:Syfaro/telegram-bot-api
Syfaro syfaro@foxpaw.in
Mon, 07 Sep 2015 11:35:05 -0500
commit

87a279827eeea20b1bb05b6e5a2fac4b5ee34679

parent

e48e6416e7805cf7a96c33c6eb958b94131585e1

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M methods.gomethods.go

@@ -973,13 +973,11 @@ // SetWebhook sets a webhook.

// If this is set, GetUpdates will not get any data! // // Requires Url OR to set Clear to true. -func (bot *BotAPI) SetWebhook(config WebhookConfig) error { +func (bot *BotAPI) SetWebhook(config WebhookConfig) (APIResponse, error){ v := url.Values{} if !config.Clear { v.Add("url", config.URL.String()) } - _, err := bot.MakeRequest("setWebhook", v) - - return err + return bot.MakeRequest("setWebhook", v) }