Open Pawilonek opened 1 year ago
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)
}
http.Get("https://api.telegram.org/bot" + token + "/deleteWebhook")
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:
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.