rustigram_types/forum.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4/// A topic in a Telegram forum supergroup.
5///
6/// Forum topics are the individual discussion threads inside a supergroup
7/// with `is_forum = true`. Returned by [`createForumTopic`](https://core.telegram.org/bots/api#createforumtopic).
8pub struct ForumTopic {
9 /// Unique identifier of the forum topic thread.
10 pub message_thread_id: i64,
11 /// Name of the topic (1–128 characters).
12 pub name: String,
13 /// Color of the topic icon as an RGB integer.
14 pub icon_color: u32,
15 /// Custom emoji identifier used as the topic icon.
16 pub icon_custom_emoji_id: Option<String>,
17}