public class UploadStickerFile extends PartialBotApiMethod<File>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
static String |
PNGSTICKER_FIELD |
static String |
USERID_FIELD |
OBJECT_MAPPER| Constructor and Description |
|---|
UploadStickerFile() |
UploadStickerFile(Integer userId) |
| Modifier and Type | Method and Description |
|---|---|
File |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
InputFile |
getPngSticker() |
Integer |
getUserId() |
UploadStickerFile |
setPngSticker(File pngSticker) |
UploadStickerFile |
setPngSticker(String pngStickerName,
InputStream pngStickerStream) |
UploadStickerFile |
setUserId(Integer userId) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public static final String USERID_FIELD
public static final String PNGSTICKER_FIELD
public UploadStickerFile()
public UploadStickerFile(Integer userId)
public File deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<File>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptypublic Integer getUserId()
public UploadStickerFile setUserId(Integer userId)
public InputFile getPngSticker()
public UploadStickerFile setPngSticker(File pngSticker)
public UploadStickerFile setPngSticker(String pngStickerName, InputStream pngStickerStream)
Copyright © 2019. All rights reserved.