Class ReplyKeyboardMarkup
java.lang.Object
io.micronaut.chatbots.telegram.api.ReplyKeyboardMarkup
This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String@NonNull List<KeyboardButton> @Nullable Boolean@Nullable Boolean@Nullable BooleanvoidsetInputFieldPlaceholder(@Nullable String inputFieldPlaceholder) voidsetKeyboard(@NonNull List<KeyboardButton> keyboard) voidsetOneTimeKeyboard(@Nullable Boolean oneTimeKeyboard) voidsetResizeKeyboard(@Nullable Boolean resizeKeyboard) voidsetSelective(@Nullable Boolean selective) toString()
-
Constructor Details
-
ReplyKeyboardMarkup
public ReplyKeyboardMarkup()
-
-
Method Details
-
getKeyboard
- Returns:
- List of button rows, each represented by an Array of KeyboardButton objects.
-
setKeyboard
- Parameters:
keyboard- Array of button rows, each represented by an Array of KeyboardButton objects.
-
getResizeKeyboard
- Returns:
- Requests clients to resize the keyboard vertically for optimal fit
-
setResizeKeyboard
- Parameters:
resizeKeyboard- Requests clients to resize the keyboard vertically for optimal fit
-
getOneTimeKeyboard
- Returns:
- Requests clients to hide the keyboard as soon as it's been used.
-
setOneTimeKeyboard
- Parameters:
oneTimeKeyboard- Requests clients to hide the keyboard as soon as it's been used.
-
getSelective
- Returns:
- Use this parameter if you want to show the keyboard to specific users only.
-
setSelective
- Parameters:
selective- Use this parameter if you want to show the keyboard to specific users only.
-
getInputFieldPlaceholder
- Returns:
- The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
-
setInputFieldPlaceholder
- Parameters:
inputFieldPlaceholder- The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
-
toString
-