public class InlineKeyboardButton extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
InlineKeyboardButton.Builder |
| Constructor and Description |
|---|
InlineKeyboardButton() |
InlineKeyboardButton(String text,
String url,
LoginUrl loginUrl,
String callbackData,
CallbackGame callbackGame,
Boolean requestContact,
Boolean requestLocation)
Builds
InlineKeyboardButton instance. |
| Modifier and Type | Method and Description |
|---|---|
static InlineKeyboardButton.Builder |
builder() |
boolean |
equals(Object o) |
String |
getCallbackData() |
CallbackGame |
getCallbackGame() |
LoginUrl |
getLoginUrl() |
Boolean |
getRequestContact() |
Boolean |
getRequestLocation() |
String |
getText() |
String |
getUrl() |
int |
hashCode() |
void |
setCallbackData(String callbackData) |
void |
setCallbackGame(CallbackGame callbackGame) |
void |
setLoginUrl(LoginUrl loginUrl) |
void |
setRequestContact(Boolean requestContact) |
void |
setRequestLocation(Boolean requestLocation) |
void |
setText(String text) |
void |
setUrl(String url) |
String |
toString() |
public InlineKeyboardButton()
public InlineKeyboardButton(String text, String url, LoginUrl loginUrl, String callbackData, CallbackGame callbackGame, Boolean requestContact, Boolean requestLocation)
InlineKeyboardButton instance.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 sentpublic String getText()
public void setText(String text)
public String getUrl()
public void setUrl(String url)
public LoginUrl getLoginUrl()
public void setLoginUrl(LoginUrl loginUrl)
public String getCallbackData()
public void setCallbackData(String callbackData)
public CallbackGame getCallbackGame()
public void setCallbackGame(CallbackGame callbackGame)
public Boolean getRequestContact()
public void setRequestContact(Boolean requestContact)
public Boolean getRequestLocation()
public void setRequestLocation(Boolean requestLocation)
public static InlineKeyboardButton.Builder builder()
Apache Camel