teloxide_core/payloads/delete_messages.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 multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns _True_ on success.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub DeleteMessages (DeleteMessagesSetters) => 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 /// Identifiers of 1-100 messages to delete. See [`DeleteMessage`] for limitations on which messages can be deleted
15 ///
16 /// [`DeleteMessage`]: crate::payloads::DeleteMessage
17 #[serde(with = "crate::types::vec_msg_id_as_vec_int")]
18 pub message_ids: Vec<MessageId> [collect],
19 }
20 }
21}