teloxide-core 0.9.0

Core part of the `teloxide` library - telegram bot API client
Documentation
use serde::{Deserialize, Serialize};

/// This object represents a forum topic.
///
/// [The official docs](https://core.telegram.org/bots/api#forumtopiccreated).
#[serde_with_macros::skip_serializing_none]
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
pub struct ForumTopic {
    /// Unique identifier of the forum topic
    // FIXME: MessageThreadId or something
    pub message_thread_id: i32,

    /// Name of the topic.
    pub name: String,

    /// Color of the topic icon in RGB format.
    // FIXME: use/add a specialized rgb color type?
    #[serde(with = "crate::types::serde_rgb")]
    pub icon_color: [u8; 3],

    /// Unique identifier of the custom emoji shown as the topic icon.
    // FIXME: CustomEmojiId
    pub icon_custom_emoji_id: Option<String>,
}