IBotToUser IBotToUser IBotToUser Interface

Definition

Methods to send a message from the bot to the user.

public interface IBotToUser
type IBotToUser = interface
Public Interface IBotToUser
Derived

Methods

MakeMessage() MakeMessage() MakeMessage()

Make a message.

public Microsoft.Bot.Connector.IMessageActivity MakeMessage ();
abstract member MakeMessage : unit -> Microsoft.Bot.Connector.IMessageActivity
Public Function MakeMessage () As IMessageActivity
Returns
Microsoft.Bot.Connector.IMessageActivity Microsoft.Bot.Connector.IMessageActivity Microsoft.Bot.Connector.IMessageActivity

The new message.

PostAsync(IMessageActivity, CancellationToken) PostAsync(IMessageActivity, CancellationToken)

Post a message to be sent to the user.

public System.Threading.Tasks.Task PostAsync (Microsoft.Bot.Connector.IMessageActivity message, System.Threading.CancellationToken cancellationToken = null);
abstract member PostAsync : Microsoft.Bot.Connector.IMessageActivity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Parameters
message
Microsoft.Bot.Connector.IMessageActivity Microsoft.Bot.Connector.IMessageActivity Microsoft.Bot.Connector.IMessageActivity

The message for the user.

cancellationToken
CancellationToken CancellationToken CancellationToken

The cancellation token.

Returns

A task that represents the post operation.

Applies to