Exemplo n.º 1
0
        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;
        }
Exemplo n.º 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));
        }