From be368f7d7459732721a5c872d7f92fd63307919b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Tue, 17 Nov 2015 00:30:21 +0100 Subject: [PATCH] add example for webhook --- examples/eventhandler_bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/eventhandler_bot.py b/examples/eventhandler_bot.py index 7bc29333d..6d4cdc8a9 100644 --- a/examples/eventhandler_bot.py +++ b/examples/eventhandler_bot.py @@ -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: