From 4e77501d9e6334bdbce4bf61f0dfd6821b4de8f3 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 25 Dec 2019 20:59:19 +0300 Subject: [PATCH] Rename field to video_upload_bitrate. GitOrigin-RevId: 0e6af52c8558086e7aac3b950609cdf2b2da1892 --- td/generate/scheme/td_api.tl | 4 ++-- td/generate/scheme/td_api.tlo | Bin 166064 -> 166060 bytes td/telegram/AutoDownloadSettings.cpp | 4 ++-- td/telegram/AutoDownloadSettings.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 445bc8e0..b2e45c9c 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -2583,11 +2583,11 @@ networkStatistics since_date:int32 entries:vector = Netw //@max_photo_file_size Maximum size of a photo file to be auto-downloaded //@max_video_file_size Maximum size of a video file to be auto-downloaded //@max_other_file_size Maximum size of other file types to be auto-downloaded +//@video_upload_bitrate Suggested maximum bitrate for uploaded videos //@preload_large_videos True, if the beginning of videos needs to be preloaded for instant playback //@preload_next_audio True, if the next audio track needs to be preloaded while the user is listening to an audio file //@use_less_data_for_calls True, if "use less data for calls" option needs to be enabled -//@max_video_upload_bitrate Maximum suggested bitrate for uploaded videos -autoDownloadSettings is_auto_download_enabled:Bool max_photo_file_size:int32 max_video_file_size:int32 max_other_file_size:int32 max_video_upload_bitrate:int32 preload_large_videos:Bool preload_next_audio:Bool use_less_data_for_calls:Bool = AutoDownloadSettings; +autoDownloadSettings is_auto_download_enabled:Bool max_photo_file_size:int32 max_video_file_size:int32 max_other_file_size:int32 video_upload_bitrate:int32 preload_large_videos:Bool preload_next_audio:Bool use_less_data_for_calls:Bool = AutoDownloadSettings; //@description Contains auto-download settings presets for the user //@low Preset with lowest settings; supposed to be used by default when roaming diff --git a/td/generate/scheme/td_api.tlo b/td/generate/scheme/td_api.tlo index 945b40e123e9fab33d991212b1f1df7c7ebbc003..1fc4074b1128b48f9873942d805178fb061f609f 100644 GIT binary patch delta 119 zcmdlmk!#IFt_?kmERT=sHEf>1=wiwWVu?(iXd%MRz`y|FO#Whagi&PjUi1B6Rg)Vm zJRpoS7BUdV8z`fh$FiNrl5snaCDR&ButAK|8}BemPmkeX xwUcWsJRpn{7BUdV3n-(R!?K;jl5snSCDR&Bh|~j1nduAI8F{upNMbsp3IN`jCYt~N diff --git a/td/telegram/AutoDownloadSettings.cpp b/td/telegram/AutoDownloadSettings.cpp index 472c46e9..fb39e236 100644 --- a/td/telegram/AutoDownloadSettings.cpp +++ b/td/telegram/AutoDownloadSettings.cpp @@ -76,7 +76,7 @@ telegram_api::object_ptr get_input_auto_down } return telegram_api::make_object( flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, settings.max_photo_file_size, - settings.max_video_file_size, settings.max_other_file_size, settings.max_video_upload_bitrate); + settings.max_video_file_size, settings.max_other_file_size, settings.video_upload_bitrate); } class SaveAutoDownloadSettingsQuery : public Td::ResultHandler { @@ -119,7 +119,7 @@ AutoDownloadSettings get_auto_download_settings(const td_api::object_ptrmax_photo_file_size_; result.max_video_file_size = settings->max_video_file_size_; result.max_other_file_size = settings->max_other_file_size_; - result.max_video_upload_bitrate = settings->max_video_upload_bitrate_; + result.video_upload_bitrate = settings->video_upload_bitrate_; result.is_enabled = settings->is_auto_download_enabled_; result.preload_large_videos = settings->preload_large_videos_; result.preload_next_audio = settings->preload_next_audio_; diff --git a/td/telegram/AutoDownloadSettings.h b/td/telegram/AutoDownloadSettings.h index dd9e47da..82385640 100644 --- a/td/telegram/AutoDownloadSettings.h +++ b/td/telegram/AutoDownloadSettings.h @@ -22,7 +22,7 @@ class AutoDownloadSettings { int32 max_photo_file_size = 0; int32 max_video_file_size = 0; int32 max_other_file_size = 0; - int32 max_video_upload_bitrate = 0; + int32 video_upload_bitrate = 0; bool is_enabled = false; bool preload_large_videos = false; bool preload_next_audio = false;