Fix setting webhook in README.

This commit is contained in:
Syfaro 2022-01-02 21:48:12 -05:00
parent fde58e56ae
commit 60c16b6773

View file

@ -85,9 +85,9 @@ func main() {
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)
}