mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2024-12-23 16:23:02 +03:00
fix: add bot to delete_spam
This commit is contained in:
parent
9669118bf6
commit
7b81191ad4
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user