Метод | Описание | |
---|---|---|
__construct ( $data = [] ) | ||
addRow ( ) | Create a new row in keyboard and add buttons. | |
forceReply ( array $data = [] ) : |
Display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). | |
getKeyboardButtonClass ( ) : |
Get the proper keyboard button class for this keyboard. | |
getKeyboardType ( ) : string | Get the type of keyboard, either "inline_keyboard" or "keyboard". | |
isInlineKeyboard ( ) : boolean | If this keyboard is an inline keyboard. | |
remove ( array $data = [] ) : |
Remove the current custom keyboard and display the default letter-keyboard. |
Метод | Описание | |
---|---|---|
createFromParams ( ) : array | If no explicit keyboard is passed, try to create one from the parameters. | |
parseButton ( array | string | |
Parse a given button to the correct KeyboardButton object type. | |
parseRow ( array $row ) : array | Parse a given row to the correct array format. | |
validate ( ) |
protected createFromParams ( ) : array | ||
Результат | array |
public static forceReply ( array $data = [] ) : |
||
$data | array | |
Результат |
public getKeyboardButtonClass ( ) : |
||
Результат |
public getKeyboardType ( ) : string | ||
Результат | string |
public isInlineKeyboard ( ) : boolean | ||
Результат | boolean |