Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | ||
return | array |
public static forceReply ( array $data = [] ) : |
||
$data | array | |
return |
public getKeyboardButtonClass ( ) : |
||
return |
public getKeyboardType ( ) : string | ||
return | string |
public isInlineKeyboard ( ) : boolean | ||
return | boolean |