Class TdApi.RichTextIcon

  • Enclosing class:
    TdApi

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

      • 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:
        Constant Field Values
    • Constructor Detail

      • 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.