2
0
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:
Nick80835
2020-10-03 11:27:11 -04:00
parent 214b6e4e27
commit 11092e8278
4 changed files with 20 additions and 20 deletions

View File

@@ -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()