CommandBus
class CommandBus (View source)
Class CommandBus
Methods
__construct(
Api $telegram)
Instantiate Command Bus
array
getCommands()
Returns the list of commands.
addCommands(
array $commands)
Add a list of commands.
removeCommand($name)
Remove a command from the list.
array
parseCommand($text)
Parse a Command for a Match.
mixed
execute($name, $arguments, $message)
Execute the command.
Details
at line 33
__construct(
Api $telegram)
Instantiate Command Bus
at line 43
array
getCommands()
Returns the list of commands.
at line 55
CommandBus
addCommands(
array $commands)
Add a list of commands.
at line 73
CommandBus
addCommand(
CommandInterface|string $command)
Add a command to the commands list.
at line 99
removeCommand($name)
Remove a command from the list.
at line 114
Update
handler($message,
Update $update)
Handles Inbound Messages and Executes Appropriate Command.
at line 137
array
parseCommand($text)
Parse a Command for a Match.
at line 157
mixed
execute($name, $arguments, $message)
Execute the command.