mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
addHandler to add_handler
This commit is contained in:
parent
d90b0f495d
commit
86571bc75d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue