Package org.drinkless.tdlib
Class TdApi.InputPhoto
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputPhoto
- Enclosing class:
- TdApi
A photo to be sent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]File identifiers of the stickers added to the photo, if applicable.static final intIdentifier uniquely determining type of the object.intPhoto height; may be replaced by the server.Photo to be sent.Photo thumbnail; pass null to skip thumbnail uploading.Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo.intPhoto width; may be replaced by the server. -
Constructor Summary
ConstructorsConstructorDescriptionA photo to be sent.InputPhoto(TdApi.InputFile photo, TdApi.InputThumbnail thumbnail, TdApi.InputFile video, int[] addedStickerFileIds, int width, int height) A photo to be sent. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
photo
Photo to be sent. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. -
thumbnail
Photo thumbnail; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats. -
video
Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo. -
addedStickerFileIds
public int[] addedStickerFileIdsFile identifiers of the stickers added to the photo, if applicable. -
width
public int widthPhoto width; may be replaced by the server. -
height
public int heightPhoto height; may be replaced by the server. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputPhoto
public InputPhoto()A photo to be sent. -
InputPhoto
public InputPhoto(TdApi.InputFile photo, TdApi.InputThumbnail thumbnail, TdApi.InputFile video, int[] addedStickerFileIds, int width, int height) A photo to be sent.- Parameters:
photo- Photo to be sent. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20.thumbnail- Photo thumbnail; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.video- Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo.addedStickerFileIds- File identifiers of the stickers added to the photo, if applicable.width- Photo width; may be replaced by the server.height- Photo height; may be replaced by the server.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-