Skip to content

Commit e33b9ae

Browse files
committed
Update API schema to Layer 108
1 parent 0e9c7af commit e33b9ae

File tree

1 file changed

+46
-7
lines changed

1 file changed

+46
-7
lines changed

compiler/api/source/main_api.tl

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ inputDocumentFileLocation#bad07584 id:long access_hash:long file_reference:bytes
6767
inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;
6868
inputTakeoutFileLocation#29be5899 = InputFileLocation;
6969
inputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;
70+
inputPhotoLegacyFileLocation#d83466f3 id:long access_hash:long file_reference:bytes volume_id:long local_id:int secret:long = InputFileLocation;
7071
inputPeerPhotoFileLocation#27d69997 flags:# big:flags.0?true peer:InputPeer volume_id:long local_id:int = InputFileLocation;
7172
inputStickerSetThumb#dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation;
7273

@@ -191,6 +192,7 @@ peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bo
191192
peerSettings#818426cd flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true = PeerSettings;
192193

193194
wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper;
195+
wallPaperNoFile#8af40b25 flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;
194196

195197
inputReportReasonSpam#58dbcab8 = ReportReason;
196198
inputReportReasonViolence#1e22c78d = ReportReason;
@@ -325,6 +327,8 @@ updatePeerLocated#b4afcfb0 peers:Vector<PeerLocated> = Update;
325327
updateNewScheduledMessage#39a51dfb message:Message = Update;
326328
updateDeleteScheduledMessages#90866cee peer:Peer messages:Vector<int> = Update;
327329
updateTheme#8216fba3 theme:Theme = Update;
330+
updateGeoLiveViewed#871fb939 peer:Peer msg_id:int = Update;
331+
updateLoginToken#564fe691 = Update;
328332

329333
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;
330334

@@ -474,7 +478,7 @@ messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMess
474478

475479
webPageEmpty#eb1477e8 id:long = WebPage;
476480
webPagePending#c586da1c id:long date:int = WebPage;
477-
webPage#fa64e172 flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document documents:flags.11?Vector<Document> cached_page:flags.10?Page = WebPage;
481+
webPage#e89c45b2 flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector<WebPageAttribute> = WebPage;
478482
webPageNotModified#85849473 = WebPage;
479483

480484
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;
@@ -1005,15 +1009,16 @@ chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags
10051009

10061010
inputWallPaper#e630b979 id:long access_hash:long = InputWallPaper;
10071011
inputWallPaperSlug#72091c80 slug:string = InputWallPaper;
1012+
inputWallPaperNoFile#8427bbac = InputWallPaper;
10081013

10091014
account.wallPapersNotModified#1c199183 = account.WallPapers;
10101015
account.wallPapers#702b65a9 hash:int wallpapers:Vector<WallPaper> = account.WallPapers;
10111016

10121017
codeSettings#debebe83 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true = CodeSettings;
10131018

1014-
wallPaperSettings#a12f40b8 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int intensity:flags.3?int = WallPaperSettings;
1019+
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;
10151020

1016-
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;
1021+
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;
10171022

10181023
account.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings;
10191024

@@ -1051,11 +1056,35 @@ inputTheme#3c5693e9 id:long access_hash:long = InputTheme;
10511056
inputThemeSlug#f5890df1 slug:string = InputTheme;
10521057

10531058
themeDocumentNotModified#483d270c = Theme;
1054-
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;
1059+
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;
10551060

10561061
account.themesNotModified#f41eb622 = account.Themes;
10571062
account.themes#7f676421 hash:int themes:Vector<Theme> = account.Themes;
10581063

