TDLib
Loading...
Searching...
No Matches
td::td_api::chatActiveStories Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 chatActiveStories ()
 
 chatActiveStories (int53 chat_id_, object_ptr< StoryList > &&list_, int53 order_, int32 max_read_story_id_, array< object_ptr< storyInfo > > &&stories_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

int53 chat_id_
 Identifier of the chat that posted the stories.
 
object_ptr< StoryListlist_
 Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list.
 
int53 order_
 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.
 
int32 max_read_story_id_
 Identifier of the last read active story.
 
array< object_ptr< storyInfo > > stories_
 Basic information about the stories; use getStory to get full information about the stories. The stories are in a chronological order (i.e., in order of increasing story identifiers).
 

Static Public Attributes

static const std::int32_t ID = -1398869529
 Identifier uniquely determining a type of the object.
 

Detailed Description

Describes active stories posted by a chat.

Constructor & Destructor Documentation

◆ chatActiveStories() [1/2]

td::td_api::chatActiveStories::chatActiveStories ( )

Describes active stories posted by a chat.

◆ chatActiveStories() [2/2]

td::td_api::chatActiveStories::chatActiveStories ( int53  chat_id_,
object_ptr< StoryList > &&  list_,
int53  order_,
int32  max_read_story_id_,
array< object_ptr< storyInfo > > &&  stories_ 
)

Describes active stories posted by a chat.

Parameters
[in]chat_id_Identifier of the chat that posted the stories.
[in]list_Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list.
[in]order_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.
[in]max_read_story_id_Identifier of the last read active story.
[in]stories_Basic information about the stories; use getStory to get full information about the stories. The stories are in a chronological order (i.e., in order of increasing story identifiers).

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::chatActiveStories::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::chatActiveStories::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.


The documentation for this class was generated from the following file: