Esempio n. 1
0
 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>();
 }
Esempio n. 2
0
		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>();
		}