TeamsClient.CreateChatAsync(NewChat, 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.
Create a chat
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.Teams.Models.NewChatResponse> CreateChatAsync(Azure.Connectors.Sdk.Teams.Models.NewChat input, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateChatAsync : Azure.Connectors.Sdk.Teams.Models.NewChat * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Teams.Models.NewChatResponse>
override this.CreateChatAsync : Azure.Connectors.Sdk.Teams.Models.NewChat * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Teams.Models.NewChatResponse>
Public Overridable Function CreateChatAsync (input As NewChat, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NewChatResponse)
Parameters
- input
- NewChat
The request body.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Create a chat response.
Remarks
Creates a one on one or group chat