From e6ec2915b8d4d998bd31e8d0da13ee00a906d1fe Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sun, 5 May 2024 15:39:51 +0200 Subject: [PATCH] Use cached messages for all bots --- src/bots/approved_bot/modules/download/mod.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/bots/approved_bot/modules/download/mod.rs b/src/bots/approved_bot/modules/download/mod.rs index 95ddd9d..7d8087d 100644 --- a/src/bots/approved_bot/modules/download/mod.rs +++ b/src/bots/approved_bot/modules/download/mod.rs @@ -205,14 +205,7 @@ async fn download_handler( download_data: DownloadQueryData, need_delete_message: bool, ) -> BotHandlerInternal { - match cache { - BotCache::Original => { - send_cached_message(message, bot, download_data, need_delete_message, cache).await - } - BotCache::NoCache => { - send_with_download_from_channel(message, bot, download_data, need_delete_message).await - } - } + send_cached_message(message, bot, download_data, need_delete_message, cache).await } async fn get_download_keyboard_handler(