Handle no tasks

This commit is contained in:
blank X 2021-04-23 20:13:42 +07:00
parent 8353710194
commit 329a8febbf
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ async def listexec(client, message):
await message.reply_document(f)
else:
text = '\n'.join(map(lambda i: f'<code>{i}</code>', exec_tasks))
await message.reply_text(text)
await message.reply_text(text or 'No tasks')
@Client.on_message(~filters.forwarded & ~filters.sticker & ~filters.via_bot & ~filters.edited & filters.me & filters.command(['cancelexec', 'cexec'], prefixes=config['config']['prefixes']))
@log_errors