tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::createForumTopic Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::createForumTopic:
td::td_api::Function td::TlObject

Public Types

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

Public Member Functions

 createForumTopic ()
 
 createForumTopic (int53 chat_id_, string const &name_, bool is_name_implicit_, object_ptr< forumTopicIcon > &&icon_)
 
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.
 
string name_
 Name of the topic; 1-128 characters.
 
bool is_name_implicit_
 Pass true if the name of the topic wasn&#x27;t entered explicitly; for chats with bots only.
 
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.
 

Static Public Attributes

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

Detailed Description

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

Returns object_ptr<ForumTopicInfo>.

Definition at line 93717 of file td_api.h.

Member Typedef Documentation

◆ ReturnType

Typedef for the type returned by the function.

Definition at line 93759 of file td_api.h.

Constructor & Destructor Documentation

◆ createForumTopic() [1/2]

td::td_api::createForumTopic::createForumTopic ( )

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

Returns object_ptr<ForumTopicInfo>.

◆ createForumTopic() [2/2]

td::td_api::createForumTopic::createForumTopic ( int53  chat_id_,
string const &  name_,
bool  is_name_implicit_,
object_ptr< forumTopicIcon > &&  icon_ 
)

Creates a function, which creates a topic in a forum supergroup chat or a chat with a bot with topics; 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]is_name_implicit_Pass true if the name of the topic wasn&#x27;t entered explicitly; for chats with bots only.
[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.

Member Function Documentation

◆ store()

void td::td_api::createForumTopic::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.

Member Data Documentation

◆ chat_id_

int53 td::td_api::createForumTopic::chat_id_

Identifier of the chat.

Definition at line 93728 of file td_api.h.

◆ icon_

object_ptr<forumTopicIcon> td::td_api::createForumTopic::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.

Definition at line 93734 of file td_api.h.

◆ ID

const std::int32_t td::td_api::createForumTopic::ID = -15242103
static

Identifier uniquely determining a type of the object.

Definition at line 93756 of file td_api.h.

◆ is_name_implicit_

bool td::td_api::createForumTopic::is_name_implicit_

Pass true if the name of the topic wasn&#x27;t entered explicitly; for chats with bots only.

Definition at line 93732 of file td_api.h.

◆ name_

string td::td_api::createForumTopic::name_

Name of the topic; 1-128 characters.

Definition at line 93730 of file td_api.h.


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