Skip to main content

ronami_core/payloads/
delete_ephemeral_message.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::MessageId;
6use crate::types::Recipient;
7use crate::types::True;
8use crate::types::UserId;
9
10impl_payload! {
11    /// Use this method to delete an ephemeral message. Note that it is not guaranteed that the user will receive the message deletion event, especially if they are offline. Returns True on success.
12    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13    pub DeleteEphemeralMessage (DeleteEphemeralMessageSetters) => True {
14        required {
15            /// Unique identifier for the target chat or username of the target supergroup in the format `@username`
16            pub chat_id: Recipient [into],
17            /// Identifier of the user who received the message
18            pub receiver_user_id: UserId,
19            /// Identifier of the ephemeral message to delete
20            #[serde(flatten)]
21            pub ephemeral_message_id: MessageId,
22        }
23    }
24}