feat(chat): a method for creating public chat is added

This commit is contained in:
Sale Djenic 2021-12-01 17:45:37 +01:00 committed by saledjenic
parent 650b263547
commit 08a4cfa36c

View File

@ -6,4 +6,8 @@ export response_type
proc getChats*(): RpcResponse[JsonNode] {.raises: [Exception].} =
let payload = %* []
result = callPrivateRPC("chats".prefix, payload)
result = callPrivateRPC("chats".prefix, payload)
proc createPublicChat*(chatId: string): RpcResponse[JsonNode] {.raises: [Exception].} =
let payload = %* [{"ID": chatId}]
result = callPrivateRPC("createPublicChat".prefix, payload)