mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Potential fix for option saving
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user