diff --git a/Program.cs b/Program.cs index fcb8453..f0b7840 100644 --- a/Program.cs +++ b/Program.cs @@ -573,11 +573,12 @@ class Program long id = reader.GetInt64(0); string description = reader.GetString(1).Substring(0, Math.Min(20, reader.GetString(1).Length)); string status = reader.GetString(2); + string statusEmoji = GetStatusEmoji(status); buttons.Add(new[] { InlineKeyboardButton.WithCallbackData( - $"#{id} - {status} - {description}...", + $"#{id} - {statusEmoji} {status} - {description}...", $"report_{id}") }); } @@ -606,6 +607,7 @@ class Program + private static async Task ViewArchivedReports(ITelegramBotClient botClient, long chatId) { string connectionString = "Data Source=bot.db"; @@ -627,11 +629,12 @@ class Program long id = reader.GetInt64(0); string description = reader.GetString(1).Substring(0, Math.Min(20, reader.GetString(1).Length)); string status = reader.GetString(2); + string statusEmoji = GetStatusEmoji(status); buttons.Add(new[] { InlineKeyboardButton.WithCallbackData( - $"#{id} - {status} - {description}...", + $"#{id} - {statusEmoji} {status} - {description}...", $"report_{id}") }); } @@ -659,6 +662,7 @@ class Program } + private static async Task ShowReportDetails(ITelegramBotClient botClient, long chatId, long reportId, int messageId) { try