Add autocleanup for Guess and Roll handlers

This commit is contained in:
2023-01-29 10:05:44 +03:00
parent 682920cbfb
commit ee1f1cf30c
3 changed files with 44 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ namespace Kruzya.TelegramBot.Core
Db = db;
}
protected async Task<Message> Reply(string text)
protected virtual async Task<Message> Reply(string text)
{
return await Bot.SendTextMessageAsync(Chat.Id, text,
replyToMessageId: Message?.MessageId, parseMode: ParseMode.Html);