conogram 0.2.19

An async wrapper for Telegram Bot API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

use crate::entities::user::User;

/// Represents a [chat member](https://core.telegram.org/bots/api/#chatmember) that has no additional privileges or restrictions.
///
/// API Reference: [link](https://core.telegram.org/bots/api/#chatmembermember)
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct ChatMemberMember {
    /// Information about the user
    pub user: User,

    /// *Optional*. Date when the user's subscription will expire; Unix time
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub until_date: Option<i64>,
}

// Divider: all content below this line will be preserved after code regen