Skip to content

Commit

Permalink
Make SetWebhook error loggable by default (tucnak#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
osinniy authored Oct 12, 2022
1 parent 7065335 commit c2b50e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c2b50e8

Please sign in to comment.