mirror of
https://github.com/danog/tl-schema.git
synced 2024-11-26 11:54:54 +01:00
Add layer 002
This commit is contained in:
parent
3c2eac4a84
commit
b878a1a700
2
l002/README.md
Normal file
2
l002/README.md
Normal file
@ -0,0 +1,2 @@
|
||||
### Version info
|
||||
None, huh.
|
185
l002/schema.json
Normal file
185
l002/schema.json
Normal file
@ -0,0 +1,185 @@
|
||||
{
|
||||
"constructors": [
|
||||
{
|
||||
"id": "-715532088",
|
||||
"predicate": "userProfilePhoto",
|
||||
"params": [
|
||||
{
|
||||
"name": "photo_id",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "photo_small",
|
||||
"type": "FileLocation"
|
||||
},
|
||||
{
|
||||
"name": "photo_big",
|
||||
"type": "FileLocation"
|
||||
}
|
||||
],
|
||||
"type": "UserProfilePhoto"
|
||||
},
|
||||
{
|
||||
"id": "1185074840",
|
||||
"predicate": "inputPeerNotifySettings",
|
||||
"params": [
|
||||
{
|
||||
"name": "mute_until",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "sound",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show_previews",
|
||||
"type": "Bool"
|
||||
},
|
||||
{
|
||||
"name": "events_mask",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "InputPeerNotifySettings"
|
||||
},
|
||||
{
|
||||
"id": "-1923214866",
|
||||
"predicate": "peerNotifySettings",
|
||||
"params": [
|
||||
{
|
||||
"name": "mute_until",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "sound",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show_previews",
|
||||
"type": "Bool"
|
||||
},
|
||||
{
|
||||
"name": "events_mask",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "PeerNotifySettings"
|
||||
},
|
||||
{
|
||||
"id": "-1791935732",
|
||||
"predicate": "updateUserPhoto",
|
||||
"params": [
|
||||
{
|
||||
"name": "user_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "date",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "photo",
|
||||
"type": "UserProfilePhoto"
|
||||
},
|
||||
{
|
||||
"name": "previous",
|
||||
"type": "Bool"
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "-265263912",
|
||||
"predicate": "inputPeerNotifyEventsEmpty",
|
||||
"params": [],
|
||||
"type": "InputPeerNotifyEvents"
|
||||
},
|
||||
{
|
||||
"id": "-395694988",
|
||||
"predicate": "inputPeerNotifyEventsAll",
|
||||
"params": [],
|
||||
"type": "InputPeerNotifyEvents"
|
||||
},
|
||||
{
|
||||
"id": "-1916114267",
|
||||
"predicate": "photos.photos",
|
||||
"params": [
|
||||
{
|
||||
"name": "photos",
|
||||
"type": "Vector<Photo>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "photos.Photos"
|
||||
},
|
||||
{
|
||||
"id": "352657236",
|
||||
"predicate": "photos.photosSlice",
|
||||
"params": [
|
||||
{
|
||||
"name": "count",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "photos",
|
||||
"type": "Vector<Photo>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "photos.Photos"
|
||||
}
|
||||
],
|
||||
"methods": [
|
||||
{
|
||||
"id": "-2016444625",
|
||||
"method": "photos.deletePhotos",
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "Vector<InputPhoto>"
|
||||
}
|
||||
],
|
||||
"type": "Vector<long>"
|
||||
},
|
||||
{
|
||||
"id": "-1209117380",
|
||||
"method": "photos.getUserPhotos",
|
||||
"params": [
|
||||
{
|
||||
"name": "user_id",
|
||||
"type": "InputUser"
|
||||
},
|
||||
{
|
||||
"name": "offset",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "max_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "photos.Photos"
|
||||
},
|
||||
{
|
||||
"id": "681431542",
|
||||
"method": "invokeWithLayer2",
|
||||
"params": [
|
||||
{
|
||||
"name": "query",
|
||||
"type": "!X"
|
||||
}
|
||||
],
|
||||
"type": "X"
|
||||
}
|
||||
]
|
||||
}
|
17
l002/schema.tl
Normal file
17
l002/schema.tl
Normal file
@ -0,0 +1,17 @@
|
||||
---types---
|
||||
// userProfilePhoto#990d1493 photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto;
|
||||
userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto;
|
||||
// inputPeerNotifySettings#19bd4ed1 mute_until:int sound:string show_previews:Bool = InputPeerNotifySettings;
|
||||
inputPeerNotifySettings#46a2ce98 mute_until:int sound:string show_previews:Bool events_mask:int = InputPeerNotifySettings;
|
||||
// peerNotifySettings#dfc6621b mute_until:int sound:string show_previews:Bool = PeerNotifySettings;
|
||||
peerNotifySettings#8d5e11ee mute_until:int sound:string show_previews:Bool events_mask:int = PeerNotifySettings;
|
||||
// updateUserPhoto#bb8ba607 user_id:int photo:UserProfilePhoto = Update;
|
||||
updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update;
|
||||
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;
|
||||
---functions---
|
||||
photos.deletePhotos#87cf7f2f id:Vector<InputPhoto> = Vector<long>;
|
||||
photos.getUserPhotos#b7ee553c user_id:InputUser offset:int max_id:int limit:int = photos.Photos;
|
||||
invokeWithLayer2#289dd1f6 query:!X = X;
|
119
schema.json
119
schema.json
@ -757,9 +757,13 @@
|
||||
"type": "UserProfilePhoto"
|
||||
},
|
||||
{
|
||||
"id": "-1727196013",
|
||||
"id": "-715532088",
|
||||
"predicate": "userProfilePhoto",
|
||||
"params": [
|
||||
{
|
||||
"name": "photo_id",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "photo_small",
|
||||
"type": "FileLocation"
|
||||
@ -1540,7 +1544,7 @@
|
||||
"type": "InputNotifyPeer"
|
||||
},
|
||||
{
|
||||
"id": "431836881",
|
||||
"id": "1185074840",
|
||||
"predicate": "inputPeerNotifySettings",
|
||||
"params": [
|
||||
{
|
||||
@ -1554,6 +1558,10 @@
|
||||
{
|
||||
"name": "show_previews",
|
||||
"type": "Bool"
|
||||
},
|
||||
{
|
||||
"name": "events_mask",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "InputPeerNotifySettings"
|
||||
@ -1577,7 +1585,7 @@
|
||||
"type": "PeerNotifySettings"
|
||||
},
|
||||
{
|
||||
"id": "-540646885",
|
||||
"id": "-1923214866",
|
||||
"predicate": "peerNotifySettings",
|
||||
"params": [
|
||||
{
|
||||
@ -1591,6 +1599,10 @@
|
||||
{
|
||||
"name": "show_previews",
|
||||
"type": "Bool"
|
||||
},
|
||||
{
|
||||
"name": "events_mask",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "PeerNotifySettings"
|
||||
@ -2337,16 +2349,24 @@
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "-1148475897",
|
||||
"id": "-1791935732",
|
||||
"predicate": "updateUserPhoto",
|
||||
"params": [
|
||||
{
|
||||
"name": "user_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "date",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "photo",
|
||||
"type": "UserProfilePhoto"
|
||||
},
|
||||
{
|
||||
"name": "previous",
|
||||
"type": "Bool"
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
@ -2798,6 +2818,52 @@
|
||||
}
|
||||
],
|
||||
"type": "help.InviteText"
|
||||
},
|
||||
{
|
||||
"id": "-265263912",
|
||||
"predicate": "inputPeerNotifyEventsEmpty",
|
||||
"params": [],
|
||||
"type": "InputPeerNotifyEvents"
|
||||
},
|
||||
{
|
||||
"id": "-395694988",
|
||||
"predicate": "inputPeerNotifyEventsAll",
|
||||
"params": [],
|
||||
"type": "InputPeerNotifyEvents"
|
||||
},
|
||||
{
|
||||
"id": "-1916114267",
|
||||
"predicate": "photos.photos",
|
||||
"params": [
|
||||
{
|
||||
"name": "photos",
|
||||
"type": "Vector<Photo>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "photos.Photos"
|
||||
},
|
||||
{
|
||||
"id": "352657236",
|
||||
"predicate": "photos.photosSlice",
|
||||
"params": [
|
||||
{
|
||||
"name": "count",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "photos",
|
||||
"type": "Vector<Photo>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "photos.Photos"
|
||||
}
|
||||
],
|
||||
"methods": [
|
||||
@ -3720,6 +3786,51 @@
|
||||
}
|
||||
],
|
||||
"type": "help.InviteText"
|
||||
},
|
||||
{
|
||||
"id": "-2016444625",
|
||||
"method": "photos.deletePhotos",
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "Vector<InputPhoto>"
|
||||
}
|
||||
],
|
||||
"type": "Vector<long>"
|
||||
},
|
||||
{
|
||||
"id": "-1209117380",
|
||||
"method": "photos.getUserPhotos",
|
||||
"params": [
|
||||
{
|
||||
"name": "user_id",
|
||||
"type": "InputUser"
|
||||
},
|
||||
{
|
||||
"name": "offset",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "max_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "photos.Photos"
|
||||
},
|
||||
{
|
||||
"id": "681431542",
|
||||
"method": "invokeWithLayer2",
|
||||
"params": [
|
||||
{
|
||||
"name": "query",
|
||||
"type": "!X"
|
||||
}
|
||||
],
|
||||
"type": "X"
|
||||
}
|
||||
]
|
||||
}
|
15
schema.tl
15
schema.tl
@ -56,7 +56,7 @@ userRequest#22e8ceb0 id:int first_name:string last_name:string access_hash:long
|
||||
userForeign#5214c89d id:int first_name:string last_name:string access_hash:long photo:UserProfilePhoto status:UserStatus = User;
|
||||
userDeleted#b29ad7cc id:int first_name:string last_name:string = User;
|
||||
userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto;
|
||||
userProfilePhoto#990d1493 photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto;
|
||||
userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto;
|
||||
userStatusEmpty#9d05049 = UserStatus;
|
||||
userStatusOnline#edb93949 expires:int = UserStatus;
|
||||
userStatusOffline#8c703f was_online:int = UserStatus;
|
||||
@ -104,11 +104,11 @@ inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer;
|
||||
inputNotifyUsers#193b4417 = InputNotifyPeer;
|
||||
inputNotifyChats#4a95e84e = InputNotifyPeer;
|
||||
inputNotifyAll#a429b886 = InputNotifyPeer;
|
||||
inputPeerNotifySettings#19bd4ed1 mute_until:int sound:string show_previews:Bool = InputPeerNotifySettings;
|
||||
inputPeerNotifySettings#46a2ce98 mute_until:int sound:string show_previews:Bool events_mask:int = InputPeerNotifySettings;
|
||||
peerNotifyEventsEmpty#add53cb3 = PeerNotifyEvents;
|
||||
peerNotifyEventsAll#6d1ded88 = PeerNotifyEvents;
|
||||
peerNotifySettingsEmpty#70a68512 = PeerNotifySettings;
|
||||
peerNotifySettings#dfc6621b mute_until:int sound:string show_previews:Bool = PeerNotifySettings;
|
||||
peerNotifySettings#8d5e11ee mute_until:int sound:string show_previews:Bool events_mask:int = PeerNotifySettings;
|
||||
wallPaper#ccb03657 id:int title:string sizes:Vector<PhotoSize> color:int = WallPaper;
|
||||
userFull#771095da user:User link:contacts.Link profile_photo:Photo notify_settings:PeerNotifySettings blocked:Bool real_first_name:string real_last_name:string = UserFull;
|
||||
contact#f911c994 user_id:int mutual:Bool = Contact;
|
||||
@ -158,7 +158,7 @@ updateChatUserTyping#3c46cfe6 chat_id:int user_id:int = 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;
|
||||
updateUserPhoto#bb8ba607 user_id:int photo:UserProfilePhoto = Update;
|
||||
updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update;
|
||||
updateContactRegistered#2575bbb9 user_id:int date:int = Update;
|
||||
updateContactLink#51a48a9a user_id:int my_link:contacts.MyLink foreign_link:contacts.ForeignLink = Update;
|
||||
updateActivation#6f690963 user_id:int = Update;
|
||||
@ -181,6 +181,10 @@ nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc;
|
||||
help.appUpdate#8987f311 id:int critical:Bool url:string text:string = help.AppUpdate;
|
||||
help.noAppUpdate#c45a6536 = help.AppUpdate;
|
||||
help.inviteText#18cb9f78 message:string = help.InviteText;
|
||||
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;
|
||||
---functions---
|
||||
invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
|
||||
invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
|
||||
@ -246,3 +250,6 @@ help.getNearestDc#1fb33026 = NearestDc;
|
||||
help.getAppUpdate#c812ac7e device_model:string system_version:string app_version:string lang_code:string = help.AppUpdate;
|
||||
help.saveAppLog#6f02f748 events:Vector<InputAppEvent> = Bool;
|
||||
help.getInviteText#a4a95186 lang_code:string = help.InviteText;
|
||||
photos.deletePhotos#87cf7f2f id:Vector<InputPhoto> = Vector<long>;
|
||||
photos.getUserPhotos#b7ee553c user_id:InputUser offset:int max_id:int limit:int = photos.Photos;
|
||||
invokeWithLayer2#289dd1f6 query:!X = X;
|
||||
|
Loading…
Reference in New Issue
Block a user