botas-core
    Preparing search index...

    Class ConversationClient

    Client for the Bot Service v3 Conversations REST API.

    Sends activities, manages members, creates conversations, and uploads attachments.

    Index

    Constructors

    Methods

    • Delete an activity from a conversation.

      Parameters

      • serviceUrl: string

        Bot Service service URL.

      • conversationId: string

        Target conversation ID.

      • activityId: string

        ID of the activity to delete.

      Returns Promise<void>

    • Retrieve a single member of a conversation by user ID.

      Parameters

      • serviceUrl: string

        Bot Service service URL.

      • conversationId: string

        Target conversation ID.

      • memberId: string

        ID of the member to retrieve.

      Returns Promise<ChannelAccount | undefined>

      The ChannelAccount, or undefined if not found.

    • Retrieve a page of conversation members.

      Use continuationToken from the previous result to fetch subsequent pages.

      Parameters

      • serviceUrl: string

        Bot Service service URL.

      • conversationId: string

        Target conversation ID.

      • OptionalpageSize: number

        Maximum number of members per page.

      • OptionalcontinuationToken: string

        Opaque token from a previous page result.

      Returns Promise<PagedMembersResult<ChannelAccount>>

      A PagedMembersResult with members and an optional continuation token.

    • Remove a member from a conversation.

      Parameters

      • serviceUrl: string

        Bot Service service URL.

      • conversationId: string

        Target conversation ID.

      • memberId: string

        ID of the member to remove.

      Returns Promise<void>