feat: Added new api for delete message

This commit is contained in:
Khushboo Mehta 2022-01-13 16:04:49 +01:00 committed by saledjenic
parent cea9a81863
commit a10c32c7f4

View File

@ -58,3 +58,6 @@ proc markCertainMessagesFromChatWithIdAsRead*(chatId: string, messageIds: seq[st
RpcResponse[JsonNode] {.raises: [Exception].} =
let payload = %* [chatId, messageIds]
result = callPrivateRPC("markMessagesSeen".prefix, payload)
proc deleteMessageAndSend*(messageID: string): RpcResponse[JsonNode] {.raises: [Exception].} =
result = callPrivateRPC("deleteMessageAndSend".prefix, %* [messageID])