protected async Task StopBot() { Logger.LogInformation("Stopping the bot"); await BotService.StopBot(); await BotService.ChangeBotState(BotState.Stopped); Logger.LogInformation("Stopped the bot"); }
protected async Task StartBot() { Logger.LogInformation("Starting the bot"); await BotService.StartBot(); await BotService.ChangeBotState(BotState.Started); Logger.LogInformation("Started the bot"); StateHasChanged(); }