Class: TD::Types::RichText::Icon

Inherits:
TD::Types::RichText show all
Defined in:
lib/tdlib/types/rich_text/icon.rb

Overview

A small image inside the text.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#documentTD::Types::Document

The image represented as a document. The image can be in GIF, JPEG or PNG format.

Returns:



8
9
10
# File 'lib/tdlib/types/rich_text/icon.rb', line 8

def document
  @document
end

#heightInteger

Height of a bounding box in which the image should be shown; 0 if unknown.

Returns:

  • (Integer)

    the current value of height



8
9
10
# File 'lib/tdlib/types/rich_text/icon.rb', line 8

def height
  @height
end

#widthInteger

Width of a bounding box in which the image should be shown; 0 if unknown.

Returns:

  • (Integer)

    the current value of width



8
9
10
# File 'lib/tdlib/types/rich_text/icon.rb', line 8

def width
  @width
end