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 945b40e1..1fc4074b 100644 Binary files a/td/generate/scheme/td_api.tlo and b/td/generate/scheme/td_api.tlo differ 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;