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

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