Rename field to video_upload_bitrate.
GitOrigin-RevId: 0e6af52c8558086e7aac3b950609cdf2b2da1892
This commit is contained in:
parent
1fc1b76d5e
commit
4e77501d9e
@ -2583,11 +2583,11 @@ networkStatistics since_date:int32 entries:vector<NetworkStatisticsEntry> = 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
|
||||
|
Binary file not shown.
@ -76,7 +76,7 @@ telegram_api::object_ptr<telegram_api::autoDownloadSettings> get_input_auto_down
|
||||
}
|
||||
return telegram_api::make_object<telegram_api::autoDownloadSettings>(
|
||||
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_ptr<td_api:
|
||||
result.max_photo_file_size = settings->max_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_;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user