Class InlineKeyboardButton
java.lang.Object
org.apache.camel.component.telegram.model.InlineKeyboardButton
- All Implemented Interfaces:
Serializable
Represents one button of an inline keyboard. You must use exactly one of the optional fields.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInlineKeyboardButton
(String text, String url, LoginUrl loginUrl, String callbackData, CallbackGame callbackGame, Boolean requestContact, Boolean requestLocation) BuildsInlineKeyboardButton
instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic InlineKeyboardButton.Builder
builder()
boolean
getText()
getUrl()
int
hashCode()
void
setCallbackData
(String callbackData) void
setCallbackGame
(CallbackGame callbackGame) void
setLoginUrl
(LoginUrl loginUrl) void
setRequestContact
(Boolean requestContact) void
setRequestLocation
(Boolean requestLocation) void
void
toString()
-
Constructor Details
-
InlineKeyboardButton
public InlineKeyboardButton() -
InlineKeyboardButton
public InlineKeyboardButton(String text, String url, LoginUrl loginUrl, String callbackData, CallbackGame callbackGame, Boolean requestContact, Boolean requestLocation) BuildsInlineKeyboardButton
instance.- 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 Details
-
getText
-
setText
-
getUrl
-
setUrl
-
getLoginUrl
-
setLoginUrl
-
getCallbackData
-
setCallbackData
-
getCallbackGame
-
setCallbackGame
-
getRequestContact
-
setRequestContact
-
getRequestLocation
-
setRequestLocation
-
builder
-
toString
-
equals
-
hashCode
public int hashCode()
-