(new): updates iterator
Golang lint / lint (push) Successful in 2m15s

(new): sneklog migration

(refactor): idiomatic names

(fix): polling lifecycle

(tests): polling regressions

(doc): rc16 changelog
This commit is contained in:
2026-04-29 12:31:41 +03:00
parent fc4386df75
commit 667fa3cc61
5 changed files with 174 additions and 8 deletions
+1 -1
View File
@@ -442,7 +442,7 @@ func (bot *Bot[T]) RunWithContext(ctx context.Context) error {
default:
updates, err := bot.Updates(ctx)
if err != nil {
if errors.Is(err, context.Canceled) {
if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) {
return
}
bot.logger.Errorln("failed to fetch updates:", err)