Class ReplyKeyboardMarkup

java.lang.Object
io.micronaut.chatbots.telegram.api.ReplyKeyboardMarkup

public class ReplyKeyboardMarkup extends Object
This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
See Also:
  • Constructor Details

    • ReplyKeyboardMarkup

      public ReplyKeyboardMarkup()
  • Method Details

    • getKeyboard

      @NonNull public @NonNull List<KeyboardButton> getKeyboard()
      Returns:
      List of button rows, each represented by an Array of KeyboardButton objects.
    • setKeyboard

      public void setKeyboard(@NonNull @NonNull List<KeyboardButton> keyboard)
      Parameters:
      keyboard - Array of button rows, each represented by an Array of KeyboardButton objects.
    • getResizeKeyboard

      @Nullable public @Nullable Boolean getResizeKeyboard()
      Returns:
      Requests clients to resize the keyboard vertically for optimal fit
    • setResizeKeyboard

      public void setResizeKeyboard(@Nullable @Nullable Boolean resizeKeyboard)
      Parameters:
      resizeKeyboard - Requests clients to resize the keyboard vertically for optimal fit
    • getOneTimeKeyboard

      @Nullable public @Nullable Boolean getOneTimeKeyboard()
      Returns:
      Requests clients to hide the keyboard as soon as it's been used.
    • setOneTimeKeyboard

      public void setOneTimeKeyboard(@Nullable @Nullable Boolean oneTimeKeyboard)
      Parameters:
      oneTimeKeyboard - Requests clients to hide the keyboard as soon as it's been used.
    • getSelective

      @Nullable public @Nullable Boolean getSelective()
      Returns:
      Use this parameter if you want to show the keyboard to specific users only.
    • setSelective

      public void setSelective(@Nullable @Nullable Boolean selective)
      Parameters:
      selective - Use this parameter if you want to show the keyboard to specific users only.
    • getInputFieldPlaceholder

      @Nullable public @Nullable String getInputFieldPlaceholder()
      Returns:
      The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
    • setInputFieldPlaceholder

      public void setInputFieldPlaceholder(@Nullable @Nullable String inputFieldPlaceholder)
      Parameters:
      inputFieldPlaceholder - The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
    • toString

      public String toString()
      Overrides:
      toString in class Object