Merge pull request #247 from unstppbl/pr/deleteWebhook

closes #246
bot-api-6.1
Kirill Zhuharev 2020-03-19 07:13:15 +03:00 committed by GitHub
commit 2d75cf8a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
bot.go
View File

@ -446,7 +446,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.