Link Search Menu Expand Document

danog\MadelineProto\EventHandler\Filter\FilterBotCommand

Back to index

Author: Daniil Gentili daniil@daniil.it

Allow only messages containing the specified command, optionally postfixed with the bot’s username.

Method list:

Methods:

initialize(\danog\MadelineProto\EventHandler $API): \danog\MadelineProto\EventHandler\Filter\Filter

Parameters:

  • $API: \danog\MadelineProto\EventHandler

See also:

__construct(string $command)

Parameters:

  • $command: string

apply(\danog\MadelineProto\EventHandler\Update $update): bool

Parameters:

  • $update: \danog\MadelineProto\EventHandler\Update

See also:

fromReflectionType(\ReflectionType $type): \danog\MadelineProto\EventHandler\Filter\Filter

Parameters:

  • $type: \ReflectionType

See also:

  • \ReflectionType

Generated by danog/phpdoc