private async Task InitConnectionAndGetConfig()
        {
            _config =
                await
                    _methods.InvokeWithLayerAsync(new InvokeWithLayerArgs
                    {
						Layer = 51,
                        Query =
                            new InitConnectionArgs
                            {
                                ApiId = _appInfo.ApiId,
                                AppVersion = _appInfo.AppVersion,
                                DeviceModel = _appInfo.DeviceModel,
                                LangCode = _appInfo.LangCode,
                                SystemVersion = _appInfo.SystemVersion,
                                Query = new HelpGetConfigArgs()
                            }
                    }) as Config;
        }
示例#2
0
        private void GetConfig(TelegramClient client)
        {
			DebugPrint (">>>>>>>>>>>>>> Getting config!");
            var config = (Config)TelegramUtils.RunSynchronously(client.Methods.HelpGetConfigAsync(new HelpGetConfigArgs
                {
                }));
            _config = config;
			DebugPrint (ObjectDumper.Dump(_config));
        }