[code-watcher] handle message edit & message delayed delete service

Message delayed deleter service deals with issue when you need to delete some message with delay without blocking the execution. This is replacement for dumb Task.Delay call. Use of it could be used before as exploit, to stop responding for a long time.
This commit is contained in:
Andriy
2022-07-07 17:15:40 +03:00
parent e1ec7937fe
commit a4f05bacab
4 changed files with 99 additions and 9 deletions
+10
View File
@@ -0,0 +1,10 @@
using Telegram.Bot.Types;
namespace West.TelegramBot.CodeWatcher;
public class DeleteRequest
{
public ChatId ChatId { get; set; }
public int MessageId { get; set; }
public DateTime DeleteAt { get; set; }
}