From 33c1c48ad9abb40454403fda0a0691899a5197d1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 19 May 2020 10:34:10 +0400 Subject: [PATCH] Update API scheme to layer 114. --- Telegram/Resources/tl/api.tl | 8 ++++++-- Telegram/SourceFiles/storage/localimageloader.cpp | 2 ++ Telegram/SourceFiles/window/themes/window_theme.cpp | 1 + .../SourceFiles/window/themes/window_theme_editor_box.cpp | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Telegram/Resources/tl/api.tl b/Telegram/Resources/tl/api.tl index 728c4bd3d5..c381558ba3 100644 --- a/Telegram/Resources/tl/api.tl +++ b/Telegram/Resources/tl/api.tl @@ -357,6 +357,7 @@ updateMessagePollVote#42f88f2c poll_id:long user_id:int options:Vector = updateDialogFilter#26ffde7d flags:# id:int filter:flags.0?DialogFilter = Update; updateDialogFilterOrder#a5d72105 order:Vector = Update; updateDialogFilters#3504914f = Update; +updatePhoneCallSignalingData#2661bf09 phone_call_id:long data:bytes = Update; updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; @@ -421,7 +422,7 @@ inputDocumentEmpty#72f0eaae = InputDocument; inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument; documentEmpty#36f8c871 id:long = Document; -document#9ba29cc1 flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector dc_id:int attributes:Vector = Document; +document#1e87342b flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector video_thumbs:flags.1?Vector dc_id:int attributes:Vector = Document; help.support#17c6b5f6 phone_number:string user:User = help.Support; @@ -1140,6 +1141,8 @@ stats.broadcastStats#bdf78394 period:StatsDateRangeDays followers:StatsAbsValueA help.promoDataEmpty#98f6ac75 expires:int = help.PromoData; help.promoData#8c39793f flags:# proxy:flags.0?true expires:int peer:Peer chats:Vector users:Vector psa_type:flags.1?string psa_message:flags.2?string = help.PromoData; +videoSize#435bb987 type:string location:FileLocation w:int h:int size:int = VideoSize; + ---functions--- invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; @@ -1485,6 +1488,7 @@ phone.receivedCall#17d54f61 peer:InputPhoneCall = Bool; phone.discardCall#b2cbc1c0 flags:# video:flags.0?true peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates; phone.setCallRating#59ead627 flags:# user_initiative:flags.0?true peer:InputPhoneCall rating:int comment:string = Updates; phone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool; +phone.sendSignalingData#ff7a9383 peer:InputPhoneCall data:bytes = Bool; langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference; langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector = Vector; @@ -1498,4 +1502,4 @@ folders.deleteFolder#1c295881 folder_id:int = Updates; stats.getBroadcastStats#ab42441a flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastStats; stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph; -// LAYER 113 +// LAYER 114 diff --git a/Telegram/SourceFiles/storage/localimageloader.cpp b/Telegram/SourceFiles/storage/localimageloader.cpp index 5098e87754..b134dc7baa 100644 --- a/Telegram/SourceFiles/storage/localimageloader.cpp +++ b/Telegram/SourceFiles/storage/localimageloader.cpp @@ -909,6 +909,7 @@ void FileLoadTask::process() { MTP_string(filemime), MTP_int(filesize), MTP_vector(1, thumbnail.mtpSize), + MTPVector(), MTP_int(MTP::maindc()), MTP_vector(attributes)); } else if (_type != SendMediaType::Photo) { @@ -921,6 +922,7 @@ void FileLoadTask::process() { MTP_string(filemime), MTP_int(filesize), MTP_vector(1, thumbnail.mtpSize), + MTPVector(), MTP_int(MTP::maindc()), MTP_vector(attributes)); _type = SendMediaType::File; diff --git a/Telegram/SourceFiles/window/themes/window_theme.cpp b/Telegram/SourceFiles/window/themes/window_theme.cpp index 0cb31b5cde..7adf23d319 100644 --- a/Telegram/SourceFiles/window/themes/window_theme.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme.cpp @@ -480,6 +480,7 @@ SendMediaReady PrepareWallPaper(const QImage &image) { MTP_string("image/jpeg"), MTP_int(jpeg.size()), MTP_vector(sizes), + MTPVector(), MTP_int(MTP::maindc()), MTP_vector(attributes)); diff --git a/Telegram/SourceFiles/window/themes/window_theme_editor_box.cpp b/Telegram/SourceFiles/window/themes/window_theme_editor_box.cpp index 45ee6094e8..c3d61e6a03 100644 --- a/Telegram/SourceFiles/window/themes/window_theme_editor_box.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme_editor_box.cpp @@ -451,6 +451,7 @@ SendMediaReady PrepareThemeMedia( MTP_string("application/x-tgtheme-tdesktop"), MTP_int(content.size()), MTP_vector(sizes), + MTPVector(), MTP_int(MTP::maindc()), MTP_vector(attributes));