отображение статуса-эмоджи в списке менеджера и архива
This commit is contained in:
parent
8fac58df64
commit
583c408cec
@ -573,11 +573,12 @@ class Program
|
|||||||
long id = reader.GetInt64(0);
|
long id = reader.GetInt64(0);
|
||||||
string description = reader.GetString(1).Substring(0, Math.Min(20, reader.GetString(1).Length));
|
string description = reader.GetString(1).Substring(0, Math.Min(20, reader.GetString(1).Length));
|
||||||
string status = reader.GetString(2);
|
string status = reader.GetString(2);
|
||||||
|
string statusEmoji = GetStatusEmoji(status);
|
||||||
|
|
||||||
buttons.Add(new[]
|
buttons.Add(new[]
|
||||||
{
|
{
|
||||||
InlineKeyboardButton.WithCallbackData(
|
InlineKeyboardButton.WithCallbackData(
|
||||||
$"#{id} - {status} - {description}...",
|
$"#{id} - {statusEmoji} {status} - {description}...",
|
||||||
$"report_{id}")
|
$"report_{id}")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -606,6 +607,7 @@ class Program
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private static async Task ViewArchivedReports(ITelegramBotClient botClient, long chatId)
|
private static async Task ViewArchivedReports(ITelegramBotClient botClient, long chatId)
|
||||||
{
|
{
|
||||||
string connectionString = "Data Source=bot.db";
|
string connectionString = "Data Source=bot.db";
|
||||||
@ -627,11 +629,12 @@ class Program
|
|||||||
long id = reader.GetInt64(0);
|
long id = reader.GetInt64(0);
|
||||||
string description = reader.GetString(1).Substring(0, Math.Min(20, reader.GetString(1).Length));
|
string description = reader.GetString(1).Substring(0, Math.Min(20, reader.GetString(1).Length));
|
||||||
string status = reader.GetString(2);
|
string status = reader.GetString(2);
|
||||||
|
string statusEmoji = GetStatusEmoji(status);
|
||||||
|
|
||||||
buttons.Add(new[]
|
buttons.Add(new[]
|
||||||
{
|
{
|
||||||
InlineKeyboardButton.WithCallbackData(
|
InlineKeyboardButton.WithCallbackData(
|
||||||
$"#{id} - {status} - {description}...",
|
$"#{id} - {statusEmoji} {status} - {description}...",
|
||||||
$"report_{id}")
|
$"report_{id}")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -659,6 +662,7 @@ class Program
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private static async Task ShowReportDetails(ITelegramBotClient botClient, long chatId, long reportId, int messageId)
|
private static async Task ShowReportDetails(ITelegramBotClient botClient, long chatId, long reportId, int messageId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user