MSTeams. Bot. Adaptive Card sends repeated actions.

Occasional Contributor

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?

 

2 Replies
@Paul_By - We will also check from our end and let you know.
@Paul_By - Could you please share your OnTurnAsync method code snippet with await Task.Delay(10000)?