mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-20 09:19:24 +00:00
13 lines
400 B
Nim
13 lines
400 B
Nim
import json
|
|
import core, utils
|
|
import response_type
|
|
|
|
export response_type
|
|
|
|
proc getChats*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
let payload = %* []
|
|
result = callPrivateRPC("chats".prefix, payload)
|
|
|
|
proc createPublicChat*(chatId: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
let payload = %* [{"ID": chatId}]
|
|
result = callPrivateRPC("createPublicChat".prefix, payload) |