TDLib
Loading...
Searching...
No Matches
forumTopicInfo Class Referencefinal

Inherits Object.

Description

Contains basic information about a forum topic.

Public Member Functions

 forumTopicInfo ()
 forumTopicInfo (int53 chat_id_, int32 forum_topic_id_, string const &name_, object_ptr< forumTopicIcon > &&icon_, int32 creation_date_, object_ptr< MessageSender > &&creator_id_, bool is_general_, bool is_outgoing_, bool is_closed_, bool is_hidden_, bool is_name_implicit_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

int53 chat_id_
 Identifier of a forum supergroup chat or a chat with a bot to which the topic belongs.
int32 creation_date_
 Point in time (Unix timestamp) when the topic was created.
object_ptr< MessageSender > creator_id_
 Identifier of the creator of the topic.
int32 forum_topic_id_
 Forum topic identifier of the topic.
object_ptr< forumTopicIcon > icon_
 Icon of the topic.
bool is_closed_
 True, if the topic is closed. If the topic is closed, then the user must have can_manage_topics administrator right in the supergroup or must be the creator of the topic to send messages there.
bool is_general_
 True, if the topic is the General topic.
bool is_hidden_
 True, if the topic is hidden above the topic list and closed; for General topic only.
bool is_name_implicit_
 True, if the name of the topic wasn't added explicitly.
bool is_outgoing_
 True, if the topic was created by the current user.
string name_
 Name of the topic.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ forumTopicInfo() [1/2]

forumTopicInfo ( )

Contains basic information about a forum topic.

◆ forumTopicInfo() [2/2]

forumTopicInfo ( int53 chat_id_,
int32 forum_topic_id_,
string const & name_,
object_ptr< forumTopicIcon > && icon_,
int32 creation_date_,
object_ptr< MessageSender > && creator_id_,
bool is_general_,
bool is_outgoing_,
bool is_closed_,
bool is_hidden_,
bool is_name_implicit_ )

Contains basic information about a forum topic.

Parameters
[in]chat_id_Identifier of a forum supergroup chat or a chat with a bot to which the topic belongs.
[in]forum_topic_id_Forum topic identifier of the topic.
[in]name_Name of the topic.
[in]icon_Icon of the topic.
[in]creation_date_Point in time (Unix timestamp) when the topic was created.
[in]creator_id_Identifier of the creator of the topic.
[in]is_general_True, if the topic is the General topic.
[in]is_outgoing_True, if the topic was created by the current user.
[in]is_closed_True, if the topic is closed. If the topic is closed, then the user must have can_manage_topics administrator right in the supergroup or must be the creator of the topic to send messages there.
[in]is_hidden_True, if the topic is hidden above the topic list and closed; for General topic only.
[in]is_name_implicit_True, if the name of the topic wasn't added explicitly.

Member Function Documentation

◆ store()

void 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 TlObject.


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