(new): expand runtime APIs
Golang lint / lint (push) Successful in 58s
Golang lint / lint (pull_request) Successful in 13m10s

(fix): harden concurrent lifecycle
(tests): add regression coverage
(doc): update v1.2 guidance
This commit is contained in:
2026-08-20 11:08:45 +03:00
parent 29b208eeec
commit 24040fe164
37 changed files with 1129 additions and 157 deletions
+4
View File
@@ -38,6 +38,8 @@ var (
ErrAPIIsNil = errors.New("api is nil")
// ErrMessageIDZero reports that an operation requires a non-zero message ID.
ErrMessageIDZero = errors.New("message ID is zero")
// ErrCodecIsNil reports that a config operation received a nil codec.
ErrCodecIsNil = errors.New("codec is nil")
)
var (
// ErrBindArgsTargetNotPointer reports that BindArgs received a nil or non-pointer destination.
@@ -66,6 +68,8 @@ var (
ErrHandlerExecutorNil = errors.New("handler executor is nil")
// ErrHandlerPanic reports a panic recovered from a user handler.
ErrHandlerPanic = errors.New("handler panicked")
// ErrObserverShutdownTimeout reports that observer callbacks did not stop before shutdown timed out.
ErrObserverShutdownTimeout = errors.New("observer shutdown timed out")
// ErrInlineKeyboardButtonAction reports a button without exactly one action.
ErrInlineKeyboardButtonAction = errors.New("inline keyboard button must have exactly one action")
// ErrCallbackDataLength reports callback data outside Telegram's 1-64 byte range.