1
0
mirror of https://github.com/danog/tl-schema.git synced 2024-11-30 04:19:47 +01:00

Add layer 017

This commit is contained in:
Viktor Oreshkin 2017-07-02 21:51:08 +03:00
parent 5be49cb872
commit 7ebed65437
5 changed files with 436 additions and 40 deletions

5
l017/README.md Normal file
View File

@ -0,0 +1,5 @@
### Version info
App|Version/Hash|Date
---|---|---
Webogram|315cafa6548043a0b44f04e07f1428bb5ed8827d|29.09.14
WebArchive|[07 Oct 2017 capture](http://web.archive.org/web/20141007100636/https://core.telegram.org/schema)|n/a

269
l017/schema.json Normal file
View File

@ -0,0 +1,269 @@
{
"constructors": [
{
"id": "1450613171",
"predicate": "message",
"params": [
{
"name": "flags",
"type": "int"
},
{
"name": "id",
"type": "int"
},
{
"name": "from_id",
"type": "int"
},
{
"name": "to_id",
"type": "Peer"
},
{
"name": "date",
"type": "int"
},
{
"name": "message",
"type": "string"
},
{
"name": "media",
"type": "MessageMedia"
}
],
"type": "Message"
},
{
"id": "-1553471722",
"predicate": "messageForwarded",
"params": [
{
"name": "flags",
"type": "int"
},
{
"name": "id",
"type": "int"
},
{
"name": "fwd_from_id",
"type": "int"
},
{
"name": "fwd_date",
"type": "int"
},
{
"name": "from_id",
"type": "int"
},
{
"name": "to_id",
"type": "Peer"
},
{
"name": "date",
"type": "int"
},
{
"name": "message",
"type": "string"
},
{
"name": "media",
"type": "MessageMedia"
}
],
"type": "Message"
},
{
"id": "495384334",
"predicate": "messageService",
"params": [
{
"name": "flags",
"type": "int"
},
{
"name": "id",
"type": "int"
},
{
"name": "from_id",
"type": "int"
},
{
"name": "to_id",
"type": "Peer"
},
{
"name": "date",
"type": "int"
},
{
"name": "action",
"type": "MessageAction"
}
],
"type": "Message"
},
{
"id": "1548249383",
"predicate": "updateUserTyping",
"params": [
{
"name": "user_id",
"type": "int"
},
{
"name": "action",
"type": "SendMessageAction"
}
],
"type": "Update"
},
{
"id": "-1704596961",
"predicate": "updateChatUserTyping",
"params": [
{
"name": "chat_id",
"type": "int"
},
{
"name": "user_id",
"type": "int"
},
{
"name": "action",
"type": "SendMessageAction"
}
],
"type": "Update"
},
{
"id": "381645902",
"predicate": "sendMessageTypingAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-44119819",
"predicate": "sendMessageCancelAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1584933265",
"predicate": "sendMessageRecordVideoAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1845219337",
"predicate": "sendMessageUploadVideoAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-718310409",
"predicate": "sendMessageRecordAudioAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-424899985",
"predicate": "sendMessageUploadAudioAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1727382502",
"predicate": "sendMessageUploadPhotoAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1884362354",
"predicate": "sendMessageUploadDocumentAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "393186209",
"predicate": "sendMessageGeoLocationAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "1653390447",
"predicate": "sendMessageChooseContactAction",
"params": [],
"type": "SendMessageAction"
}
],
"methods": [
{
"id": "-287800122",
"method": "messages.readHistory",
"params": [
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "max_id",
"type": "int"
},
{
"name": "offset",
"type": "int"
},
{
"name": "read_contents",
"type": "Bool"
}
],
"type": "messages.AffectedHistory"
},
{
"id": "-1551737264",
"method": "messages.setTyping",
"params": [
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "action",
"type": "SendMessageAction"
}
],
"type": "Bool"
},
{
"id": "894131138",
"method": "messages.readMessageContents",
"params": [
{
"name": "id",
"type": "Vector<int>"
}
],
"type": "Vector<int>"
},
{
"id": "1350928921",
"method": "invokeWithLayer17",
"params": [
{
"name": "query",
"type": "!X"
}
],
"type": "X"
}
]
}

28
l017/schema.tl Normal file
View File

