From c72afc396b289a53a6afbc5d6e8c49cbfa2dffe0 Mon Sep 17 00:00:00 2001 From: Jqs7 <7@jqs7.com> Date: Mon, 14 Sep 2015 13:54:45 +0800 Subject: [PATCH] variable declaration fix for webhook example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }