diff --git a/bot/helper/listeners/tasks_listener.py b/bot/helper/listeners/tasks_listener.py
index 985cf816e..b89415878 100644
--- a/bot/helper/listeners/tasks_listener.py
+++ b/bot/helper/listeners/tasks_listener.py
@@ -341,9 +341,9 @@ async def onUploadComplete(self, link, size, files, folders, mime_type, name, rc
msg += f'• Elapsed: {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'• Total files: {folders}\n'
@@ -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}Files has been sent to your inbox', callback.menu(1))
+ await sendMessage(self.message, f'{msg}Files has been sent to your inbox', inboxButton.menu(1))
else:
await deleteMessage(self.botpmmsg)
if self.seed:
@@ -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} Links has been sent to your inbox', callback.menu(1))
+ await sendMessage(self.message, f'{msg} Links has been sent to your inbox', inboxButton.menu(1))
else:
await deleteMessage(self.botpmmsg)
if self.seed: