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 class
InlineKeyboardButton.Builder
-
Constructor Summary
Constructors Constructor Description InlineKeyboardButton()
InlineKeyboardButton(String text, String url, LoginUrl loginUrl, String callbackData, CallbackGame callbackGame)
BuildsInlineKeyboardButton
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InlineKeyboardButton.Builder
builder()
boolean
equals(Object o)
String
getCallbackData()
CallbackGame
getCallbackGame()
LoginUrl
getLoginUrl()
String
getText()
String
getUrl()
int
hashCode()
void
setCallbackData(String callbackData)
void
setCallbackGame(CallbackGame callbackGame)
void
setLoginUrl(LoginUrl loginUrl)
void
setText(String text)
void
setUrl(String url)
String
toString()
-
-
-
Constructor Detail
-
InlineKeyboardButton
public InlineKeyboardButton()
-
InlineKeyboardButton
public InlineKeyboardButton(String text, String url, LoginUrl loginUrl, String callbackData, CallbackGame callbackGame)
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.
-
-
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)
-
builder
public static InlineKeyboardButton.Builder builder()
-
-