Пример #1
0
 private async Task InitConnectionAndGetConfig()
 {
     _config =
         await
             _methods.InvokeWithLayer18Async(new InvokeWithLayer18Args
             {
                 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)
 {
     var config = (Config)TelegramUtils.RunSynchronously(client.Methods.HelpGetConfigAsync(new HelpGetConfigArgs
         {
         }));
     _config = config;
 }