interface ChatsModule {
    createChat(command: CreateChatCommand): Promise<string>;
    postMessage(command: PostMessageCommand): Promise<string>;
    readChat(chatUri: string): Promise<Chat>;
}

Implemented by

Methods

  • Creates a new chat in the given container

    Parameters

    Returns Promise<string>

    The URI of the newly created chat

  • Post a new message to an existing chat

    Parameters

    Returns Promise<string>

    The URI of the newly created message

  • Retrieve a given chat's name and latest messages

    Parameters

    • chatUri: string

    Returns Promise<Chat>