mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
Fix Py3
This commit is contained in:
parent
e2fa052f54
commit
009862593b
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ def post(url,
|
|||
headers=data.headers)
|
||||
else:
|
||||
data = json.dumps(data)
|
||||
request = Request(url, data=data,
|
||||
request = Request(url, data=data.encode(),
|
||||
headers={'Content-Type': 'application/json'})
|
||||
|
||||
result = urlopen(request).read()
|
||||
|
|
Loading…
Add table
Reference in a new issue