"Clean-up-UI-remove-navigation-title-and-section-emojis"

This commit is contained in:
sysadmin 2025-08-28 12:27:11 +01:00
parent 9714e9d37b
commit 9175e5bb96
3 changed files with 9 additions and 11 deletions

Binary file not shown.

View File

@ -195,7 +195,7 @@ namespace TeleBot.Handlers
var products = await _shopService.GetProductsAsync(categoryId, 1);
// Edit the original message to show category header (bigger, more prominent)
var headerText = $"🛍️ **{category?.Name ?? "Unknown Category"} PRODUCTS**\n\n📋 Browse individual products below:";
var headerText = $"**{category?.Name ?? "Unknown Category"} PRODUCTS**\n\nBrowse individual products below:";
await bot.EditMessageTextAsync(
message.Chat.Id,
@ -218,11 +218,10 @@ namespace TeleBot.Handlers
);
}
// Send navigation message after all products
// Send navigation buttons after all products
await bot.SendTextMessageAsync(
message.Chat.Id,
"🔽 *Navigation*",
parseMode: Telegram.Bot.Types.Enums.ParseMode.Markdown,
".",
replyMarkup: MenuBuilder.ProductNavigationMenu(categoryId)
);
}
@ -255,8 +254,8 @@ namespace TeleBot.Handlers
// Edit the original message to show category header
var headerText = !string.IsNullOrEmpty(categoryName)
? $"📦 *Products in {categoryName}*\n\nBrowse products below:"
: "📦 *All Products*\n\nBrowse products below:";
? $"**Products in {categoryName}**\n\nBrowse products below:"
: "**All Products**\n\nBrowse products below:";
await bot.EditMessageTextAsync(
message.Chat.Id,
@ -279,11 +278,10 @@ namespace TeleBot.Handlers
);
}
// Send navigation message after all products
// Send navigation buttons after all products
await bot.SendTextMessageAsync(
message.Chat.Id,
"🔽 *Navigation*",
parseMode: Telegram.Bot.Types.Enums.ParseMode.Markdown,
".",
replyMarkup: MenuBuilder.ProductNavigationMenu(categoryId)
);
}

View File

@ -30,8 +30,8 @@ namespace TeleBot.UI
public static string FormatCategories(List<Category> categories)
{
var sb = new StringBuilder();
sb.AppendLine("🛍️ **PRODUCT CATEGORIES**\n");
sb.AppendLine("🔽 Choose a category to start shopping:");
sb.AppendLine("**PRODUCT CATEGORIES**\n");
sb.AppendLine("Choose a category to start shopping:");
return sb.ToString();
}