public static class TdApi.LinkPreviewOptions extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
forceLargeMedia
True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified.
|
boolean |
forceSmallMedia
True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified.
|
boolean |
isDisabled
True, if link preview must be disabled.
|
boolean |
showAboveText
True, if link preview must be shown above message text; otherwise, the link preview will be shown below the message text; ignored in secret chats.
|
java.lang.String |
url
URL to use for link preview.
|
| Constructor and Description |
|---|
LinkPreviewOptions()
Options to be used for generation of a link preview.
|
LinkPreviewOptions(boolean isDisabled,
java.lang.String url,
boolean forceSmallMedia,
boolean forceLargeMedia,
boolean showAboveText)
Options to be used for generation of a link preview.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean isDisabled
public java.lang.String url
public boolean forceSmallMedia
public boolean forceLargeMedia
public boolean showAboveText
public static final int CONSTRUCTOR
public LinkPreviewOptions()
public LinkPreviewOptions(boolean isDisabled,
java.lang.String url,
boolean forceSmallMedia,
boolean forceLargeMedia,
boolean showAboveText)
isDisabled - True, if link preview must be disabled.url - URL to use for link preview. If empty, then the first URL found in the message text will be used.forceSmallMedia - True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified.forceLargeMedia - True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified.showAboveText - True, if link preview must be shown above message text; otherwise, the link preview will be shown below the message text; ignored in secret chats.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object