Class: TD::Types::SavedMessagesTopic

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

Overview

Contains information about a Saved Messages topic.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#draft_messageTD::Types::DraftMessage?

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

Returns:



11
12
13
# File 'lib/tdlib/types/saved_messages_topic.rb', line 11

def draft_message
  @draft_message
end

#idInteger

Unique topic identifier.

Returns:

  • (Integer)

    the current value of id



11
12
13
# File 'lib/tdlib/types/saved_messages_topic.rb', line 11

def id
  @id
end

#is_pinnedBoolean

True, if the topic is pinned.

Returns:

  • (Boolean)

    the current value of is_pinned



11
12
13
# File 'lib/tdlib/types/saved_messages_topic.rb', line 11

def is_pinned
  @is_pinned
end

#last_messageTD::Types::Message?

Last message in the topic; may be null if none or unknown.

Returns:



11
12
13
# File 'lib/tdlib/types/saved_messages_topic.rb', line 11

def last_message
  @last_message
end

#orderInteger

A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order.

Returns:

  • (Integer)

    the current value of order



11
12
13
# File 'lib/tdlib/types/saved_messages_topic.rb', line 11

def order
  @order
end

#typeTD::Types::SavedMessagesTopicType

Type of the topic.

Returns:



11
12
13
# File 'lib/tdlib/types/saved_messages_topic.rb', line 11

def type
  @type
end