mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Update for new chyat
This commit is contained in:
@@ -337,12 +337,12 @@ public class DeleteMessagesCommand : ICommand
|
||||
.TakeLast(amount);
|
||||
foreach (var msg in messages)
|
||||
{
|
||||
if (msg.ChatMessageId == null)
|
||||
if (msg.ChatMessageUuid == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
await botInstance.KfClient.DeleteMessageAsync(msg.ChatMessageId.Value);
|
||||
await botInstance.KfClient.DeleteMessageAsync(msg.ChatMessageUuid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user