Package org.drinkless.tdlib
Class TdApi.GetWebPagePreview
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.GetWebPagePreview
-
- Enclosing class:
- TdApi
public static class TdApi.GetWebPagePreview extends TdApi.Function
Returns a web page preview by the text of the message. Do not call this function too often. Returns a 404 error if the web page has no preview.Returns
WebPage
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.FormattedTexttextMessage text with formatting.
-
Constructor Summary
Constructors Constructor Description GetWebPagePreview()Default constructor for a function, which returns a web page preview by the text of the message.GetWebPagePreview(TdApi.FormattedText text)Creates a function, which returns a web page preview by the text of the message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
text
public TdApi.FormattedText text
Message text with formatting.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetWebPagePreview
public GetWebPagePreview()
Default constructor for a function, which returns a web page preview by the text of the message. Do not call this function too often. Returns a 404 error if the web page has no preview.Returns
WebPage
-
GetWebPagePreview
public GetWebPagePreview(TdApi.FormattedText text)
Creates a function, which returns a web page preview by the text of the message. Do not call this function too often. Returns a 404 error if the web page has no preview.Returns
WebPage- Parameters:
text- Message text with formatting.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-