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
@@ -56,7 +56,7 @@ namespace UserGroupTag
tagDictionary[groupName] = memberList;
userGroupOption.SetValue(tagDictionary);
_db.Update(userGroupOption);
_db.AddOrUpdate(userGroupOption);
_userCache.SetValue(repliedMessage.From.Id, repliedMessage.From, Int32.MaxValue);
await Bot.SendTextMessageAsync(chatId, $"{from.ToHtml()} добавлен в группу {groupName}",