Skip to content

Commit d6a7bd0

Browse files
authored
Update API schema to Layer 163
1 parent 8013b57 commit d6a7bd0

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

compiler/api/source/main_api.tl

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ updateChatUserTyping#83487af0 chat_id:long from_id:Peer action:SendMessageAction
288288
updateChatParticipants#7761198 participants:ChatParticipants = Update;
289289
updateUserStatus#e5bdf8de user_id:long status:UserStatus = Update;
290290
updateUserName#a7848924 user_id:long first_name:string last_name:string usernames:Vector<Username> = Update;
291+
updateNewAuthorization#8951abef flags:# unconfirmed:flags.0?true hash:long date:flags.0?int device:flags.0?string location:flags.0?string = Update;
291292
updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update;
292293
updateEncryptedChatTyping#1710f156 chat_id:int = Update;
293294
updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update;
@@ -302,7 +303,7 @@ updateUserPhone#5492a13 user_id:long phone:string = Update;
302303
updateReadHistoryInbox#9c974fdf flags:# folder_id:flags.0?int peer:Peer max_id:int still_unread_count:int pts:int pts_count:int = Update;
303304
updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update;
304305
updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update;
305-
updateReadMessagesContents#68c13933 messages:Vector<int> pts:int pts_count:int = Update;
306+
updateReadMessagesContents#f8227181 flags:# messages:Vector<int> pts:int pts_count:int date:flags.0?int = Update;
306307
updateChannelTooLong#108d941f flags:# channel_id:long pts:flags.0?int = Update;
307308
updateChannel#635b4c09 channel_id:long = Update;
308309
updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update;
@@ -561,7 +562,7 @@ webPagePending#c586da1c id:long date:int = WebPage;
561562
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;
562563
webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage;
563564

564-
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?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;
565+
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?true unconfirmed:flags.5?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;
565566

566567
account.authorizations#4bff8ea0 authorization_ttl_days:int authorizations:Vector<Authorization> = account.Authorizations;
567568

@@ -1378,7 +1379,7 @@ attachMenuBotIconColor#4576f3f0 name:string color:int = AttachMenuBotIconColor;
13781379

13791380
attachMenuBotIcon#b2a7386b flags:# name:string icon:Document colors:flags.0?Vector<AttachMenuBotIconColor> = AttachMenuBotIcon;
13801381

1381-
attachMenuBot#c8aa2cd2 flags:# inactive:flags.0?true has_settings:flags.1?true request_write_access:flags.2?true bot_id:long short_name:string peer_types:Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBot;
1382+
attachMenuBot#d90d8dfe flags:# inactive:flags.0?true has_settings:flags.1?true request_write_access:flags.2?true show_in_attach_menu:flags.3?true show_in_side_menu:flags.4?true side_menu_disclaimer_needed:flags.5?true bot_id:long short_name:string peer_types:flags.3?Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBot;
13821383

13831384
attachMenuBotsNotModified#f1d88a5c = AttachMenuBots;
13841385
attachMenuBots#3c4301c0 hash:long bots:Vector<AttachMenuBot> users:Vector<User> = AttachMenuBots;
@@ -1508,7 +1509,7 @@ inputBotAppShortName#908c0407 bot_id:InputUser short_name:string = InputBotApp;
15081509
botAppNotModified#5da674b7 = BotApp;
15091510
botApp#95fcd1d6 flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document hash:long = BotApp;
15101511

1511-
messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true app:BotApp = messages.BotApp;
1512+
messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true has_settings:flags.2?true app:BotApp = messages.BotApp;
15121513

15131514
appWebViewResultUrl#3c1b4f0d url:string = AppWebViewResult;
15141515

@@ -1676,7 +1677,7 @@ account.resetPassword#9308ce1b = account.ResetPasswordResult;
16761677
account.declinePasswordReset#4c9409f6 = Bool;
16771678
account.getChatThemes#d638de89 hash:long = account.Themes;
16781679
account.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool;
1679-
account.changeAuthorizationSettings#40f48462 flags:# hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;
1680+
account.changeAuthorizationSettings#40f48462 flags:# confirmed:flags.3?true hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;
16801681
account.getSavedRingtones#e1902288 hash:long = account.SavedRingtones;
16811682
account.saveRingtone#3dea5b03 id:InputDocument unsave:Bool = account.SavedRingtone;
16821683
account.uploadRingtone#831a83a2 file:InputFile file_name:string mime_type:string = Document;
@@ -1888,7 +1889,7 @@ messages.getAttachMenuBot#77216192 bot:InputUser = AttachMenuBotsBot;
18881889
messages.toggleBotInAttachMenu#69f59d69 flags:# write_allowed:flags.0?true bot:InputUser enabled:Bool = Bool;
18891890
messages.requestWebView#269dc2c1 flags:# from_bot_menu:flags.4?true silent:flags.5?true peer:InputPeer bot:InputUser url:flags.1?string start_param:flags.3?string theme_params:flags.2?DataJSON platform:string reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = WebViewResult;
18901891
messages.prolongWebView#b0d81a83 flags:# silent:flags.5?true peer:InputPeer bot:InputUser query_id:long reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = Bool;
1891-
messages.requestSimpleWebView#299bec8e flags:# from_switch_webview:flags.1?true bot:InputUser url:string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult;
1892+
messages.requestSimpleWebView#1a46500a flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult;
18921893
messages.sendWebViewResultMessage#a4314f5 bot_query_id:string result:InputBotInlineResult = WebViewMessageSent;
18931894
messages.sendWebViewData#dc0242c8 bot:InputUser random_id:long button_text:string data:string = Updates;
18941895
messages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio;
@@ -2132,4 +2133,4 @@ stories.report#c95be06a user_id:InputUser id:Vector<int> reason:ReportReason mes
21322133
stories.activateStealthMode#57bbd166 flags:# past:flags.0?true future:flags.1?true = Updates;
21332134
stories.sendReaction#49aaa9b3 flags:# add_to_recent:flags.0?true user_id:InputUser story_id:int reaction:Reaction = Updates;
21342135

2135-
// LAYER 162
2136+
// LAYER 163

0 commit comments

Comments
 (0)