Exemple #1
0
        public async Task Run()
        {
            _logger.LogInformation("WeChat Engine Starting.....");

            var uuid = await _weChatClient.GetUuid();

            GenerateQR(UrlEndpoints.QRCode + uuid);

            _clientLoginResponse = await WaitForLogin(uuid);

            _webLoginResponse = await Login(_clientLoginResponse);

            _weChatInitResponse = await InitApp(_webLoginResponse, _clientLoginResponse);

            await GetContacts();

            SyncMessage();
            IsReady = true;
            _logger.LogInformation("WeChat Engine Started.....");
        }