ronami_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;
6use crate::types::MessageId;
7use crate::types::True;
8
9impl_payload! {
10 /// 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.
11 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12 pub DeleteBusinessMessages (DeleteBusinessMessagesSetters) => True {
13 required {
14 /// Unique identifier of the business connection on behalf of which to delete the messages
15 pub business_connection_id: BusinessConnectionId,
16 /// 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
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}