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

Add layer 066

This commit is contained in:
Viktor Oreshkin 2017-07-01 11:52:25 +03:00
parent 3b772667df
commit ac578797fc
5 changed files with 528 additions and 5 deletions

30
l066/README.md Normal file
View File

@ -0,0 +1,30 @@
### Version info
App|Version/Hash|Date
---|---|---
TDesktop|8d28d0691f668a67587b056aeb53302929f77385|23.05.17
Webogram|fb9bd8f1ec76485951d82dda8b8bd31e19dd6ee7|29.06.17
### Notes
Webogram version was outdated:
```diff
165c165
< contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers;
---
> contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers;
323a324
> inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem;
510a512
> messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia;
519a522
> pageBlockChannel#ef1751b5 channel:Chat = PageBlock;
622c625
< sendMessageUploadRoundAction#bb718624 = SendMessageAction;
---
> sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction;
628a632,635
> stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet;
> stickers.changeStickerPosition#4ed705ca sticker:InputDocument position:int = Bool;
> stickers.createStickerSet#9bd86e6a flags:# masks:flags.0?true user_id:InputUser title:string short_name:string stickers:Vector<InputStickerSetItem> = messages.StickerSet;
> stickers.removeStickerFromSet#04255934 sticker:InputDocument = Bool;
```

310
l066/schema.json Normal file
View File

@ -0,0 +1,310 @@
{
"constructors": [
{
"id": "98092748",
"predicate": "dcOption",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "ipv6",
"type": "flags.0?true"
},
{
"name": "media_only",
"type": "flags.1?true"
},
{
"name": "tcpo_only",
"type": "flags.2?true"
},
{
"name": "cdn",
"type": "flags.3?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "ip_address",
"type": "string"
},
{
"name": "port",
"type": "int"
}
],
"type": "DcOption"
},
{
"id": "250621158",
"predicate": "documentAttributeVideo",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "round_message",
"type": "flags.0?true"
},
{
"name": "duration",
"type": "int"
},
{
"name": "w",
"type": "int"
},
{
"name": "h",
"type": "int"
}
],
"type": "DocumentAttribute"
},
{
"id": "773059779",
"predicate": "user",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "self",
"type": "flags.10?true"
},
{
"name": "contact",
"type": "flags.11?true"
},
{
"name": "mutual_contact",
"type": "flags.12?true"
},
{
"name": "deleted",
"type": "flags.13?true"
},
{
"name": "bot",
"type": "flags.14?true"
},
{
"name": "bot_chat_history",
"type": "flags.15?true"
},
{
"name": "bot_nochats",
"type": "flags.16?true"
},
{
"name": "verified",
"type": "flags.17?true"
},
{
"name": "restricted",
"type": "flags.18?true"
},
{
"name": "min",
"type": "flags.20?true"
},
{
"name": "bot_inline_geo",
"type": "flags.21?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "access_hash",
"type": "flags.0?long"
},
{
"name": "first_name",
"type": "flags.1?string"
},
{
"name": "last_name",
"type": "flags.2?string"
},
{
"name": "username",
"type": "flags.3?string"
},
{
"name": "phone",
"type": "flags.4?string"
},
{
"name": "photo",
"type": "flags.5?UserProfilePhoto"
},
{
"name": "status",
"type": "flags.6?UserStatus"
},
{
"name": "bot_info_version",
"type": "flags.14?int"
},
{
"name": "restriction_reason",
"type": "flags.18?string"
},
{
"name": "bot_inline_placeholder",
"type": "flags.19?string"
},
{
"name": "lang_code",
"type": "flags.22?string"
}
],
"type": "User"
},
{
"id": "2054952868",
"predicate": "inputMessagesFilterRoundVoice",
"params": [],
"type": "MessagesFilter"
},
{
"id": "-1253451181",
"predicate": "inputMessagesFilterRoundVideo",
"params": [],
"type": "MessagesFilter"
},
{
"id": "352864346",
"predicate": "upload.fileCdnRedirect",
"params": [
{
"name": "dc_id",
"type": "int"
},
{
"name": "file_token",
"type": "bytes"
},
{
"name": "encryption_key",
"type": "bytes"
},
{
"name": "encryption_iv",
"type": "bytes"
}
],
"type": "upload.File"
},
{
"id": "-1997373508",
"predicate": "sendMessageRecordRoundAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1150187996",
"predicate": "sendMessageUploadRoundAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-290921362",
"predicate": "upload.cdnFileReuploadNeeded",
"params": [
{
"name": "request_token",
"type": "bytes"
}
],
"type": "upload.CdnFile"
},
{
"id": "-1449145777",
"predicate": "upload.cdnFile",
"params": [
{
"name": "bytes",
"type": "bytes"
}
],
"type": "upload.CdnFile"
},
{
"id": "-914167110",
"predicate": "cdnPublicKey",
"params": [
{
"name": "dc_id",
"type": "int"
},
{
"name": "public_key",
"type": "string"
}
],
"type": "CdnPublicKey"
},
{
"id": "1462101002",
"predicate": "cdnConfig",
"params": [
{
"name": "public_keys",
"type": "Vector<CdnPublicKey>"
}
],
"type": "CdnConfig"
}
],
"methods": [
{
"id": "536919235",
"method": "upload.getCdnFile",
"params": [
{
"name": "file_token",
"type": "bytes"
},
{
"name": "offset",
"type": "int"
},
{
"name": "limit",
"type": "int"
}
],
"type": "upload.CdnFile"
},
{
"id": "779755552",
"method": "upload.reuploadCdnFile",
"params": [
{
"name": "file_token",
"type": "bytes"
},
{
"name": "request_token",
"type": "bytes"
}
],
"type": "Bool"
},
{
"id": "1375900482",
"method": "help.getCdnConfig",
"params": [],
"type": "CdnConfig"
}
]
}

20
l066/schema.tl Normal file
View File

@ -0,0 +1,20 @@
---types---
// dcOption#5d8c6cc flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true id:int ip_address:string port:int = DcOption;
dcOption#5d8c6cc flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true id:int ip_address:string port:int = DcOption;
// documentAttributeVideo#5910cccb duration:int w:int h:int = DocumentAttribute;
documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true duration:int w:int h:int = DocumentAttribute;
// user#d10d979a flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string = User;
user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User;
inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter;
inputMessagesFilterRoundVideo#b549da53 = MessagesFilter;
upload.fileCdnRedirect#1508485a dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes = upload.File;
sendMessageRecordRoundAction#88f27fbc = SendMessageAction;
sendMessageUploadRoundAction#bb718624 = SendMessageAction;
upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile;
upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile;
cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey;
cdnConfig#5725e40a public_keys:Vector<CdnPublicKey> = CdnConfig;
---functions---
upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile;
upload.reuploadCdnFile#2e7a2020 file_token:bytes request_token:bytes = Bool;
help.getCdnConfig#52029342 = CdnConfig;

View File

@ -2292,6 +2292,10 @@
"name": "tcpo_only",
"type": "flags.2?true"
},
{
"name": "cdn",
"type": "flags.3?true"
},
{
"name": "id",
"type": "int"
@ -3692,9 +3696,17 @@
"type": "DocumentAttribute"
},
{
"id": "1494273227",
"id": "250621158",
"predicate": "documentAttributeVideo",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "round_message",
"type": "flags.0?true"
},
{
"name": "duration",
"type": "int"
@ -4463,7 +4475,7 @@
"type": "messages.StickerSet"
},
{
"id": "-787638374",
"id": "773059779",
"predicate": "user",
"params": [
{
@ -4557,6 +4569,10 @@
{
"name": "bot_inline_placeholder",
"type": "flags.19?string"
},
{
"name": "lang_code",
"type": "flags.22?string"
}
],
"type": "User"
@ -9271,6 +9287,101 @@
}
],
"type": "PhoneCall"
},
{
"id": "2054952868",
"predicate": "inputMessagesFilterRoundVoice",
"params": [],
"type": "MessagesFilter"
},
{
"id": "-1253451181",
"predicate": "inputMessagesFilterRoundVideo",
"params": [],
"type": "MessagesFilter"
},
{
"id": "352864346",
"predicate": "upload.fileCdnRedirect",
"params": [
{
"name": "dc_id",
"type": "int"
},
{
"name": "file_token",
"type": "bytes"
},
{
"name": "encryption_key",
"type": "bytes"
},
{
"name": "encryption_iv",
"type": "bytes"
}
],
"type": "upload.File"
},
{
"id": "-1997373508",
"predicate": "sendMessageRecordRoundAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-1150187996",
"predicate": "sendMessageUploadRoundAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "-290921362",
"predicate": "upload.cdnFileReuploadNeeded",
"params": [
{
"name": "request_token",
"type": "bytes"
}
],
"type": "upload.CdnFile"
},
{
"id": "-1449145777",
"predicate": "upload.cdnFile",
"params": [
{
"name": "bytes",
"type": "bytes"
}
],
"type": "upload.CdnFile"
},
{
"id": "-914167110",
"predicate": "cdnPublicKey",
"params": [
{
"name": "dc_id",
"type": "int"
},
{
"name": "public_key",
"type": "string"
}
],
"type": "CdnPublicKey"
},
{
"id": "1462101002",
"predicate": "cdnConfig",
"params": [
{
"name": "public_keys",
"type": "Vector<CdnPublicKey>"
}
],
"type": "CdnConfig"
}
],
"methods": [
@ -12750,6 +12861,46 @@
}
],
"type": "Bool"
},
{
"id": "536919235",
"method": "upload.getCdnFile",
"params": [
{
"name": "file_token",
"type": "bytes"
},
{
"name": "offset",
"type": "int"
},
{
"name": "limit",
"type": "int"
}
],
"type": "upload.CdnFile"
},
{
"id": "779755552",
"method": "upload.reuploadCdnFile",
"params": [
{
"name": "file_token",
"type": "bytes"
},
{
"name": "request_token",
"type": "bytes"
}
],
"type": "Bool"
},
{
"id": "1375900482",
"method": "help.getCdnConfig",
"params": [],
"type": "CdnConfig"
}
]
}

