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

Add layer 058

This commit is contained in:
Viktor Oreshkin 2017-07-01 18:43:33 +03:00
parent 222b649c86
commit 29a06c73c8
5 changed files with 484 additions and 26 deletions

4
l058/README.md Normal file
View File

@ -0,0 +1,4 @@
### Version info
App|Version/Hash|Date
---|---|---
TDesktop|a248cef15d2bdbc75f0045e7c3c855285159befa|05.12.16

306
l058/schema.json Normal file
View File

@ -0,0 +1,306 @@
{
"constructors": [
{
"id": "253890367",
"predicate": "userFull",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "blocked",
"type": "flags.0?true"
},
{
"name": "phone_calls_available",
"type": "flags.4?true"
},
{
"name": "user",
"type": "User"
},
{
"name": "about",
"type": "flags.1?string"
},
{
"name": "link",
"type": "contacts.Link"
},
{
"name": "profile_photo",
"type": "flags.2?Photo"
},
{
"name": "notify_settings",
"type": "PeerNotifySettings"
},
{
"name": "bot_info",
"type": "flags.3?BotInfo"
},
{
"name": "common_chats_count",
"type": "int"
}
],
"type": "UserFull"
},
{
"id": "-858565059",
"predicate": "messages.botResults",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "gallery",
"type": "flags.0?true"
},
{
"name": "query_id",
"type": "long"
},
{
"name": "next_offset",
"type": "flags.1?string"
},
{
"name": "switch_pm",
"type": "flags.2?InlineBotSwitchPM"
},
{
"name": "results",
"type": "Vector<BotInlineResult>"
},
{
"name": "cache_time",
"type": "int"
}
],
"type": "messages.BotResults"
},
{
"id": "911761060",
"predicate": "messages.botCallbackAnswer",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "alert",
"type": "flags.1?true"
},
{
"name": "has_url",
"type": "flags.3?true"
},
{
"name": "message",
"type": "flags.0?string"
},
{
"name": "url",
"type": "flags.2?string"
},
{
"name": "cache_time",
"type": "int"
}
],
"type": "messages.BotCallbackAnswer"
},
{
"id": "2029424966",
"predicate": "messages.chatsSlice",
"params": [
{
"name": "count",
"type": "int"
},
{
"name": "chats",
"type": "Vector<Chat>"
},
{
"name": "users",
"type": "Vector<User>"
}
],
"type": "messages.Chats"
},
{
"id": "1081547008",
"predicate": "updateChannelWebPage",
"params": [
{
"name": "channel_id",
"type": "int"
},
{
"name": "webpage",
"type": "WebPage"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_count",
"type": "int"
}
],
"type": "Update"
},
{
"id": "1258196845",
"predicate": "updates.differenceTooLong",
"params": [
{
"name": "pts",
"type": "int"
}
],
"type": "updates.Difference"
}
],
"methods": [
{
"id": "630429265",
"method": "updates.getDifference",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_total_limit",
"type": "flags.0?int"
},
{
"name": "date",
"type": "int"
},
{
"name": "qts",
"type": "int"
}
],
"type": "updates.Difference"
},
{
"id": "51854712",
"method": "updates.getChannelDifference",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "force",
"type": "flags.0?true"
},
{
"name": "channel",
"type": "InputChannel"
},
{
"name": "filter",
"type": "ChannelMessagesFilter"
},
{
"name": "pts",
"type": "int"
},
{
"name": "limit",
"type": "int"
}
],
"type": "updates.ChannelDifference"
},
{
"id": "-712043766",
"method": "messages.setBotCallbackAnswer",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "alert",
"type": "flags.1?true"
},
{
"name": "query_id",
"type": "long"
},
{
"name": "message",
"type": "flags.0?string"
},
{
"name": "url",
"type": "flags.2?string"
},
{
"name": "cache_time",
"type": "int"
}
],
"type": "Bool"
},
{
"id": "218777796",
"method": "messages.getCommonChats",
"params": [
{
"name": "user_id",
"type": "InputUser"
},
{
"name": "max_id",
"type": "int"
},
{
"name": "limit",
"type": "int"
}
],
"type": "messages.Chats"
},
{
"id": "-341307408",
"method": "messages.getAllChats",
"params": [
{
"name": "except_ids",
"type": "Vector<int>"
}
],
"type": "messages.Chats"
},
{
"id": "-333262899",
"method": "help.setBotUpdatesStatus",
"params": [
{
"name": "pending_updates_count",
"type": "int"
},
{
"name": "message",
"type": "string"
}
],
"type": "Bool"
}
]
}

22
l058/schema.tl Normal file
View File

