phpbotgram

Bases
in package

FinalYes

Dispatcher base sentinels and helpers. `UNHANDLED`/`REJECTED` are singleton objects (not strings) so identity comparison via `===` can't collide with a user handler that happens to return the same string literal.

Table of Contents

Methods

cancel()  : never
Stop dispatch entirely — the observer collapses the in-flight handler iteration to `RejectedSentinel`. Used by handlers that want to assert "this update has been handled by someone else, do not try further handlers on this observer or fall through to other routers".
rejected()  : RejectedSentinel
skip()  : never
unhandled()  : UnhandledSentinel

Methods

cancel()

Stop dispatch entirely — the observer collapses the in-flight handler iteration to `RejectedSentinel`. Used by handlers that want to assert "this update has been handled by someone else, do not try further handlers on this observer or fall through to other routers".

public static cancel([string|null $message = null ]) : never

Mirrors aiogram's CancelHandler exception path; the upstream observer does not have a dedicated cancel() helper but Bases::skip() / Bases::cancel() give parity with the broader handling protocol.

Parameters
$message : string|null = null
Return values
never

skip()

public static skip([string|null $message = null ]) : never
Parameters
$message : string|null = null
Return values
never
On this page

Search results