Class TdApi.GetLinkPreview

Enclosing class:
TdApi

public static class TdApi.GetLinkPreview extends TdApi.Function<TdApi.LinkPreview>
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 Details

    • text

      public TdApi.FormattedText text
      Message text with formatting.
    • linkPreviewOptions

      public TdApi.LinkPreviewOptions linkPreviewOptions
      Options to be used for generation of the link preview; pass null to use default link preview options.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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

      public GetLinkPreview(TdApi.FormattedText text, TdApi.LinkPreviewOptions linkPreviewOptions)
      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR