mirror of
https://github.com/Nick80835/microbot
synced 2025-08-31 14:38:04 +00:00
switch to sender_id for most things
This commit is contained in:
@@ -10,7 +10,7 @@ from ubot import ldr
|
||||
async def delete_message(event):
|
||||
message_to_delete = await event.get_reply_message()
|
||||
|
||||
if message_to_delete and message_to_delete.from_id == (await event.client.get_me()).id:
|
||||
if message_to_delete and message_to_delete.sender_id == (await event.client.get_me()).id:
|
||||
await message_to_delete.delete()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user