danog\MadelineProto\EventHandler\Filter\FilterCommand
Author: Daniil Gentili daniil@daniil.it
Allow only messages containing the specified command.
Properties
$commandTypes
:array<CommandType>
Method list:
__construct(string $command, list<\danog\MadelineProto\EventHandler\CommandType> $types = [ 0 => \danog\MadelineProto\EventHandler\CommandType::BANG, 1 => \danog\MadelineProto\EventHandler\CommandType::DOT, 2 => \danog\MadelineProto\EventHandler\CommandType::SLASH,])
apply(\danog\MadelineProto\EventHandler\Update $update): bool
initialize(\danog\MadelineProto\EventHandler $API): \danog\MadelineProto\EventHandler\Filter\Filter
fromReflectionType(\ReflectionType $type): \danog\MadelineProto\EventHandler\Filter\Filter
Methods:
__construct(string $command, list<\danog\MadelineProto\EventHandler\CommandType> $types = [ 0 => \danog\MadelineProto\EventHandler\CommandType::BANG, 1 => \danog\MadelineProto\EventHandler\CommandType::DOT, 2 => \danog\MadelineProto\EventHandler\CommandType::SLASH,])
Parameters:
$command
:string
Command$types
:list<\danog\MadelineProto\EventHandler\CommandType>
Command types, if empty all command types are allowed.
See also:
apply(\danog\MadelineProto\EventHandler\Update $update): bool
Parameters:
$update
:\danog\MadelineProto\EventHandler\Update
See also:
initialize(\danog\MadelineProto\EventHandler $API): \danog\MadelineProto\EventHandler\Filter\Filter
Run some initialization logic, optionally returning a new filter to replace the current one.
Parameters:
$API
:\danog\MadelineProto\EventHandler
See also:
fromReflectionType(\ReflectionType $type): \danog\MadelineProto\EventHandler\Filter\Filter
Parameters:
$type
:\ReflectionType
See also:
\ReflectionType
Generated by danog/phpdoc