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



12
13
14
# File 'lib/tdlib/types/message_thread_info.rb', line 12

def chat_id
  @chat_id
end

#draft_messageTD::Types::DraftMessage?

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

Returns:



12
13
14
# File 'lib/tdlib/types/message_thread_info.rb', line 12

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



12
13
14
# File 'lib/tdlib/types/message_thread_info.rb', line 12

def message_thread_id
  @message_thread_id
end

#messagesArray<TD::Types::Message>

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

Returns:



12
13
14
# File 'lib/tdlib/types/message_thread_info.rb', line 12

def messages
  @messages
end

#reply_infoTD::Types::MessageReplyInfo?

Information about the message thread; may be null for forum topic threads.

Returns:



12
13
14
# File 'lib/tdlib/types/message_thread_info.rb', line 12

def reply_info
  @reply_info
end

#unread_message_countInteger

Approximate number of unread messages in the message thread.

Returns:

  • (Integer)

    the current value of unread_message_count



12
13
14
# File 'lib/tdlib/types/message_thread_info.rb', line 12

def unread_message_count
  @unread_message_count
end