Skip to main content

teloxide_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, Recipient, True};
6
7impl_payload! {
8    /// Use this method to delete an ephemeral message. Returns True on success.
9    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10    pub DeleteEphemeralMessage (DeleteEphemeralMessageSetters) => True {
11        required {
12            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`).
13            pub chat_id: Recipient [into],
14            /// Identifier of the user who received the message
15            pub receiver_user_id: i64,
16            /// Unique identifier of the ephemeral message to delete
17            #[serde(with = "crate::types::msg_id_as_int")]
18            pub ephemeral_message_id: MessageId,
19        }
20    }
21}