public override Task StartAsync( ) { TelegramBot = new TelegramBot(TelegramBotConfig, Bot); TelegramBot.Ctb.Start += async bot => await TelegramBot.StartAsync( ).ConfigureAwait(false); return(Task.CompletedTask); }
public override Task StopAsync( ) { TelegramBot.Stop( ); return(Task.CompletedTask); }