This commit is contained in:
2024-05-05 15:22:52 +02:00
parent 2776d657a1
commit 8430d4f0c4

View File

@@ -11,7 +11,7 @@ use once_cell::sync::Lazy;
use serde::Serialize; use serde::Serialize;
use teloxide::{ use teloxide::{
requests::Requester, requests::Requester,
types::{ChatId, MessageId}, types::{ChatId, MessageId, Recipient},
}; };
use tracing::log; use tracing::log;
@@ -101,7 +101,7 @@ pub async fn get_cached_file_copy(original: cached_file::Data, db: Database) ->
bot.copy_message( bot.copy_message(
config::CONFIG.temp_channel_username.to_string(), config::CONFIG.temp_channel_username.to_string(),
ChatId(new_original.chat_id), Recipient::Id(ChatId(new_original.chat_id)),
MessageId(new_original.message_id.try_into().unwrap()), MessageId(new_original.message_id.try_into().unwrap()),
) )
.await .await