diff --git a/l005/README.md b/l005/README.md new file mode 100644 index 0000000..323421f --- /dev/null +++ b/l005/README.md @@ -0,0 +1,4 @@ +### Version info +App|Version/Hash|Date +---|---|--- +WebArchive|[19 Nov 2013 capture](http://web.archive.org/web/20131119062309/https://core.telegram.org/schema)|n/a diff --git a/l005/schema.json b/l005/schema.json new file mode 100644 index 0000000..573c8cf --- /dev/null +++ b/l005/schema.json @@ -0,0 +1,78 @@ +{ + "constructors": [], + "methods": [ + { + "id": "1988976461", + "method": "auth.sendCode", + "params": [ + { + "name": "phone_number", + "type": "string" + }, + { + "name": "sms_type", + "type": "int" + }, + { + "name": "api_id", + "type": "int" + }, + { + "name": "api_hash", + "type": "string" + }, + { + "name": "lang_code", + "type": "string" + } + ], + "type": "auth.SentCode" + }, + { + "id": "1147957548", + "method": "account.registerDevice", + "params": [ + { + "name": "token_type", + "type": "int" + }, + { + "name": "token", + "type": "string" + }, + { + "name": "device_model", + "type": "string" + }, + { + "name": "system_version", + "type": "string" + }, + { + "name": "app_version", + "type": "string" + }, + { + "name": "app_sandbox", + "type": "Bool" + }, + { + "name": "lang_code", + "type": "string" + } + ], + "type": "Bool" + }, + { + "id": "1098536878", + "method": "invokeWithLayer5", + "params": [ + { + "name": "query", + "type": "!X" + } + ], + "type": "X" + } + ] +} \ No newline at end of file diff --git a/l005/schema.tl b/l005/schema.tl new file mode 100644 index 0000000..ab84d2a --- /dev/null +++ b/l005/schema.tl @@ -0,0 +1,7 @@ +---types--- +---functions--- +// auth.sendCode#d16ff372 phone_number:string sms_type:int api_id:int api_hash:string = auth.SentCode; +auth.sendCode#768d5f4d phone_number:string sms_type:int api_id:int api_hash:string lang_code:string = auth.SentCode; +// account.registerDevice#a28557ac token_type:int token:string device_model:string system_version:string app_version:string app_sandbox:Bool = Bool; +account.registerDevice#446c712c token_type:int token:string device_model:string system_version:string app_version:string app_sandbox:Bool lang_code:string = Bool; +invokeWithLayer5#417a57ae query:!X = X; diff --git a/schema.json b/schema.json index c02b8f7..a4de296 100644 --- a/schema.json +++ b/schema.json @@ -3294,7 +3294,7 @@ "type": "auth.CheckedPhone" }, { - "id": "-781192334", + "id": "1988976461", "method": "auth.sendCode", "params": [ { @@ -3312,6 +3312,10 @@ { "name": "api_hash", "type": "string" + }, + { + "name": "lang_code", + "type": "string" } ], "type": "auth.SentCode" @@ -3431,7 +3435,7 @@ "type": "auth.Authorization" }, { - "id": "-1568319572", + "id": "1147957548", "method": "account.registerDevice", "params": [ { @@ -3457,6 +3461,10 @@ { "name": "app_sandbox", "type": "Bool" + }, + { + "name": "lang_code", + "type": "string" } ], "type": "Bool" @@ -4489,6 +4497,17 @@ } ], "type": "X" + }, + { + "id": "1098536878", + "method": "invokeWithLayer5", + "params": [ + { + "name": "query", + "type": "!X" + } + ], + "type": "X" } ] } \ No newline at end of file diff --git a/schema.tl b/schema.tl index e50b8c8..e8fad36 100644 --- a/schema.tl +++ b/schema.tl @@ -207,7 +207,7 @@ invokeAfterMsg#cb9f372d msg_id:long query:!X = X; invokeAfterMsgs#3dc4b4f0 msg_ids:Vector query:!X = X; invokeWithLayer1#53835315 query:!X = X; auth.checkPhone#6fe51dfb phone_number:string = auth.CheckedPhone; -auth.sendCode#d16ff372 phone_number:string sms_type:int api_id:int api_hash:string = auth.SentCode; +auth.sendCode#768d5f4d phone_number:string sms_type:int api_id:int api_hash:string lang_code:string = auth.SentCode; auth.sendCall#3c51564 phone_number:string phone_code_hash:string = Bool; auth.signUp#1b067634 phone_number:string phone_code_hash:string phone_code:string first_name:string last_name:string = auth.Authorization; auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization; @@ -216,7 +216,7 @@ auth.resetAuthorizations#9fab0d1a = Bool; auth.sendInvites#771c1d97 phone_numbers:Vector message:string = Bool; auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization; auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization; -account.registerDevice#a28557ac token_type:int token:string device_model:string system_version:string app_version:string app_sandbox:Bool = Bool; +account.registerDevice#446c712c token_type:int token:string device_model:string system_version:string app_version:string app_sandbox:Bool lang_code:string = Bool; account.unregisterDevice#65c55b40 token_type:int token:string = Bool; account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool; account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings; @@ -286,3 +286,4 @@ geochats.sendMessage#61b0044 peer:InputGeoChat message:string random_id:long = g geochats.sendMedia#b8f0deff peer:InputGeoChat media:InputMedia random_id:long = geochats.StatedMessage; geochats.createGeoChat#745f22cb title:string geo_point:InputGeoPoint address:string = geochats.StatedMessage; invokeWithLayer4#dea0d430 query:!X = X; +invokeWithLayer5#417a57ae query:!X = X;