프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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 ( ) : |
||
리턴 |
public executeNoDb ( ) : |
||
리턴 |
public getMessage ( ) : |
||
리턴 |
public getTelegram ( ) : |
||
리턴 |
public getUpdate ( ) : |
||
리턴 |
public preExecute ( ) : |
||
리턴 |
public setUpdate ( |
||
$update | ||
리턴 |
protected Message,Longman\TelegramBot\Entities $message | ||
리턴 |
protected Telegram,Longman\TelegramBot $telegram | ||
리턴 |
protected Update,Longman\TelegramBot\Entities $update | ||
리턴 |