Class: TD::Types::InputTextQuote

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

Overview

Describes manually chosen quote from another message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#positionInteger

Quote position in the original message in UTF-16 code units.

Returns:

  • (Integer)

    the current value of position



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

def position
  @position
end

#textTD::Types::FormattedText

Text of the quote; 0-getOption(“message_reply_quote_length_max”) characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed to be kept and must be kept in the quote.

Returns:



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

def text
  @text
end