Nekmo / telegram-upload

Upload and download files from Telegram up to 4 GiB using your account
MIT License
1.05k stars 226 forks source link

Possible to upload files with absolute path? #255

Open xx88xx opened 3 months ago

xx88xx commented 3 months ago

blinker==1.4 click==8.1.7 command-not-found==0.3 cryptg==0.4.0 cryptography==3.4.8 dbus-python==1.2.18 distro==1.7.0 distro-info==1.1+ubuntu0.2 hachoir==3.3.0 httplib2==0.20.2 importlib-metadata==4.6.4 inotify-simple==1.3.5 jeepney==0.7.1 keyring==23.5.0 launchpadlib==1.10.16 lazr.restfulclient==0.14.4 lazr.uri==1.0.6 more-itertools==8.10.0 netifaces==0.11.0 oauthlib==3.2.0 prompt-toolkit==3.0.43 pyaes==1.6.1 pyasn1==0.6.0 PyGObject==3.42.1 PyJWT==2.3.0 pyparsing==2.4.7 PySocks==1.7.1 python-apt==2.4.0+ubuntu3 PyYAML==5.4.1 rsa==4.9 SecretStorage==3.3.1 six==1.16.0 systemd-python==234 telegram-upload==0.7.1 Telethon==1.35.0 ubuntu-pro-client==8001 ufw==0.36.1 unattended-upgrades==0.1 wadllib==1.3.6 watchdog==4.0.0 wcwidth==0.2.13 zipp==1.0.0

Description

upload a file with absolute path instead of file name in current folder

What I Did


User@Desktop-User:~$ telegram-upload \home\user\_userfiles\a1111\outputs\txt2img-images\2024-05-04\00001-1765146590.png
File "homeuser_userfilesa1111outputstxt2img-images2024-05-0400001-1765146590.png" does not exist.
[Error] telegram-upload Exception:
MissingFileError: Files do not exist.

Would it possible to make $ telegram-upload [absolute path to file] work?

Eg. telegram-upload \home\user\photos\demo.jpg

kasie-zhang commented 3 months ago

Wrap the path in double quotes.

The command looks like: telegram-upload "/home/user/photos/demo.jpg"