Skip to content

Commit

Permalink
update tasks_listener.py
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jul 12, 2024
1 parent 12ce30a commit 9fad7c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bot/helper/listeners/tasks_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ async def onUploadComplete(self, link, size, files, folders, mime_type, name, rc
msg += f'<b>• Elapsed: </b>{get_readable_time(time() - self.message.date.timestamp())}\n'
LOGGER.info(f'Task Done: {name}')
buttons = ButtonMaker()
callback = ButtonMaker()
callback.callback('View in inbox', f"aeon {user_id} private", 'header')
callback = extra_btns(callback)
inboxButton = ButtonMaker()
inboxButton.callback('View in inbox', f"aeon {user_id} private", 'header')
inboxButton = extra_btns(inboxButton)
if self.isLeech:
if folders > 1:
msg += f'<b>• Total files: </b>{folders}\n'
Expand Down Expand Up @@ -377,7 +377,7 @@ async def onUploadComplete(self, link, size, files, folders, mime_type, name, rc
await sendMessage(self.botpmmsg, msg + lmsg + fmsg)
await deleteMessage(self.botpmmsg)
if self.isSuperGroup:
await sendMessage(self.message, f'{msg}<b>Files has been sent to your inbox</b>', callback.menu(1))
await sendMessage(self.message, f'{msg}<b>Files has been sent to your inbox</b>', inboxButton.menu(1))
else:
await deleteMessage(self.botpmmsg)
if self.seed:
Expand Down Expand Up @@ -418,7 +418,7 @@ async def onUploadComplete(self, link, size, files, folders, mime_type, name, rc
await sendMessage(self.botpmmsg, msg, button, 'Random')
await deleteMessage(self.botpmmsg)
if self.isSuperGroup:
await sendMessage(self.message, f'{msg} <b>Links has been sent to your inbox</b>', callback.menu(1))
await sendMessage(self.message, f'{msg} <b>Links has been sent to your inbox</b>', inboxButton.menu(1))
else:
await deleteMessage(self.botpmmsg)
if self.seed:
Expand Down

0 comments on commit 9fad7c8

Please sign in to comment.