public static class TdApi.MessagePhoto extends TdApi.MessageContent
| Modifier and Type | Field and Description |
|---|---|
TdApi.FormattedText |
caption
Photo caption.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
hasSpoiler
True, if the photo preview must be covered by a spoiler animation.
|
boolean |
isSecret
True, if the photo must be blurred and must be shown only while tapped.
|
TdApi.Photo |
photo
The photo.
|
boolean |
showCaptionAboveMedia
True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo.
|
| Constructor and Description |
|---|
MessagePhoto()
A photo message.
|
MessagePhoto(TdApi.Photo photo,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia,
boolean hasSpoiler,
boolean isSecret)
A photo message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.Photo photo
public TdApi.FormattedText caption
public boolean showCaptionAboveMedia
public boolean hasSpoiler
public boolean isSecret
public static final int CONSTRUCTOR
public MessagePhoto()
public MessagePhoto(TdApi.Photo photo, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret)
photo - The photo.caption - Photo caption.showCaptionAboveMedia - True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo.hasSpoiler - True, if the photo preview must be covered by a spoiler animation.isSecret - True, if the photo must be blurred and must be shown only while tapped.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object