Show exit code if the response is a file

This commit is contained in:
blank X 2020-12-01 19:28:48 +07:00
parent f30f84015a
commit eebaeef2f5
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ async def shell(client, message):
f = BytesIO(out.strip().encode('utf-8'))
f.name = "output.txt"
await reply.delete()
await message.reply_document(f)
await message.reply_document(f, caption=f'<b>Exit Code:</b> <code>{returncode}</code>')
else:
await reply.edit_text(text)