|
TDLib
|
Inherits Function.
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>.
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 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 the chat. | |
| object_ptr< forumTopicIcon > | 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. | |
| bool | is_name_implicit_ |
| Pass true if the name of the topic wasn't entered explicitly; for chats with bots only. | |
| string | name_ |
| Name of the topic; 1-128 characters. | |
Static Public Attributes | |
| static const std::int32_t | ID = -15242103 |
| Identifier uniquely determining a type of the object. | |
| 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 | ( | 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>.
| [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'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. |
|
finalvirtual |