teloxide_core/payloads/
set_user_emoji_status.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use chrono::{DateTime, Utc};
4use serde::Serialize;
5
6use crate::types::{CustomEmojiId, True, UserId};
7
8impl_payload! {
9    /// Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method [requestEmojiStatusAccess]. Returns True on success.
10    ///
11    /// [requestEmojiStatusAccess]: https://core.telegram.org/bots/webapps#initializing-mini-apps
12    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13    pub SetUserEmojiStatus (SetUserEmojiStatusSetters) => True {
14        required {
15            /// Unique identifier of the target user
16            pub user_id: UserId,
17        }
18        optional {
19            /// Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status
20            pub emoji_status_custom_emoji_id: CustomEmojiId,
21            /// Expiration date of the emoji status, if any
22            #[serde(with = "crate::types::serde_opt_date_from_unix_timestamp")]
23            pub emoji_status_expiration_date: DateTime<Utc> [into],
24        }
25    }
26}