Class: TD::Types::MessageReplyTo::Message
- Inherits:
-
TD::Types::MessageReplyTo
- Object
- Dry::Struct
- Base
- TD::Types::MessageReplyTo
- TD::Types::MessageReplyTo::Message
- Defined in:
- lib/tdlib/types/message_reply_to/message.rb
Overview
Describes a message replied by a given message.
Instance Attribute Summary collapse
-
#chat_id ⇒ Integer
The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat.
-
#content ⇒ TD::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.
-
#message_id ⇒ Integer
The identifier of the message; may be 0 if the replied message is in unknown chat.
-
#origin ⇒ TD::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.
-
#origin_send_date ⇒ Integer
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.
-
#quote ⇒ TD::Types::TextQuote?
Chosen quote from the replied message; may be null if none.
Method Summary
Methods inherited from Base
Instance Attribute Details
#chat_id ⇒ Integer
The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat.
18 19 20 |
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18 def chat_id @chat_id end |
#content ⇒ TD::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.
18 19 20 |
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18 def content @content end |
#message_id ⇒ Integer
The identifier of the message; may be 0 if the replied message is in unknown chat.
18 19 20 |
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18 def @message_id end |
#origin ⇒ TD::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.
18 19 20 |
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18 def origin @origin end |
#origin_send_date ⇒ Integer
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.
18 19 20 |
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18 def origin_send_date @origin_send_date end |
#quote ⇒ TD::Types::TextQuote?
Chosen quote from the replied message; may be null if none.
18 19 20 |
# File 'lib/tdlib/types/message_reply_to/message.rb', line 18 def quote @quote end |