phpbotgram

Command.php

Table of Contents

Classes

Command
Slash-command matcher. Port of `aiogram.filters.command.Command` (`aiogram/filters/command.py:25-198`). Accepts a message and matches its `text` (or fallback `caption`) against one or more registered command patterns. On match, returns `['command' => CommandObject]` so the parsed pieces flow into the handler as a `$command` kwarg.
On this page

Search results