Search code examples
c#botframeworkbotsartificial-intelligencemicrosoft-teams

CardAction button with type=invoke doesn't work in microsoft bot framework


According to this document [https://msdn.microsoft.com/en-us/microsoft-teams/botsmessages#action---invoke-new] we can use invoke in Hero card button but it giving me below error "ActionTypes does not contain a definition for invoke

Um using Microsoft.Bot.Builder 3.2.1

Can someone help me

My code in this Link


Solution

  • The Invoke action exists, but it is reserved for internal use.

    Your bot may receive an invoke activity that represents a request for it to perform a specific operation. The sender of an invoke activity typically expects the bot to acknowledge receipt via HTTP response. This activity type is reserved for internal use by the Microsoft Bot Framework.