Fix setting webhook in README.
Syfaro syfaro@huefox.com
Sun, 02 Jan 2022 21:48:12 -0500
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
README.md
→
README.md
@@ -85,9 +85,9 @@ bot.Debug = true
log.Printf("Authorized on account %s", bot.Self.UserName) - wh, _ := tgbotapi.NewWebhookWithCert("https://www.google.com:8443/"+bot.Token, "cert.pem") + wh, _ := tgbotapi.NewWebhookWithCert("https://www.example.com:8443/"+bot.Token, "cert.pem") - _, err = bot.SetWebhook(wh) + _, err = bot.Request(wh) if err != nil { log.Fatal(err) }