rahiel / telegram-send

Send messages and files over Telegram from the command-line.
https://www.rahielkasim.com/telegram-send/
GNU General Public License v3.0
938 stars 105 forks source link

getting timeouts with 15MB video #110

Open bjo81 opened 2 years ago

bjo81 commented 2 years ago

As I'm using 0.34 it can't be the same issue as #64 , but it seems the timeout argument is ignored:

time sudo -u motion telegram-send --timeout 999999999999 --video foo.mp4 
/usr/lib/python3.10/site-packages/telegram/utils/request.py:48: UserWarning: python-telegram-bot is using upstream urllib3. This is allowed but not supported by python-telegram-bot maintainers.
  warnings.warn(
Error: Connection timed out
Please run with a longer timeout.
Try with the option: --timeout 1000000000009.0
3.35s user 0.33s system 42% cpu 8.731 total
rahiel commented 1 year ago

Could you try again with the latest version of telegram-send? Could be that something was improved in our python-telegram-bot dependency that could fix this.