• Send a chat message and resolve once the host confirms it.

    Parameters

    • text: string

      The message text.

    • opts: SendOptions = {}

      Channel, reply target, and timeout options.

    Returns Promise<ChatMessage>

    The delivered message.

    Throws

    If no host handler is wired, the host returns an error, or the send times out.

    Example

    import { send } from "@urth/metatell-sdk/chat";

    await send("hello world");