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, isNewMedia, setCaption, setMedia, setMedia, setMediapublic 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 © 2017. All rights reserved.