1
0
mirror of https://github.com/danog/tl-schema.git synced 2025-01-22 13:41:18 +01:00

Add layer 036

This commit is contained in:
Viktor Oreshkin 2017-08-16 14:34:28 +03:00
parent 312d6b7b2d
commit 6a9cb03723
5 changed files with 347 additions and 80 deletions

4
l036/README.md Normal file
View File

@ -0,0 +1,4 @@
### Version info
App|Version/Hash|Date
---|---|---
TDesktop|84436a34b02a0c9453a86d2b4fc5f81f77b27dc6|30.08.15

268
l036/schema.json Normal file
View File

@ -0,0 +1,268 @@
{
"constructors": [
{
"id": "-2106507297",
"predicate": "inputMediaUploadedVideo",
"params": [
{
"name": "file",
"type": "InputFile"
},
{
"name": "duration",
"type": "int"
},
{
"name": "w",
"type": "int"
},
{
"name": "h",
"type": "int"
},
{
"name": "mime_type",
"type": "string"
},
{
"name": "caption",
"type": "string"
}
],
"type": "InputMedia"
},
{
"id": "2004934137",
"predicate": "inputMediaUploadedThumbVideo",
"params": [
{
"name": "file",
"type": "InputFile"
},
{
"name": "thumb",
"type": "InputFile"
},
{
"name": "duration",
"type": "int"
},
{
"name": "w",
"type": "int"
},
{
"name": "h",
"type": "int"
},
{
"name": "mime_type",
"type": "string"
},
{
"name": "caption",
"type": "string"
}
],
"type": "InputMedia"
},
{
"id": "736885382",
"predicate": "message",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "id",
"type": "int"
},
{
"name": "from_id",
"type": "int"
},
{
"name": "to_id",
"type": "Peer"
},
{
"name": "fwd_from_id",
"type": "flags.2?int"
},
{
"name": "fwd_date",
"type": "flags.2?int"
},
{
"name": "reply_to_msg_id",
"type": "flags.3?int"
},
{
"name": "date",
"type": "int"
},
{
"name": "message",
"type": "string"
},
{
"name": "media",
"type": "flags.9?MessageMedia"
},
{
"name": "reply_markup",
"type": "flags.6?ReplyMarkup"
},
{
"name": "entities",
"type": "flags.7?Vector<MessageEntity>"
}
],
"type": "Message"
},
{
"id": "-897446185",
"predicate": "webPage",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "id",
"type": "long"
},
{
"name": "url",
"type": "string"
},
{
"name": "display_url",
"type": "string"
},
{
"name": "type",
"type": "flags.0?string"
},
{
"name": "site_name",
"type": "flags.1?string"
},
{
"name": "title",
"type": "flags.2?string"
},
{
"name": "description",
"type": "flags.3?string"
},
{
"name": "photo",
"type": "flags.4?Photo"
},
{
"name": "embed_url",
"type": "flags.5?string"
},
{
"name": "embed_type",
"type": "flags.5?string"
},
{
"name": "embed_width",
"type": "flags.6?int"
},
{
"name": "embed_height",
"type": "flags.6?int"
},
{
"name": "duration",
"type": "flags.7?int"
},
{
"name": "author",
"type": "flags.8?string"
},
{
"name": "document",
"type": "flags.9?Document"
}
],
"type": "WebPage"
},
{
"id": "301019932",
"predicate": "updateShortSentMessage",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "id",
"type": "int"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_count",
"type": "int"
},
{
"name": "date",
"type": "int"
},
{
"name": "media",
"type": "flags.9?MessageMedia"
},
{
"name": "entities",
"type": "flags.7?Vector<MessageEntity>"
}
],
"type": "Updates"
}
],
"methods": [
{
"id": "-91733382",
"method": "messages.sendMessage",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "reply_to_msg_id",
"type": "flags.0?int"
},
{
"name": "message",
"type": "string"
},
{
"name": "random_id",
"type": "long"
},
{
"name": "reply_markup",
"type": "flags.2?ReplyMarkup"
},
{
"name": "entities",
"type": "flags.3?Vector<MessageEntity>"
}
],
"type": "Updates"
}
]
}

15
l036/schema.tl Normal file
View File

