Fix setting webhook in README.

bot-api-6.1
Syfaro 2022-01-02 21:48:12 -05:00
parent fde58e56ae
commit 60c16b6773
1 changed files with 2 additions and 2 deletions

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)
}