Свойство | Type | Description | |
---|---|---|---|
$aliases | array | Command Aliases Helpful when you want to trigger command with more than one name. | |
$arguments | Arguments passed to the command. | ||
$description | The Telegram command description. | ||
$name | string | Ex: help - Whenever the user sends /help, this would be resolved. |
Méthode | Description | |
---|---|---|
getAliases ( ) : array | Get Command Aliases | |
getArguments ( ) : string | Get Arguments passed to the command. | |
getCommandBus ( ) : |
Returns an instance of Command Bus. | |
getDescription ( ) : string | Get Command Description. | |
getName ( ) : string | Get Command Name. | |
handle ( $arguments ) | ||
make ( |
||
setDescription ( $description ) : |
Set Command Description. | |
setName ( $name ) : |
Set Command Name. |
Méthode | Description | |
---|---|---|
triggerCommand ( $command, null $arguments = null ) : mixed | Helper to Trigger other Commands. |
public getArguments ( ) : string | ||
Résultat | string |
public getCommandBus ( ) : |
||
Résultat |
public getDescription ( ) : string | ||
Résultat | string |
public make ( |
||
$telegram | ||
$update |
public setDescription ( $description ) : |
||
$description | ||
Résultat |
public setName ( $name ) : |
||
$name | ||
Résultat |
protected triggerCommand ( $command, null $arguments = null ) : mixed | ||
$command | ||
$arguments | null | |
Résultat | mixed |
protected array $aliases | ||
Résultat | array |
protected string $name | ||
Résultat | string |