public class SetChatStickerSet extends BotApiMethod<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
SetChatStickerSet() |
SetChatStickerSet(Long chatId) |
SetChatStickerSet(String chatId,
String stickerSetName) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getChatId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
String |
getStickerSetName() |
SetChatStickerSet |
setChatId(Long chatId) |
SetChatStickerSet |
setChatId(String chatId) |
SetChatStickerSet |
setStickerSetName(String stickerSetName) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public SetChatStickerSet()
public SetChatStickerSet(Long chatId)
public String getChatId()
public SetChatStickerSet setChatId(String chatId)
public SetChatStickerSet setChatId(Long chatId)
public String getStickerSetName()
public SetChatStickerSet setStickerSetName(String stickerSetName)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Boolean>public Boolean deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Boolean>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2019. All rights reserved.