public class SendPhoto extends PartialBotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
CAPTION_FIELD |
static String |
CHATID_FIELD |
static String |
DISABLENOTIFICATION_FIELD |
static String |
PARSEMODE_FIELD |
static String |
PATH |
static String |
PHOTO_FIELD |
static String |
REPLYMARKUP_FIELD |
static String |
REPLYTOMESSAGEID_FIELD |
OBJECT_MAPPER| Constructor and Description |
|---|
SendPhoto() |
public static final String PATH
public static final String CHATID_FIELD
public static final String PHOTO_FIELD
public static final String CAPTION_FIELD
public static final String DISABLENOTIFICATION_FIELD
public static final String REPLYTOMESSAGEID_FIELD
public static final String REPLYMARKUP_FIELD
public static final String PARSEMODE_FIELD
public String getChatId()
public String getPhoto()
public String getCaption()
public Integer getReplyToMessageId()
public ReplyKeyboard getReplyMarkup()
public SendPhoto setReplyMarkup(ReplyKeyboard replyMarkup)
public boolean isNewPhoto()
public String getPhotoName()
public File getNewPhotoFile()
public InputStream getNewPhotoStream()
public Boolean getDisableNotification()
public SendPhoto enableNotification()
public SendPhoto disableNotification()
public SendPhoto setNewPhoto(String photoName, InputStream inputStream)
public String getParseMode()
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 © 2018. All rights reserved.