page_type | languages | products | name | urlFragment | description | extensions | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
Stocks Update Notification Bot using .NET |
officedev-teamsfx-samples-bot-stocks-update-notification-bot-dotnet |
A Teams bot app that sends stock messages as Adaptive Cards |
|
Stocks Update Notifcation Bot is a an application that can be installed in different Microsoft Teams contexts, personal, group chat, or teams channel, which sends a message on a pre-defined schedule as an Adaptive Card to locations where it is installed.
- How to use API client in TeamsFx to get access data in public API using the API Key provider.
- How to render data in an Adaptive Card.
- Visual Studio 2022, version 17.3 or higher.
- Latest Teams Toolkit for Visual Studio.
- A Microsoft 365 account. If you do not have Microsoft 365 account, apply one from Microsoft 365 developer program.
- Clone the repo to your local workspace or directly download the source code.
- Open the project in Visual Studio.
- Right click to the project, select Teams Toolkit > Prepare Teams App Dependencies.
- Press "F5" to launch the bot
- Sideloading your app to view into Microsoft Teams to view the Stocks Update Notification bot.
You can create and automatically configure cloud resources for hosting your app in Azure using Teams Toolkit.
- If you don't have an Azure subscription, create a free account before you begin
- Select the StocksUpdateNotificationBot > Teams Toolkit > Provision menu. In the Select your subscription window, choose the Azure subscription you want to use to create resources with. Teams Toolkit will create Azure resources in this subscription but no code is deployed during this step.
- Select the StocksUpdateNotificationBot > Teams Toolkit > Deploy in the Cloud menu to deploy your project to these new resources.
- When you install the app into Microsoft Teams, it will immediately begin to send messages every thirty seconds into the location where you have installed it. There is no additional configuration required.
Date | Author | Comments |
---|---|---|
Oct 24, 2022 | garrytrinder | update to support Teams Toolkit V4.0.0 |
Dec 5, 2022 | XiaofuHuang | update to support Teams Toolkit v5.0.0 |
We really appreciate your feedback! If you encounter any issue or error, please report issues to us following the Supporting Guide. Meanwhile you can make recording of your journey with our product, they really make the product better. Thank you!