mirror of
				https://gitlab.com/questable/questable_bot
				synced 2025-10-31 12:20:05 +01:00 
			
		
		
		
	Fix custom keyboard after edit quest.
This commit is contained in:
		
							
								
								
									
										4
									
								
								bot.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user