From aab7f7cc29d07547c0e474d8935dda8ffacdba35 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Wed, 7 Nov 2018 21:00:10 +0530 Subject: [PATCH] Fix custom keyboard after edit quest. --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 310bb36..c4071c7 100644 --- a/bot.py +++ b/bot.py @@ -315,7 +315,9 @@ def edit_quest(bot, update, player, qid, target, type): player.set_state('esq', qid) custom_keyboard = [ ["Mark as done"], - ["Edit Name", "Change Priority", "Change Difficulty"], + ["Edit Name", "Change Priority"], + ["Change Difficulty", "Delete " + + {"quest": "Quest", "side_quest": "Side Quest"}[type]], ["Back"]] reply_markup = telegram.ReplyKeyboardMarkup(custom_keyboard) bot.send_message(chat_id=chat_id, text=text, reply_markup=reply_markup,