-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caption chars length #129
Comments
In the folder telegram_upload search for files.py. Open it in a text editor and modify the line 21 |
thanks for reply I saw the code and I found the solution. However I don't want modify the code. Is it possibile add a cli-argument to set the caption_chars_length? thanks |
I don't think is possible, I don't see anything in the documentation. It's up to @Nekmo to implement such a feature. By the way, how is your upload speed when using the script? In my case doesn't seem to pass the 1.5 MB/s (12 Mb/s), even if my connection supports more than that. |
speed is the same of yours on my side. Maybe should I fork and push a pull-request? Thanks |
thanks for reply. I send a pull request setting caption_length to 2000. Wait to talk with Nekmo and you to set the correct value :) |
Is too much, TG won't allow it. The max length for captions is 1024. See line 44 from TG source. |
ok, I'm going to change the value and make a new pullrequest ;) |
Hi, |
Fixed! |
pip freeze
):cffi==1.14.6
click==8.0.1
cryptg==0.2.post4
hachoir==3.1.2
pyaes==1.6.1
pyasn1==0.4.8
pycparser==2.20
rsa==4.7.2
telegram-upload==0.4.0
Telethon==1.23.0
Description
I'm trying to upload file with a caption and thumbnail.
Everything works fine, but caption is truncated to 200chars
What I Did
Caption of the uploaded file is truncated to 200chars. Telegram allows 2-4000chars instead
is it possibile to add
caption_chars_length
to command-line arguments, in order to customize the caption length?thanks in advance
The text was updated successfully, but these errors were encountered: