Language

ConversationClient Class

Definition

Provides methods for sending activities to a conversation endpoint using HTTP requests.

public class ConversationClient
type ConversationClient = class
Public Class ConversationClient
Inheritance
ConversationClient

Constructors

Name Description
ConversationClient(HttpClient, ILogger<ConversationClient>)

Provides methods for sending activities to a conversation endpoint using HTTP requests.

Properties

Name Description
BotHttpClient

Gets the underlying BotHttpClient used to issue authenticated requests to the conversation service. Exposed so consumers can reuse the same auth-bound HTTP pipeline for channel- or platform-specific endpoints not modeled directly on ConversationClient.

Methods

Name Description
AddReactionAsync(String, String, String, Uri, BotRequestContext, Dictionary<String,String>, CancellationToken)

Adds a reaction to an activity in a conversation.

CreateConversationAsync(ConversationParameters, Uri, BotRequestContext, Dictionary<String,String>, CancellationToken)

Creates a new conversation.

DeleteActivityAsync(String, String, Uri, Boolean, BotRequestContext, Dictionary<String,String>, CancellationToken)

Deletes an existing activity from a conversation.

DeleteConversationMemberAsync(String, String, Uri, BotRequestContext, Dictionary<String,String>, CancellationToken)

Deletes a member from a conversation.

DeleteReactionAsync(String, String, String, Uri, BotRequestContext, Dictionary<String,String>, CancellationToken)

Removes a reaction from an activity in a conversation.

GetActivityMembersAsync(String, String, Uri, BotRequestContext, Dictionary<String,String>, CancellationToken)

Gets the members of a specific activity.

GetConversationMemberAsync<T>(String, String, Uri, BotRequestContext, Dictionary<String,String>, CancellationToken)

Gets a specific member of a conversation with strongly-typed result.

GetConversationMembersAsync(String, Uri, BotRequestContext, Dictionary<String,String>, CancellationToken)

Gets the members of a conversation.

GetConversationPagedMembersAsync(String, Uri, Nullable<Int32>, String, BotRequestContext, Dictionary<String,String>, CancellationToken)

Gets the members of a conversation one page at a time.

GetConversationsAsync(Uri, String, BotRequestContext, Dictionary<String,String>, CancellationToken)

Gets the conversations in which the bot has participated.

SendActivityAsync(String, CoreActivityInput, Uri, Boolean, BotRequestContext, Dictionary<String,String>, CancellationToken)

Sends the specified activity to the conversation endpoint asynchronously using explicit routing. Use this overload when the activity does not carry its own ServiceUrl/Conversation (for example content built with a content-only builder).

SendConversationHistoryAsync(String, Transcript, Uri, BotRequestContext, Dictionary<String,String>, CancellationToken)

Uploads and sends historic activities to the conversation.

UpdateActivityAsync(String, String, CoreActivityInput, Uri, Boolean, BotRequestContext, Dictionary<String,String>, CancellationToken)

Updates an existing activity in a conversation.

UploadAttachmentAsync(String, AttachmentData, Uri, BotRequestContext, Dictionary<String,String>, CancellationToken)

Uploads an attachment to the channel's blob storage.

Applies to