add example for webhook

This commit is contained in:
Jannes Höke 2015-11-17 00:30:21 +01:00
parent 9defc41774
commit be368f7d74

View file

@ -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: