mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-02-10 00:43:09 +00:00
Update content to use Seq[bytes]
This commit is contained in:
parent
d5c16f51de
commit
c0c0ebc02f
@ -46,7 +46,7 @@ proc createIntroductionBundle*(ctx: LibChat): Result[string, string] =
|
|||||||
return ok(cast[string](buffer))
|
return ok(cast[string](buffer))
|
||||||
|
|
||||||
## Create a Private Convo
|
## 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:
|
if ctx.handle == nil:
|
||||||
return err("Context handle is nil")
|
return err("Context handle is nil")
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ proc createNewPrivateConvo*(ctx: LibChat, bundle: string, content: string): Resu
|
|||||||
return ok((convoId, payloads))
|
return ok((convoId, payloads))
|
||||||
|
|
||||||
## Send content to an existing conversation
|
## 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:
|
if ctx.handle == nil:
|
||||||
return err("Context handle is nil")
|
return err("Context handle is nil")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user