Skip to main content

ronami_core/payloads/
delete_messages.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;
8
9impl_payload! {
10    /// Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns _True_ on success.
11    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12    pub DeleteMessages (DeleteMessagesSetters) => True {
13        required {
14            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`).
15            pub chat_id: Recipient [into],
16            /// Identifiers of 1-100 messages to delete. See [`DeleteMessage`] for limitations on which messages can be deleted
17            ///
18            /// [`DeleteMessage`]: crate::payloads::DeleteMessage
19            #[serde(with = "crate::types::vec_msg_id_as_vec_int")]
20            pub message_ids: Vec<MessageId> [collect],
21        }
22    }
23}