@ -0,0 +1,28 @@
---types---
// message#22eb6aba id:int from_id:int to_id:Peer out:Bool unread:Bool date:int message:string media:MessageMedia = Message;
message#567699b3 flags:int id:int from_id:int to_id:Peer date:int message:string media:MessageMedia = Message;
// messageForwarded#5f46804 id:int fwd_from_id:int fwd_date:int from_id:int to_id:Peer out:Bool unread:Bool date:int message:string media:MessageMedia = Message;
messageForwarded#a367e716 flags:int id:int fwd_from_id:int fwd_date:int from_id:int to_id:Peer date:int message:string media:MessageMedia = Message;
// messageService#9f8d60bb id:int from_id:int to_id:Peer out:Bool unread:Bool date:int action:MessageAction = Message;
messageService#1d86f70e flags:int id:int from_id:int to_id:Peer date:int action:MessageAction = Message;
// updateUserTyping#6baa8508 user_id:int = Update;
updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update;
// updateChatUserTyping#3c46cfe6 chat_id:int user_id:int = Update;
updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update;
sendMessageTypingAction#16bf744e = SendMessageAction;
sendMessageCancelAction#fd5ec8f5 = SendMessageAction;
sendMessageRecordVideoAction#a187d66f = SendMessageAction;
sendMessageUploadVideoAction#92042ff7 = SendMessageAction;
sendMessageRecordAudioAction#d52f73f7 = SendMessageAction;
sendMessageUploadAudioAction#e6ac8a6f = SendMessageAction;
sendMessageUploadPhotoAction#990a3c1a = SendMessageAction;
sendMessageUploadDocumentAction#8faee98e = SendMessageAction;
sendMessageGeoLocationAction#176f8ba1 = SendMessageAction;
sendMessageChooseContactAction#628cbc6f = SendMessageAction;
---functions---
// messages.readHistory#b04f2510 peer:InputPeer max_id:int offset:int = messages.AffectedHistory;
messages.readHistory#eed884c6 peer:InputPeer max_id:int offset:int read_contents:Bool = messages.AffectedHistory;
// messages.setTyping#719839e9 peer:InputPeer typing:Bool = Bool;
messages.setTyping#a3825e50 peer:InputPeer action:SendMessageAction = Bool;
messages.readMessageContents#354b5bc2 id:Vector<int> = Vector<int>;
invokeWithLayer17#50858a19 query:!X = X;

View File

