Skip to content

Commit 60c16b6

Browse files
committed
Fix setting webhook in README.
1 parent fde58e5 commit 60c16b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ func main() {
8585

8686
log.Printf("Authorized on account %s", bot.Self.UserName)
8787

88-
wh, _ := tgbotapi.NewWebhookWithCert("https://www.google.com:8443/"+bot.Token, "cert.pem")
88+
wh, _ := tgbotapi.NewWebhookWithCert("https://www.example.com:8443/"+bot.Token, "cert.pem")
8989

90-
_, err = bot.SetWebhook(wh)
90+
_, err = bot.Request(wh)
9191
if err != nil {
9292
log.Fatal(err)
9393
}

0 commit comments

Comments
 (0)