Stop returning useless http.Handler from ListenForWebhook.

This commit is contained in:
Syfaro 2016-01-03 23:05:36 -06:00
parent 08d7c01637
commit 80e30d7c19
3 changed files with 5 additions and 23 deletions

View file

@ -85,7 +85,7 @@ func main() {
log.Fatal(err)
}
updates, _ := bot.ListenForWebhook("/" + bot.Token)
updates := bot.ListenForWebhook("/" + bot.Token)
go http.ListenAndServeTLS("0.0.0.0:8443", "cert.pem", "key.pem", nil)
for update := range updates {