pub async fn create_forum_topic(
chat_id: i64,
name: String,
icon: ForumTopicIcon,
client_id: i32,
) -> Result<ForumTopicInfo, Error>
Expand description
Creates a topic in a forum supergroup chat; requires can_manage_topics administrator or can_create_topics member right in the supergroup
ยงArguments
chat_id
- Identifier of the chatname
- Name of the topic; 1-128 charactersicon
- 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 getForumTopicDefaultIconsclient_id
- The client id to send the request to