Class: TD::Types::ForumTopic

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

Overview

Describes a forum 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:



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def draft_message
  @draft_message
end

#infoTD::Types::ForumTopicInfo

Basic information about the topic.

Returns:



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def info
  @info
end

#is_pinnedBoolean

True, if the topic is pinned in the topic list.

Returns:

  • (Boolean)

    the current value of is_pinned



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def is_pinned
  @is_pinned
end

#last_messageTD::Types::Message?

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

Returns:



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def last_message
  @last_message
end

#last_read_inbox_message_idInteger

Identifier of the last read incoming message.

Returns:

  • (Integer)

    the current value of last_read_inbox_message_id



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def last_read_inbox_message_id
  @last_read_inbox_message_id
end

#last_read_outbox_message_idInteger

Identifier of the last read outgoing message.

Returns:

  • (Integer)

    the current value of last_read_outbox_message_id



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def last_read_outbox_message_id
  @last_read_outbox_message_id
end

#notification_settingsTD::Types::ChatNotificationSettings

Notification settings for the topic.

Returns:



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def notification_settings
  @notification_settings
end

#unread_countInteger

Number of unread messages in the topic.

Returns:

  • (Integer)

    the current value of unread_count



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def unread_count
  @unread_count
end

#unread_mention_countInteger

Number of unread messages with a mention/reply in the topic.

Returns:

  • (Integer)

    the current value of unread_mention_count



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def unread_mention_count
  @unread_mention_count
end

#unread_reaction_countInteger

Number of messages with unread reactions in the topic.

Returns:

  • (Integer)

    the current value of unread_reaction_count



14
15
16
# File 'lib/tdlib/types/forum_topic.rb', line 14

def unread_reaction_count
  @unread_reaction_count
end