mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
use urlopen timeout
This commit is contained in:
parent
ecbc268781
commit
89a3dc8372
1 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,8 @@ def post(url, data, timeout=None):
|
||||||
result = _request_wrapper('POST',
|
result = _request_wrapper('POST',
|
||||||
url,
|
url,
|
||||||
body=data.encode(),
|
body=data.encode(),
|
||||||
headers={'Content-Type': 'application/json'})
|
headers={'Content-Type': 'application/json'},
|
||||||
|
**urlopen_kwargs)
|
||||||
|
|
||||||
return _parse(result)
|
return _parse(result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue