From 135e0a2eed31b69aa5c83823793cade66f732e15 Mon Sep 17 00:00:00 2001 From: Viktor Oreshkin Date: Mon, 3 Jul 2017 02:27:59 +0300 Subject: [PATCH] Add layer 014 --- l014/README.md | 5 +++ l014/schema.json | 99 ++++++++++++++++++++++++++++++++++++++++++++++++ l014/schema.tl | 11 ++++++ schema.json | 76 ++++++++++++++++++++++++++++++++++++- schema.tl | 9 ++++- 5 files changed, 198 insertions(+), 2 deletions(-) create mode 100644 l014/README.md create mode 100644 l014/schema.json create mode 100644 l014/schema.tl diff --git a/l014/README.md b/l014/README.md new file mode 100644 index 0000000..3fa86ce --- /dev/null +++ b/l014/README.md @@ -0,0 +1,5 @@ +### Version info +App|Version/Hash|Date +---|---|--- +TDesktop|4221fe666f13f1d83c27c5f64e83d9bc8b3cfb51|30.05.14 +Webogram|90b650ea526aa7bccc8c63ea7fd4cc2e5052da32|30.05.14 diff --git a/l014/schema.json b/l014/schema.json new file mode 100644 index 0000000..172a398 --- /dev/null +++ b/l014/schema.json @@ -0,0 +1,99 @@ +{ + "constructors": [ + { + "id": "-1422222932", + "predicate": "dialog", + "params": [ + { + "name": "peer", + "type": "Peer" + }, + { + "name": "top_message", + "type": "int" + }, + { + "name": "unread_count", + "type": "int" + }, + { + "name": "notify_settings", + "type": "PeerNotifySettings" + } + ], + "type": "Dialog" + }, + { + "id": "1959820384", + "predicate": "notifyAll", + "params": [], + "type": "NotifyPeer" + }, + { + "id": "-1073230141", + "predicate": "notifyChats", + "params": [], + "type": "NotifyPeer" + }, + { + "id": "-1613493288", + "predicate": "notifyPeer", + "params": [ + { + "name": "peer", + "type": "Peer" + } + ], + "type": "NotifyPeer" + }, + { + "id": "-1261946036", + "predicate": "notifyUsers", + "params": [], + "type": "NotifyPeer" + }, + { + "id": "-2131957734", + "predicate": "updateUserBlocked", + "params": [ + { + "name": "user_id", + "type": "int" + }, + { + "name": "blocked", + "type": "Bool" + } + ], + "type": "Update" + }, + { + "id": "-1094555409", + "predicate": "updateNotifySettings", + "params": [ + { + "name": "peer", + "type": "NotifyPeer" + }, + { + "name": "notify_settings", + "type": "PeerNotifySettings" + } + ], + "type": "Update" + } + ], + "methods": [ + { + "id": "731580666", + "method": "invokeWithLayer14", + "params": [ + { + "name": "query", + "type": "!X" + } + ], + "type": "X" + } + ] +} \ No newline at end of file diff --git a/l014/schema.tl b/l014/schema.tl new file mode 100644 index 0000000..ceebda8 --- /dev/null +++ b/l014/schema.tl @@ -0,0 +1,11 @@ +---types--- +// dialog#214a8cdf peer:Peer top_message:int unread_count:int = Dialog; +dialog#ab3a99ac peer:Peer top_message:int unread_count:int notify_settings:PeerNotifySettings = Dialog; +notifyAll#74d07c60 = NotifyPeer; +notifyChats#c007cec3 = NotifyPeer; +notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; +notifyUsers#b4c83b4c = NotifyPeer; +updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; +updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; +---functions--- +invokeWithLayer14#2b9b08fa query:!X = X; diff --git a/schema.json b/schema.json index 5155e4c..58aa960 100644 --- a/schema.json +++ b/schema.json @@ -1250,7 +1250,7 @@ "type": "MessageAction" }, { - "id": "558533855", + "id": "-1422222932", "predicate": "dialog", "params": [ { @@ -1264,6 +1264,10 @@ { "name": "unread_count", "type": "int" + }, + { + "name": "notify_settings", + "type": "PeerNotifySettings" } ], "type": "Dialog" @@ -4104,6 +4108,65 @@ } ], "type": "help.Support" + }, + { + "id": "1959820384", + "predicate": "notifyAll", + "params": [], + "type": "NotifyPeer" + }, + { + "id": "-1073230141", + "predicate": "notifyChats", + "params": [], + "type": "NotifyPeer" + }, + { + "id": "-1613493288", + "predicate": "notifyPeer", + "params": [ + { + "name": "peer", + "type": "Peer" + } + ], + "type": "NotifyPeer" + }, + { + "id": "-1261946036", + "predicate": "notifyUsers", + "params": [], + "type": "NotifyPeer" + }, + { + "id": "-2131957734", + "predicate": "updateUserBlocked", + "params": [ + { + "name": "user_id", + "type": "int" + }, + { + "name": "blocked", + "type": "Bool" + } + ], + "type": "Update" + }, + { + "id": "-1094555409", + "predicate": "updateNotifySettings", + "params": [ + { + "name": "peer", + "type": "NotifyPeer" + }, + { + "name": "notify_settings", + "type": "PeerNotifySettings" + } + ], + "type": "Update" } ], "methods": [ @@ -5696,6 +5759,17 @@ } ], "type": "X" + }, + { + "id": "731580666", + "method": "invokeWithLayer14", + "params": [ + { + "name": "query", + "type": "!X" + } + ], + "type": "X" } ] } \ No newline at end of file diff --git a/schema.tl b/schema.tl index d036f99..7653e89 100644 --- a/schema.tl +++ b/schema.tl @@ -86,7 +86,7 @@ messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction; messageActionChatDeletePhoto#95e3fbef = MessageAction; messageActionChatAddUser#5e3cfc4b user_id:int = MessageAction; messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction; -dialog#214a8cdf peer:Peer top_message:int unread_count:int = Dialog; +dialog#ab3a99ac peer:Peer top_message:int unread_count:int notify_settings:PeerNotifySettings = Dialog; photoEmpty#2331b22d id:long = Photo; photo#22b56751 id:long access_hash:long user_id:int date:int caption:string geo:GeoPoint sizes:Vector = Photo; photoSizeEmpty#e17e23c type:string = PhotoSize; @@ -252,6 +252,12 @@ audio#c7ac6496 id:long access_hash:long user_id:int date:int duration:int mime_t documentEmpty#36f8c871 id:long = Document; document#9efc6326 id:long access_hash:long user_id:int date:int file_name:string mime_type:string size:int thumb:PhotoSize dc_id:int = Document; help.support#17c6b5f6 phone_number:string user:User = help.Support; +notifyAll#74d07c60 = NotifyPeer; +notifyChats#c007cec3 = NotifyPeer; +notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; +notifyUsers#b4c83b4c = NotifyPeer; +updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; +updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; ---functions--- invokeAfterMsg#cb9f372d msg_id:long query:!X = X; invokeAfterMsgs#3dc4b4f0 msg_ids:Vector query:!X = X; @@ -358,3 +364,4 @@ invokeWithLayer11#a6b88fdf query:!X = X; help.getSupport#9cdf08cd = help.Support; invokeWithLayer12#dda60d3c query:!X = X; invokeWithLayer13#427c8ea2 query:!X = X; +invokeWithLayer14#2b9b08fa query:!X = X;