фикс уведов

This commit is contained in:
107 2025-03-20 11:15:05 +07:00
parent 23394de0a6
commit 646f520d61

View File

@ -765,10 +765,10 @@ class Program
await connection.OpenAsync();
var command = connection.CreateCommand();
command.CommandText = @"
INSERT INTO UserSettings (UserId, NotificationsEnabled)
VALUES (@userId, @value)
ON CONFLICT(UserId)
DO UPDATE SET NotificationsEnabled = @value";
INSERT INTO UserSettings (UserId, NotificationsEnabled)
VALUES (@userId, @value)
ON CONFLICT(UserId)
DO UPDATE SET NotificationsEnabled = @value";
command.Parameters.AddWithValue("@userId", chatId);
command.Parameters.AddWithValue("@value", dbValue);
@ -809,6 +809,7 @@ class Program
private static async Task SendMainMenu(ITelegramBotClient botClient, long chatId)
{
var keyboard = new InlineKeyboardMarkup(new[]