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