Class TdApi.LinkPreview
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.LinkPreview
- Enclosing class:
- TdApi
Describes a link preview.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Description of the content.URL to display.boolean
True, if size of media in the preview can be changed.int
Version of instant view (currently, can be 1 or 2) for the web page; 0 if none.boolean
True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text.boolean
True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos.boolean
True, if media must be shown above link preview description; otherwise, the media must be shown below the description.Short name of the site (e.g., Google Docs, App Store).boolean
True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear.Title of the content.Type of the link preview.Original URL of the link. -
Constructor Summary
ConstructorDescriptionDescribes a link preview.LinkPreview
(String url, String displayUrl, String siteName, String title, TdApi.FormattedText description, TdApi.LinkPreviewType type, boolean hasLargeMedia, boolean showLargeMedia, boolean showMediaAboveDescription, boolean skipConfirmation, boolean showAboveText, int instantViewVersion) Describes a link preview. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
url
Original URL of the link. -
displayUrl
URL to display. -
siteName
Short name of the site (e.g., Google Docs, App Store). -
title
Title of the content. -
description
Description of the content. -
type
Type of the link preview. -
hasLargeMedia
public boolean hasLargeMediaTrue, if size of media in the preview can be changed. -
showLargeMedia
public boolean showLargeMediaTrue, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos. -
showMediaAboveDescription
public boolean showMediaAboveDescriptionTrue, if media must be shown above link preview description; otherwise, the media must be shown below the description. -
skipConfirmation
public boolean skipConfirmationTrue, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear. -
showAboveText
public boolean showAboveTextTrue, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text. -
instantViewVersion
public int instantViewVersionVersion of instant view (currently, can be 1 or 2) for the web page; 0 if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
LinkPreview
public LinkPreview()Describes a link preview. -
LinkPreview
public LinkPreview(String url, String displayUrl, String siteName, String title, TdApi.FormattedText description, TdApi.LinkPreviewType type, boolean hasLargeMedia, boolean showLargeMedia, boolean showMediaAboveDescription, boolean skipConfirmation, boolean showAboveText, int instantViewVersion) Describes a link preview.- Parameters:
url
- Original URL of the link.displayUrl
- URL to display.siteName
- Short name of the site (e.g., Google Docs, App Store).title
- Title of the content.description
- Description of the content.type
- Type of the link preview.hasLargeMedia
- True, if size of media in the preview can be changed.showLargeMedia
- True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos.showMediaAboveDescription
- True, if media must be shown above link preview description; otherwise, the media must be shown below the description.skipConfirmation
- True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear.showAboveText
- True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text.instantViewVersion
- Version of instant view (currently, can be 1 or 2) for the web page; 0 if none.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-