addHandler to add_handler

This commit is contained in:
Leandro Toledo 2016-05-26 01:55:51 -03:00
parent d90b0f495d
commit 86571bc75d

View file

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