From 7b81191ad4b4c93047247451a3fb714fbc0440cc Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Thu, 10 Oct 2024 01:38:13 +0300 Subject: [PATCH] fix: add bot to delete_spam --- src/karkas_blocks/karkas_blocks/standard/spam/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/karkas_blocks/karkas_blocks/standard/spam/main.py b/src/karkas_blocks/karkas_blocks/standard/spam/main.py index 8b2e273..ab0901c 100644 --- a/src/karkas_blocks/karkas_blocks/standard/spam/main.py +++ b/src/karkas_blocks/karkas_blocks/standard/spam/main.py @@ -64,7 +64,7 @@ async def delete_spam_by_request(message: "Message", bot: "Bot"): if message.reply_to_message.from_user.id in (message.from_user.id, bot.id): return - await delete_spam(message.reply_to_message) + await delete_spam(message.reply_to_message, bot) await bot.delete_message( chat_id=message.chat.id,