mirror of
https://github.com/alfem/telegram-download-daemon.git
synced 2024-09-20 14:56:06 +08:00
Added clean command to delete temporary files
This commit is contained in:
parent
92aa4b81a2
commit
70358f6193
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue