mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Use cached messages for all bots
This commit is contained in:
@@ -205,14 +205,7 @@ async fn download_handler(
|
|||||||
download_data: DownloadQueryData,
|
download_data: DownloadQueryData,
|
||||||
need_delete_message: bool,
|
need_delete_message: bool,
|
||||||
) -> BotHandlerInternal {
|
) -> BotHandlerInternal {
|
||||||
match cache {
|
|
||||||
BotCache::Original => {
|
|
||||||
send_cached_message(message, bot, download_data, need_delete_message, cache).await
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn get_download_keyboard_handler(
|
async fn get_download_keyboard_handler(
|
||||||
|
|||||||
Reference in New Issue
Block a user