Class TdApi.GetLinkPreview
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.LinkPreview>
dev.voroby.springframework.telegram.client.TdApi.GetLinkPreview
- Enclosing class:
- TdApi
Returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text has no link preview.
Returns LinkPreview
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Options to be used for generation of the link preview; pass null to use default link preview options.Message text with formatting. -
Constructor Summary
ConstructorDescriptionDefault 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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
text
Message text with formatting. -
linkPreviewOptions
Options to be used for generation of the link preview; pass null to use default link preview options. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetLinkPreview
public GetLinkPreview()Default constructor for a function, which returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text has no link preview.Returns
LinkPreview
-
GetLinkPreview
Creates a function, which returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text has no link preview.Returns
LinkPreview
- Parameters:
text
- Message text with formatting.linkPreviewOptions
- Options to be used for generation of the link preview; pass null to use default link preview options.
-
-
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
-