Enhance user interface by adding emoji to command buttons for better visibility

This commit is contained in:
Seyed Mahdi
2025-09-15 00:46:36 +03:30
parent e8704ffda0
commit 74c6bcf774
6 changed files with 16 additions and 16 deletions

View File

@ -9,7 +9,7 @@ def handle_cancel_delete(call):
bot.edit_message_text("Operation canceled.", chat_id=call.message.chat.id, message_id=call.message.message_id)
create_main_markup(call.message)
@bot.message_handler(func=lambda message: is_admin(message.from_user.id) and message.text == 'Delete User')
@bot.message_handler(func=lambda message: is_admin(message.from_user.id) and message.text == '🗑️ Delete User')
def delete_user(message):
markup = types.InlineKeyboardMarkup()
cancel_button = types.InlineKeyboardButton("❌ Cancel", callback_data="cancel_delete")