Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 1.73 KB

messagingextension.md

File metadata and controls

38 lines (20 loc) · 1.73 KB

Develop a messaging extension

  • Run ngrok.exe http 5000, because our web api project will listen on port 5000.

  • Copy the ngrok url. ngrok

  • Create a bot using Teams App Stdio or the BotFramework web https://dev.botframework.com/bots/new. Greater detail can be found here. Regards to the Messaging endpoint, input the ngrok url with the postfix /api/extension

bot-reg

  • When a bot is created, remember the Microsoft App ID which will be used in the next step.

get-app-id

  • Run dotnet new teamsmsgext --name SampleApp to generate the project.

  • Open SampleApp/manifest/manifest.json file, paste Microsoft App ID you got in previous step.

manifest-json

  • Zip SampleApp/manifest folder into manifest.zip file.

zip-manifest

  • Upload manifest.zip file into your Teams. Manage Team -> Apps, click the bottom-right link Upload a custom app

upload-custom-app

  • Start the project by running dotnet run.

  • All done, you can switch to Microsoft Teams, go to a team's channel into which you have uploaded the custom app(the zip file), click the ... button, you can find your messaging extension.

msg-ext

msg-ext-select-city

msg-ext-seattle