@ -0,0 +1,15 @@
---types---
// messages.sentMessage#8a99d8e0 id:int date:int media:MessageMedia entities:Vector<MessageEntity> pts:int pts_count:int = messages.SentMessage;
// messages.sentMessageLink#35a1a663 id:int date:int media:MessageMedia pts:int pts_count:int links:Vector<contacts.Link> seq:int = messages.SentMessage;
// inputMediaUploadedVideo#e13fd4bc file:InputFile duration:int w:int h:int caption:string = InputMedia;
inputMediaUploadedVideo#82713fdf file:InputFile duration:int w:int h:int mime_type:string caption:string = InputMedia;
// inputMediaUploadedThumbVideo#96fb97dc file:InputFile thumb:InputFile duration:int w:int h:int caption:string = InputMedia;
inputMediaUploadedThumbVideo#7780ddf9 file:InputFile thumb:InputFile duration:int w:int h:int mime_type:string caption:string = InputMedia;
// message#f07814c8 flags:# id:int from_id:int to_id:Peer fwd_from_id:flags.2?int fwd_date:flags.2?int reply_to_msg_id:flags.3?int date:int message:string media:MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> = Message;
message#2bebfa86 flags:# id:int from_id:int to_id:Peer fwd_from_id:flags.2?int fwd_date:flags.2?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> = Message;
// webPage#a31ea0b5 flags:# id:long url:string display_url:string type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string = WebPage;
webPage#ca820ed7 flags:# id:long url:string display_url:string type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document = WebPage;
updateShortSentMessage#11f1331c flags:# id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
---functions---
// messages.sendMessage#df12390 flags:# peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = messages.SentMessage;
messages.sendMessage#fa88427a flags:# peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Updates;

View File

