Potential fix for option saving

This commit is contained in:
2022-01-25 23:34:37 +03:00
parent 41b49370f9
commit 8ca58f7596
7 changed files with 23 additions and 10 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ namespace West.TelegramBot.ChatManagement.Handler
var opt = await Db.UserValues.FindOrCreateOption(Chat.Id, "rulesMsgId");
opt.SetValue(replyToMessage.MessageId);
Db.Update(opt);
Db.AddOrUpdate(opt);
}
[Command(InChat.Public, "rules", CommandParseMode.Both)]