Skip to content

Commit 6745c9d

Browse files
committed
Update API schema to Layer 131
1 parent 3d6ec57 commit 6745c9d

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

compiler/api/source/main_api.tl

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ updateChatParticipant#f3b3781f flags:# chat_id:int date:int actor_id:int user_id
354354
updateChannelParticipant#7fecb1ec flags:# channel_id:int date:int actor_id:int user_id:int prev_participant:flags.0?ChannelParticipant new_participant:flags.1?ChannelParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
355355
updateBotStopped#7f9488a user_id:int date:int stopped:Bool qts:int = Update;
356356
updateGroupCallConnection#b783982 flags:# presentation:flags.0?true params:DataJSON = Update;
357+
updateBotCommands#cf7e0873 peer:Peer bot_id:int commands:Vector<BotCommand> = Update;
357358

358359
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;
359360

@@ -512,7 +513,7 @@ authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true pa
512513

513514
account.authorizations#1250abde authorizations:Vector<Authorization> = account.Authorizations;
514515

515-
account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password;
516+
account.password#185b184f flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes pending_reset_date:flags.5?int = account.Password;
516517

517518
account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings;
518519

@@ -1183,7 +1184,7 @@ peerBlocked#e8fd8014 peer_id:Peer date:int = PeerBlocked;
11831184
stats.messageStats#8999f295 views_graph:StatsGraph = stats.MessageStats;
11841185

11851186
groupCallDiscarded#7780bcb4 id:long access_hash:long duration:int = GroupCall;
1186-
groupCall#653dbaad flags:# join_muted:flags.1?true can_change_join_muted:flags.2?true join_date_asc:flags.6?true schedule_start_subscribed:flags.8?true can_start_video:flags.9?true id:long access_hash:long participants_count:int title:flags.3?string stream_dc_id:flags.4?int record_start_date:flags.5?int schedule_date:flags.7?int version:int = GroupCall;
1187+
groupCall#d597650c flags:# join_muted:flags.1?true can_change_join_muted:flags.2?true join_date_asc:flags.6?true schedule_start_subscribed:flags.8?true can_start_video:flags.9?true id:long access_hash:long participants_count:int title:flags.3?string stream_dc_id:flags.4?int record_start_date:flags.5?int schedule_date:flags.7?int unmuted_video_count:flags.10?int unmuted_video_limit:int version:int = GroupCall;
11871188

11881189
inputGroupCall#d8aa840f id:long access_hash:long = InputGroupCall;
11891190

@@ -1226,7 +1227,7 @@ phone.exportedGroupCallInvite#204bd158 link:string = phone.ExportedGroupCallInvi
12261227

12271228
groupCallParticipantVideoSourceGroup#dcb118b7 semantics:string sources:Vector<int> = GroupCallParticipantVideoSourceGroup;
12281229

1229-
groupCallParticipantVideo#78e41663 flags:# paused:flags.0?true endpoint:string source_groups:Vector<GroupCallParticipantVideoSourceGroup> = GroupCallParticipantVideo;
1230+
groupCallParticipantVideo#67753ac8 flags:# paused:flags.0?true endpoint:string source_groups:Vector<GroupCallParticipantVideoSourceGroup> audio_source:flags.1?int = GroupCallParticipantVideo;
12301231

12311232
stickers.suggestedShortName#85fea03f short_name:string = stickers.SuggestedShortName;
12321233

@@ -1238,6 +1239,10 @@ botCommandScopePeer#db9d897d peer:InputPeer = BotCommandScope;
12381239
botCommandScopePeerAdmins#3fd863d1 peer:InputPeer = BotCommandScope;
12391240
botCommandScopePeerUser#a1321f3 peer:InputPeer user_id:InputUser = BotCommandScope;
12401241

1242+
account.resetPasswordFailedWait#e3779861 retry_date:int = account.ResetPasswordResult;
1243+
account.resetPasswordRequestedWait#e9effc7d until_date:int = account.ResetPasswordResult;
1244+
account.resetPasswordOk#e926d63e = account.ResetPasswordResult;
1245+
12411246
---functions---
12421247

12431248
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
@@ -1259,13 +1264,14 @@ auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int en
12591264
auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;
12601265
auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization;
12611266
auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;
1262-
auth.recoverPassword#4ea56e92 code:string = auth.Authorization;
1267+
auth.recoverPassword#37096c70 flags:# code:string new_settings:flags.0?account.PasswordInputSettings = auth.Authorization;
12631268
auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode;
12641269
auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;
12651270
auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector<long> = Bool;
12661271
auth.exportLoginToken#b1b41517 api_id:int api_hash:string except_ids:Vector<int> = auth.LoginToken;
12671272
auth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken;
12681273
auth.acceptLoginToken#e894ad4d token:bytes = Authorization;
1274+
auth.checkRecoveryPassword#d36bf79 code:string = Bool;
12691275

12701276
account.registerDevice#68976c6f flags:# no_muted:flags.0?true token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector<int> = Bool;
12711277
account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector<int> = Bool;
@@ -1335,6 +1341,8 @@ account.getMultiWallPapers#65ad71dc wallpapers:Vector<InputWallPaper> = Vector<W
13351341
account.getGlobalPrivacySettings#eb2b4cf6 = GlobalPrivacySettings;
13361342
account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;
13371343
account.reportProfilePhoto#fa8cc6f5 peer:InputPeer photo_id:InputPhoto reason:ReportReason message:string = Bool;
1344+
account.resetPassword#9308ce1b = account.ResetPasswordResult;
1345+
account.declinePasswordReset#4c9409f6 = Bool;
13381346

13391347
users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;
13401348
users.getFullUser#ca30a5b1 id:InputUser = UserFull;
@@ -1648,4 +1656,4 @@ stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel
16481656
stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
16491657
stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
16501658

1651-
// LAYER 130
1659+
// LAYER 131

0 commit comments

Comments
 (0)