Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.
This repository was archived by the owner on May 14, 2021. It is now read-only.

Can't create a new client #51

@ZioZen

Description

@ZioZen

Hi,
I'm trying to create an app that use this api, but when i try to create a new client the program crash and tell me "System.ArgumentNullException: 'Value cannot be null.
Parameter name: path1
"

This is the code that I used:

            var settings = new FactorySettings
            {
                AppHash = "0f5b4xxxxxxxxxxxxxxxca4d4",
                AppId = 1xxxxxx8,
                ServerAddress = "149.154.167.40",
                ServerPublicKey = @"-----BEGIN RSA PUBLIC KEY-----
.
.
.
-----END PUBLIC KEY-----",
                ServerPort = 443,
                SessionTag = "session", // by defaut
                Properties = new ApplicationProperties
                {
                    AppVersion = "1.0.0", // You can leave as in the example
                    DeviceModel = "PC", // You can leave as in the example
                    LangCode = "en", // You can leave as in the example
                    LangPack = "tdesktop", // You can leave as in the example
                    SystemLangCode = "en", // You can leave as in the example
                    SystemVersion = "Win 10 Pro" // You can leave as in the example
                }
            };
            // Create the client
            var clientApi = await ClientFactory.BuildClientAsync(settings).ConfigureAwait(true);

I don't know from where this path1 came from, and how to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions