Package org.drinkless.tdlib
Class TdApi.PageBlockPhoto
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.PageBlock
org.drinkless.tdlib.TdApi.PageBlockPhoto
- Enclosing class:
- TdApi
A photo.
-
Field Summary
FieldsModifier and TypeFieldDescriptionPhoto caption; may be null if none.static final intIdentifier uniquely determining type of the object.booleanTrue, if the photo preview must be covered by a spoiler animation.Photo file; may be null.URL that needs to be opened when the photo is clicked; instant view only. -
Constructor Summary
ConstructorsConstructorDescriptionA photo.PageBlockPhoto(TdApi.Photo photo, TdApi.PageBlockCaption caption, String url, boolean hasSpoiler) A 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
-
photo
Photo file; may be null. -
caption
Photo caption; may be null if none. -
url
URL that needs to be opened when the photo is clicked; instant view only. -
hasSpoiler
public boolean hasSpoilerTrue, if the photo preview must be covered by a spoiler animation. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PageBlockPhoto
public PageBlockPhoto()A photo. -
PageBlockPhoto
public PageBlockPhoto(TdApi.Photo photo, TdApi.PageBlockCaption caption, String url, boolean hasSpoiler) A photo.- Parameters:
photo- Photo file; may be null.caption- Photo caption; may be null if none.url- URL that needs to be opened when the photo is clicked; instant view only.hasSpoiler- True, if the photo preview must be covered by a spoiler animation.
-
-
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
-