mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 08:37:07 +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',
|
||||
url,
|
||||
body=data.encode(),
|
||||
headers={'Content-Type': 'application/json'})
|
||||
headers={'Content-Type': 'application/json'},
|
||||
**urlopen_kwargs)
|
||||
|
||||
return _parse(result)
|
||||
|
||||
|
|
Loading…
Reference in a new issue