diff --git a/examples/eventhandler_bot.py b/examples/eventhandler_bot.py index 8a1f52144..0118dde66 100644 --- a/examples/eventhandler_bot.py +++ b/examples/eventhandler_bot.py @@ -127,7 +127,7 @@ def main(): # Start the Bot and store the update Queue, # so we can insert updates ourselves - update_queue = eh.start(poll_interval=0.1, timeout=20) + update_queue = eh.start_polling(poll_interval=0.1, timeout=20) # Start CLI-Loop while True: diff --git a/examples/eventhandler_simplebot.py b/examples/eventhandler_simplebot.py index bf234a47f..bd274486d 100644 --- a/examples/eventhandler_simplebot.py +++ b/examples/eventhandler_simplebot.py @@ -62,7 +62,7 @@ def main(): bc.addErrorHandler(error) # Start the Bot - eh.start() + eh.start_polling() # Start CLI-Loop while True: