Property | 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. |
Method | 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. |
Method | Description | |
---|---|---|
triggerCommand ( $command, null $arguments = null ) : mixed | Helper to Trigger other Commands. |
public getArguments ( ) : string | ||
return | string |
public getCommandBus ( ) : |
||
return |
public getDescription ( ) : string | ||
return | string |
public make ( |
||
$telegram | ||
$update |
public setDescription ( $description ) : |
||
$description | ||
return |
protected triggerCommand ( $command, null $arguments = null ) : mixed | ||
$command | ||
$arguments | null | |
return | mixed |
protected array $aliases | ||
return | array |
protected string $name | ||
return | string |