mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 00:27:46 +01:00
add example for webhook
This commit is contained in:
parent
9defc41774
commit
be368f7d74
1 changed files with 5 additions and 0 deletions
|
@ -128,6 +128,11 @@ def main():
|
|||
# Start the Bot and store the update Queue,
|
||||
# so we can insert updates ourselves
|
||||
update_queue = eh.start_polling(poll_interval=0.1, timeout=20)
|
||||
'''
|
||||
# Alternatively, run with webhook:
|
||||
update_queue = eh.start_webhook('example.com', 443, 'cert.pem', 'key.key',
|
||||
listen='0.0.0.0')
|
||||
'''
|
||||
|
||||
# Start CLI-Loop
|
||||
while True:
|
||||
|
|
Loading…
Reference in a new issue