예제 #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>();
 }
예제 #2
0
파일: Bot.cs 프로젝트: Nummer/Telesharp
		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>();
		}