Add BusinessMessagesDeleted struct

This commit is contained in:
Akshett Rai Jindal 2024-08-21 10:16:07 +05:30
parent 0efb15aa6a
commit f6c957182f
2 changed files with 19 additions and 0 deletions

View file

@ -12,6 +12,7 @@ pub use bot_short_description::*;
pub use business_connection::*; pub use business_connection::*;
pub use business_intro::*; pub use business_intro::*;
pub use business_location::*; pub use business_location::*;
pub use business_messages_deleted::*;
pub use business_opening_hours::*; pub use business_opening_hours::*;
pub use callback_game::*; pub use callback_game::*;
pub use callback_query::*; pub use callback_query::*;
@ -171,6 +172,7 @@ mod bot_short_description;
mod business_connection; mod business_connection;
mod business_intro; mod business_intro;
mod business_location; mod business_location;
mod business_messages_deleted;
mod business_opening_hours; mod business_opening_hours;
mod callback_game; mod callback_game;
mod callback_query; mod callback_query;

View file

@ -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<MessageId>,
}