diff --git a/examples/inlinekeyboard_example.py b/examples/inlinekeyboard_example.py index 4182dcbd1..7426f73b7 100644 --- a/examples/inlinekeyboard_example.py +++ b/examples/inlinekeyboard_example.py @@ -97,7 +97,7 @@ def error(bot, update, error): updater = Updater("TOKEN") # The command -updater.dispatcher.addHandler(CommandHandler('set', set_value)) +updater.dispatcher.add_handler(CommandHandler('set', set_value)) # The answer updater.dispatcher.add_handler(MessageHandler([Filters.text], entered_value)) # The confirmation