From f6c957182fc4837b5f67a132ffe8d5520b31b647 Mon Sep 17 00:00:00 2001 From: Akshett Rai Jindal Date: Wed, 21 Aug 2024 10:16:07 +0530 Subject: [PATCH] Add `BusinessMessagesDeleted` struct --- crates/teloxide-core/src/types.rs | 2 ++ .../src/types/business_messages_deleted.rs | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 crates/teloxide-core/src/types/business_messages_deleted.rs diff --git a/crates/teloxide-core/src/types.rs b/crates/teloxide-core/src/types.rs index 54a24e76..c35096da 100644 --- a/crates/teloxide-core/src/types.rs +++ b/crates/teloxide-core/src/types.rs @@ -12,6 +12,7 @@ pub use bot_short_description::*; pub use business_connection::*; pub use business_intro::*; pub use business_location::*; +pub use business_messages_deleted::*; pub use business_opening_hours::*; pub use callback_game::*; pub use callback_query::*; @@ -171,6 +172,7 @@ mod bot_short_description; mod business_connection; mod business_intro; mod business_location; +mod business_messages_deleted; mod business_opening_hours; mod callback_game; mod callback_query; diff --git a/crates/teloxide-core/src/types/business_messages_deleted.rs b/crates/teloxide-core/src/types/business_messages_deleted.rs new file mode 100644 index 00000000..9bb3245b --- /dev/null +++ b/crates/teloxide-core/src/types/business_messages_deleted.rs @@ -0,0 +1,17 @@ +use serde::{Deserialize, Serialize}; + +use crate::types::{Chat, MessageId}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct BusinessMessagesDeleted { + /// Unique identifier of the business connection. + pub business_connection_id: String, + + /// Information about a chat in the business account. The bot may not have + /// access to the chat or the corresponding user. + pub chat: Chat, + + /// The list of identifiers of deleted messages in the chat of the business + /// account. + pub message_ids: Vec, +}