UNPKG

textiot

Version:

A framework for building web and native (IoT) Dapps on the IPFS network

16 lines (15 loc) 450 B
import { ITextList } from './model'; /** * Add a new message to a Thread. * ```typescript * Textile.messages.add(threadId, body); * ``` */ export declare function add(threadId: string, body: string): Promise<string>; /** * List all messages or list all messages in a Thread. * ```typescript * Textile.messages.list(offset, limit); * ``` */ export declare function list(offset: string, limit: number, threadId?: string): Promise<ITextList>;