Skip to content

Commit be368f7

Browse files
committed
add example for webhook
1 parent 9defc41 commit be368f7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/eventhandler_bot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ def main():
128128
# Start the Bot and store the update Queue,
129129
# so we can insert updates ourselves
130130
update_queue = eh.start_polling(poll_interval=0.1, timeout=20)
131+
'''
132+
# Alternatively, run with webhook:
133+
update_queue = eh.start_webhook('example.com', 443, 'cert.pem', 'key.key',
134+
listen='0.0.0.0')
135+
'''
131136

132137
# Start CLI-Loop
133138
while True:

0 commit comments

Comments
 (0)