Beispiel #1
0
 public BaseClient()
 {
     _storage = new Storage(Extentions.GetExecutionPath().FullName);
     Client.Log.SetFilePath(Path.Combine(_storage.LogDirectory, "tdlib.log"));
     Client.Log.SetMaxFileSize(1_000_000); // 1MB
     Client.Log.SetVerbosityLevel(3);
     _client = new Client();
     _hub    = new Hub(_client);
     _dialer = new Dialer(_client, _hub);
     _agent  = new Agent(_hub, _dialer);
 }