@ -0,0 +1,22 @@
---types---
// sendMessageGamePlayAction#dd6a8f48 = SendMessageAction;
// sendMessageGameStopAction#15c2c99a = SendMessageAction;
// userFull#5932fc03 flags:# blocked:flags.0?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo = UserFull;
userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull;
// messages.botResults#256709a6 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector<BotInlineResult> = messages.BotResults;
messages.botResults#ccd3563d flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector<BotInlineResult> cache_time:int = messages.BotResults;
// messages.botCallbackAnswer#b10df1fb flags:# alert:flags.1?true has_url:flags.3?true message:flags.0?string url:flags.2?string = messages.BotCallbackAnswer;
messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer;
messages.chatsSlice#78f69146 count:int chats:Vector<Chat> users:Vector<User> = messages.Chats;
updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update;
updates.differenceTooLong#4afe8f6d pts:int = updates.Difference;
---functions---
// updates.getDifference#a041495 pts:int date:int qts:int = updates.Difference;
updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
// updates.getChannelDifference#bb32d7c0 channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
// messages.setBotCallbackAnswer#c927d44b flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string = Bool;
messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;
messages.getCommonChats#d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats;
messages.getAllChats#eba80ff0 except_ids:Vector<int> = messages.Chats;
help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool;

View File

@ -1333,7 +1333,7 @@
"type": "WallPaper"
},
{
"id": "1496513539",
"id": "253890367",
"predicate": "userFull",
"params": [
{
@ -1344,6 +1344,10 @@
"name": "blocked",
"type": "flags.0?true"
},
{
"name": "phone_calls_available",
"type": "flags.4?true"
},
{
"name": "user",
"type": "User"
@ -1367,6 +1371,10 @@
{
"name": "bot_info",
"type": "flags.3?BotInfo"
},
{
"name": "common_chats_count",
"type": "int"
}
],
"type": "UserFull"
@ -6183,7 +6191,7 @@
"type": "BotInlineResult"
},
{
"id": "627509670",
"id": "-858565059",
"predicate": "messages.botResults",
"params": [
{
@ -6209,6 +6217,10 @@
{
"name": "results",
"type": "Vector<BotInlineResult>"
},
{
"name": "cache_time",
"type": "int"
}
],
"type": "messages.BotResults"
@ -6510,7 +6522,7 @@
"type": "ReplyMarkup"
},
{
"id": "-1324486149",
"id": "911761060",
"predicate": "messages.botCallbackAnswer",
"params": [
{
@ -6532,6 +6544,10 @@
{
"name": "url",
"type": "flags.2?string"
},
{
"name": "cache_time",
"type": "int"
}
],
"type": "messages.BotCallbackAnswer"
@ -7431,18 +7447,6 @@
],
"type": "MessageMedia"
},
{
"id": "-580219064",
"predicate": "sendMessageGamePlayAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "365087130",
"predicate": "sendMessageGameStopAction",
"params": [],
"type": "SendMessageAction"
},
{
"id": "1262639204",
"predicate": "inputBotInlineMessageGame",
@ -7579,6 +7583,59 @@
}
],
"type": "messages.HighScores"
},
{
"id": "2029424966",
"predicate": "messages.chatsSlice",
"params": [
{
"name": "count",
"type": "int"
},
{
"name": "chats",
"type": "Vector<Chat>"
},
{
"name": "users",
"type": "Vector<User>"
}
],
"type": "messages.Chats"
},
{
"id": "1081547008",
"predicate": "updateChannelWebPage",
"params": [
{
"name": "channel_id",
"type": "int"
},
{
"name": "webpage",
"type": "WebPage"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_count",
"type": "int"
}
],
"type": "Update"
},
{
"id": "1258196845",
"predicate": "updates.differenceTooLong",
"params": [
{
"name": "pts",
"type": "int"
}
],
"type": "updates.Difference"
}
],
"methods": [
@ -8411,13 +8468,21 @@
"type": "updates.State"
},
{
"id": "168039573",
"id": "630429265",
"method": "updates.getDifference",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_total_limit",
"type": "flags.0?int"
},
{
"name": "date",
"type": "int"
@ -9272,9 +9337,17 @@
"type": "Vector<int>"
},
{
"id": "-1154295872",
"id": "51854712",
"method": "updates.getChannelDifference",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "force",
"type": "flags.0?true"
},
{
"name": "channel",
"type": "InputChannel"
@ -10146,7 +10219,7 @@
"type": "messages.BotCallbackAnswer"
},
{
"id": "-920136629",
"id": "-712043766",
"method": "messages.setBotCallbackAnswer",
"params": [
{
@ -10168,6 +10241,10 @@
{
"name": "url",
"type": "flags.2?string"
},
{
"name": "cache_time",
"type": "int"
}
],
"type": "Bool"
@ -10548,6 +10625,51 @@
}
],
"type": "messages.HighScores"
},
{
"id": "218777796",
"method": "messages.getCommonChats",
"params": [
{
"name": "user_id",
"type": "InputUser"
},
{
"name": "max_id",
"type": "int"
},
{
"name": "limit",
"type": "int"
}
],
"type": "messages.Chats"
},
{
"id": "-341307408",
"method": "messages.getAllChats",
"params": [
{
"name": "except_ids",
"type": "Vector<int>"
}
],
"type": "messages.Chats"
},
{
"id": "-333262899",
"method": "help.setBotUpdatesStatus",
"params": [
{
"name": "pending_updates_count",
"type": "int"
},
{
"name": "message",
"type": "string"
}
],
"type": "Bool"
}
]
}

