public static class TdApi.LinkPreview extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
author
Author of the content.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.FormattedText |
description
Description of the content.
|
java.lang.String |
displayUrl
URL to display.
|
boolean |
hasLargeMedia
True, if size of media in the preview can be changed.
|
int |
instantViewVersion
Version of instant view (currently, can be 1 or 2) for the web page; 0 if none.
|
boolean |
showAboveText
True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text.
|
boolean |
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.
|
boolean |
showMediaAboveDescription
True, if media must be shown above link preview description; otherwise, the media must be shown below the description.
|
java.lang.String |
siteName
Short name of the site (e.g., Google Docs, App Store).
|
boolean |
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.
|
java.lang.String |
title
Title of the content.
|
TdApi.LinkPreviewType |
type
Type of the link preview.
|
java.lang.String |
url
Original URL of the link.
|
| Constructor and Description |
|---|
LinkPreview()
Describes a link preview.
|
LinkPreview(java.lang.String url,
java.lang.String displayUrl,
java.lang.String siteName,
java.lang.String title,
TdApi.FormattedText description,
java.lang.String author,
TdApi.LinkPreviewType type,
boolean hasLargeMedia,
boolean showLargeMedia,
boolean showMediaAboveDescription,
boolean skipConfirmation,
boolean showAboveText,
int instantViewVersion)
Describes a link preview.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String url
public java.lang.String displayUrl
public java.lang.String siteName
public java.lang.String title
public TdApi.FormattedText description
public java.lang.String author
public TdApi.LinkPreviewType type
public boolean hasLargeMedia
public boolean showLargeMedia
public boolean showMediaAboveDescription
public boolean skipConfirmation
public boolean showAboveText
public int instantViewVersion
public static final int CONSTRUCTOR
public LinkPreview()
public LinkPreview(java.lang.String url,
java.lang.String displayUrl,
java.lang.String siteName,
java.lang.String title,
TdApi.FormattedText description,
java.lang.String author,
TdApi.LinkPreviewType type,
boolean hasLargeMedia,
boolean showLargeMedia,
boolean showMediaAboveDescription,
boolean skipConfirmation,
boolean showAboveText,
int instantViewVersion)
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.author - Author 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object