mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
fix urlopen call
This commit is contained in:
parent
0faa38b8af
commit
80b53f1ab7
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class Botan(object):
|
|||
request = Request(url,
|
||||
data=data,
|
||||
headers={'Content-Type': 'application/json'})
|
||||
response = urlopen(request, json.dumps(data))
|
||||
response = urlopen(request)
|
||||
if response.getcode() != 200:
|
||||
return False
|
||||
return True
|
||||
|
|
Loading…
Add table
Reference in a new issue