Articles → MICROSOFT BOT FRAMEWORK → Get Value Of Key From AppsettingsGet Value Of Key From AppsettingsIn this article, we will get the value of key from appsettings.json in the echo bot.Scenario Consider a scenario, where you want to get the welcome message from the configuration file i.e. appsettings.json.For doing that, we create a key inside the appsettings.json file.Click to EnlargeNext step is to add a parameterized constructor in the echo bot.Click to EnlargeFinally, call the key in the "OnMembersAddedAsync" method.Click to EnlargeOutput Click to EnlargePosted By - Karan Gupta Posted On - Saturday, December 26, 2020 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
Query/Feedback