This Teams App is used to display formatted code in Teams with Adaptive Card.
- From Visual Studio Code: Start debugging the project by hitting the
F5key in Visual Studio Code. Need Teams Toolkit extension installed.
- API for code rendering: see in function
renderCodeWithAPIinreqHelper.ts, modify to another API if needed. - Link unfurling: see in
templates/appPackage/manifest.template.json, modifygithub.comto other domains if needed.
- Github related URLs: Code Sharing Extension generated URLs, it is like
https://github.com/OfficeDev/TeamsFx-Samples/blob/master/test.py#L1-L6?x=a&y=b.
Find button Create Card in Message Extension App and click to enter the same URLs as above.
Then adaptive cards will be created the same as Link Unfurling.