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
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.
As I'm using 0.34 it can't be the same issue as #64 , but it seems the timeout argument is ignored: