mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
fix key error
This commit is contained in:
parent
a846c8fd86
commit
6992a7a369
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ def confirm_value(bot, update):
|
||||||
query.message.message_id)
|
query.message.message_id)
|
||||||
else:
|
else:
|
||||||
bot.editMessageText(text="Alright, value is still %s."
|
bot.editMessageText(text="Alright, value is still %s."
|
||||||
% values[user_id],
|
% values.get(user_id, 'not set'),
|
||||||
chat_id=chat_id,
|
chat_id=chat_id,
|
||||||
message_id=
|
message_id=
|
||||||
query.message.message_id)
|
query.message.message_id)
|
||||||
|
@ -109,7 +109,7 @@ def error(bot, update, error):
|
||||||
logging.warning('Update "%s" caused error "%s"' % (update, error))
|
logging.warning('Update "%s" caused error "%s"' % (update, error))
|
||||||
|
|
||||||
# Create the Updater and pass it your bot's token.
|
# Create the Updater and pass it your bot's token.
|
||||||
updater = Updater("TOKEN")
|
updater = Updater("148447715:AAH4M0gzPG11_mdQS1Qeb0Ex30I5-rw9bMY")
|
||||||
|
|
||||||
# The command
|
# The command
|
||||||
updater.dispatcher.addHandler(CommandHandler('set', set_value))
|
updater.dispatcher.addHandler(CommandHandler('set', set_value))
|
||||||
|
|
Loading…
Reference in a new issue