fix: add bot to delete_spam

This commit is contained in:
Maxim Slipenko 2024-10-10 01:38:13 +03:00
parent 9669118bf6
commit 7b81191ad4
No known key found for this signature in database
GPG Key ID: 6DEA9FA7DE98C7D6

View File

@ -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): if message.reply_to_message.from_user.id in (message.from_user.id, bot.id):
return return
await delete_spam(message.reply_to_message) await delete_spam(message.reply_to_message, bot)
await bot.delete_message( await bot.delete_message(
chat_id=message.chat.id, chat_id=message.chat.id,