фикс уведов

This commit is contained in:
107 2025-03-20 11:17:47 +07:00
parent 646f520d61
commit 9d810d868e

View File

@ -479,9 +479,10 @@ class Program
} }
else if (data != null && data.StartsWith("notifications_toggle_")) 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); await ToggleNotifications(botClient, chatId, action);
} }
else if (data != null && data.StartsWith("priority_")) else if (data != null && data.StartsWith("priority_"))
{ {
string priority = data.Substring(9); string priority = data.Substring(9);
@ -810,6 +811,7 @@ class Program
private static async Task SendMainMenu(ITelegramBotClient botClient, long chatId) private static async Task SendMainMenu(ITelegramBotClient botClient, long chatId)
{ {
var keyboard = new InlineKeyboardMarkup(new[] var keyboard = new InlineKeyboardMarkup(new[]