From 86571bc75dc977f91818942bcef4c58550a9df5e Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Thu, 26 May 2016 01:55:51 -0300 Subject: [PATCH] addHandler to add_handler --- examples/inlinekeyboard_example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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