This commit is contained in:
2023-08-09 02:38:36 +02:00
parent 231e88c690
commit e6feadaf61
2 changed files with 3 additions and 8 deletions

View File

@@ -239,8 +239,8 @@ async fn _send_cached(
match bot match bot
.copy_message( .copy_message(
message.chat.id, message.chat.id,
Recipient::Id(ChatId(cached_message.data.chat_id)), Recipient::Id(ChatId(cached_message.chat_id)),
MessageId(cached_message.data.message_id), MessageId(cached_message.message_id),
) )
.send() .send()
.await .await

View File

@@ -2,16 +2,11 @@ use serde::Deserialize;
#[derive(Deserialize, Debug, Clone)] #[derive(Deserialize, Debug, Clone)]
pub struct CachedMessageData { pub struct CachedMessage {
pub message_id: i32, pub message_id: i32,
pub chat_id: i64, pub chat_id: i64,
} }
#[derive(Deserialize, Debug, Clone)]
pub struct CachedMessage {
pub data: CachedMessageData,
}
pub struct DownloadFile { pub struct DownloadFile {
pub response: reqwest::Response, pub response: reqwest::Response,
pub filename: String, pub filename: String,