Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing deleteWebhook method #656

Open
Pawilonek opened this issue Jun 2, 2023 · 1 comment
Open

Missing deleteWebhook method #656

Pawilonek opened this issue Jun 2, 2023 · 1 comment

Comments

@Pawilonek
Copy link

I found that removing the webhook URL from a bot was available (see: commit and #246) but later removed during some refactoring: commit. I tested this API call like this:

_, err = bot.MakeRequest("deleteWebhook", tgbotapi.Params{})

It still works fine and removed my webhook.

Is there any reason why this method is gone? Or, it was just a mistake? In the second case, I would be happy to make a PR with a fix.

@agrogov
Copy link

agrogov commented Jun 12, 2023

will delete webhook as well:
w, err := tgbotapi.NewWebhook("")
if err != nil {
log.Fatal(err)
}
_, err = bot.Request(w)
if err != nil {
log.Fatal(err)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants