public class SendGame extends BotApiMethod<Message>
Modifier and Type | Field and Description |
---|---|
static String |
PATH |
METHOD_FIELD
OBJECT_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()
BotApiMethod
getMethod
in class BotApiMethod<Message>
public Message deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethod
deserializeResponse
in class PartialBotApiMethod<Message>
answer
- Json answer receivedTelegramApiRequestException
public void validate() throws TelegramApiValidationException
Validable
TelegramApiValidationException
- If any mandatory field is emptyCopyright © 2017. All rights reserved.