@ -985,9 +985,13 @@
"type": "Message"
},
{
"id": "585853626",
"id": "1450613171",
"predicate": "message",
"params": [
{
"name": "flags",
"type": "int"
},
{
"name": "id",
"type": "int"
@ -1000,14 +1004,6 @@
"name": "to_id",
"type": "Peer"
},
{
"name": "out",
"type": "Bool"
},
{
"name": "unread",
"type": "Bool"
},
{
"name": "date",
"type": "int"
@ -1024,9 +1020,13 @@
"type": "Message"
},
{
"id": "99903492",
"id": "-1553471722",
"predicate": "messageForwarded",
"params": [
{
"name": "flags",
"type": "int"
},
{
"name": "id",
"type": "int"
@ -1047,14 +1047,6 @@
"name": "to_id",
"type": "Peer"
},
{
"name": "out",
"type": "Bool"
},
{
"name": "unread",
"type": "Bool"
},
{
"name": "date",
"type": "int"
@ -1071,9 +1063,13 @@
"type": "Message"
},
{
"id": "-1618124613",
"id": "495384334",
"predicate": "messageService",
"params": [
{
"name": "flags",
"type": "int"
},
{
"name": "id",
"type": "int"
@ -1086,14 +1082,6 @@
"name": "to_id",
"type": "Peer"
},
{
"name": "out",
"type": "Bool"
},
{
"name": "unread",
"type": "Bool"
},
{
"name": "date",
"type": "int"
@ -2306,18 +2294,22 @@
"type": "Update"
},
{
"id": "1806337288",
"id": "1548249383",
"predicate": "updateUserTyping",
"params": [
{
"name": "user_id",
"type": "int"
},
{
"name": "action",
"type": "SendMessageAction"
}
],
"type": "Update"
},
{
"id": "1011273702",
"id": "-1704596961",
"predicate": "updateChatUserTyping",
"params": [
{
@ -2327,6 +2319,10 @@
{
"name": "user_id",
"type": "int"
},
{
"name": "action",
"type": "SendMessageAction"
}
],
"type": "Update"
@ -4190,6 +4186,66 @@
}
],
"type": "auth.SentCode"
},
{
"id": "381645902",
"predicate": "sendMessageTypingAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-44119819",
"predicate": "sendMessageCancelAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1584933265",
"predicate": "sendMessageRecordVideoAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1845219337",
"predicate": "sendMessageUploadVideoAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-718310409",
"predicate": "sendMessageRecordAudioAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-424899985",
"predicate": "sendMessageUploadAudioAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1727382502",
"predicate": "sendMessageUploadPhotoAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1884362354",
"predicate": "sendMessageUploadDocumentAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "393186209",
"predicate": "sendMessageGeoLocationAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "1653390447",
"predicate": "sendMessageChooseContactAction",
"params": [],
"type": "SendMessageAction"
}
],
"methods": [
@ -4732,7 +4788,7 @@
"type": "messages.Messages"
},
{
"id": "-1336990448",
"id": "-287800122",
"method": "messages.readHistory",
"params": [
{
@ -4746,6 +4802,10 @@
{
"name": "offset",
"type": "int"
},
{
"name": "read_contents",
"type": "Bool"
}
],
"type": "messages.AffectedHistory"
@ -4799,7 +4859,7 @@
"type": "Vector<int>"
},
{
"id": "1905801705",
"id": "-1551737264",
"method": "messages.setTyping",
"params": [
{
@ -4807,8 +4867,8 @@
"type": "InputPeer"
},
{
"name": "typing",
"type": "Bool"
"name": "action",
"type": "SendMessageAction"
}
],
"type": "Bool"
@ -5870,6 +5930,28 @@
}
],
"type": "X"
},
{
"id": "894131138",
"method": "messages.readMessageContents",
"params": [
{
"name": "id",
"type": "Vector<int>"
}
],
"type": "Vector<int>"
},
{
"id": "1350928921",
"method": "invokeWithLayer17",
"params": [
{
"name": "query",
"type": "!X"
}
],
"type": "X"
}
]
}

View File

@ -70,9 +70,9 @@ chatParticipants#7841b415 chat_id:int admin_id:int participants:Vector<ChatParti
chatPhotoEmpty#37c1011c = ChatPhoto;
chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto;
messageEmpty#83e5de54 id:int = Message;
message#22eb6aba id:int from_id:int to_id:Peer out:Bool unread:Bool date:int message:string media:MessageMedia = Message;
messageForwarded#5f46804 id:int fwd_from_id:int fwd_date:int from_id:int to_id:Peer out:Bool unread:Bool date:int message:string media:MessageMedia = Message;
messageService#9f8d60bb id:int from_id:int to_id:Peer out:Bool unread:Bool date:int action:MessageAction = Message;
message#567699b3 flags:int id:int from_id:int to_id:Peer date:int message:string media:MessageMedia = Message;
messageForwarded#a367e716 flags:int id:int fwd_from_id:int fwd_date:int from_id:int to_id:Peer date:int message:string media:MessageMedia = Message;
messageService#1d86f70e flags:int id:int from_id:int to_id:Peer date:int action:MessageAction = Message;
messageMediaEmpty#3ded6320 = MessageMedia;
messageMediaPhoto#c8c45a2a photo:Photo = MessageMedia;
messageMediaVideo#a2d24290 video:Video = MessageMedia;
@ -153,8 +153,8 @@ updateMessageID#4e90bfd6 id:int random_id:long = Update;
updateReadMessages#c6649e31 messages:Vector<int> pts:int = Update;
updateDeleteMessages#a92bfe26 messages:Vector<int> pts:int = Update;
updateRestoreMessages#d15de04d messages:Vector<int> pts:int = Update;
updateUserTyping#6baa8508 user_id:int = Update;
updateChatUserTyping#3c46cfe6 chat_id:int user_id:int = Update;
updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update;
updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update;
updateChatParticipants#7761198 participants:ChatParticipants = Update;
updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update;
updateUserName#da22d9ad user_id:int first_name:string last_name:string = Update;
@ -259,6 +259,16 @@ 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;
sendMessageTypingAction#16bf744e = SendMessageAction;
sendMessageCancelAction#fd5ec8f5 = SendMessageAction;
sendMessageRecordVideoAction#a187d66f = SendMessageAction;
sendMessageUploadVideoAction#92042ff7 = SendMessageAction;
sendMessageRecordAudioAction#d52f73f7 = SendMessageAction;
sendMessageUploadAudioAction#e6ac8a6f = SendMessageAction;
sendMessageUploadPhotoAction#990a3c1a = SendMessageAction;
sendMessageUploadDocumentAction#8faee98e = SendMessageAction;
sendMessageGeoLocationAction#176f8ba1 = SendMessageAction;
sendMessageChooseContactAction#628cbc6f = SendMessageAction;
---functions---
invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
@ -297,12 +307,12 @@ messages.getMessages#4222fa74 id:Vector<int> = messages.Messages;
messages.getDialogs#eccf1df6 offset:int max_id:int limit:int = messages.Dialogs;
messages.getHistory#92a1df2f peer:InputPeer offset:int max_id:int limit:int = messages.Messages;
messages.search#7e9f2ab peer:InputPeer q:string filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = messages.Messages;
messages.readHistory#b04f2510 peer:InputPeer max_id:int offset:int = messages.AffectedHistory;
messages.readHistory#eed884c6 peer:InputPeer max_id:int offset:int read_contents:Bool = messages.AffectedHistory;
messages.deleteHistory#f4f8fb61 peer:InputPeer offset:int = messages.AffectedHistory;
messages.deleteMessages#14f2dd0a id:Vector<int> = Vector<int>;
messages.restoreMessages#395f9d7e id:Vector<int> = Vector<int>;
messages.receivedMessages#28abcb68 max_id:int = Vector<int>;
messages.setTyping#719839e9 peer:InputPeer typing:Bool = Bool;
messages.setTyping#a3825e50 peer:InputPeer action:SendMessageAction = Bool;
messages.sendMessage#4cde0aab peer:InputPeer message:string random_id:long = messages.SentMessage;
messages.sendMedia#a3c85d76 peer:InputPeer media:InputMedia random_id:long = messages.StatedMessage;
messages.forwardMessages#514cd10f peer:InputPeer id:Vector<int> = messages.StatedMessages;
@ -372,3 +382,5 @@ 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;
messages.readMessageContents#354b5bc2 id:Vector<int> = Vector<int>;
invokeWithLayer17#50858a19 query:!X = X;