Search code examples
botframeworkmicrosoft-teams

Hide some input messages to MS teams bot


I am building a bot that takes some sensitive inputs. As I would like to add this bot to an MS team/group, how do I hide/mask user's input to the bot from other users. Is that possible?


Solution

  • Currently it's not possible to send masking data to bot from compose message area. Instead you can use adaptive card to send masking data to bot.

    {
          "type": "Input.Text",
          "id": "secretThing",
          "style": "password"
    }
    

    enter image description here

    Microsoft will always focus on customer’s feedback and experience, some new features would be added to the services based on customers' feedback in the future, we also recommend you give your new idea in Teams UserVoice here if this needs to be consider as a future request.