@ -181,7 +181,7 @@
"type": "InputMedia"
},
{
"id": "-515910468",
"id": "-2106507297",
"predicate": "inputMediaUploadedVideo",
"params": [
{
@ -200,6 +200,10 @@
"name": "h",
"type": "int"
},
{
"name": "mime_type",
"type": "string"
},
{
"name": "caption",
"type": "string"
@ -208,7 +212,7 @@
"type": "InputMedia"
},
{
"id": "-1761896484",
"id": "2004934137",
"predicate": "inputMediaUploadedThumbVideo",
"params": [
{
@ -231,6 +235,10 @@
"name": "h",
"type": "int"
},
{
"name": "mime_type",
"type": "string"
},
{
"name": "caption",
"type": "string"
@ -798,7 +806,7 @@
"type": "Message"
},
{
"id": "-260565816",
"id": "736885382",
"predicate": "message",
"params": [
{
@ -839,7 +847,7 @@
},
{
"name": "media",
"type": "MessageMedia"
"type": "flags.9?MessageMedia"
},
{
"name": "reply_markup",
@ -1713,37 +1721,6 @@
],
"type": "messages.Messages"
},
{
"id": "-1969628960",
"predicate": "messages.sentMessage",
"params": [
{
"name": "id",
"type": "int"
},
{
"name": "date",
"type": "int"
},
{
"name": "media",
"type": "MessageMedia"
},
{
"name": "entities",
"type": "Vector<MessageEntity>"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_count",
"type": "int"
}
],
"type": "messages.SentMessage"
},
{
"id": "1694474197",
"predicate": "messages.chats",
@ -2563,41 +2540,6 @@
],
"type": "photos.Photos"
},
{
"id": "899786339",
"predicate": "messages.sentMessageLink",
"params": [
{
"name": "id",
"type": "int"
},
{
"name": "date",
"type": "int"
},
{
"name": "media",
"type": "MessageMedia"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_count",
"type": "int"
},
{
"name": "links",
"type": "Vector<contacts.Link>"
},
{
"name": "seq",
"type": "int"
}
],
"type": "messages.SentMessage"
},
{
"id": "1662091044",
"predicate": "wallPaperSolid",
@ -4146,7 +4088,7 @@
"type": "WebPage"
},
{
"id": "-1558273867",
"id": "-897446185",
"predicate": "webPage",
"params": [
{
@ -4208,6 +4150,10 @@
{
"name": "author",
"type": "flags.8?string"
},
{
"name": "document",
"type": "flags.9?Document"
}
],
"type": "WebPage"
@ -4951,6 +4897,41 @@
}
],
"type": "MessageEntity"
},
{
"id": "301019932",
"predicate": "updateShortSentMessage",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "id",
"type": "int"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_count",
"type": "int"
},
{
"name": "date",
"type": "int"
},
{
"name": "media",
"type": "flags.9?MessageMedia"
},
{
"name": "entities",
"type": "flags.7?Vector<MessageEntity>"
}
],
"type": "Updates"
}
],
"methods": [
@ -5542,7 +5523,7 @@
"type": "Bool"
},
{
"id": "233907088",
"id": "-91733382",
"method": "messages.sendMessage",
"params": [
{
@ -5574,7 +5555,7 @@
"type": "flags.3?Vector<MessageEntity>"
}
],
"type": "messages.SentMessage"
"type": "Updates"
},
{
"id": "-923703407",

View File

@ -15,8 +15,8 @@ inputMediaUploadedPhoto#f7aff1c0 file:InputFile caption:string = InputMedia;
inputMediaPhoto#e9bfb4f3 id:InputPhoto caption:string = InputMedia;
inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia;
inputMediaContact#a6e45987 phone_number:string first_name:string last_name:string = InputMedia;
inputMediaUploadedVideo#e13fd4bc file:InputFile duration:int w:int h:int caption:string = InputMedia;
inputMediaUploadedThumbVideo#96fb97dc file:InputFile thumb:InputFile duration:int w:int h:int caption:string = InputMedia;
inputMediaUploadedVideo#82713fdf file:InputFile duration:int w:int h:int mime_type:string caption:string = InputMedia;
inputMediaUploadedThumbVideo#7780ddf9 file:InputFile thumb:InputFile duration:int w:int h:int mime_type:string caption:string = InputMedia;
inputMediaVideo#936a4ebd id:InputVideo caption:string = InputMedia;
inputChatPhotoEmpty#1ca48f57 = InputChatPhoto;
inputChatUploadedPhoto#94254732 file:InputFile crop:InputPhotoCrop = InputChatPhoto;
@ -61,7 +61,7 @@ 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#f07814c8 flags:# id:int from_id:int to_id:Peer fwd_from_id:flags.2?int fwd_date:flags.2?int reply_to_msg_id:flags.3?int date:int message:string media:MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> = Message;
message#2bebfa86 flags:# id:int from_id:int to_id:Peer fwd_from_id:flags.2?int fwd_date:flags.2?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> = Message;
messageService#1d86f70e flags:int id:int from_id:int to_id:Peer date:int action:MessageAction = Message;
messageMediaEmpty#3ded6320 = MessageMedia;
messageMediaPhoto#3d8ce53d photo:Photo caption:string = MessageMedia;
@ -117,7 +117,6 @@ messages.dialogs#15ba6c40 dialogs:Vector<Dialog> messages:Vector<Message> chats:
messages.dialogsSlice#71e094f3 count:int dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs;
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.messagesSlice#b446ae3 count:int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.sentMessage#8a99d8e0 id:int date:int media:MessageMedia entities:Vector<MessageEntity> pts:int pts_count:int = messages.SentMessage;
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
@ -159,7 +158,6 @@ inputPeerNotifyEventsEmpty#f03064d8 = InputPeerNotifyEvents;
inputPeerNotifyEventsAll#e86a2c74 = InputPeerNotifyEvents;
photos.photos#8dca6aa5 photos:Vector<Photo> users:Vector<User> = photos.Photos;
photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> = photos.Photos;
messages.sentMessageLink#35a1a663 id:int date:int media:MessageMedia pts:int pts_count:int links:Vector<contacts.Link> seq:int = messages.SentMessage;
wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper;
updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update;
updateEncryptedChatTyping#1710f156 chat_id:int = Update;
@ -276,7 +274,7 @@ contactLinkContact#d502c2d0 = ContactLink;
updateWebPage#2cc36971 webpage:WebPage = Update;
webPageEmpty#eb1477e8 id:long = WebPage;
webPagePending#c586da1c id:long date:int = WebPage;
webPage#a31ea0b5 flags:# id:long url:string display_url:string type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string = WebPage;
webPage#ca820ed7 flags:# id:long url:string display_url:string type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document = WebPage;
messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia;
authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;
account.authorizations#1250abde authorizations:Vector<Authorization> = account.Authorizations;
@ -323,6 +321,7 @@ messageEntityItalic#826f8b60 offset:int length:int = MessageEntity;
messageEntityCode#28a20571 offset:int length:int = MessageEntity;
messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity;
messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity;
updateShortSentMessage#11f1331c flags:# id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
---functions---
invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
@ -364,7 +363,7 @@ messages.deleteHistory#f4f8fb61 peer:InputPeer offset:int = messages.AffectedHis
messages.deleteMessages#a5f18925 id:Vector<int> = messages.AffectedMessages;
messages.receivedMessages#5a954c0 max_id:int = Vector<ReceivedNotifyMessage>;
messages.setTyping#a3825e50 peer:InputPeer action:SendMessageAction = Bool;
messages.sendMessage#df12390 flags:# peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = messages.SentMessage;
messages.sendMessage#fa88427a flags:# peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Updates;
messages.sendMedia#c8f16791 flags:# peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia random_id:long reply_markup:flags.2?ReplyMarkup = Updates;
messages.forwardMessages#55e1728d peer:InputPeer id:Vector<int> random_id:Vector<long> = Updates;
messages.getChats#3c6aa187 id:Vector<int> = messages.Chats;