Forum Discussion

Paul_By's avatar
Paul_By
Brass Contributor
Nov 02, 2021

MSTeams. Bot. Adaptive Card sends repeated actions.

Hi,

There is an Adaptive Card with "Action.Submit" action. Bot handles (OnTurnAsync) the action and sends API request (to external application).

We found that sometimes the Bot calls the handler several times. I can reproduce it if I add "await Task.Delay(10000)" into "OnTurnAsync" (will be called twice).

Our API request should be once according user request. We updated the card after the request. How can we handle it or switch off repeated actions? How can we prevent repeated actions?

 

Resources