public class SendGame extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
SendGame() |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
SendGame |
disableNotification() |
SendGame |
enableNotification() |
String |
getChatId() |
Boolean |
getDisableNotification() |
String |
getGameShortName() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
ReplyKeyboard |
getReplyMarkup() |
Integer |
getReplyToMessageId() |
SendGame |
setChatId(Long chatId) |
SendGame |
setChatId(String chatId) |
SendGame |
setGameShortName(String gameShortName) |
SendGame |
setReplyMarkup(ReplyKeyboard replyMarkup) |
SendGame |
setReplyToMessageId(Integer replyToMessageId) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getChatId()
public Integer getReplyToMessageId()
public ReplyKeyboard getReplyMarkup()
public SendGame setReplyMarkup(ReplyKeyboard replyMarkup)
public Boolean getDisableNotification()
public SendGame enableNotification()
public SendGame disableNotification()
public String getGameShortName()
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Message>public Message deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Message>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2016. All rights reserved.