Package version:

The client to do chat operations

Hierarchy

  • ChatThreadClient

Constructors

Properties

threadId: string

Thread ID of the ChatThreadClient

Methods

  • Deletes a message identified by threadId and messageId

    Parameters

    • messageId: string

      The message id of the message.

    • options: OperationOptions = {}

      Operation options.

    Returns Promise<void>

  • Gets a chat message identified by messageId. Returns the specific message.

    Parameters

    • messageId: string

      The message id of the message.

    • options: OperationOptions = {}

      Operation options.

    Returns Promise<ChatMessage>

  • Removes participant from the thread identified by threadId.

    Parameters

    • participant: CommunicationIdentifier

      Thread participant to remove from the thread roster

    • options: OperationOptions = {}

      Operation options.

    Returns Promise<void>

  • Sends a read receipt to the thread identified by threadId.

    Parameters

    • request: SendReadReceiptRequest

      Request for sending a read receipt

    • options: OperationOptions = {}

      Operation options.

    Returns Promise<void>

  • Sends a typing notification to the thread. Doesn't attempt to send if the time since last notification is smaller than the minimum typing interval

    Returns

    True if the typing message notification could be sent, otherwise false.

    Parameters

    Returns Promise<boolean>

Generated using TypeDoc