Type of the callback context.
Return value type.
Creates a new CommandHandler.
Type of the callback context.
Return value type.
A single command string (e.g. "start") or an array of aliases.
Function invoked when the command matches.
Optionalfilters: BaseFilter
Optional additional filter criteria.
ProtectedcallbackThe underlying callback function to invoke on match.
ReadonlycommandsNormalized set of command names that trigger this handler (without / or @botname).
Optional ReadonlyfiltersOptional secondary filter to apply before triggering.
Checks whether the update contains a matching bot command.
The update to test.
true if command matches, false otherwise.
Handler for Telegram bot commands (e.g.
/start,/help).Example