From 7864b1ae301b9d502552bf17ce7aa760422e981c Mon Sep 17 00:00:00 2001 From: Professional Date: Wed, 19 Mar 2025 23:24:19 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=8D=D0=BC=D0=BE=D0=B4=D0=B6=D0=B8=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20/start?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index 159f5b2..e3bbfed 100644 --- a/Program.cs +++ b/Program.cs @@ -402,10 +402,10 @@ class Program { new[] { - InlineKeyboardButton.WithCallbackData("Подать заявку", "report"), - InlineKeyboardButton.WithCallbackData("Панель администратора", "admin_panel") + InlineKeyboardButton.WithCallbackData("📝 Подать заявку", "report"), + InlineKeyboardButton.WithCallbackData("🔐 Панель администратора", "admin_panel") } - }); + }); await botClient.SendMessage( chatId: message.Chat.Id, @@ -414,6 +414,7 @@ class Program ); Log.Information($"Ответ на команду /start с кнопками отправлен."); } + else if (usersWaitingForReport.TryGetValue(message.Chat.Id, out bool isWaiting) && isWaiting) { if (userReportSteps.TryGetValue(message.Chat.Id, out int step)) @@ -524,6 +525,7 @@ class Program } + private static async Task SendAdminPanel(ITelegramBotClient botClient, long chatId) { var keyboard = new InlineKeyboardMarkup(new[]