From acb0cbf43c557d0a3617c9eb4d4ea72ceb56fa6c Mon Sep 17 00:00:00 2001 From: Sandro Turriate Date: Mon, 30 Apr 2018 23:19:37 -0700 Subject: [PATCH] Add index variable to range --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9a6873..6afcc29 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ func main() { updates, err := bot.GetUpdatesChan(u) - for update := range updates { + for _, update := range updates { if update.Message == nil { continue } @@ -101,7 +101,7 @@ func main() { updates := bot.ListenForWebhook("/" + bot.Token) go http.ListenAndServeTLS("0.0.0.0:8443", "cert.pem", "key.pem", nil) - for update := range updates { + for _, update := range updates { log.Printf("%+v\n", update) } }