コード例 #1
0
 public BotRunner(IBotRunnerOptions botRunnerOptions, IEnumerable <ICommand> commands, ILogger log)
 {
     BotName                      = botRunnerOptions.BotName;
     TelegramBotClient            = new TelegramBotClient(botRunnerOptions.Token);
     TelegramBotClient.OnMessage += OnMessageRecieved;
     Commands                     = commands.Distinct(new CommandEqualityComparer()).ToList();
     Log = log;
 }
コード例 #2
0
 public IcqBotRunner(IBotRunnerOptions botRunnerOptions, IEnumerable <ICommand> commands, ILogger log, IcqBotContext context) : base(botRunnerOptions, commands, log)
 {
     this.context = context;
 }