mirror of
https://github.com/danog/tl-schema.git
synced 2024-11-30 04:19:47 +01:00
Add layer 021
This commit is contained in:
parent
064ea94ca4
commit
dc7100a726
17
l021/README.md
Normal file
17
l021/README.md
Normal file
@ -0,0 +1,17 @@
|
||||
### Version info
|
||||
None, huh
|
||||
|
||||
### Notes
|
||||
This layer doesn't seem to be used in any app, however bunch of stuff gets removed in layer 22
|
||||
So I decieded to make a layer just for sake of removing geochats, broadcasts, restoring messages and suggested contacts
|
||||
|
||||
Oh, and replacing
|
||||
```
|
||||
messageMediaUnsupported#29632a36 bytes:bytes = MessageMedia;
|
||||
```
|
||||
with
|
||||
```
|
||||
messageMediaUnsupported#9f84f49e = MessageMedia;
|
||||
```
|
||||
|
||||
And adding disabledFeatures + expires to config
|
69
l021/schema.json
Normal file
69
l021/schema.json
Normal file
@ -0,0 +1,69 @@
|
||||
{
|
||||
"constructors": [
|
||||
{
|
||||
"id": "-1618676578",
|
||||
"predicate": "messageMediaUnsupported",
|
||||
"params": [],
|
||||
"type": "MessageMedia"
|
||||
},
|
||||
{
|
||||
"id": "2108568544",
|
||||
"predicate": "config",
|
||||
"params": [
|
||||
{
|
||||
"name": "date",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "expires",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "test_mode",
|
||||
"type": "Bool"
|
||||
},
|
||||
{
|
||||
"name": "this_dc",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "dc_options",
|
||||
"type": "Vector<DcOption>"
|
||||
},
|
||||
{
|
||||
"name": "chat_big_size",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "chat_size_max",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "broadcast_size_max",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "disabled_features",
|
||||
"type": "Vector<DisabledFeature>"
|
||||
}
|
||||
],
|
||||
"type": "Config"
|
||||
},
|
||||
{
|
||||
"id": "-1369215196",
|
||||
"predicate": "disabledFeature",
|
||||
"params": [
|
||||
{
|
||||
"name": "feature",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "DisabledFeature"
|
||||
}
|
||||
],
|
||||
"methods": []
|
||||
}
|
43
l021/schema.tl
Normal file
43
l021/schema.tl
Normal file
@ -0,0 +1,43 @@
|
||||
---types---
|
||||
// contactSuggested#3de191a1 user_id:int mutual_contacts:int = ContactSuggested;
|
||||
// contacts.suggested#5649dcc5 results:Vector<ContactSuggested> users:Vector<User> = contacts.Suggested;
|
||||
// messages.messageEmpty#3f4e0648 = messages.Message;
|
||||
// messages.message#ff90c417 message:Message chats:Vector<Chat> users:Vector<User> = messages.Message;
|
||||
// messages.chat#40e9002a chat:Chat users:Vector<User> = messages.Chat;
|
||||
// updateRestoreMessages#d15de04d messages:Vector<int> pts:int = Update;
|
||||
// updateActivation#6f690963 user_id:int = Update;
|
||||
// chatLocated#3631cf4c chat_id:int distance:int = ChatLocated;
|
||||
// inputGeoChat#74d456fa chat_id:int access_hash:long = InputGeoChat;
|
||||
// inputNotifyGeoChatPeer#4d8ddec8 peer:InputGeoChat = InputNotifyPeer;
|
||||
// geoChat#75eaea5a id:int access_hash:long title:string address:string venue:string geo:GeoPoint photo:ChatPhoto participants_count:int date:int checked_in:Bool version:int = Chat;
|
||||
// geoChatMessageEmpty#60311a9b chat_id:int id:int = GeoChatMessage;
|
||||
// geoChatMessage#4505f8e1 chat_id:int id:int from_id:int date:int message:string media:MessageMedia = GeoChatMessage;
|
||||
// geoChatMessageService#d34fa24e chat_id:int id:int from_id:int date:int action:MessageAction = GeoChatMessage;
|
||||
// geochats.statedMessage#17b1578b message:GeoChatMessage chats:Vector<Chat> users:Vector<User> seq:int = geochats.StatedMessage;
|
||||
// geochats.located#48feb267 results:Vector<ChatLocated> messages:Vector<GeoChatMessage> chats:Vector<Chat> users:Vector<User> = geochats.Located;
|
||||
// geochats.messages#d1526db1 messages:Vector<GeoChatMessage> chats:Vector<Chat> users:Vector<User> = geochats.Messages;
|
||||
// geochats.messagesSlice#bc5863e8 count:int messages:Vector<GeoChatMessage> chats:Vector<Chat> users:Vector<User> = geochats.Messages;
|
||||
// messageActionGeoChatCreate#6f038ebc title:string address:string = MessageAction;
|
||||
// messageActionGeoChatCheckin#c7d53de = MessageAction;
|
||||
// updateNewGeoChatMessage#5a68e3f7 message:GeoChatMessage = Update;
|
||||
// messageMediaUnsupported#29632a36 bytes:bytes = MessageMedia;
|
||||
messageMediaUnsupported#9f84f49e = MessageMedia;
|
||||
// config#2e54dd74 date:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> chat_size_max:int broadcast_size_max:int = Config;
|
||||
config#7dae33e0 date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> chat_big_size:int chat_size_max:int broadcast_size_max:int disabled_features:Vector<DisabledFeature> = Config;
|
||||
disabledFeature#ae636f24 feature:string description:string = DisabledFeature;
|
||||
---functions---
|
||||
// contacts.getSuggested#cd773428 limit:int = contacts.Suggested;
|
||||
// messages.restoreMessages#395f9d7e id:Vector<int> = Vector<int>;
|
||||
// messages.sendBroadcast#41bb0972 contacts:Vector<InputUser> message:string media:InputMedia = messages.StatedMessages;
|
||||
// geochats.getLocated#7f192d8f geo_point:InputGeoPoint radius:int limit:int = geochats.Located;
|
||||
// geochats.getRecents#e1427e6f offset:int limit:int = geochats.Messages;
|
||||
// geochats.checkin#55b3e8fb peer:InputGeoChat = geochats.StatedMessage;
|
||||
// geochats.getFullChat#6722dd6f peer:InputGeoChat = messages.ChatFull;
|
||||
// geochats.editChatTitle#4c8e2273 peer:InputGeoChat title:string address:string = geochats.StatedMessage;
|
||||
// geochats.editChatPhoto#35d81a95 peer:InputGeoChat photo:InputChatPhoto = geochats.StatedMessage;
|
||||
// geochats.search#cfcdc44d peer:InputGeoChat q:string filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = geochats.Messages;
|
||||
// geochats.getHistory#b53f7a68 peer:InputGeoChat offset:int max_id:int limit:int = geochats.Messages;
|
||||
// geochats.setTyping#8b8a729 peer:InputGeoChat typing:Bool = Bool;
|
||||
// geochats.sendMessage#61b0044 peer:InputGeoChat message:string random_id:long = geochats.StatedMessage;
|
||||
// geochats.sendMedia#b8f0deff peer:InputGeoChat media:InputMedia random_id:long = geochats.StatedMessage;
|
||||
// geochats.createGeoChat#e092e16 title:string geo_point:InputGeoPoint address:string venue:string = geochats.StatedMessage;
|
688
schema.json
688
schema.json
@ -1176,14 +1176,9 @@
|
||||
"type": "MessageMedia"
|
||||
},
|
||||
{
|
||||
"id": "694364726",
|
||||
"id": "-1618676578",
|
||||
"predicate": "messageMediaUnsupported",
|
||||
"params": [
|
||||
{
|
||||
"name": "bytes",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"type": "MessageMedia"
|
||||
},
|
||||
{
|
||||
@ -1753,21 +1748,6 @@
|
||||
],
|
||||
"type": "ContactFound"
|
||||
},
|
||||
{
|
||||
"id": "1038193057",
|
||||
"predicate": "contactSuggested",
|
||||
"params": [
|
||||
{
|
||||
"name": "user_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "mutual_contacts",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "ContactSuggested"
|
||||
},
|
||||
{
|
||||
"id": "-748155807",
|
||||
"predicate": "contactStatus",
|
||||
@ -1937,21 +1917,6 @@
|
||||
],
|
||||
"type": "contacts.Found"
|
||||
},
|
||||
{
|
||||
"id": "1447681221",
|
||||
"predicate": "contacts.suggested",
|
||||
"params": [
|
||||
{
|
||||
"name": "results",
|
||||
"type": "Vector<ContactSuggested>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "contacts.Suggested"
|
||||
},
|
||||
{
|
||||
"id": "364538944",
|
||||
"predicate": "messages.dialogs",
|
||||
@ -2044,31 +2009,6 @@
|
||||
],
|
||||
"type": "messages.Messages"
|
||||
},
|
||||
{
|
||||
"id": "1062078024",
|
||||
"predicate": "messages.messageEmpty",
|
||||
"params": [],
|
||||
"type": "messages.Message"
|
||||
},
|
||||
{
|
||||
"id": "-7289833",
|
||||
"predicate": "messages.message",
|
||||
"params": [
|
||||
{
|
||||
"name": "message",
|
||||
"type": "Message"
|
||||
},
|
||||
{
|
||||
"name": "chats",
|
||||
"type": "Vector<Chat>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "messages.Message"
|
||||
},
|
||||
{
|
||||
"id": "-1768654661",
|
||||
"predicate": "messages.statedMessages",
|
||||
@ -2146,21 +2086,6 @@
|
||||
],
|
||||
"type": "messages.SentMessage"
|
||||
},
|
||||
{
|
||||
"id": "1089011754",
|
||||
"predicate": "messages.chat",
|
||||
"params": [
|
||||
{
|
||||
"name": "chat",
|
||||
"type": "Chat"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "messages.Chat"
|
||||
},
|
||||
{
|
||||
"id": "-2125411368",
|
||||
"predicate": "messages.chats",
|
||||
@ -2298,21 +2223,6 @@
|
||||
],
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "-782376883",
|
||||
"predicate": "updateRestoreMessages",
|
||||
"params": [
|
||||
{
|
||||
"name": "messages",
|
||||
"type": "Vector<int>"
|
||||
},
|
||||
{
|
||||
"name": "pts",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "1548249383",
|
||||
"predicate": "updateUserTyping",
|
||||
@ -2453,17 +2363,6 @@
|
||||
],
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "1869154659",
|
||||
"predicate": "updateActivation",
|
||||
"params": [
|
||||
{
|
||||
"name": "user_id",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "-1895411046",
|
||||
"predicate": "updateNewAuthorization",
|
||||
@ -2794,13 +2693,17 @@
|
||||
"type": "DcOption"
|
||||
},
|
||||
{
|
||||
"id": "777313652",
|
||||
"id": "2108568544",
|
||||
"predicate": "config",
|
||||
"params": [
|
||||
{
|
||||
"name": "date",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "expires",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "test_mode",
|
||||
"type": "Bool"
|
||||
@ -2813,6 +2716,10 @@
|
||||
"name": "dc_options",
|
||||
"type": "Vector<DcOption>"
|
||||
},
|
||||
{
|
||||
"name": "chat_big_size",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "chat_size_max",
|
||||
"type": "int"
|
||||
@ -2820,6 +2727,10 @@
|
||||
{
|
||||
"name": "broadcast_size_max",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "disabled_features",
|
||||
"type": "Vector<DisabledFeature>"
|
||||
}
|
||||
],
|
||||
"type": "Config"
|
||||
@ -3018,291 +2929,6 @@
|
||||
],
|
||||
"type": "messages.SentMessage"
|
||||
},
|
||||
{
|
||||
"id": "909233996",
|
||||
"predicate": "chatLocated",
|
||||
"params": [
|
||||
{
|
||||
"name": "chat_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "distance",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "ChatLocated"
|
||||
},
|
||||
{
|
||||
"id": "1960072954",
|
||||
"predicate": "inputGeoChat",
|
||||
"params": [
|
||||
{
|
||||
"name": "chat_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "access_hash",
|
||||
"type": "long"
|
||||
}
|
||||
],
|
||||
"type": "InputGeoChat"
|
||||
},
|
||||
{
|
||||
"id": "1301143240",
|
||||
"predicate": "inputNotifyGeoChatPeer",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
}
|
||||
],
|
||||
"type": "InputNotifyPeer"
|
||||
},
|
||||
{
|
||||
"id": "1978329690",
|
||||
"predicate": "geoChat",
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "access_hash",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "title",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "venue",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "geo",
|
||||
"type": "GeoPoint"
|
||||
},
|
||||
{
|
||||
"name": "photo",
|
||||
"type": "ChatPhoto"
|
||||
},
|
||||
{
|
||||
"name": "participants_count",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "date",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "checked_in",
|
||||
"type": "Bool"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "Chat"
|
||||
},
|
||||
{
|
||||
"id": "1613830811",
|
||||
"predicate": "geoChatMessageEmpty",
|
||||
"params": [
|
||||
{
|
||||
"name": "chat_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "GeoChatMessage"
|
||||
},
|
||||
{
|
||||
"id": "1158019297",
|
||||
"predicate": "geoChatMessage",
|
||||
"params": [
|
||||
{
|
||||
"name": "chat_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "from_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "date",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "media",
|
||||
"type": "MessageMedia"
|
||||
}
|
||||
],
|
||||
"type": "GeoChatMessage"
|
||||
},
|
||||
{
|
||||
"id": "-749755826",
|
||||
"predicate": "geoChatMessageService",
|
||||
"params": [
|
||||
{
|
||||
"name": "chat_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "from_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "date",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "action",
|
||||
"type": "MessageAction"
|
||||
}
|
||||
],
|
||||
"type": "GeoChatMessage"
|
||||
},
|
||||
{
|
||||
"id": "397498251",
|
||||
"predicate": "geochats.statedMessage",
|
||||
"params": [
|
||||
{
|
||||
"name": "message",
|
||||
"type": "GeoChatMessage"
|
||||
},
|
||||
{
|
||||
"name": "chats",
|
||||
"type": "Vector<Chat>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
},
|
||||
{
|
||||
"name": "seq",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "geochats.StatedMessage"
|
||||
},
|
||||
{
|
||||
"id": "1224651367",
|
||||
"predicate": "geochats.located",
|
||||
"params": [
|
||||
{
|
||||
"name": "results",
|
||||
"type": "Vector<ChatLocated>"
|
||||
},
|
||||
{
|
||||
"name": "messages",
|
||||
"type": "Vector<GeoChatMessage>"
|
||||
},
|
||||
{
|
||||
"name": "chats",
|
||||
"type": "Vector<Chat>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "geochats.Located"
|
||||
},
|
||||
{
|
||||
"id": "-783127119",
|
||||
"predicate": "geochats.messages",
|
||||
"params": [
|
||||
{
|
||||
"name": "messages",
|
||||
"type": "Vector<GeoChatMessage>"
|
||||
},
|
||||
{
|
||||
"name": "chats",
|
||||
"type": "Vector<Chat>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "geochats.Messages"
|
||||
},
|
||||
{
|
||||
"id": "-1135057944",
|
||||
"predicate": "geochats.messagesSlice",
|
||||
"params": [
|
||||
{
|
||||
"name": "count",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "messages",
|
||||
"type": "Vector<GeoChatMessage>"
|
||||
},
|
||||
{
|
||||
"name": "chats",
|
||||
"type": "Vector<Chat>"
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"type": "Vector<User>"
|
||||
}
|
||||
],
|
||||
"type": "geochats.Messages"
|
||||
},
|
||||
{
|
||||
"id": "1862504124",
|
||||
"predicate": "messageActionGeoChatCreate",
|
||||
"params": [
|
||||
{
|
||||
"name": "title",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "MessageAction"
|
||||
},
|
||||
{
|
||||
"id": "209540062",
|
||||
"predicate": "messageActionGeoChatCheckin",
|
||||
"params": [],
|
||||
"type": "MessageAction"
|
||||
},
|
||||
{
|
||||
"id": "1516823543",
|
||||
"predicate": "updateNewGeoChatMessage",
|
||||
"params": [
|
||||
{
|
||||
"name": "message",
|
||||
"type": "GeoChatMessage"
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "1662091044",
|
||||
"predicate": "wallPaperSolid",
|
||||
@ -4486,6 +4112,21 @@
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "-1369215196",
|
||||
"predicate": "disabledFeature",
|
||||
"params": [
|
||||
{
|
||||
"name": "feature",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "DisabledFeature"
|
||||
}
|
||||
],
|
||||
"methods": [
|
||||
@ -4854,17 +4495,6 @@
|
||||
],
|
||||
"type": "contacts.Found"
|
||||
},
|
||||
{
|
||||
"id": "-847825880",
|
||||
"method": "contacts.getSuggested",
|
||||
"params": [
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "contacts.Suggested"
|
||||
},
|
||||
{
|
||||
"id": "-1902823612",
|
||||
"method": "contacts.deleteContact",
|
||||
@ -5065,17 +4695,6 @@
|
||||
],
|
||||
"type": "Vector<int>"
|
||||
},
|
||||
{
|
||||
"id": "962567550",
|
||||
"method": "messages.restoreMessages",
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "Vector<int>"
|
||||
}
|
||||
],
|
||||
"type": "Vector<int>"
|
||||
},
|
||||
{
|
||||
"id": "682347368",
|
||||
"method": "messages.receivedMessages",
|
||||
@ -5467,253 +5086,6 @@
|
||||
],
|
||||
"type": "messages.StatedMessage"
|
||||
},
|
||||
{
|
||||
"id": "1102776690",
|
||||
"method": "messages.sendBroadcast",
|
||||
"params": [
|
||||
{
|
||||
"name": "contacts",
|
||||
"type": "Vector<InputUser>"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "media",
|
||||
"type": "InputMedia"
|
||||
}
|
||||
],
|
||||
"type": "messages.StatedMessages"
|
||||
},
|
||||
{
|
||||
"id": "2132356495",
|
||||
"method": "geochats.getLocated",
|
||||
"params": [
|
||||
{
|
||||
"name": "geo_point",
|
||||
"type": "InputGeoPoint"
|
||||
},
|
||||
{
|
||||
"name": "radius",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "geochats.Located"
|
||||
},
|
||||
{
|
||||
"id": "-515735953",
|
||||
"method": "geochats.getRecents",
|
||||
"params": [
|
||||
{
|
||||
"name": "offset",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "geochats.Messages"
|
||||
},
|
||||
{
|
||||
"id": "1437853947",
|
||||
"method": "geochats.checkin",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
}
|
||||
],
|
||||
"type": "geochats.StatedMessage"
|
||||
},
|
||||
{
|
||||
"id": "1730338159",
|
||||
"method": "geochats.getFullChat",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
}
|
||||
],
|
||||
"type": "messages.ChatFull"
|
||||
},
|
||||
{
|
||||
"id": "1284383347",
|
||||
"method": "geochats.editChatTitle",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
},
|
||||
{
|
||||
"name": "title",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "geochats.StatedMessage"
|
||||
},
|
||||
{
|
||||
"id": "903355029",
|
||||
"method": "geochats.editChatPhoto",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
},
|
||||
{
|
||||
"name": "photo",
|
||||
"type": "InputChatPhoto"
|
||||
}
|
||||
],
|
||||
"type": "geochats.StatedMessage"
|
||||
},
|
||||
{
|
||||
"id": "-808598451",
|
||||
"method": "geochats.search",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
},
|
||||
{
|
||||
"name": "q",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "filter",
|
||||
"type": "MessagesFilter"
|
||||
},
|
||||
{
|
||||
"name": "min_date",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "max_date",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "offset",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "max_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "geochats.Messages"
|
||||
},
|
||||
{
|
||||
"id": "-1254131096",
|
||||
"method": "geochats.getHistory",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
},
|
||||
{
|
||||
"name": "offset",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "max_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"type": "geochats.Messages"
|
||||
},
|
||||
{
|
||||
"id": "146319145",
|
||||
"method": "geochats.setTyping",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
},
|
||||
{
|
||||
"name": "typing",
|
||||
"type": "Bool"
|
||||
}
|
||||
],
|
||||
"type": "Bool"
|
||||
},
|
||||
{
|
||||
"id": "102432836",
|
||||
"method": "geochats.sendMessage",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "random_id",
|
||||
"type": "long"
|
||||
}
|
||||
],
|
||||
"type": "geochats.StatedMessage"
|
||||
},
|
||||
{
|
||||
"id": "-1192173825",
|
||||
"method": "geochats.sendMedia",
|
||||
"params": [
|
||||
{
|
||||
"name": "peer",
|
||||
"type": "InputGeoChat"
|
||||
},
|
||||
{
|
||||
"name": "media",
|
||||
"type": "InputMedia"
|
||||
},
|
||||
{
|
||||
"name": "random_id",
|
||||
"type": "long"
|
||||
}
|
||||
],
|
||||
"type": "geochats.StatedMessage"
|
||||
},
|
||||
{
|
||||
"id": "235482646",
|
||||
"method": "geochats.createGeoChat",
|
||||
"params": [
|
||||
{
|
||||
"name": "title",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "geo_point",
|
||||
"type": "InputGeoPoint"
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "venue",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "geochats.StatedMessage"
|
||||
},
|
||||
{
|
||||
"id": "651135312",
|
||||
"method": "messages.getDhConfig",
|
||||
|
41
schema.tl
41
schema.tl
@ -78,7 +78,7 @@ messageMediaPhoto#c8c45a2a photo:Photo = MessageMedia;
|
||||
messageMediaVideo#a2d24290 video:Video = MessageMedia;
|
||||
messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia;
|
||||
messageMediaContact#5e7d2f39 phone_number:string first_name:string last_name:string user_id:int = MessageMedia;
|
||||
messageMediaUnsupported#29632a36 bytes:bytes = MessageMedia;
|
||||
messageMediaUnsupported#9f84f49e = MessageMedia;
|
||||
messageActionEmpty#b6aef7b0 = MessageAction;
|
||||
messageActionChatCreate#a6638b9a title:string users:Vector<int> = MessageAction;
|
||||
messageActionChatEditTitle#b5a1ce5a title:string = MessageAction;
|
||||
@ -115,7 +115,6 @@ contact#f911c994 user_id:int mutual:Bool = Contact;
|
||||
importedContact#d0028438 user_id:int client_id:long = ImportedContact;
|
||||
contactBlocked#561bc879 user_id:int date:int = ContactBlocked;
|
||||
contactFound#ea879f95 user_id:int = ContactFound;
|
||||
contactSuggested#3de191a1 user_id:int mutual_contacts:int = ContactSuggested;
|
||||
contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus;
|
||||
contacts.foreignLinkUnknown#133421f8 = contacts.ForeignLink;
|
||||
contacts.foreignLinkRequested#a7801f47 has_phone:Bool = contacts.ForeignLink;
|
||||
@ -130,17 +129,13 @@ contacts.importedContacts#ad524315 imported:Vector<ImportedContact> retry_contac
|
||||
contacts.blocked#1c138d15 blocked:Vector<ContactBlocked> users:Vector<User> = contacts.Blocked;
|
||||
contacts.blockedSlice#900802a1 count:int blocked:Vector<ContactBlocked> users:Vector<User> = contacts.Blocked;
|
||||
contacts.found#566000e results:Vector<ContactFound> users:Vector<User> = contacts.Found;
|
||||
contacts.suggested#5649dcc5 results:Vector<ContactSuggested> users:Vector<User> = contacts.Suggested;
|
||||
messages.dialogs#15ba6c40 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs;
|
||||
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.messageEmpty#3f4e0648 = messages.Message;
|
||||
messages.message#ff90c417 message:Message chats:Vector<Chat> users:Vector<User> = messages.Message;
|
||||
messages.statedMessages#969478bb messages:Vector<Message> chats:Vector<Chat> users:Vector<User> pts:int seq:int = messages.StatedMessages;
|
||||
messages.statedMessage#d07ae726 message:Message chats:Vector<Chat> users:Vector<User> pts:int seq:int = messages.StatedMessage;
|
||||
messages.sentMessage#d1f4d35c id:int date:int pts:int seq:int = messages.SentMessage;
|
||||
messages.chat#40e9002a chat:Chat users:Vector<User> = messages.Chat;
|
||||
messages.chats#8150cbd8 chats:Vector<Chat> users:Vector<User> = messages.Chats;
|
||||
messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
|
||||
messages.affectedHistory#b7de36f2 pts:int seq:int offset:int = messages.AffectedHistory;
|
||||
@ -152,7 +147,6 @@ updateNewMessage#13abdb3 message:Message pts:int = Update;
|
||||
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#5c486927 user_id:int action:SendMessageAction = Update;
|
||||
updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update;
|
||||
updateChatParticipants#7761198 participants:ChatParticipants = Update;
|
||||
@ -161,7 +155,6 @@ updateUserName#a7332b73 user_id:int first_name:string last_name:string username:
|
||||
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;
|
||||
updateNewAuthorization#8f06529a auth_key_id:long date:int device:string location:string = Update;
|
||||
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;
|
||||
updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference;
|
||||
@ -176,7 +169,7 @@ updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> da
|
||||
photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;
|
||||
upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File;
|
||||
dcOption#2ec2a43c id:int hostname:string ip_address:string port:int = DcOption;
|
||||
config#2e54dd74 date:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> chat_size_max:int broadcast_size_max:int = Config;
|
||||
config#7dae33e0 date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> chat_big_size:int chat_size_max:int broadcast_size_max:int 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;
|
||||
help.noAppUpdate#c45a6536 = help.AppUpdate;
|
||||
@ -188,20 +181,6 @@ photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> =
|
||||
messages.statedMessagesLinks#3e74f5c6 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> links:Vector<contacts.Link> pts:int seq:int = messages.StatedMessages;
|
||||
messages.statedMessageLink#a9af2881 message:Message chats:Vector<Chat> users:Vector<User> links:Vector<contacts.Link> pts:int seq:int = messages.StatedMessage;
|
||||
messages.sentMessageLink#e9db4a3f id:int date:int pts:int seq:int links:Vector<contacts.Link> = messages.SentMessage;
|
||||
chatLocated#3631cf4c chat_id:int distance:int = ChatLocated;
|
||||
inputGeoChat#74d456fa chat_id:int access_hash:long = InputGeoChat;
|
||||
inputNotifyGeoChatPeer#4d8ddec8 peer:InputGeoChat = InputNotifyPeer;
|
||||
geoChat#75eaea5a id:int access_hash:long title:string address:string venue:string geo:GeoPoint photo:ChatPhoto participants_count:int date:int checked_in:Bool version:int = Chat;
|
||||
geoChatMessageEmpty#60311a9b chat_id:int id:int = GeoChatMessage;
|
||||
geoChatMessage#4505f8e1 chat_id:int id:int from_id:int date:int message:string media:MessageMedia = GeoChatMessage;
|
||||
geoChatMessageService#d34fa24e chat_id:int id:int from_id:int date:int action:MessageAction = GeoChatMessage;
|
||||
geochats.statedMessage#17b1578b message:GeoChatMessage chats:Vector<Chat> users:Vector<User> seq:int = geochats.StatedMessage;
|
||||
geochats.located#48feb267 results:Vector<ChatLocated> messages:Vector<GeoChatMessage> chats:Vector<Chat> users:Vector<User> = geochats.Located;
|
||||
geochats.messages#d1526db1 messages:Vector<GeoChatMessage> chats:Vector<Chat> users:Vector<User> = geochats.Messages;
|
||||
geochats.messagesSlice#bc5863e8 count:int messages:Vector<GeoChatMessage> chats:Vector<Chat> users:Vector<User> = geochats.Messages;
|
||||
messageActionGeoChatCreate#6f038ebc title:string address:string = MessageAction;
|
||||
messageActionGeoChatCheckin#c7d53de = MessageAction;
|
||||
updateNewGeoChatMessage#5a68e3f7 message:GeoChatMessage = Update;
|
||||
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;
|
||||
@ -292,6 +271,7 @@ account.privacyRules#554abb6f rules:Vector<PrivacyRule> users:Vector<User> = acc
|
||||
accountDaysTTL#b8d0afdf days:int = AccountDaysTTL;
|
||||
account.sentChangePhoneCode#a4f58c4c phone_code_hash:string send_call_timeout:int = account.SentChangePhoneCode;
|
||||
updateUserPhone#12b9417b user_id:int phone:string = Update;
|
||||
disabledFeature#ae636f24 feature:string description:string = DisabledFeature;
|
||||
---functions---
|
||||
invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
|
||||
invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
|
||||
@ -319,7 +299,6 @@ contacts.getStatuses#c4a353ee = Vector<ContactStatus>;
|
||||
contacts.getContacts#22c6aa08 hash:string = contacts.Contacts;
|
||||
contacts.importContacts#da30b32d contacts:Vector<InputContact> replace:Bool = contacts.ImportedContacts;
|
||||
contacts.search#11f812d8 q:string limit:int = contacts.Found;
|
||||
contacts.getSuggested#cd773428 limit:int = contacts.Suggested;
|
||||
contacts.deleteContact#8e953744 id:InputUser = contacts.Link;
|
||||
contacts.deleteContacts#59ab389e id:Vector<InputUser> = Bool;
|
||||
contacts.block#332b49fc id:InputUser = Bool;
|
||||
@ -332,7 +311,6 @@ messages.search#7e9f2ab peer:InputPeer q:string filter:MessagesFilter min_date:i
|
||||
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#a3825e50 peer:InputPeer action:SendMessageAction = Bool;
|
||||
messages.sendMessage#4cde0aab peer:InputPeer message:string random_id:long = messages.SentMessage;
|
||||
@ -359,19 +337,6 @@ 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;
|
||||
messages.forwardMessage#3f3f4f2 peer:InputPeer id:int random_id:long = messages.StatedMessage;
|
||||
messages.sendBroadcast#41bb0972 contacts:Vector<InputUser> message:string media:InputMedia = messages.StatedMessages;
|
||||
geochats.getLocated#7f192d8f geo_point:InputGeoPoint radius:int limit:int = geochats.Located;
|
||||
geochats.getRecents#e1427e6f offset:int limit:int = geochats.Messages;
|
||||
geochats.checkin#55b3e8fb peer:InputGeoChat = geochats.StatedMessage;
|
||||
geochats.getFullChat#6722dd6f peer:InputGeoChat = messages.ChatFull;
|
||||
geochats.editChatTitle#4c8e2273 peer:InputGeoChat title:string address:string = geochats.StatedMessage;
|
||||
geochats.editChatPhoto#35d81a95 peer:InputGeoChat photo:InputChatPhoto = geochats.StatedMessage;
|
||||
geochats.search#cfcdc44d peer:InputGeoChat q:string filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = geochats.Messages;
|
||||
geochats.getHistory#b53f7a68 peer:InputGeoChat offset:int max_id:int limit:int = geochats.Messages;
|
||||
geochats.setTyping#8b8a729 peer:InputGeoChat typing:Bool = Bool;
|
||||
geochats.sendMessage#61b0044 peer:InputGeoChat message:string random_id:long = geochats.StatedMessage;
|
||||
geochats.sendMedia#b8f0deff peer:InputGeoChat media:InputMedia random_id:long = geochats.StatedMessage;
|
||||
geochats.createGeoChat#e092e16 title:string geo_point:InputGeoPoint address:string venue:string = geochats.StatedMessage;
|
||||
messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig;
|
||||
messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat;
|
||||
messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat;
|
||||
|
Loading…
Reference in New Issue
Block a user