// This method gets called by the runtime. Use this method to add services to the container. public async void ConfigureServices(IServiceCollection services) { services.AddSingleton(_ => Configuration); services.AddBot <MainBot>(options => { options.CredentialProvider = new ConfigurationCredentialProvider(Configuration); }); // Thanks for the help: https://blogs.msdn.microsoft.com/mihansen/2017/09/10/managing-secrets-in-net-core-2-0-apps/ await BotFather.PopulateBotData(Configuration["bot-data"]); }
public async Task OnTurn(ITurnContext context) { await BotFather.StartMultiBotConversation(context); }