Class InlineKeyboardButton

java.lang.Object
org.apache.camel.component.telegram.model.InlineKeyboardButton
All Implemented Interfaces:
Serializable

public class InlineKeyboardButton extends Object implements Serializable
Represents one button of an inline keyboard. You must use exactly one of the optional fields.
See Also:
  • Constructor Details

    • InlineKeyboardButton

      public InlineKeyboardButton()
    • InlineKeyboardButton

      public InlineKeyboardButton(String text, String url, LoginUrl loginUrl, String callbackData, CallbackGame callbackGame, Boolean requestContact, Boolean requestLocation)
      Builds InlineKeyboardButton instance.
      Parameters:
      text - Label text on the button
      url - Optional. HTTP or tg:// url to be opened when button is pressed
      loginUrl - Optional. An HTTP URL used to automatically authorize the user.
      callbackData - Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes
      callbackGame - Optional. Description of the game that will be launched when the user presses the button.
      requestContact - Optional. By clicking on the button, the user's phone will be sent.
      requestLocation - Optional. By clicking on the button, the user's location will be sent
  • Method Details

    • getText

      public String getText()
    • setText

      public void setText(String text)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getLoginUrl

      public LoginUrl getLoginUrl()
    • setLoginUrl

      public void setLoginUrl(LoginUrl loginUrl)
    • getCallbackData

      public String getCallbackData()
    • setCallbackData

      public void setCallbackData(String callbackData)
    • getCallbackGame

      public CallbackGame getCallbackGame()
    • setCallbackGame

      public void setCallbackGame(CallbackGame callbackGame)
    • getRequestContact

      public Boolean getRequestContact()
    • setRequestContact

      public void setRequestContact(Boolean requestContact)
    • getRequestLocation

      public Boolean getRequestLocation()
    • setRequestLocation

      public void setRequestLocation(Boolean requestLocation)
    • builder

      public static InlineKeyboardButton.Builder builder()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object