pull/171/merge
Sandro Turriate 7 years ago committed by GitHub
commit 2ee5967bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      README.md

@ -50,7 +50,7 @@ func main() {
updates, err := bot.GetUpdatesChan(u) updates, err := bot.GetUpdatesChan(u)
for update := range updates { for _, update := range updates {
if update.Message == nil { if update.Message == nil {
continue continue
} }
@ -101,7 +101,7 @@ func main() {
updates := bot.ListenForWebhook("/" + bot.Token) updates := bot.ListenForWebhook("/" + bot.Token)
go http.ListenAndServeTLS("0.0.0.0:8443", "cert.pem", "key.pem", nil) 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) log.Printf("%+v\n", update)
} }
} }