mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
change 'wb' to 'rb' in certificate open call
This commit is contained in:
parent
6622ea3ec0
commit
a13245dfbf
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ def main():
|
|||
'''
|
||||
# Alternatively, run with webhook:
|
||||
updater.bot.setWebhook(webhook_url='https://example.com/%s' % token,
|
||||
certificate=open('cert.pem', 'wb'))
|
||||
certificate=open('cert.pem', 'rb'))
|
||||
|
||||
update_queue = updater.start_webhook('0.0.0.0',
|
||||
443,
|
||||
|
|
Loading…
Add table
Reference in a new issue