1064+
wallet.liteResponse#764386d7 response:bytes = wallet.LiteResponse;
1065+
1066+
wallet.secretSalt#dd484d64 salt:bytes = wallet.KeySecretSalt;
1067+
1068+
auth.loginToken#629f1980 expires:int token:bytes = auth.LoginToken;
1069+
auth.loginTokenMigrateTo#68e9916 dc_id:int token:bytes = auth.LoginToken;
1070+
auth.loginTokenSuccess#390d5c5e authorization:auth.Authorization = auth.LoginToken;
1071+
1072+
account.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitive_can_change:flags.1?true = account.ContentSettings;
1073+
1074+
messages.inactiveChats#a927fec5 dates:Vector<int> chats:Vector<Chat> users:Vector<User> = messages.InactiveChats;
1075+
1076+
baseThemeClassic#c3a12462 = BaseTheme;
1077+
baseThemeDay#fbd81688 = BaseTheme;
1078+
baseThemeNight#b7b31ea8 = BaseTheme;
1079+
baseThemeTinted#6d5f77ee = BaseTheme;
1080+
baseThemeArctic#5b11125a = BaseTheme;
1081+
1082+
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;
1083+
1084+
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;
1085+
1086+
webPageAttributeTheme#54b56617 flags:# documents:flags.0?Vector<Document> settings:flags.1?ThemeSettings = WebPageAttribute;
1087+
10591088
---functions---
10601089

10611090
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
@@ -1081,6 +1110,9 @@ auth.recoverPassword#4ea56e92 code:string = auth.Authorization;
10811110
auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode;
10821111
auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;
10831112
auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector<long> = Bool;
1113+
auth.exportLoginToken#b1b41517 api_id:int api_hash:string except_ids:Vector<int> = auth.LoginToken;
1114+
auth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken;
1115+
auth.acceptLoginToken#e894ad4d token:bytes = Authorization;
10841116

10851117
account.registerDevice#68976c6f flags:# no_muted:flags.0?true token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector<int> = Bool;
10861118
account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector<int> = Bool;
@@ -1138,12 +1170,15 @@ account.resetWallPapers#bb3b9804 = Bool;
11381170
account.getAutoDownloadSettings#56da0b3f = account.AutoDownloadSettings;
11391171
account.saveAutoDownloadSettings#76f36233 flags:# low:flags.0?true high:flags.1?true settings:AutoDownloadSettings = Bool;
11401172
account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document;
1141-
account.createTheme#2b7ffd7f slug:string title:string document:InputDocument = Theme;
1142-
account.updateTheme#3b8ea202 flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument = Theme;
1173+
account.createTheme#8432c21f flags:# slug:string title:string document:flags.2?InputDocument settings:flags.3?InputThemeSettings = Theme;
1174+
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;
11431175
account.saveTheme#f257106c theme:InputTheme unsave:Bool = Bool;
11441176
account.installTheme#7ae43737 flags:# dark:flags.0?true format:flags.1?string theme:flags.1?InputTheme = Bool;
11451177
account.getTheme#8d9d742b format:string theme:InputTheme document_id:long = Theme;
11461178
account.getThemes#285946f8 format:string hash:int = account.Themes;
1179+
account.setContentSettings#b574b16b flags:# sensitive_enabled:flags.0?true = Bool;
1180+
account.getContentSettings#8b9b4dae = account.ContentSettings;
1181+
account.getMultiWallPapers#65ad71dc wallpapers:Vector<InputWallPaper> = Vector<WallPaper>;
11471182

11481183
users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;
11491184
users.getFullUser#ca30a5b1 id:InputUser = UserFull;
@@ -1359,6 +1394,7 @@ channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel =
13591394
channels.editCreator#8f38cd1f channel:InputChannel user_id:InputUser password:InputCheckPasswordSRP = Updates;
13601395
channels.editLocation#58e63f6d channel:InputChannel geo_point:InputGeoPoint address:string = Bool;
13611396
channels.toggleSlowMode#edd49ef0 channel:InputChannel seconds:int = Updates;
1397+
channels.getInactiveChannels#11e831ee = messages.InactiveChats;
13621398

13631399
bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON;
13641400
bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;
@@ -1393,4 +1429,7 @@ langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLangua
13931429
folders.editPeerFolders#6847d0ab folder_peers:Vector<InputFolderPeer> = Updates;
13941430
folders.deleteFolder#1c295881 folder_id:int = Updates;
13951431

1396-
// LAYER 105
1432+
wallet.sendLiteRequest#e2c9d33e body:bytes = wallet.LiteResponse;
1433+
wallet.getKeySecretSalt#b57f346 revoke:Bool = wallet.KeySecretSalt;
1434+
1435+
// LAYER 108

0 commit comments

Comments
 (0)