conogram/entities/
chat_member_owner.rs

1use serde::{Deserialize, Serialize};
2
3use crate::entities::user::User;
4
5/// Represents a [chat member](https://core.telegram.org/bots/api/#chatmember) that owns the chat and has all administrator privileges.
6///
7/// API Reference: [link](https://core.telegram.org/bots/api/#chatmemberowner)
8#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
9pub struct ChatMemberOwner {
10    /// Information about the user
11    pub user: User,
12
13    /// *True*, if the user's presence in the chat is hidden
14    pub is_anonymous: bool,
15
16    /// *Optional*. Custom title for this user
17    #[serde(default, skip_serializing_if = "Option::is_none")]
18    pub custom_title: Option<String>,
19}
20
21// Divider: all content below this line will be preserved after code regen