mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add BusinessMessagesDeleted
struct
This commit is contained in:
parent
0efb15aa6a
commit
f6c957182f
2 changed files with 19 additions and 0 deletions
|
@ -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;
|
||||||
|
|
17
crates/teloxide-core/src/types/business_messages_deleted.rs
Normal file
17
crates/teloxide-core/src/types/business_messages_deleted.rs
Normal 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>,
|
||||||
|
}
|
Loading…
Reference in a new issue