1
0
mirror of https://github.com/danog/tl-schema.git synced 2024-11-26 11:54:54 +01:00

Add layer 016

This commit is contained in:
Viktor Oreshkin 2017-07-03 11:55:09 +03:00
parent 0df7635f14
commit 5be49cb872
5 changed files with 207 additions and 0 deletions

9
l016/README.md Normal file
View File

@ -0,0 +1,9 @@
### Version info
App|Version/Hash|Date
---|---|---
Webogram|292cf3cba90d9af482daf58a05f639ec58f65760|11.09.14
WebArchive|[19 Sep 2014 capture](http://web.archive.org/web/20140919095755/https://core.telegram.org/schema)|n/a
### Notes
Webogram still used layer 15 in config, but commit message is "Upgrade to layer 16"
Also, seems like contacts.(import|export)Card were added in this layer

95
l016/schema.json Normal file
View File

@ -0,0 +1,95 @@
{
"constructors": [
{
"id": "-484053553",
"predicate": "auth.sentAppCode",
"params": [
{
"name": "phone_registered",
"type": "Bool"
},
{
"name": "phone_code_hash",
"type": "string"
},
{
"name": "send_call_timeout",
"type": "int"
},
{
"name": "is_password",
"type": "Bool"
}
],
"type": "auth.SentCode"
}
],
"methods": [
{
"id": "-841733627",
"method": "auth.bindTempAuthKey",
"params": [
{
"name": "perm_auth_key_id",
"type": "long"
},
{
"name": "nonce",
"type": "long"
},
{
"name": "expires_at",
"type": "int"
},
{
"name": "encrypted_message",
"type": "bytes"
}
],
"type": "Bool"
},
{
"id": "-2065352905",
"method": "contacts.exportCard",
"params": [],
"type": "Vector<int>"
},
{
"id": "1340184318",
"method": "contacts.importCard",
"params": [
{
"name": "export_card",
"type": "Vector<int>"
}
],
"type": "User"
},
{
"id": "229241832",
"method": "auth.sendSms",
"params": [
{
"name": "phone_number",
"type": "string"
},
{
"name": "phone_code_hash",
"type": "string"
}
],
"type": "Bool"
},
{
"id": "-815855225",
"method": "invokeWithLayer16",
"params": [
{
"name": "query",
"type": "!X"
}
],
"type": "X"
}
]
}

8
l016/schema.tl Normal file
View File

@ -0,0 +1,8 @@
---types---
auth.sentAppCode#e325edcf phone_registered:Bool phone_code_hash:string send_call_timeout:int is_password:Bool = auth.SentCode;
---functions---
auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool;
contacts.exportCard#84e53737 = Vector<int>;
contacts.importCard#4fe196fe export_card:Vector<int> = User;
auth.sendSms#da9f3e8 phone_number:string phone_code_hash:string = Bool;
invokeWithLayer16#cf5f0987 query:!X = X;

View File

@ -4167,6 +4167,29 @@
}
],
"type": "Update"
},
{
"id": "-484053553",
"predicate": "auth.sentAppCode",
"params": [
{
"name": "phone_registered",
"type": "Bool"
},
{
"name": "phone_code_hash",
"type": "string"
},
{
"name": "send_call_timeout",
"type": "int"
},
{
"name": "is_password",
"type": "Bool"
}
],
"type": "auth.SentCode"
}
],
"methods": [
@ -5781,6 +5804,72 @@
}
],
"type": "X"
},
{
"id": "-841733627",
"method": "auth.bindTempAuthKey",
"params": [
{
"name": "perm_auth_key_id",
"type": "long"
},
{
"name": "nonce",
"type": "long"
},
{
"name": "expires_at",
"type": "int"
},
{
"name": "encrypted_message",
"type": "bytes"
}
],
"type": "Bool"
},
{
"id": "-2065352905",
"method": "contacts.exportCard",
"params": [],
"type": "Vector<int>"
},
{
"id": "1340184318",
"method": "contacts.importCard",
"params": [
{
"name": "export_card",
"type": "Vector<int>"
}
],
"type": "User"
},
{
"id": "229241832",
"method": "auth.sendSms",
"params": [
{
"name": "phone_number",
"type": "string"
},
{
"name": "phone_code_hash",
"type": "string"
}
],
"type": "Bool"
},
{
"id": "-815855225",
"method": "invokeWithLayer16",
"params": [
{
"name": "query",
"type": "!X"
}
],
"type": "X"
}
]
}

View File

@ -258,6 +258,7 @@ notifyPeer#9fd40bd8 peer:Peer = NotifyPeer;
notifyUsers#b4c83b4c = NotifyPeer;
updateUserBlocked#80ece81a user_id:int blocked:Bool = Update;
updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update;
auth.sentAppCode#e325edcf phone_registered:Bool phone_code_hash:string send_call_timeout:int is_password:Bool = auth.SentCode;
---functions---
invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
@ -366,3 +367,8 @@ invokeWithLayer12#dda60d3c query:!X = X;
invokeWithLayer13#427c8ea2 query:!X = X;
invokeWithLayer14#2b9b08fa query:!X = X;
invokeWithLayer15#b4418b64 query:!X = X;
auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool;
contacts.exportCard#84e53737 = Vector<int>;
contacts.importCard#4fe196fe export_card:Vector<int> = User;
auth.sendSms#da9f3e8 phone_number:string phone_code_hash:string = Bool;
invokeWithLayer16#cf5f0987 query:!X = X;