Handling Teams latency


Hi, We have a bot that is showing users adaptive cards.  The cards are built with submit action buttons.  We have noticed that when users click on the submit buttons, the bot and its web app may take time to respond.  During this "waiting period", users would click on the buttons again, resulting in duplicate actions being performed.  


Is there a way to give an indicator to the users that the button has been clicked and an action is performing in the background?  For eg. disable the button after it's been clicked?


Thank You

2 Replies
best response confirmed by voonsionglum (Contributor)

@voonsionglum  Does your Button event click is executing the POST call. If not then request you to perform HTTP POST request. This would disable the button. I have performed this in Message card and it works fine for me. I mean, it disables my button until the response received back from the server.




Kudos!  I did not know there was another action type called Action.HTTP.  From, it looks like we might be able to handle latency better.  


Thank You!