public class InlineKeyboardButton extends Object implements InputBotApiObject, Validable
| Constructor and Description |
|---|
InlineKeyboardButton() |
InlineKeyboardButton(String text) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCallbackData() |
CallbackGame |
getCallbackGame() |
Boolean |
getPay() |
String |
getSwitchInlineQuery() |
String |
getSwitchInlineQueryCurrentChat() |
String |
getText() |
String |
getUrl() |
int |
hashCode() |
InlineKeyboardButton |
setCallbackData(String callbackData) |
InlineKeyboardButton |
setCallbackGame(CallbackGame callbackGame) |
InlineKeyboardButton |
setPay(Boolean pay) |
InlineKeyboardButton |
setSwitchInlineQuery(String switchInlineQuery) |
InlineKeyboardButton |
setSwitchInlineQueryCurrentChat(String switchInlineQueryCurrentChat) |
InlineKeyboardButton |
setText(String text) |
InlineKeyboardButton |
setUrl(String url) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public InlineKeyboardButton()
public InlineKeyboardButton(String text)
public String getText()
public InlineKeyboardButton setText(String text)
public String getUrl()
public InlineKeyboardButton setUrl(String url)
public String getCallbackData()
public InlineKeyboardButton setCallbackData(String callbackData)
public String getSwitchInlineQuery()
public InlineKeyboardButton setSwitchInlineQuery(String switchInlineQuery)
public CallbackGame getCallbackGame()
public InlineKeyboardButton setCallbackGame(CallbackGame callbackGame)
public String getSwitchInlineQueryCurrentChat()
public InlineKeyboardButton setSwitchInlineQueryCurrentChat(String switchInlineQueryCurrentChat)
public Boolean getPay()
public InlineKeyboardButton setPay(Boolean pay)
public void validate()
throws TelegramApiValidationException
Validablevalidate in interface ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2018. All rights reserved.