Class: TD::Types::MessageReplyTo::Message

Inherits:
TD::Types::MessageReplyTo show all
Defined in:
lib/tdlib/types/message_reply_to/message.rb

Overview

Describes a message replied by a given message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_idInteger

The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat.

Returns:

  • (Integer)

    the current value of chat_id



18
19
20
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18

def chat_id
  @chat_id
end

#contentTD::Types::MessageContent?

Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media. Can be only one of the following types: messageAnimation, messageAudio, messageContact, messageDice, messageDocument, messageGame, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messagePremiumGiveaway, messagePremiumGiveawayWinners, messageSticker, messageStory, TD::Types::MessageContent::Text (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote.

Returns:



18
19
20
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18

def content
  @content
end

#message_idInteger

The identifier of the message; may be 0 if the replied message is in unknown chat.

Returns:

  • (Integer)

    the current value of message_id



18
19
20
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18

def message_id
  @message_id
end

#originTD::Types::MessageOrigin?

Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat.

Returns:



18
19
20
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18

def origin
  @origin
end

#origin_send_dateInteger

Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat.

Returns:

  • (Integer)

    the current value of origin_send_date



18
19
20
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18

def origin_send_date
  @origin_send_date
end

#quoteTD::Types::TextQuote?

Chosen quote from the replied message; may be null if none.

Returns:



18
19
20
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18

def quote
  @quote
end