public static class TdApi.InputMessagePhoto extends TdApi.InputMessageContent
TdApi.InputMessageContent.Constructors
Modifier and Type | Field and Description |
---|---|
int[] |
addedStickerFileIds
File identifiers of the stickers added to the photo, if applicable.
|
TdApi.FormattedText |
caption
Photo caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
height
Photo height.
|
TdApi.InputFile |
photo
Photo to send.
|
TdApi.InputThumbnail |
thumbnail
Photo thumbnail to be sent; pass null to skip thumbnail uploading.
|
int |
ttl
Photo TTL (Time To Live), in seconds (0-60).
|
int |
width
Photo width.
|
Constructor and Description |
---|
InputMessagePhoto()
A photo message.
|
InputMessagePhoto(TdApi.InputFile photo,
TdApi.InputThumbnail thumbnail,
int[] addedStickerFileIds,
int width,
int height,
TdApi.FormattedText caption,
int ttl)
A photo message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.InputFile photo
public TdApi.InputThumbnail thumbnail
public int[] addedStickerFileIds
public int width
public int height
public TdApi.FormattedText caption
public int ttl
public static final int CONSTRUCTOR
public InputMessagePhoto()
public InputMessagePhoto(TdApi.InputFile photo, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int width, int height, TdApi.FormattedText caption, int ttl)
photo
- Photo to send.thumbnail
- Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.addedStickerFileIds
- File identifiers of the stickers added to the photo, if applicable.width
- Photo width.height
- Photo height.caption
- Photo caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.ttl
- Photo TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats.public int getConstructor()
getConstructor
in class TdApi.InputMessageContent