Update donation notification check to include private chats

This commit is contained in:
2024-03-17 00:41:15 +01:00
parent 4f1dbdf9ab
commit aea9dbd96b
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ pub async fn send_donation_notification(
.is_some()
{
return Ok(());
} else if !is_need_donate_notifications(message.chat.id).await? {
} else if !is_need_donate_notifications(message.chat.id, message.chat.is_private()).await? {
CHAT_DONATION_NOTIFICATIONS_CACHE
.insert(message.chat.id, ())
.await;