Skip to content

Commit

Permalink
Update managers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerpq authored Oct 30, 2023
1 parent 2dc2b75 commit e558fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repthon/core/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def edit_delete(event, text, time=None, parse_mode=None, link_preview=None
time = time or 5
if event.sender_id in sudo_users:
reply_to = await event.get_reply_message()
zedevent = (
repevent = (
await reply_to.reply(text, link_preview=link_preview, parse_mode=parse_mode)
if reply_to
else await event.reply(
Expand All @@ -82,4 +82,4 @@ async def edit_delete(event, text, time=None, parse_mode=None, link_preview=None
text, link_preview=link_preview, parse_mode=parse_mode
)
await asyncio.sleep(time)
return await zedevent.delete()
return await repevent.delete()

0 comments on commit e558fed

Please sign in to comment.