Channel.SendMessage(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
override this.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.