Class: TD::Types::MessageThreadInfo

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

Overview

Contains information about a message thread.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_idInteger

Identifier of the chat to which the message thread belongs.

Returns:

  • (Integer)

    the current value of chat_id



10
11
12
# File 'lib/tdlib/types/message_thread_info.rb', line 10

def chat_id
  @chat_id
end

#draft_messageTD::Types::DraftMessage?

A draft of a message in the message thread; may be null.

Returns:



10
11
12
# File 'lib/tdlib/types/message_thread_info.rb', line 10

def draft_message
  @draft_message
end

#message_thread_idInteger

Message thread identifier, unique within the chat.

Returns:

  • (Integer)

    the current value of message_thread_id



10
11
12
# File 'lib/tdlib/types/message_thread_info.rb', line 10

def message_thread_id
  @message_thread_id
end

#messagesArray<TD::Types::Message>

The messages from which the thread starts. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id).

Returns:



10
11
12
# File 'lib/tdlib/types/message_thread_info.rb', line 10

def messages
  @messages
end

#reply_infoTD::Types::MessageReplyInfo

Contains information about the message thread.

Returns:



10
11
12
# File 'lib/tdlib/types/message_thread_info.rb', line 10

def reply_info
  @reply_info
end