Class TdApi.RichTextIcon

Enclosing class:
TdApi

public static class TdApi.RichTextIcon extends TdApi.RichText
A small image inside the text.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    The image represented as a document.
    int
    Height of a bounding box in which the image must be shown; 0 if unknown.
    int
    Width of a bounding box in which the image must be shown; 0 if unknown.
  • Constructor Summary

    Constructors
    Constructor
    Description
    A small image inside the text.
    RichTextIcon(TdApi.Document document, int width, int height)
    A small image inside the text.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • document

      public TdApi.Document document
      The image represented as a document. The image can be in GIF, JPEG or PNG format.
    • width

      public int width
      Width of a bounding box in which the image must be shown; 0 if unknown.
    • height

      public int height
      Height of a bounding box in which the image must be shown; 0 if unknown.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • RichTextIcon

      public RichTextIcon()
      A small image inside the text.
    • RichTextIcon

      public RichTextIcon(TdApi.Document document, int width, int height)
      A small image inside the text.
      Parameters:
      document - The image represented as a document. The image can be in GIF, JPEG or PNG format.
      width - Width of a bounding box in which the image must be shown; 0 if unknown.
      height - Height of a bounding box in which the image must be shown; 0 if unknown.
  • 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