telegram-upload icon indicating copy to clipboard operation
telegram-upload copied to clipboard

Windows: --delete-on-success never works

Open oitos opened this issue 5 months ago • 0 comments

I've run the command in CMD, PowerShell and elevated PowerShell and it seems no matter what, the file cannot be deleted. Command: telegram-upload.exe -d file.mp4

Error: PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\user\\Downloads\\file.mp4'

Doesn't matter which file. The files are not in use. Have not even been touched since a reboot. I've even tried closing all apps as well as explorer.exe fully, only opening Windows Terminal from Task Manager. No dice.

Have you had delete on success working on Windows? Works as expected on Linux. Probably a Windows-specific bug?

pip install telegram-upload
Requirement already satisfied: telegram-upload in c:\program files\python311\lib\site-packages (0.7.1)
[...]

oitos avatar Jul 21 '25 07:07 oitos