mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Code cleanup
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.MarkAsModified(opt);
|
||||
Db.Update(opt);
|
||||
}
|
||||
|
||||
[Command(InChat.Public, "rules", CommandParseMode.Both)]
|
||||
@@ -37,7 +37,7 @@ namespace West.TelegramBot.ChatManagement.Handler
|
||||
}
|
||||
catch (ApiRequestException)
|
||||
{
|
||||
Db.MarkAsDeleted(opt);
|
||||
Db.UserValues.Remove(opt);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user