Share via


INotificationTarget.SendMessage(String, CancellationToken) Method

Definition

Send a plain text message.

public System.Threading.Tasks.Task<Microsoft.TeamsFx.Conversation.MessageResponse> SendMessage (string message, System.Threading.CancellationToken cancellationToken = default);
abstract member SendMessage : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamsFx.Conversation.MessageResponse>
Public Function SendMessage (message As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of MessageResponse)

Parameters

message
String

The plain text message.

cancellationToken
CancellationToken

The cancellation token.

Returns

The response of sending message.

Applies to