Get all available one to one topics.
Get all possible group topic ids from groups in the leute model.
Get all possible one to one topic ids with other people in the leute model.
Get all possible topic ids, includes one to one and group topics.
Get all available topics.
Get and listen for new messages in a chat. Ensure to call shutdown() on the returned object when you are done listening for messages.
Optional
authorId?: SHA256IdHash<Person>author of the messages, if not set, will use the main identity of the leute model
Optional
batchSize?: numbernumber of messages to load at a time
Optional
onAsyncError?: (error: any) => voidcalled when there is an error in the async process
Optional
ownerId?: SHA256IdHash<Person>owner of the channel, if not set, will try to find the owner of the topicId channel or use no owner if not found
Get a channel iterator for the selected chat.
Optional
ownerId: SHA256IdHash<Person>Get a topic by id. If the topic does not exist, it will be created.
Send a message to a topic. If the topic does not exist, it will be created.
Optional
options: ChatApiSendMessageOptions
Get all available group topics.