public Task StartAsync(CancellationToken cancellationToken) { Task.Run(CreateClients); TelegramListener.Start(); return(Task.CompletedTask); }
public Task StopAsync(CancellationToken cancellationToken) { TelegramListener.Stop(); return(Task.CompletedTask); }
public TelegramLauncher(TelegramListener telegramListener, IServiceProvider serviceProvider) { TelegramListener = telegramListener; ServiceProvider = serviceProvider; }