diff --git a/README.md b/README.md index 037d7c6..6291ec1 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ func main() { log.Printf("Authorized on account %s", bot.Self.UserName) - _, err := bot.SetWebhook(tgbotapi.NewWebhookWithCert("https://www.google.com:8443/"+bot.Token, "cert.pem")) + _, err = bot.SetWebhook(tgbotapi.NewWebhookWithCert("https://www.google.com:8443/"+bot.Token, "cert.pem")) if err != nil { log.Fatal(err) }