question

Serban avatar image
0 Votes"
Serban asked HunaidHanfee-MSFT answered

Build a simple ("static") message extension that directly just shows a card with a link-button

I need to build an extremely simple message extension, that once it's clicked (in a teams channel conversation, the same way the "gif" button is clicked) just shows a card with a text and a button (and then when enter is pressed, it's just sent).

I'm a beginner when it comes to message extensions development, I used the instructions from this Microsoft page, and now I'm trying to scrap what I don't need from the generated project and just leave / add what I need.

Questions:

  • What should I put in the manifest, so that there's basically no command, no message handler, just a display of a card ?

  • What should I implement in the MessageExtensionBot class, so that I don't wait for some user action, and instead just directly generate the card ?

Thanks.








office-teams-app-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

HunaidHanfee-MSFT avatar image
0 Votes"
HunaidHanfee-MSFT answered

Hello I have provided answer here- https://stackoverflow.com/questions/69034019/build-a-simple-static-message-extension-that-just-returns-a-button-with-a-li/69045204#69045204
Please let us know if you have any query on that.

Thanks

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.