Свойство | Type | Description | |
---|---|---|---|
$config | array | Command config | |
$description | string | Description | |
$enabled | boolean | If this command is enabled | |
$message | Message object | ||
$name | string | Name | |
$need_mysql | boolean | If this command needs mysql | |
$telegram | Telegram object | ||
$update | Update object | ||
$usage | string | Usage | |
$version | string | Version |
Méthode | Description | |
---|---|---|
__construct ( |
Constructor | |
execute ( ) : |
Execute command | |
executeNoDb ( ) : |
Execution if MySQL is required but not available | |
getConfig ( string | null $name = null ) : array | mixed | null | Get command config | |
getDescription ( ) : string | Get description | |
getMessage ( ) : |
Get message object | |
getName ( ) : string | Get name | |
getTelegram ( ) : |
Get telegram object | |
getUpdate ( ) : |
Get update object | |
getUsage ( ) : string | Get usage | |
getVersion ( ) : string | Get version | |
isAdminCommand ( ) : boolean | If this is an AdminCommand | |
isEnabled ( ) : boolean | Check if command is enabled | |
isSystemCommand ( ) : boolean | If this is a SystemCommand | |
isUserCommand ( ) : boolean | If this is a UserCommand | |
preExecute ( ) : |
Pre-execute command | |
setUpdate ( |
Set update object |
public __construct ( |
||
$telegram | ||
$update |
abstract public execute ( ) : |
||
Résultat |
public executeNoDb ( ) : |
||
Résultat |
public getMessage ( ) : |
||
Résultat |
public getTelegram ( ) : |
||
Résultat |
public getUpdate ( ) : |
||
Résultat |
public isAdminCommand ( ) : boolean | ||
Résultat | boolean |
public isSystemCommand ( ) : boolean | ||
Résultat | boolean |
public isUserCommand ( ) : boolean | ||
Résultat | boolean |
public preExecute ( ) : |
||
Résultat |
public setUpdate ( |
||
$update | ||
Résultat |
protected Message,Longman\TelegramBot\Entities $message | ||
Résultat |
protected bool $need_mysql | ||
Résultat | boolean |
protected Telegram,Longman\TelegramBot $telegram | ||
Résultat |
protected Update,Longman\TelegramBot\Entities $update | ||
Résultat |