"Clean-up-UI-remove-navigation-title-and-section-emojis"
This commit is contained in:
parent
9714e9d37b
commit
9175e5bb96
Binary file not shown.
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user