diff --git a/l017/README.md b/l017/README.md new file mode 100644 index 0000000..7ef1c54 --- /dev/null +++ b/l017/README.md @@ -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 diff --git a/l017/schema.json b/l017/schema.json new file mode 100644 index 0000000..b696722 --- /dev/null +++ b/l017/schema.json @@ -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" + } + ], + "type": "Vector" + }, + { + "id": "1350928921", + "method": "invokeWithLayer17", + "params": [ + { + "name": "query", + "type": "!X" + } + ], + "type": "X" + } + ] +} \ No newline at end of file diff --git a/l017/schema.tl b/l017/schema.tl new file mode 100644 index 0000000..7045762 --- /dev/null +++ b/l017/schema.tl @@ -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 = Vector; +invokeWithLayer17#50858a19 query:!X = X; diff --git a/schema.json b/schema.json index 913dccd..c711ae3 100644 --- a/schema.json +++ b/schema.json @@ -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" }, { - "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" + } + ], + "type": "Vector" + }, + { + "id": "1350928921", + "method": "invokeWithLayer17", + "params": [ + { + "name": "query", + "type": "!X" + } + ], + "type": "X" } ] } \ No newline at end of file diff --git a/schema.tl b/schema.tl index 5763407..82dd1bf 100644 --- a/schema.tl +++ b/schema.tl @@ -70,9 +70,9 @@ chatParticipants#7841b415 chat_id:int admin_id:int participants:Vector pts:int = Update; updateDeleteMessages#a92bfe26 messages:Vector pts:int = Update; updateRestoreMessages#d15de04d messages:Vector 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 query:!X = X; @@ -297,12 +307,12 @@ messages.getMessages#4222fa74 id:Vector = 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 = Vector; messages.restoreMessages#395f9d7e id:Vector = Vector; messages.receivedMessages#28abcb68 max_id:int = Vector; -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 = messages.StatedMessages; @@ -372,3 +382,5 @@ contacts.exportCard#84e53737 = Vector; contacts.importCard#4fe196fe export_card:Vector = User; auth.sendSms#da9f3e8 phone_number:string phone_code_hash:string = Bool; invokeWithLayer16#cf5f0987 query:!X = X; +messages.readMessageContents#354b5bc2 id:Vector = Vector; +invokeWithLayer17#50858a19 query:!X = X;