Added clean command to delete temporary files

This commit is contained in:
Alfonso E.M 2021-02-08 18:17:50 +01:00
parent 92aa4b81a2
commit 70358f6193

View file

@ -143,6 +143,10 @@ with TelegramClient(getSession(), api_id, api_hash,
except:
output = "Some error occured while checking the status. Retry."
if command == "clean":
output = subprocess.run(["rm", "*.tdd", tempFolder], capture_output=True).stdout
output = output.decode('utf-8')
await log_reply(event, output)
if event.media: