示例#1
0
        public override Task StartAsync( )
        {
            TelegramBot = new TelegramBot(TelegramBotConfig, Bot);

            TelegramBot.Ctb.Start += async bot =>
                                     await TelegramBot.StartAsync( ).ConfigureAwait(false);

            return(Task.CompletedTask);
        }
示例#2
0
 public override Task StopAsync( )
 {
     TelegramBot.Stop( );
     return(Task.CompletedTask);
 }