From 72a0e2d8087dc11548bb29edc2403b1323d881bd Mon Sep 17 00:00:00 2001 From: unstppbl Date: Wed, 3 Jul 2019 17:59:56 -0700 Subject: [PATCH] closes #246 --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index a996790..7d8b9d1 100644 --- a/bot.go +++ b/bot.go @@ -438,7 +438,7 @@ func (bot *BotAPI) GetUpdates(config UpdateConfig) ([]Update, error) { // RemoveWebhook unsets the webhook. func (bot *BotAPI) RemoveWebhook() (APIResponse, error) { - return bot.MakeRequest("setWebhook", url.Values{}) + return bot.MakeRequest("deleteWebhook", url.Values{}) } // SetWebhook sets a webhook.