Package org.drinkless.tdlib
Class TdApi.ChatPhoto
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ChatPhoto
- Enclosing class:
- TdApi
Describes a chat or user profile photo.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintPoint in time (Unix timestamp) when the photo has been added.A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null.static final intIdentifier uniquely determining type of the object.longUnique photo identifier.Photo minithumbnail; may be null.Available variants of the photo in JPEG format, in different size.A small (160x160) animated variant of the photo in MPEG4 format; may be null even if the big animation is available.Sticker-based version of the chat photo; may be null. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes a chat or user profile photo.ChatPhoto(long id, int addedDate, TdApi.Minithumbnail minithumbnail, TdApi.PhotoSize[] sizes, TdApi.AnimatedChatPhoto animation, TdApi.AnimatedChatPhoto smallAnimation, TdApi.ChatPhotoSticker sticker) Describes a chat or user profile photo. -
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
-
id
public long idUnique photo identifier. -
addedDate
public int addedDatePoint in time (Unix timestamp) when the photo has been added. -
minithumbnail
Photo minithumbnail; may be null. -
sizes
Available variants of the photo in JPEG format, in different size. -
animation
A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null. -
smallAnimation
A small (160x160) animated variant of the photo in MPEG4 format; may be null even if the big animation is available. -
sticker
Sticker-based version of the chat photo; may be null. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatPhoto
public ChatPhoto()Describes a chat or user profile photo. -
ChatPhoto
public ChatPhoto(long id, int addedDate, TdApi.Minithumbnail minithumbnail, TdApi.PhotoSize[] sizes, TdApi.AnimatedChatPhoto animation, TdApi.AnimatedChatPhoto smallAnimation, TdApi.ChatPhotoSticker sticker) Describes a chat or user profile photo.- Parameters:
id- Unique photo identifier.addedDate- Point in time (Unix timestamp) when the photo has been added.minithumbnail- Photo minithumbnail; may be null.sizes- Available variants of the photo in JPEG format, in different size.animation- A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null.smallAnimation- A small (160x160) animated variant of the photo in MPEG4 format; may be null even if the big animation is available.sticker- Sticker-based version of the chat photo; may be null.
-
-
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
-