teloxide_core/payloads/delete_business_messages.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{BusinessConnectionId, MessageId, True};
6
7impl_payload! {
8 /// Delete messages on behalf of a business account. Requires the _can_delete_sent_messages_ business bot right to delete messages sent by the bot itself, or the _can_delete_all_messages_ business bot right to delete any message. Returns _true_ on success.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub DeleteBusinessMessages (DeleteBusinessMessagesSetters) => True {
11 required {
12 /// Unique identifier of the business connection on behalf of which to delete the messages
13 pub business_connection_id: BusinessConnectionId,
14 /// List of 1-100 identifiers of messages to delete. All messages must be from the same chat. 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}