diff --git a/Program.cs b/Program.cs index b38d806..bb72efd 100644 --- a/Program.cs +++ b/Program.cs @@ -479,9 +479,10 @@ class Program } else if (data != null && data.StartsWith("notifications_toggle_")) { - string action = data.Substring(18); // "on" или "off" + string action = data.Substring("notifications_toggle_".Length); // "on" или "off" await ToggleNotifications(botClient, chatId, action); } + else if (data != null && data.StartsWith("priority_")) { string priority = data.Substring(9); @@ -810,6 +811,7 @@ class Program + private static async Task SendMainMenu(ITelegramBotClient botClient, long chatId) { var keyboard = new InlineKeyboardMarkup(new[]