From c0c0ebc02f3ed76f8cbbb938e021c2c4a8e9e2fd Mon Sep 17 00:00:00 2001 From: Jazz Turner-Baggs <473256+jazzz@users.noreply.github.com> Date: Tue, 3 Feb 2026 16:57:09 -0800 Subject: [PATCH] Update content to use Seq[bytes] --- nim-bindings/src/libchat.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nim-bindings/src/libchat.nim b/nim-bindings/src/libchat.nim index 8203f46..ed56fc8 100644 --- a/nim-bindings/src/libchat.nim +++ b/nim-bindings/src/libchat.nim @@ -46,7 +46,7 @@ proc createIntroductionBundle*(ctx: LibChat): Result[string, string] = return ok(cast[string](buffer)) ## Create a Private Convo -proc createNewPrivateConvo*(ctx: LibChat, bundle: string, content: string): Result[(ConvoHandle, seq[PayloadResult]), string] = +proc createNewPrivateConvo*(ctx: LibChat, bundle: string, content: seq[byte]): Result[(ConvoHandle, seq[PayloadResult]), string] = if ctx.handle == nil: return err("Context handle is nil") @@ -83,7 +83,7 @@ proc createNewPrivateConvo*(ctx: LibChat, bundle: string, content: string): Resu return ok((convoId, payloads)) ## Send content to an existing conversation -proc sendContent*(ctx: LibChat, convoHandle: ConvoHandle, content: string): Result[seq[PayloadResult], string] = +proc sendContent*(ctx: LibChat, convoHandle: ConvoHandle, content: seq[byte]): Result[seq[PayloadResult], string] = if ctx.handle == nil: return err("Context handle is nil")