pull/247/merge
John Doe 6 years ago committed by GitHub
commit 6449ca078f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      bot.go

@ -438,7 +438,7 @@ func (bot *BotAPI) GetUpdates(config UpdateConfig) ([]Update, error) {
// RemoveWebhook unsets the webhook. // RemoveWebhook unsets the webhook.
func (bot *BotAPI) RemoveWebhook() (APIResponse, error) { func (bot *BotAPI) RemoveWebhook() (APIResponse, error) {
return bot.MakeRequest("setWebhook", url.Values{}) return bot.MakeRequest("deleteWebhook", url.Values{})
} }
// SetWebhook sets a webhook. // SetWebhook sets a webhook.