Class: TD::Types::TextQuote

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

Overview

Describes manually or automatically chosen quote from another message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_manualBoolean

True, if the quote was manually chosen by the message sender.

Returns:

  • (Boolean)

    the current value of is_manual



9
10
11
# File 'lib/tdlib/types/text_quote.rb', line 9

def is_manual
  @is_manual
end

#positionInteger

Approximate quote position in the original message in UTF-16 code units as specified by the message sender.

Returns:

  • (Integer)

    the current value of position



9
10
11
# File 'lib/tdlib/types/text_quote.rb', line 9

def position
  @position
end

#textTD::Types::FormattedText

Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities can be present in the text.

Returns:



9
10
11
# File 'lib/tdlib/types/text_quote.rb', line 9

def text
  @text
end