public class InputMediaPhoto extends InputMedia<InputMediaPhoto>
TYPE_FIELD| Constructor and Description |
|---|
InputMediaPhoto() |
InputMediaPhoto(String media,
String caption) |
| Modifier and Type | Method and Description |
|---|---|
String |
getType() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
getCaption, getMedia, getMediaFile, getMediaName, getNewMediaStream, getParseMode, isNewMedia, setCaption, setMedia, setMedia, setMedia, setParseModepublic String getType()
getType in class InputMedia<InputMediaPhoto>public void validate()
throws TelegramApiValidationException
Validablevalidate in interface Validablevalidate in class InputMedia<InputMediaPhoto>TelegramApiValidationException - If any mandatory field is emptyCopyright © 2018. All rights reserved.