Make SetWebhook error loggable by default (#559)

pull/560/head
Alex Osinniy 2 years ago committed by GitHub
parent 7065335e1d
commit c2b50e878f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -119,7 +119,7 @@ func (h *Webhook) getParams() map[string]string {
func (h *Webhook) Poll(b *Bot, dest chan Update, stop chan struct{}) {
if err := b.SetWebhook(h); err != nil {
b.debug(err)
b.OnError(err, nil)
close(stop)
return
}

Loading…
Cancel
Save