public Bot(BotSettings settings) { if (settings.Token == null) { throw new NullReferenceException("No token in settings!"); } Settings = settings; Methods = new TelegramBotMethods(this); Commands = new List <ICommand>(); }
public Bot(BotSettings settings) { if (settings.Token == null) { throw new NullReferenceException("No token in settings!"); } Settings = settings; Methods = new TelegramBotMethods(this); Commands = new List<ICommand>(); }