SuggestedActionSubmitHandler Delegate
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.
Delegate for handling suggestedActions/submit invoke activities.
Sent when the user clicks a suggested action of type Action.Submit.
The structured payload authored on the suggested action is delivered via Value.
public delegate System.Threading.Tasks.Task<Microsoft.Teams.Apps.InvokeResponse> SuggestedActionSubmitHandler(Context<InvokeActivity> context, CancellationToken cancellationToken = default);
type SuggestedActionSubmitHandler = delegate of Context<InvokeActivity> * CancellationToken -> Task<InvokeResponse>
Public Delegate Function SuggestedActionSubmitHandler(context As Context(Of InvokeActivity), Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse)
Parameters
- context
- Context<InvokeActivity>
The context for the invoke activity, providing access to the activity data and bot application.
- cancellationToken
- CancellationToken
A cancellation token that can be used to cancel the operation.
Return Value
A task that represents the asynchronous operation. The task result contains the invoke response.