1
0
mirror of https://gitlab.com/questable/questable_bot synced 2025-10-26 09:50:04 +01:00

1 Commits
1.0 ... 1.0.1

Author SHA1 Message Date
aab7f7cc29 Fix custom keyboard after edit quest. 2018-11-07 21:00:10 +05:30

4
bot.py
View File

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