Update deps

This commit is contained in:
2023-09-22 19:24:18 +02:00
parent aca73a3d80
commit c73fa8f040
4 changed files with 85 additions and 216 deletions

View File

@@ -9,7 +9,7 @@ pub async fn send_donation_notification(
bot: CacheMe<Throttle<Bot>>,
message: Message,
) -> BotHandlerInternal {
if CHAT_DONATION_NOTIFICATIONS_CACHE.get(&message.chat.id).is_some() {
if CHAT_DONATION_NOTIFICATIONS_CACHE.get(&message.chat.id).await.is_some() {
return Ok(());
} else if !is_need_donate_notifications(message.chat.id).await? {
CHAT_DONATION_NOTIFICATIONS_CACHE.insert(message.chat.id, ()).await;