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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInlineKeyboardButton.Builder
-
Constructor Summary
Constructors Constructor Description InlineKeyboardButton()InlineKeyboardButton(String text, String url, LoginUrl loginUrl, String callbackData, CallbackGame callbackGame, Boolean requestContact, Boolean requestLocation)BuildsInlineKeyboardButtoninstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InlineKeyboardButton.Builderbuilder()booleanequals(Object o)StringgetCallbackData()CallbackGamegetCallbackGame()LoginUrlgetLoginUrl()BooleangetRequestContact()BooleangetRequestLocation()StringgetText()StringgetUrl()inthashCode()voidsetCallbackData(String callbackData)voidsetCallbackGame(CallbackGame callbackGame)voidsetLoginUrl(LoginUrl loginUrl)voidsetRequestContact(Boolean requestContact)voidsetRequestLocation(Boolean requestLocation)voidsetText(String text)voidsetUrl(String url)StringtoString()
-
-
-
Constructor Detail
-
InlineKeyboardButton
public InlineKeyboardButton()
-
InlineKeyboardButton
public InlineKeyboardButton(String text, String url, LoginUrl loginUrl, String callbackData, CallbackGame callbackGame, Boolean requestContact, Boolean requestLocation)
BuildsInlineKeyboardButtoninstance.- Parameters:
text- Label text on the buttonurl- Optional. HTTP or tg:// url to be opened when button is pressedloginUrl- 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 bytescallbackGame- 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 Detail
-
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()
-
-