From 70072798ef2e842988de098781351f0626d10431 Mon Sep 17 00:00:00 2001 From: Viktor Oreshkin Date: Sun, 2 Jul 2017 20:20:28 +0300 Subject: [PATCH] Add layer 027 --- l027/README.md | 5 + l027/schema.json | 680 +++++++++++++++++++++++++++++++++++++++++++++++ l027/schema.tl | 54 ++++ schema.json | 540 +++++++++++++++++++++++++------------ schema.tl | 52 ++-- 5 files changed, 1138 insertions(+), 193 deletions(-) create mode 100644 l027/README.md create mode 100644 l027/schema.json create mode 100644 l027/schema.tl diff --git a/l027/README.md b/l027/README.md new file mode 100644 index 0000000..a33d68f --- /dev/null +++ b/l027/README.md @@ -0,0 +1,5 @@ +### Version info +App|Version/Hash|Date +---|---|--- +TDesktop|9ede565a005311f54f77eb1c63d72aa03527d22a|07.04.15 +Webogram|c5a7401e4aacfdd7336a084022b6ea374085667d|06.04.15 diff --git a/l027/schema.json b/l027/schema.json new file mode 100644 index 0000000..63a5982 --- /dev/null +++ b/l027/schema.json @@ -0,0 +1,680 @@ +{ + "constructors": [ + { + "id": "1279084531", + "predicate": "messages.sentMessage", + "params": [ + { + "name": "id", + "type": "int" + }, + { + "name": "date", + "type": "int" + }, + { + "name": "media", + "type": "MessageMedia" + }, + { + "name": "pts", + "type": "int" + }, + { + "name": "pts_count", + "type": "int" + } + ], + "type": "messages.SentMessage" + }, + { + "id": "1757069895", + "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" + }, + { + "name": "chat_size_max", + "type": "int" + }, + { + "name": "broadcast_size_max", + "type": "int" + }, + { + "name": "forwarded_count_max", + "type": "int" + }, + { + "name": "online_update_period_ms", + "type": "int" + }, + { + "name": "offline_blur_timeout_ms", + "type": "int" + }, + { + "name": "offline_idle_timeout_ms", + "type": "int" + }, + { + "name": "online_cloud_timeout_ms", + "type": "int" + }, + { + "name": "notify_cloud_delay_ms", + "type": "int" + }, + { + "name": "notify_default_delay_ms", + "type": "int" + }, + { + "name": "chat_big_size", + "type": "int" + }, + { + "name": "disabled_features", + "type": "Vector" + } + ], + "type": "Config" + }, + { + "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" + }, + { + "name": "seq", + "type": "int" + } + ], + "type": "messages.SentMessage" + }, + { + "id": "-1764049896", + "predicate": "account.noPassword", + "params": [ + { + "name": "new_salt", + "type": "bytes" + }, + { + "name": "email_unconfirmed_pattern", + "type": "string" + } + ], + "type": "account.Password" + }, + { + "id": "2081952796", + "predicate": "account.password", + "params": [ + { + "name": "current_salt", + "type": "bytes" + }, + { + "name": "new_salt", + "type": "bytes" + }, + { + "name": "hint", + "type": "string" + }, + { + "name": "has_recovery", + "type": "Bool" + }, + { + "name": "email_unconfirmed_pattern", + "type": "string" + } + ], + "type": "account.Password" + }, + { + "id": "751004017", + "predicate": "updateWebPage", + "params": [ + { + "name": "webpage", + "type": "WebPage" + } + ], + "type": "Update" + }, + { + "id": "-350980120", + "predicate": "webPageEmpty", + "params": [ + { + "name": "id", + "type": "long" + } + ], + "type": "WebPage" + }, + { + "id": "-981018084", + "predicate": "webPagePending", + "params": [ + { + "name": "id", + "type": "long" + }, + { + "name": "date", + "type": "int" + } + ], + "type": "WebPage" + }, + { + "id": "-1558273867", + "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" + } + ], + "type": "WebPage" + }, + { + "id": "-1557277184", + "predicate": "messageMediaWebPage", + "params": [ + { + "name": "webpage", + "type": "WebPage" + } + ], + "type": "MessageMedia" + }, + { + "id": "2079516406", + "predicate": "authorization", + "params": [ + { + "name": "hash", + "type": "long" + }, + { + "name": "flags", + "type": "int" + }, + { + "name": "device_model", + "type": "string" + }, + { + "name": "platform", + "type": "string" + }, + { + "name": "system_version", + "type": "string" + }, + { + "name": "api_id", + "type": "int" + }, + { + "name": "app_name", + "type": "string" + }, + { + "name": "app_version", + "type": "string" + }, + { + "name": "date_created", + "type": "int" + }, + { + "name": "date_active", + "type": "int" + }, + { + "name": "ip", + "type": "string" + }, + { + "name": "country", + "type": "string" + }, + { + "name": "region", + "type": "string" + } + ], + "type": "Authorization" + }, + { + "id": "307276766", + "predicate": "account.authorizations", + "params": [ + { + "name": "authorizations", + "type": "Vector" + } + ], + "type": "account.Authorizations" + }, + { + "id": "-1212732749", + "predicate": "account.passwordSettings", + "params": [ + { + "name": "email", + "type": "string" + } + ], + "type": "account.PasswordSettings" + }, + { + "id": "-1124314324", + "predicate": "account.passwordInputSettings", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "new_salt", + "type": "flags.0?bytes" + }, + { + "name": "new_password_hash", + "type": "flags.0?bytes" + }, + { + "name": "hint", + "type": "flags.0?string" + }, + { + "name": "email", + "type": "flags.1?string" + } + ], + "type": "account.PasswordInputSettings" + }, + { + "id": "326715557", + "predicate": "auth.passwordRecovery", + "params": [ + { + "name": "email_pattern", + "type": "string" + } + ], + "type": "auth.PasswordRecovery" + } + ], + "methods": [ + { + "id": "-1696755930", + "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" + } + ], + "type": "messages.SentMessage" + }, + { + "id": "762913713", + "method": "messages.sendMedia", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "reply_to_msg_id", + "type": "flags.0?int" + }, + { + "name": "media", + "type": "InputMedia" + }, + { + "name": "random_id", + "type": "long" + } + ], + "type": "Updates" + }, + { + "id": "1440838285", + "method": "messages.forwardMessages", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "Vector" + }, + { + "name": "random_id", + "type": "Vector" + } + ], + "type": "Updates" + }, + { + "id": "-599447467", + "method": "messages.editChatTitle", + "params": [ + { + "name": "chat_id", + "type": "int" + }, + { + "name": "title", + "type": "string" + } + ], + "type": "Updates" + }, + { + "id": "-900957736", + "method": "messages.editChatPhoto", + "params": [ + { + "name": "chat_id", + "type": "int" + }, + { + "name": "photo", + "type": "InputChatPhoto" + } + ], + "type": "Updates" + }, + { + "id": "-106911223", + "method": "messages.addChatUser", + "params": [ + { + "name": "chat_id", + "type": "int" + }, + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "fwd_limit", + "type": "int" + } + ], + "type": "Updates" + }, + { + "id": "-530505962", + "method": "messages.deleteChatUser", + "params": [ + { + "name": "chat_id", + "type": "int" + }, + { + "name": "user_id", + "type": "InputUser" + } + ], + "type": "Updates" + }, + { + "id": "164303470", + "method": "messages.createChat", + "params": [ + { + "name": "users", + "type": "Vector" + }, + { + "name": "title", + "type": "string" + } + ], + "type": "Updates" + }, + { + "id": "865483769", + "method": "messages.forwardMessage", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "int" + }, + { + "name": "random_id", + "type": "long" + } + ], + "type": "Updates" + }, + { + "id": "-1082919718", + "method": "messages.sendBroadcast", + "params": [ + { + "name": "contacts", + "type": "Vector" + }, + { + "name": "random_id", + "type": "Vector" + }, + { + "name": "message", + "type": "string" + }, + { + "name": "media", + "type": "InputMedia" + } + ], + "type": "Updates" + }, + { + "id": "623001124", + "method": "messages.getWebPagePreview", + "params": [ + { + "name": "message", + "type": "string" + } + ], + "type": "MessageMedia" + }, + { + "id": "-484392616", + "method": "account.getAuthorizations", + "params": [], + "type": "account.Authorizations" + }, + { + "id": "-545786948", + "method": "account.resetAuthorization", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "Bool" + }, + { + "id": "-1131605573", + "method": "account.getPasswordSettings", + "params": [ + { + "name": "current_password_hash", + "type": "bytes" + } + ], + "type": "account.PasswordSettings" + }, + { + "id": "-92517498", + "method": "account.updatePasswordSettings", + "params": [ + { + "name": "current_password_hash", + "type": "bytes" + }, + { + "name": "new_settings", + "type": "account.PasswordInputSettings" + } + ], + "type": "Bool" + }, + { + "id": "-661144474", + "method": "auth.requestPasswordRecovery", + "params": [], + "type": "auth.PasswordRecovery" + }, + { + "id": "1319464594", + "method": "auth.recoverPassword", + "params": [ + { + "name": "code", + "type": "string" + } + ], + "type": "auth.Authorization" + } + ] +} \ No newline at end of file diff --git a/l027/schema.tl b/l027/schema.tl new file mode 100644 index 0000000..9b2e18f --- /dev/null +++ b/l027/schema.tl @@ -0,0 +1,54 @@ +---types--- +// messages.statedMessages#7d84b48 messages:Vector chats:Vector users:Vector pts:int pts_count:int = messages.StatedMessages; +// messages.statedMessage#96240c6a message:Message chats:Vector users:Vector pts:int pts_count:int = messages.StatedMessage; +// messages.statedMessagesLinks#51be5d19 messages:Vector chats:Vector users:Vector pts:int pts_count:int links:Vector seq:int = messages.StatedMessages; +// messages.statedMessageLink#948a288 message:Message chats:Vector users:Vector pts:int pts_count:int links:Vector seq:int = messages.StatedMessage; +// messages.sentMessage#900eac40 id:int date:int pts:int pts_count:int = messages.SentMessage; +messages.sentMessage#4c3d47f3 id:int date:int media:MessageMedia pts:int pts_count:int = messages.SentMessage; +// config#3e6f732a date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int broadcast_size_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 disabled_features:Vector = Config; +config#68bac247 date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int broadcast_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 disabled_features:Vector = Config; +// messages.sentMessageLink#e923400d id:int date:int pts:int pts_count:int links:Vector seq:int = messages.SentMessage; +messages.sentMessageLink#35a1a663 id:int date:int media:MessageMedia pts:int pts_count:int links:Vector seq:int = messages.SentMessage; +// account.noPassword#5770e7a9 new_salt:bytes = account.Password; +account.noPassword#96dabc18 new_salt:bytes email_unconfirmed_pattern:string = account.Password; +// account.password#739e5f72 current_salt:bytes new_salt:bytes hint:string = account.Password; +account.password#7c18141c current_salt:bytes new_salt:bytes hint:string has_recovery:Bool email_unconfirmed_pattern:string = account.Password; +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; +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 = account.Authorizations; +account.passwordSettings#b7b72ab3 email:string = account.PasswordSettings; +account.passwordInputSettings#bcfc532c flags:# new_salt:flags.0?bytes new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string = account.PasswordInputSettings; +auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; +---functions--- +// account.setPassword#dd2a4d8f current_password_hash:bytes new_salt:bytes new_password_hash:bytes hint:string = Bool; +// messages.sendMessage#1ca852a1 peer:InputPeer reply_to_msg_id:int message:string random_id:long = messages.SentMessage; +messages.sendMessage#9add8f26 flags:# peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long = messages.SentMessage; +// messages.sendMedia#fcee7fc0 peer:InputPeer reply_to_msg_id:int media:InputMedia random_id:long = messages.StatedMessage; +messages.sendMedia#2d7923b1 flags:# peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia random_id:long = Updates; +// messages.forwardMessages#ded42045 peer:InputPeer id:Vector random_id:Vector = messages.StatedMessages; +messages.forwardMessages#55e1728d peer:InputPeer id:Vector random_id:Vector = Updates; +// messages.editChatTitle#b4bc68b5 chat_id:int title:string = messages.StatedMessage; +messages.editChatTitle#dc452855 chat_id:int title:string = Updates; +// messages.editChatPhoto#d881821d chat_id:int photo:InputChatPhoto = messages.StatedMessage; +messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates; +// messages.addChatUser#2ee9ee9e chat_id:int user_id:InputUser fwd_limit:int = messages.StatedMessage; +messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates; +// messages.deleteChatUser#c3c5cd23 chat_id:int user_id:InputUser = messages.StatedMessage; +messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates; +// messages.createChat#419d9aee users:Vector title:string = messages.StatedMessage; +messages.createChat#9cb126e users:Vector title:string = Updates; +// messages.forwardMessage#3f3f4f2 peer:InputPeer id:int random_id:long = messages.StatedMessage; +messages.forwardMessage#33963bf9 peer:InputPeer id:int random_id:long = Updates; +// messages.sendBroadcast#41bb0972 contacts:Vector message:string media:InputMedia = messages.StatedMessages; +messages.sendBroadcast#bf73f4da contacts:Vector random_id:Vector message:string media:InputMedia = Updates; +messages.getWebPagePreview#25223e24 message:string = MessageMedia; +account.getAuthorizations#e320c158 = account.Authorizations; +account.resetAuthorization#df77f3bc hash:long = Bool; +account.getPasswordSettings#bc8d11bb current_password_hash:bytes = account.PasswordSettings; +account.updatePasswordSettings#fa7c4b86 current_password_hash:bytes new_settings:account.PasswordInputSettings = Bool; +auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; +auth.recoverPassword#4ea56e92 code:string = auth.Authorization; diff --git a/schema.json b/schema.json index 718fdea..dca5b2a 100644 --- a/schema.json +++ b/schema.json @@ -1929,61 +1929,7 @@ "type": "messages.Messages" }, { - "id": "131615560", - "predicate": "messages.statedMessages", - "params": [ - { - "name": "messages", - "type": "Vector" - }, - { - "name": "chats", - "type": "Vector" - }, - { - "name": "users", - "type": "Vector" - }, - { - "name": "pts", - "type": "int" - }, - { - "name": "pts_count", - "type": "int" - } - ], - "type": "messages.StatedMessages" - }, - { - "id": "-1776022422", - "predicate": "messages.statedMessage", - "params": [ - { - "name": "message", - "type": "Message" - }, - { - "name": "chats", - "type": "Vector" - }, - { - "name": "users", - "type": "Vector" - }, - { - "name": "pts", - "type": "int" - }, - { - "name": "pts_count", - "type": "int" - } - ], - "type": "messages.StatedMessage" - }, - { - "id": "-1878086592", + "id": "1279084531", "predicate": "messages.sentMessage", "params": [ { @@ -1994,6 +1940,10 @@ "name": "date", "type": "int" }, + { + "name": "media", + "type": "MessageMedia" + }, { "name": "pts", "type": "int" @@ -2652,7 +2602,7 @@ "type": "DcOption" }, { - "id": "1047491370", + "id": "1757069895", "predicate": "config", "params": [ { @@ -2683,6 +2633,10 @@ "name": "broadcast_size_max", "type": "int" }, + { + "name": "forwarded_count_max", + "type": "int" + }, { "name": "online_update_period_ms", "type": "int" @@ -2824,77 +2778,7 @@ "type": "photos.Photos" }, { - "id": "1371430169", - "predicate": "messages.statedMessagesLinks", - "params": [ - { - "name": "messages", - "type": "Vector" - }, - { - "name": "chats", - "type": "Vector" - }, - { - "name": "users", - "type": "Vector" - }, - { - "name": "pts", - "type": "int" - }, - { - "name": "pts_count", - "type": "int" - }, - { - "name": "links", - "type": "Vector" - }, - { - "name": "seq", - "type": "int" - } - ], - "type": "messages.StatedMessages" - }, - { - "id": "155755144", - "predicate": "messages.statedMessageLink", - "params": [ - { - "name": "message", - "type": "Message" - }, - { - "name": "chats", - "type": "Vector" - }, - { - "name": "users", - "type": "Vector" - }, - { - "name": "pts", - "type": "int" - }, - { - "name": "pts_count", - "type": "int" - }, - { - "name": "links", - "type": "Vector" - }, - { - "name": "seq", - "type": "int" - } - ], - "type": "messages.StatedMessage" - }, - { - "id": "-383565811", + "id": "899786339", "predicate": "messages.sentMessageLink", "params": [ { @@ -2905,6 +2789,10 @@ "name": "date", "type": "int" }, + { + "name": "media", + "type": "MessageMedia" + }, { "name": "pts", "type": "int" @@ -4254,18 +4142,22 @@ "type": "messages.AllStickers" }, { - "id": "1467017129", + "id": "-1764049896", "predicate": "account.noPassword", "params": [ { "name": "new_salt", "type": "bytes" + }, + { + "name": "email_unconfirmed_pattern", + "type": "string" } ], "type": "account.Password" }, { - "id": "1939758962", + "id": "2081952796", "predicate": "account.password", "params": [ { @@ -4279,6 +4171,14 @@ { "name": "hint", "type": "string" + }, + { + "name": "has_recovery", + "type": "Bool" + }, + { + "name": "email_unconfirmed_pattern", + "type": "string" } ], "type": "account.Password" @@ -4403,6 +4303,240 @@ "predicate": "contactLinkContact", "params": [], "type": "ContactLink" + }, + { + "id": "751004017", + "predicate": "updateWebPage", + "params": [ + { + "name": "webpage", + "type": "WebPage" + } + ], + "type": "Update" + }, + { + "id": "-350980120", + "predicate": "webPageEmpty", + "params": [ + { + "name": "id", + "type": "long" + } + ], + "type": "WebPage" + }, + { + "id": "-981018084", + "predicate": "webPagePending", + "params": [ + { + "name": "id", + "type": "long" + }, + { + "name": "date", + "type": "int" + } + ], + "type": "WebPage" + }, + { + "id": "-1558273867", + "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" + } + ], + "type": "WebPage" + }, + { + "id": "-1557277184", + "predicate": "messageMediaWebPage", + "params": [ + { + "name": "webpage", + "type": "WebPage" + } + ], + "type": "MessageMedia" + }, + { + "id": "2079516406", + "predicate": "authorization", + "params": [ + { + "name": "hash", + "type": "long" + }, + { + "name": "flags", + "type": "int" + }, + { + "name": "device_model", + "type": "string" + }, + { + "name": "platform", + "type": "string" + }, + { + "name": "system_version", + "type": "string" + }, + { + "name": "api_id", + "type": "int" + }, + { + "name": "app_name", + "type": "string" + }, + { + "name": "app_version", + "type": "string" + }, + { + "name": "date_created", + "type": "int" + }, + { + "name": "date_active", + "type": "int" + }, + { + "name": "ip", + "type": "string" + }, + { + "name": "country", + "type": "string" + }, + { + "name": "region", + "type": "string" + } + ], + "type": "Authorization" + }, + { + "id": "307276766", + "predicate": "account.authorizations", + "params": [ + { + "name": "authorizations", + "type": "Vector" + } + ], + "type": "account.Authorizations" + }, + { + "id": "-1212732749", + "predicate": "account.passwordSettings", + "params": [ + { + "name": "email", + "type": "string" + } + ], + "type": "account.PasswordSettings" + }, + { + "id": "-1124314324", + "predicate": "account.passwordInputSettings", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "new_salt", + "type": "flags.0?bytes" + }, + { + "name": "new_password_hash", + "type": "flags.0?bytes" + }, + { + "name": "hint", + "type": "flags.0?string" + }, + { + "name": "email", + "type": "flags.1?string" + } + ], + "type": "account.PasswordInputSettings" + }, + { + "id": "326715557", + "predicate": "auth.passwordRecovery", + "params": [ + { + "name": "email_pattern", + "type": "string" + } + ], + "type": "auth.PasswordRecovery" } ], "methods": [ @@ -4994,16 +5128,20 @@ "type": "Bool" }, { - "id": "480793249", + "id": "-1696755930", "method": "messages.sendMessage", "params": [ + { + "name": "flags", + "type": "#" + }, { "name": "peer", "type": "InputPeer" }, { "name": "reply_to_msg_id", - "type": "int" + "type": "flags.0?int" }, { "name": "message", @@ -5017,16 +5155,20 @@ "type": "messages.SentMessage" }, { - "id": "-51478592", + "id": "762913713", "method": "messages.sendMedia", "params": [ + { + "name": "flags", + "type": "#" + }, { "name": "peer", "type": "InputPeer" }, { "name": "reply_to_msg_id", - "type": "int" + "type": "flags.0?int" }, { "name": "media", @@ -5037,10 +5179,10 @@ "type": "long" } ], - "type": "messages.StatedMessage" + "type": "Updates" }, { - "id": "-556523451", + "id": "1440838285", "method": "messages.forwardMessages", "params": [ { @@ -5056,7 +5198,7 @@ "type": "Vector" } ], - "type": "messages.StatedMessages" + "type": "Updates" }, { "id": "1013621127", @@ -5081,7 +5223,7 @@ "type": "messages.ChatFull" }, { - "id": "-1262720843", + "id": "-599447467", "method": "messages.editChatTitle", "params": [ { @@ -5093,10 +5235,10 @@ "type": "string" } ], - "type": "messages.StatedMessage" + "type": "Updates" }, { - "id": "-662601187", + "id": "-900957736", "method": "messages.editChatPhoto", "params": [ { @@ -5108,10 +5250,10 @@ "type": "InputChatPhoto" } ], - "type": "messages.StatedMessage" + "type": "Updates" }, { - "id": "787082910", + "id": "-106911223", "method": "messages.addChatUser", "params": [ { @@ -5127,10 +5269,10 @@ "type": "int" } ], - "type": "messages.StatedMessage" + "type": "Updates" }, { - "id": "-1010447069", + "id": "-530505962", "method": "messages.deleteChatUser", "params": [ { @@ -5142,10 +5284,10 @@ "type": "InputUser" } ], - "type": "messages.StatedMessage" + "type": "Updates" }, { - "id": "1100847854", + "id": "164303470", "method": "messages.createChat", "params": [ { @@ -5157,7 +5299,7 @@ "type": "string" } ], - "type": "messages.StatedMessage" + "type": "Updates" }, { "id": "-304838614", @@ -5352,7 +5494,7 @@ "type": "photos.Photos" }, { - "id": "66319602", + "id": "865483769", "method": "messages.forwardMessage", "params": [ { @@ -5368,7 +5510,7 @@ "type": "long" } ], - "type": "messages.StatedMessage" + "type": "Updates" }, { "id": "651135312", @@ -5837,29 +5979,6 @@ "params": [], "type": "account.Password" }, - { - "id": "-584430193", - "method": "account.setPassword", - "params": [ - { - "name": "current_password_hash", - "type": "bytes" - }, - { - "name": "new_salt", - "type": "bytes" - }, - { - "name": "new_password_hash", - "type": "bytes" - }, - { - "name": "hint", - "type": "string" - } - ], - "type": "Bool" - }, { "id": "174260510", "method": "auth.checkPassword", @@ -5883,13 +6002,17 @@ "type": "contacts.Suggested" }, { - "id": "1102776690", + "id": "-1082919718", "method": "messages.sendBroadcast", "params": [ { "name": "contacts", "type": "Vector" }, + { + "name": "random_id", + "type": "Vector" + }, { "name": "message", "type": "string" @@ -5899,7 +6022,78 @@ "type": "InputMedia" } ], - "type": "messages.StatedMessages" + "type": "Updates" + }, + { + "id": "623001124", + "method": "messages.getWebPagePreview", + "params": [ + { + "name": "message", + "type": "string" + } + ], + "type": "MessageMedia" + }, + { + "id": "-484392616", + "method": "account.getAuthorizations", + "params": [], + "type": "account.Authorizations" + }, + { + "id": "-545786948", + "method": "account.resetAuthorization", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "Bool" + }, + { + "id": "-1131605573", + "method": "account.getPasswordSettings", + "params": [ + { + "name": "current_password_hash", + "type": "bytes" + } + ], + "type": "account.PasswordSettings" + }, + { + "id": "-92517498", + "method": "account.updatePasswordSettings", + "params": [ + { + "name": "current_password_hash", + "type": "bytes" + }, + { + "name": "new_settings", + "type": "account.PasswordInputSettings" + } + ], + "type": "Bool" + }, + { + "id": "-661144474", + "method": "auth.requestPasswordRecovery", + "params": [], + "type": "auth.PasswordRecovery" + }, + { + "id": "1319464594", + "method": "auth.recoverPassword", + "params": [ + { + "name": "code", + "type": "string" + } + ], + "type": "auth.Authorization" } ] } \ No newline at end of file diff --git a/schema.tl b/schema.tl index 24fdb85..b44c19b 100644 --- a/schema.tl +++ b/schema.tl @@ -126,9 +126,7 @@ messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats: messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages; messages.messagesSlice#b446ae3 count:int messages:Vector chats:Vector users:Vector = messages.Messages; -messages.statedMessages#7d84b48 messages:Vector chats:Vector users:Vector pts:int pts_count:int = messages.StatedMessages; -messages.statedMessage#96240c6a message:Message chats:Vector users:Vector pts:int pts_count:int = messages.StatedMessage; -messages.sentMessage#900eac40 id:int date:int pts:int pts_count:int = messages.SentMessage; +messages.sentMessage#4c3d47f3 id:int date:int media:MessageMedia pts:int pts_count:int = messages.SentMessage; messages.chats#64ff9fd5 chats:Vector = messages.Chats; messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull; messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory; @@ -162,7 +160,7 @@ updates#74ae4240 updates:Vector users:Vector chats:Vector da photos.photo#20212ca8 photo:Photo users:Vector = 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#3e6f732a date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int broadcast_size_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 disabled_features:Vector = Config; +config#68bac247 date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int broadcast_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 disabled_features:Vector = 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; @@ -171,9 +169,7 @@ inputPeerNotifyEventsEmpty#f03064d8 = InputPeerNotifyEvents; inputPeerNotifyEventsAll#e86a2c74 = InputPeerNotifyEvents; photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos; photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos; -messages.statedMessagesLinks#51be5d19 messages:Vector chats:Vector users:Vector pts:int pts_count:int links:Vector seq:int = messages.StatedMessages; -messages.statedMessageLink#948a288 message:Message chats:Vector users:Vector pts:int pts_count:int links:Vector seq:int = messages.StatedMessage; -messages.sentMessageLink#e923400d id:int date:int pts:int pts_count:int links:Vector seq:int = messages.SentMessage; +messages.sentMessageLink#35a1a663 id:int date:int media:MessageMedia pts:int pts_count:int links:Vector 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,8 +272,8 @@ messages.stickers#8a8ecd32 hash:string stickers:Vector = messages.Stic stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack; messages.allStickersNotModified#e86602c3 = messages.AllStickers; messages.allStickers#dcef3102 hash:string packs:Vector documents:Vector = messages.AllStickers; -account.noPassword#5770e7a9 new_salt:bytes = account.Password; -account.password#739e5f72 current_salt:bytes new_salt:bytes hint:string = account.Password; +account.noPassword#96dabc18 new_salt:bytes email_unconfirmed_pattern:string = account.Password; +account.password#7c18141c current_salt:bytes new_salt:bytes hint:string has_recovery:Bool email_unconfirmed_pattern:string = account.Password; contactSuggested#3de191a1 user_id:int mutual_contacts:int = ContactSuggested; contacts.suggested#5649dcc5 results:Vector users:Vector = contacts.Suggested; messages.messageEmpty#3f4e0648 = messages.Message; @@ -288,6 +284,16 @@ contactLinkUnknown#5f4f9247 = ContactLink; contactLinkNone#feedd3ad = ContactLink; contactLinkHasPhone#268f3f59 = ContactLink; 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; +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 = account.Authorizations; +account.passwordSettings#b7b72ab3 email:string = account.PasswordSettings; +account.passwordInputSettings#bcfc532c flags:# new_salt:flags.0?bytes new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string = account.PasswordInputSettings; +auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; ---functions--- invokeAfterMsg#cb9f372d msg_id:long query:!X = X; invokeAfterMsgs#3dc4b4f0 msg_ids:Vector query:!X = X; @@ -329,16 +335,16 @@ messages.deleteHistory#f4f8fb61 peer:InputPeer offset:int = messages.AffectedHis messages.deleteMessages#a5f18925 id:Vector = messages.AffectedMessages; messages.receivedMessages#28abcb68 max_id:int = Vector; messages.setTyping#a3825e50 peer:InputPeer action:SendMessageAction = Bool; -messages.sendMessage#1ca852a1 peer:InputPeer reply_to_msg_id:int message:string random_id:long = messages.SentMessage; -messages.sendMedia#fcee7fc0 peer:InputPeer reply_to_msg_id:int media:InputMedia random_id:long = messages.StatedMessage; -messages.forwardMessages#ded42045 peer:InputPeer id:Vector random_id:Vector = messages.StatedMessages; +messages.sendMessage#9add8f26 flags:# peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long = messages.SentMessage; +messages.sendMedia#2d7923b1 flags:# peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia random_id:long = Updates; +messages.forwardMessages#55e1728d peer:InputPeer id:Vector random_id:Vector = Updates; messages.getChats#3c6aa187 id:Vector = messages.Chats; messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull; -messages.editChatTitle#b4bc68b5 chat_id:int title:string = messages.StatedMessage; -messages.editChatPhoto#d881821d chat_id:int photo:InputChatPhoto = messages.StatedMessage; -messages.addChatUser#2ee9ee9e chat_id:int user_id:InputUser fwd_limit:int = messages.StatedMessage; -messages.deleteChatUser#c3c5cd23 chat_id:int user_id:InputUser = messages.StatedMessage; -messages.createChat#419d9aee users:Vector title:string = messages.StatedMessage; +messages.editChatTitle#dc452855 chat_id:int title:string = Updates; +messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates; +messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates; +messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates; +messages.createChat#9cb126e users:Vector title:string = Updates; updates.getState#edd4882a = updates.State; updates.getDifference#a041495 pts:int date:int qts:int = updates.Difference; photos.updateProfilePhoto#eef579a0 id:InputPhoto crop:InputPhotoCrop = UserProfilePhoto; @@ -352,7 +358,7 @@ help.saveAppLog#6f02f748 events:Vector = Bool; help.getInviteText#a4a95186 lang_code:string = help.InviteText; photos.deletePhotos#87cf7f2f id:Vector = Vector; 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.forwardMessage#33963bf9 peer:InputPeer id:int random_id:long = Updates; 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; @@ -386,7 +392,13 @@ messages.getStickers#ae22e045 emoticon:string hash:string = messages.Stickers; messages.getAllStickers#aa3bc868 hash:string = messages.AllStickers; account.updateDeviceLocked#38df3532 period:int = Bool; account.getPassword#548a30f5 = account.Password; -account.setPassword#dd2a4d8f current_password_hash:bytes new_salt:bytes new_password_hash:bytes hint:string = Bool; auth.checkPassword#a63011e password_hash:bytes = auth.Authorization; contacts.getSuggested#cd773428 limit:int = contacts.Suggested; -messages.sendBroadcast#41bb0972 contacts:Vector message:string media:InputMedia = messages.StatedMessages; +messages.sendBroadcast#bf73f4da contacts:Vector random_id:Vector message:string media:InputMedia = Updates; +messages.getWebPagePreview#25223e24 message:string = MessageMedia; +account.getAuthorizations#e320c158 = account.Authorizations; +account.resetAuthorization#df77f3bc hash:long = Bool; +account.getPasswordSettings#bc8d11bb current_password_hash:bytes = account.PasswordSettings; +account.updatePasswordSettings#fa7c4b86 current_password_hash:bytes new_settings:account.PasswordInputSettings = Bool; +auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; +auth.recoverPassword#4ea56e92 code:string = auth.Authorization;