View File

@ -89,7 +89,7 @@ peerNotifyEventsAll#6d1ded88 = PeerNotifyEvents;
peerNotifySettingsEmpty#70a68512 = PeerNotifySettings;
peerNotifySettings#9acda4c0 flags:# show_previews:flags.0?true silent:flags.1?true mute_until:int sound:string = PeerNotifySettings;
wallPaper#ccb03657 id:int title:string sizes:Vector<PhotoSize> color:int = WallPaper;
userFull#5932fc03 flags:# blocked:flags.0?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo = UserFull;
userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull;
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;
@ -362,7 +362,7 @@ inputBotInlineResult#2cbbe15a flags:# id:string type:string title:flags.1?string
botInlineMessageMediaAuto#a74b15b flags:# caption:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage;
botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = BotInlineMessage;
botInlineResult#9bebaeb9 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb_url:flags.4?string content_url:flags.5?string content_type:flags.5?string w:flags.6?int h:flags.6?int duration:flags.7?int send_message:BotInlineMessage = BotInlineResult;
messages.botResults#256709a6 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector<BotInlineResult> = messages.BotResults;
messages.botResults#ccd3563d flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector<BotInlineResult> cache_time:int = messages.BotResults;
inputMessagesFilterVoice#50f5c392 = MessagesFilter;
inputMessagesFilterMusic#3751b49e = MessagesFilter;
updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update;
@ -387,7 +387,7 @@ auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType;
auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType;
keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton;
replyInlineMarkup#48a30254 rows:Vector<KeyboardButtonRow> = ReplyMarkup;
messages.botCallbackAnswer#b10df1fb flags:# alert:flags.1?true has_url:flags.3?true message:flags.0?string url:flags.2?string = messages.BotCallbackAnswer;
messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer;
updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;
messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData;
updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update;
@ -444,8 +444,6 @@ inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia;
inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia;
inputMediaGame#d33f43f3 id:InputGame = InputMedia;
messageMediaGame#fdb19008 game:Game = MessageMedia;
sendMessageGamePlayAction#dd6a8f48 = SendMessageAction;
sendMessageGameStopAction#15c2c99a = SendMessageAction;
inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;
inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult;
game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game;
@ -453,6 +451,9 @@ inputGameID#32c3e77 id:long access_hash:long = InputGame;
inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame;
highScore#58fffcd0 pos:int user_id:int score:int = HighScore;
messages.highScores#9a3bfd99 scores:Vector<HighScore> users:Vector<User> = messages.HighScores;
messages.chatsSlice#78f69146 count:int chats:Vector<Chat> users:Vector<User> = messages.Chats;
updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update;
updates.differenceTooLong#4afe8f6d pts:int = updates.Difference;
---functions---
invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
@ -504,7 +505,7 @@ messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Upda
messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates;
messages.createChat#9cb126e users:Vector<InputUser> title:string = Updates;
updates.getState#edd4882a = updates.State;
updates.getDifference#a041495 pts:int date:int qts:int = updates.Difference;
updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
photos.updateProfilePhoto#f0bb5152 id:InputPhoto = UserProfilePhoto;
photos.uploadProfilePhoto#4f32c098 file:InputFile = photos.Photo;
upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool;
@ -568,7 +569,7 @@ messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_par
help.getAppChangelog#b921197a = help.AppChangelog;
messages.reportSpam#cf1592db peer:InputPeer = Bool;
messages.getMessagesViews#c4c8a55d peer:InputPeer id:Vector<int> increment:Bool = Vector<int>;
updates.getChannelDifference#bb32d7c0 channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool;
channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector<int> = messages.AffectedMessages;
channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory;
@ -617,7 +618,7 @@ messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEdi
messages.editMessage#ce91e4ca flags:# no_webpage:flags.1?true peer:InputPeer id:int message:flags.11?string reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Updates;
messages.editInlineBotMessage#130c2c85 flags:# no_webpage:flags.1?true id:InputBotInlineMessageID message:flags.11?string reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Bool;
messages.getBotCallbackAnswer#810a9fec flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes = messages.BotCallbackAnswer;
messages.setBotCallbackAnswer#c927d44b flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string = Bool;
messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;
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.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool;
messages.getPeerDialogs#2d9776b9 peers:Vector<InputPeer> = messages.PeerDialogs;
@ -639,3 +640,6 @@ messages.getMaskStickers#65b8c79f hash:int = messages.AllStickers;
messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector<StickerSetCovered>;
messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores;
messages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores;
messages.getCommonChats#d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats;
messages.getAllChats#eba80ff0 except_ids:Vector<int> = messages.Chats;
help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool;