Esempio n. 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;
 }
Esempio n. 2
0
 public IcqBotRunner(IBotRunnerOptions botRunnerOptions, IEnumerable <ICommand> commands, ILogger log, IcqBotContext context) : base(botRunnerOptions, commands, log)
 {
     this.context = context;
 }