mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[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:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user