phpbotgram

HandlerContainer
in package

Read onlyYes
FinalYes

Bundles a named handler callable with its associated filters and optional post-handler action.

Mirrors HandlerContainer (aiogram/fsm/scene.py:179-185):

Tags
dataclass

(slots=True) class HandlerContainer: name: str handler: CallbackType filters: tuple[CallbackType, ...] after: After | None = None


Used by `SceneConfig::$handlers` to describe all the registered scene
method handlers resolved from `#[On*]` attributes.

Table of Contents

Properties

$after  : After|null
$filters  : array<int, Filter>
$handler  : callable
$name  : string

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(string $name, callable $handler[, array<int, Filter$filters = [] ][, After|null $after = null ]) : mixed
Parameters
$name : string

Human-readable name (typically the method name).

$handler : callable

The callable that handles the event.

$filters : array<int, Filter> = []

Filters that must pass before the handler fires.

$after : After|null = null

Optional post-handler action (exit / back / goto).

On this page

Search results