mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +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")
|
updater = Updater("TOKEN")
|
||||||
|
|
||||||
# The command
|
# The command
|
||||||
updater.dispatcher.addHandler(CommandHandler('set', set_value))
|
updater.dispatcher.add_handler(CommandHandler('set', set_value))
|
||||||
# The answer
|
# The answer
|
||||||
updater.dispatcher.add_handler(MessageHandler([Filters.text], entered_value))
|
updater.dispatcher.add_handler(MessageHandler([Filters.text], entered_value))
|
||||||
# The confirmation
|
# The confirmation
|
||||||
|
|
Loading…
Reference in a new issue