public async Task StartAsync(CancellationToken stoppingToken) { PowerbotCore = new PowerbotCore(); var token = _configuration["TelegramAccessToken"]; if (token != null) { PowerbotCore.TelegramAccessToken = token; } var tokenEnvName = _configuration["TelegramAccessTokenEnvName"]; if (tokenEnvName != null) { PowerbotCore.AccessTokenEnvName = tokenEnvName; } await PowerbotCore.StartAsync(stoppingToken); }
public PowerBotBuilder() { PowerbotCore = new PowerbotCore(); }
public async Task StopAsync(CancellationToken cancellationToken) { await PowerbotCore.StopAsync(cancellationToken); }