public static class TdApi.GetLinkPreview extends TdApi.Function<TdApi.LinkPreview>
Returns LinkPreview
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.LinkPreviewOptions |
linkPreviewOptions
Options to be used for generation of the link preview; pass null to use default link preview options.
|
TdApi.FormattedText |
text
Message text with formatting.
|
| Constructor and Description |
|---|
GetLinkPreview()
Default constructor for a function, which returns a link preview by the text of a message.
|
GetLinkPreview(TdApi.FormattedText text,
TdApi.LinkPreviewOptions linkPreviewOptions)
Creates a function, which returns a link preview by the text of a message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.FormattedText text
public TdApi.LinkPreviewOptions linkPreviewOptions
public static final int CONSTRUCTOR
public GetLinkPreview()
Returns LinkPreview
public GetLinkPreview(TdApi.FormattedText text, TdApi.LinkPreviewOptions linkPreviewOptions)
Returns LinkPreview
text - Message text with formatting.linkPreviewOptions - Options to be used for generation of the link preview; pass null to use default link preview options.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object