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)