Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "messages"

Index

Functions

Functions

add

  • add(threadId: string, body: string): Promise<string>
  • Add a new message to a Thread.

    Textile.messages.add(threadId, body);

    Parameters

    • threadId: string
    • body: string

    Returns Promise<string>

list

  • list(offset: string, limit: number, threadId?: undefined | string): Promise<ITextList>
  • List all messages or list all messages in a Thread.

    Textile.messages.list(offset, limit);

    Parameters

    • offset: string
    • limit: number
    • Optional threadId: undefined | string

    Returns Promise<ITextList>