feat: Adding edit message functionality

This commit is contained in:
Khushboo Mehta 2022-01-17 19:42:19 +01:00 committed by saledjenic
parent e9342e73c6
commit 3b6e9c799c

View File

@ -61,3 +61,6 @@ proc markCertainMessagesFromChatWithIdAsRead*(chatId: string, messageIds: seq[st
proc deleteMessageAndSend*(messageID: string): RpcResponse[JsonNode] {.raises: [Exception].} =
result = callPrivateRPC("deleteMessageAndSend".prefix, %* [messageID])
proc editMessage*(messageId: string, msg: string): RpcResponse[JsonNode] {.raises: [Exception].} =
result = callPrivateRPC("editMessage".prefix, %* [{"id": messageId, "text": msg}])