Thegaram Thegaram - 1 month ago 25
C# Question

Trigger system messages in Microsoft Bot Framework V3

In the previous version of the Bot SDK (V1) a message with the text

/deleteprofile
to the Bot Connector would trigger a
Message
of type
DeleteUserData
towards the bot. However, in the new version (V3) this text triggers a simple
Activity
of type
ActivityTypes.Message
. How can I send an
Activity
of type
ActivityTypes.DeleteUserData
to my bot in the new version?

Answer

The BotFramework team opted to removed the "/deleteprofile" command in the V3 schema, given that bot developers can create their own command to manage how to handle data deletion (partial or whole). As the bot owns the data it stores it can decide how and what data to delete. (It can be added back if it proves to be useful.)