View File

@ -135,7 +135,7 @@ updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<
updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;
upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File;
dcOption#5d8c6cc flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true id:int ip_address:string port:int = DcOption;
dcOption#5d8c6cc flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true id:int ip_address:string port:int = DcOption;
config#cb601684 flags:# phonecalls_enabled:flags.1?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int chat_big_size:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int rating_e_decay:int stickers_recent_limit:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string disabled_features:Vector<DisabledFeature> = Config;
nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc;
help.appUpdate#8987f311 id:int critical:Bool url:string text:string = help.AppUpdate;
@ -228,7 +228,7 @@ disabledFeature#ae636f24 feature:string description:string = DisabledFeature;
documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute;
documentAttributeAnimated#11b58939 = DocumentAttribute;
documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute;
documentAttributeVideo#5910cccb duration:int w:int h:int = DocumentAttribute;
documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true duration:int w:int h:int = DocumentAttribute;
documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute;
documentAttributeFilename#15590068 file_name:string = DocumentAttribute;
messages.stickersNotModified#f1749a22 = messages.Stickers;
@ -269,7 +269,7 @@ inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet;
inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;
stickerSet#cd303b41 flags:# installed:flags.0?true archived:flags.1?true official:flags.2?true masks:flags.3?true id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet;
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
user#d10d979a flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string = User;
user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User;
botCommand#c27ac8c7 command:string description:string = BotCommand;
botInfo#98e81d3a user_id:int description:string commands:Vector<BotCommand> = BotInfo;
keyboardButton#a2fa4880 text:string = KeyboardButton;
@ -537,6 +537,15 @@ inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = Input
account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword;
shippingOption#b6213cdf id:string title:string prices:Vector<LabeledPrice> = ShippingOption;
phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall;
inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter;
inputMessagesFilterRoundVideo#b549da53 = MessagesFilter;
upload.fileCdnRedirect#1508485a dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes = upload.File;
sendMessageRecordRoundAction#88f27fbc = SendMessageAction;
sendMessageUploadRoundAction#bb718624 = SendMessageAction;
upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile;
upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile;
cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey;
cdnConfig#5725e40a public_keys:Vector<CdnPublicKey> = CdnConfig;
---functions---
invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
@ -751,3 +760,6 @@ phone.getCallConfig#55451fa9 = DataJSON;
phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall;
phone.setCallRating#1c536a34 peer:InputPhoneCall rating:int comment:string = Updates;
phone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool;
upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile;
upload.reuploadCdnFile#2e7a2020 file_token:bytes request_token:bytes = Bool;
help.getCdnConfig#52029342 = CdnConfig;