Class: TD::Types::FormattedText

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/formatted_text.rb

Overview

A text with some entities.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#entitiesArray<TD::Types::TextEntity>

Entities contained in the text.

Returns:



6
7
8
# File 'lib/tdlib/types/formatted_text.rb', line 6

def entities
  @entities
end

#textString

The text.

Returns:

  • (String)

    the current value of text



6
7
8
# File 'lib/tdlib/types/formatted_text.rb', line 6

def text
  @text
end