Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChatThread

Package version

Class representing a ChatThread.

Hierarchy

  • ChatThread

Index

Constructors

constructor

Methods

addChatParticipants

deleteChatMessage

  • deleteChatMessage(chatThreadId: string, chatMessageId: string, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Deletes a message.

    Parameters

    • chatThreadId: string

      The thread id to which the message was sent.

    • chatMessageId: string

      The message id.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

getChatMessage

getChatThreadProperties

listChatMessages

listChatMessagesNext

listChatParticipants

listChatParticipantsNext

listChatReadReceipts

listChatReadReceiptsNext

removeChatParticipant

  • removeChatParticipant(chatThreadId: string, participantCommunicationIdentifier: CommunicationIdentifierModel, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Remove a participant from a thread.

    Parameters

    • chatThreadId: string

      Thread id to remove the participant from.

    • participantCommunicationIdentifier: CommunicationIdentifierModel

      Id of the thread participant to remove from the thread.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

sendChatMessage

sendChatReadReceipt

  • sendChatReadReceipt(chatThreadId: string, sendReadReceiptRequest: SendReadReceiptRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Sends a read receipt event to a thread, on behalf of a user.

    Parameters

    • chatThreadId: string

      Thread id to send the read receipt event to.

    • sendReadReceiptRequest: SendReadReceiptRequest

      Read receipt details.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

sendTypingNotification

updateChatMessage

  • updateChatMessage(chatThreadId: string, chatMessageId: string, updateChatMessageRequest: UpdateChatMessageRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Updates a message.

    Parameters

    • chatThreadId: string

      The thread id to which the message was sent.

    • chatMessageId: string

      The message id.

    • updateChatMessageRequest: UpdateChatMessageRequest

      Details of the request to update the message.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

updateChatThreadProperties

  • updateChatThreadProperties(chatThreadId: string, updateChatThreadRequest: UpdateChatThreadRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Updates a thread's properties.

    Parameters

    • chatThreadId: string

      The id of the thread to update.

    • updateChatThreadRequest: UpdateChatThreadRequest

      Request payload for updating a chat thread.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

Generated using TypeDoc