From 7666c8a07fb65072f201053745abad235ba4a872 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 21 Dec 2019 22:30:36 +0300 Subject: [PATCH] Update layer 107. GitOrigin-RevId: c0ce53032262636e8aea4f824c80e2caad3089b2 --- td/generate/scheme/telegram_api.tl | 19 ++++++++++++++----- td/generate/scheme/telegram_api.tlo | Bin 196520 -> 197892 bytes td/telegram/AutoDownloadSettings.cpp | 2 +- td/telegram/BackgroundType.cpp | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/td/generate/scheme/telegram_api.tl b/td/generate/scheme/telegram_api.tl index dc532f345..806166a20 100644 --- a/td/generate/scheme/telegram_api.tl +++ b/td/generate/scheme/telegram_api.tl @@ -1023,9 +1023,9 @@ account.wallPapers#702b65a9 hash:int wallpapers:Vector = account.Wall codeSettings#debebe83 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true = CodeSettings; -wallPaperSettings#a12f40b8 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int intensity:flags.3?int = WallPaperSettings; +wallPaperSettings#5086cf8 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings; -autoDownloadSettings#d246fd47 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true photo_size_max:int video_size_max:int file_size_max:int = AutoDownloadSettings; +autoDownloadSettings#e04232f3 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true photo_size_max:int video_size_max:int file_size_max:int video_upload_maxbitrate:int = AutoDownloadSettings; account.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings; @@ -1063,7 +1063,7 @@ inputTheme#3c5693e9 id:long access_hash:long = InputTheme; inputThemeSlug#f5890df1 slug:string = InputTheme; themeDocumentNotModified#483d270c = Theme; -theme#f7d90ce0 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document installs_count:int = Theme; +theme#28f1114 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?ThemeSettings installs_count:int = Theme; account.themesNotModified#f41eb622 = account.Themes; account.themes#7f676421 hash:int themes:Vector = account.Themes; @@ -1080,6 +1080,15 @@ account.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitiv messages.inactiveChats#a927fec5 dates:Vector chats:Vector users:Vector = messages.InactiveChats; +baseThemeClassic#c3a12462 = BaseTheme; +baseThemeDay#fbd81688 = BaseTheme; +baseThemeNight#b7b31ea8 = BaseTheme; +baseThemeTinted#6d5f77ee = BaseTheme; + +inputThemeSettings#bd507cd1 flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?InputWallPaper wallpaper_settings:flags.1?WallPaperSettings = InputThemeSettings; + +themeSettings#9c14984a flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?WallPaper = ThemeSettings; + ---functions--- invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; @@ -1165,8 +1174,8 @@ account.resetWallPapers#bb3b9804 = Bool; account.getAutoDownloadSettings#56da0b3f = account.AutoDownloadSettings; account.saveAutoDownloadSettings#76f36233 flags:# low:flags.0?true high:flags.1?true settings:AutoDownloadSettings = Bool; account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document; -account.createTheme#2b7ffd7f slug:string title:string document:InputDocument = Theme; -account.updateTheme#3b8ea202 flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument = Theme; +account.createTheme#9badb90c flags:# slug:string title:string document:InputDocument settings:flags.3?InputThemeSettings = Theme; +account.updateTheme#5cb367d5 flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?InputThemeSettings = Theme; account.saveTheme#f257106c theme:InputTheme unsave:Bool = Bool; account.installTheme#7ae43737 flags:# dark:flags.0?true format:flags.1?string theme:flags.1?InputTheme = Bool; account.getTheme#8d9d742b format:string theme:InputTheme document_id:long = Theme; diff --git a/td/generate/scheme/telegram_api.tlo b/td/generate/scheme/telegram_api.tlo index a73574910046d0d72a3d76506827820f30839538..b91d38448bdb13ed72b736f1a937c9ea9815a1c3 100644 GIT binary patch delta 1373 zcmcgsUr19?7{BLqr&G7Qv(YA+P6=6m$SI{#8RDNH5xJ0o;bPrwmw9R19otiCzq&m!OB*xp!N(i0Y;L^xf}#e}3QZ`<*lU zEpKqxVBDOjJV_$Za%Myb7w%#{S8r2x|puAk3EO9{ki(jvk z*KDi_RLEu3Q+u?I7;FFwO`4s`k?BMcV+!z*2H-$5TbdTz4SbB|DxR2CwjZJ2apHR*&Y#^fZwk_Ktu$ zdu9<;lxmTba4CxT(B<3zlR&8B4Y2D$;@dNBGp^x;_)X#|qYQ*)0b^~Cc*?keofYhf=?A@-&P;RIz|83nJef)$f)QR!0;~`hf3Rm# z*xuvMl)?hB63iC~Vd`N-l0Op4)Wa^rw5ZQoI59anzcjBzue2Z~u_P4~YpEbtO|mzb aJ|~uG2g2f>IHo61GeDuTeM$mT!4d$_vD4N7 diff --git a/td/telegram/AutoDownloadSettings.cpp b/td/telegram/AutoDownloadSettings.cpp index 914767712..d9faa51de 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_file_size, settings.max_other_file_size, 0); } class SaveAutoDownloadSettingsQuery : public Td::ResultHandler { diff --git a/td/telegram/BackgroundType.cpp b/td/telegram/BackgroundType.cpp index 3051573c0..4aacb04cd 100644 --- a/td/telegram/BackgroundType.cpp +++ b/td/telegram/BackgroundType.cpp @@ -157,7 +157,7 @@ telegram_api::object_ptr get_input_wallpaper_se case BackgroundType::Type::Wallpaper: case BackgroundType::Type::Pattern: return telegram_api::make_object(flags, false /*ignored*/, false /*ignored*/, - type.color, type.intensity); + type.color, 0, type.intensity, 0); case BackgroundType::Type::Solid: case BackgroundType::Type::Gradient: default: