telegram_bots_api/api/params/
create_forum_topic.rs

1use crate::api::enums::chat_uid::ChatUId;
2use serde::Serialize;
3/// <https://core.telegram.org/bots/api#createforumtopic>
4/// Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns information about the created topic as a ForumTopic object.
5#[derive(Debug, Serialize, Default)]
6pub struct CreateForumTopic {
7    pub chat_id: ChatUId,
8    pub name: String,
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub icon_color: Option<i64>,
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub icon_custom_emoji_id: Option<String>,
13}