Stop returning useless http.Handler from ListenForWebhook.
This commit is contained in:
parent
08d7c01637
commit
80e30d7c19
3 changed files with 5 additions and 23 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue