Class: TD::Types::ChatActiveStories

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

Overview

Describes active stories posted by a chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_idInteger

Identifier of the chat that posted the stories.

Returns:

  • (Integer)

    the current value of chat_id



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

def chat_id
  @chat_id
end

#listTD::Types::StoryList?

Identifier of the story list in which the stories are shown; may be null if the stories aren’t shown in a story list.

Returns:



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

def list
  @list
end

#max_read_story_idInteger

Identifier of the last read active story.

Returns:

  • (Integer)

    the current value of max_read_story_id



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

def max_read_story_id
  @max_read_story_id
end

#orderInteger

A parameter used to determine order of the stories in the story list; 0 if the stories doesn’t need to be shown in the story list. Stories must be sorted by the pair (order, story_sender_chat_id) in descending order.

Returns:

  • (Integer)

    the current value of order



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

def order
  @order
end

#storiesArray<TD::Types::StoryInfo>

Basic information about the stories; use getStory to get full information about the stories. The stories are in chronological order (i.e., in order of increasing story identifiers).

Returns:



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

def stories
  @stories
end