public class SendSticker extends PartialBotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
CHATID_FIELD |
static String |
DISABLENOTIFICATION_FIELD |
static String |
PATH |
static String |
REPLYMARKUP_FIELD |
static String |
REPLYTOMESSAGEID_FIELD |
static String |
STICKER_FIELD |
OBJECT_MAPPER| Constructor and Description |
|---|
SendSticker() |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
SendSticker |
disableNotification() |
SendSticker |
enableNotification() |
String |
getChatId() |
Boolean |
getDisableNotification() |
ReplyKeyboard |
getReplyMarkup() |
Integer |
getReplyToMessageId() |
InputFile |
getSticker() |
SendSticker |
setChatId(Long chatId) |
SendSticker |
setChatId(String chatId) |
SendSticker |
setReplyMarkup(ReplyKeyboard replyMarkup) |
SendSticker |
setReplyToMessageId(Integer replyToMessageId) |
SendSticker |
setSticker(File file) |
SendSticker |
setSticker(InputFile sticker) |
SendSticker |
setSticker(String sticker) |
SendSticker |
setSticker(String stickerName,
InputStream inputStream) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public static final String CHATID_FIELD
public static final String STICKER_FIELD
public static final String DISABLENOTIFICATION_FIELD
public static final String REPLYTOMESSAGEID_FIELD
public static final String REPLYMARKUP_FIELD
public String getChatId()
public SendSticker setChatId(String chatId)
public SendSticker setChatId(Long chatId)
public InputFile getSticker()
public SendSticker setSticker(String sticker)
public Integer getReplyToMessageId()
public SendSticker setReplyToMessageId(Integer replyToMessageId)
public ReplyKeyboard getReplyMarkup()
public SendSticker setReplyMarkup(ReplyKeyboard replyMarkup)
public SendSticker setSticker(InputFile sticker)
public SendSticker setSticker(File file)
public SendSticker setSticker(String stickerName, InputStream inputStream)
public Boolean getDisableNotification()
public SendSticker enableNotification()
public SendSticker disableNotification()
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 © 2019. All rights reserved.