ronami_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;
7use crate::types::True;
8use crate::types::UserId;
9
10impl_payload! {
11 /// 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.
12 ///
13 /// [requestEmojiStatusAccess]: https://core.telegram.org/bots/webapps#initializing-mini-apps
14 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
15 pub SetUserEmojiStatus (SetUserEmojiStatusSetters) => True {
16 required {
17 /// Unique identifier of the target user
18 pub user_id: UserId,
19 }
20 optional {
21 /// Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status
22 pub emoji_status_custom_emoji_id: CustomEmojiId,
23 /// Expiration date of the emoji status, if any
24 #[serde(with = "crate::types::serde_opt_date_from_unix_timestamp")]
25 pub emoji_status_expiration_date: DateTime<Utc> [into],
26 }
27 }
28}