List of all members | Public Fields | Public Types | Public Instance Methods | Static Public Attributes
createForumTopic Class Referencefinal

Inherits Function.

Description

Creates a topic in a forum supergroup chat; requires can_manage_topics administrator or can_create_topics member right in the supergroup.

Returns object_ptr<ForumTopicInfo>.

Public Fields

int53 chat_id_
 Identifier of the chat.
 
string name_
 Name of the topic; 1-128 characters.
 
object_ptr< forumTopicIconicon_
 Icon of the topic. Icon color must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Telegram Premium users can use any custom emoji as topic icon, other users can use only a custom emoji returned by getForumTopicDefaultIcons.
 

Public Types

using ReturnType = object_ptr< forumTopicInfo >
 Typedef for the type returned by the function.
 

Public Instance Methods

 createForumTopic ()
 
 createForumTopic (int53 chat_id_, string const &name_, object_ptr< forumTopicIcon > &&icon_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from 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
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ createForumTopic() [1/2]

Default constructor for a function, which creates a topic in a forum supergroup chat; requires can_manage_topics administrator or can_create_topics member right in the supergroup.

Returns object_ptr<ForumTopicInfo>.

◆ createForumTopic() [2/2]

createForumTopic ( int53  chat_id_,
string const &  name_,
object_ptr< forumTopicIcon > &&  icon_ 
)

Creates a function, which creates a topic in a forum supergroup chat; requires can_manage_topics administrator or can_create_topics member right in the supergroup.

Returns object_ptr<ForumTopicInfo>.

Parameters
[in]chat_id_Identifier of the chat.
[in]name_Name of the topic; 1-128 characters.
[in]icon_Icon of the topic. Icon color must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Telegram Premium users can use any custom emoji as topic icon, other users can use only a custom emoji returned by getForumTopicDefaultIcons.

Method 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: