From 656b9cad727ddee66b510f814385f7bb0ff023d8 Mon Sep 17 00:00:00 2001 From: Viktor Oreshkin Date: Sat, 1 Jul 2017 23:17:38 +0300 Subject: [PATCH] Add layer 046 --- l046/README.md | 4 + l046/schema.json | 275 +++++++++++++++++++++++++++++++++++++++++++++++ l046/schema.tl | 31 ++++++ schema.json | 270 +++++++++++++++------------------------------- schema.tl | 29 ++--- 5 files changed, 409 insertions(+), 200 deletions(-) create mode 100644 l046/README.md create mode 100644 l046/schema.json create mode 100644 l046/schema.tl diff --git a/l046/README.md b/l046/README.md new file mode 100644 index 0000000..5a72d59 --- /dev/null +++ b/l046/README.md @@ -0,0 +1,4 @@ +### Version info +App|Version/Hash|Date +---|---|--- +TDesktop|189d0e8de383a22fbc4e397d87b8ff944a6e3dfb|12.02.16 diff --git a/l046/schema.json b/l046/schema.json new file mode 100644 index 0000000..668d1e6 --- /dev/null +++ b/l046/schema.json @@ -0,0 +1,275 @@ +{ + "constructors": [ + { + "id": "-1739392570", + "predicate": "documentAttributeAudio", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "voice", + "type": "flags.10?true" + }, + { + "name": "duration", + "type": "int" + }, + { + "name": "title", + "type": "flags.0?string" + }, + { + "name": "performer", + "type": "flags.1?string" + }, + { + "name": "waveform", + "type": "flags.2?bytes" + } + ], + "type": "DocumentAttribute" + }, + { + "id": "-2037289493", + "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": "1260090630", + "predicate": "channel", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "creator", + "type": "flags.0?true" + }, + { + "name": "kicked", + "type": "flags.1?true" + }, + { + "name": "left", + "type": "flags.2?true" + }, + { + "name": "editor", + "type": "flags.3?true" + }, + { + "name": "moderator", + "type": "flags.4?true" + }, + { + "name": "broadcast", + "type": "flags.5?true" + }, + { + "name": "verified", + "type": "flags.7?true" + }, + { + "name": "megagroup", + "type": "flags.8?true" + }, + { + "name": "restricted", + "type": "flags.9?true" + }, + { + "name": "invites_enabled", + "type": "flags.10?true" + }, + { + "name": "id", + "type": "int" + }, + { + "name": "access_hash", + "type": "long" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "username", + "type": "flags.6?string" + }, + { + "name": "photo", + "type": "ChatPhoto" + }, + { + "name": "date", + "type": "int" + }, + { + "name": "version", + "type": "int" + }, + { + "name": "restriction_reason", + "type": "flags.9?string" + } + ], + "type": "Chat" + }, + { + "id": "1358283666", + "predicate": "inputMessagesFilterVoice", + "params": [], + "type": "MessagesFilter" + }, + { + "id": "928101534", + "predicate": "inputMessagesFilterMusic", + "params": [], + "type": "MessagesFilter" + }, + { + "id": "258597139", + "predicate": "updateBotInlineSend", + "params": [ + { + "name": "user_id", + "type": "int" + }, + { + "name": "query", + "type": "string" + }, + { + "name": "id", + "type": "string" + } + ], + "type": "Update" + }, + { + "id": "-1107622874", + "predicate": "inputPrivacyKeyChatInvite", + "params": [], + "type": "InputPrivacyKey" + }, + { + "id": "1343122938", + "predicate": "privacyKeyChatInvite", + "params": [], + "type": "PrivacyKey" + } + ], + "methods": [ + { + "id": "-1347868602", + "method": "messages.getHistory", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "offset_id", + "type": "int" + }, + { + "name": "offset_date", + "type": "int" + }, + { + "name": "add_offset", + "type": "int" + }, + { + "name": "limit", + "type": "int" + }, + { + "name": "max_id", + "type": "int" + }, + { + "name": "min_id", + "type": "int" + } + ], + "type": "messages.Messages" + }, + { + "id": "-1891021902", + "method": "channels.getImportantHistory", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "offset_id", + "type": "int" + }, + { + "name": "offset_date", + "type": "int" + }, + { + "name": "add_offset", + "type": "int" + }, + { + "name": "limit", + "type": "int" + }, + { + "name": "max_id", + "type": "int" + }, + { + "name": "min_id", + "type": "int" + } + ], + "type": "messages.Messages" + }, + { + "id": "1231065863", + "method": "channels.toggleInvites", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "enabled", + "type": "Bool" + } + ], + "type": "Updates" + } + ] +} \ No newline at end of file diff --git a/l046/schema.tl b/l046/schema.tl new file mode 100644 index 0000000..4a713af --- /dev/null +++ b/l046/schema.tl @@ -0,0 +1,31 @@ +---types--- +// inputMessagesFilterAudio#cfc87522 = MessagesFilter; +// inputMediaUploadedAudio#4e498cab file:InputFile duration:int mime_type:string = InputMedia; +// inputMediaAudio#89938781 id:InputAudio = InputMedia; +// messageMediaAudio#c6b68300 audio:Audio = MessageMedia; +// inputAudioEmpty#d95adc84 = InputAudio; +// inputAudio#77d440ff id:long access_hash:long = InputAudio; +// inputAudioFileLocation#74dc404d id:long access_hash:long = InputFileLocation; +// audioEmpty#586988d8 id:long = Audio; +// audio#f9e35055 id:long access_hash:long date:int duration:int mime_type:string size:int dc_id:int = Audio; +// contactSuggested#3de191a1 user_id:int mutual_contacts:int = ContactSuggested; +// contacts.suggested#5649dcc5 results:Vector users:Vector = contacts.Suggested; +// inputMessagesFilterAudioDocuments#5afbf764 = MessagesFilter; +// documentAttributeAudio#ded218e0 duration:int title:string performer:string = DocumentAttribute; +documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; +// 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; +account.passwordInputSettings#86916deb flags:# new_salt:flags.0?bytes new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string = account.PasswordInputSettings; +// channel#4b1b7506 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true editor:flags.3?true moderator:flags.4?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true id:int access_hash:long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string = Chat; +channel#4b1b7506 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true editor:flags.3?true moderator:flags.4?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true invites_enabled:flags.10?true id:int access_hash:long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string = Chat; +inputMessagesFilterVoice#50f5c392 = MessagesFilter; +inputMessagesFilterMusic#3751b49e = MessagesFilter; +updateBotInlineSend#f69e113 user_id:int query:string id:string = Update; +inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; +privacyKeyChatInvite#500e6dfa = PrivacyKey; +---functions--- +// contacts.getSuggested#cd773428 limit:int = contacts.Suggested; +// messages.getHistory#8a8ec2da peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; +messages.getHistory#afa92846 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; +// channels.getImportantHistory#ddb929cb channel:InputChannel offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; +channels.getImportantHistory#8f494bb2 channel:InputChannel offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; +channels.toggleInvites#49609307 channel:InputChannel enabled:Bool = Updates; diff --git a/schema.json b/schema.json index 9c061fc..7aa5aaf 100644 --- a/schema.json +++ b/schema.json @@ -3112,12 +3112,6 @@ "params": [], "type": "storage.FileType" }, - { - "id": "-808946398", - "predicate": "inputMessagesFilterAudio", - "params": [], - "type": "MessagesFilter" - }, { "id": "-1629621880", "predicate": "inputMessagesFilterDocument", @@ -3187,36 +3181,6 @@ ], "type": "Update" }, - { - "id": "1313442987", - "predicate": "inputMediaUploadedAudio", - "params": [ - { - "name": "file", - "type": "InputFile" - }, - { - "name": "duration", - "type": "int" - }, - { - "name": "mime_type", - "type": "string" - } - ], - "type": "InputMedia" - }, - { - "id": "-1986820223", - "predicate": "inputMediaAudio", - "params": [ - { - "name": "id", - "type": "InputAudio" - } - ], - "type": "InputMedia" - }, { "id": "495530093", "predicate": "inputMediaUploadedDocument", @@ -3297,38 +3261,6 @@ ], "type": "MessageMedia" }, - { - "id": "-961117440", - "predicate": "messageMediaAudio", - "params": [ - { - "name": "audio", - "type": "Audio" - } - ], - "type": "MessageMedia" - }, - { - "id": "-648356732", - "predicate": "inputAudioEmpty", - "params": [], - "type": "InputAudio" - }, - { - "id": "2010398975", - "predicate": "inputAudio", - "params": [ - { - "name": "id", - "type": "long" - }, - { - "name": "access_hash", - "type": "long" - } - ], - "type": "InputAudio" - }, { "id": "1928391342", "predicate": "inputDocumentEmpty", @@ -3350,21 +3282,6 @@ ], "type": "InputDocument" }, - { - "id": "1960591437", - "predicate": "inputAudioFileLocation", - "params": [ - { - "name": "id", - "type": "long" - }, - { - "name": "access_hash", - "type": "long" - } - ], - "type": "InputFileLocation" - }, { "id": "1313188841", "predicate": "inputDocumentFileLocation", @@ -3380,52 +3297,6 @@ ], "type": "InputFileLocation" }, - { - "id": "1483311320", - "predicate": "audioEmpty", - "params": [ - { - "name": "id", - "type": "long" - } - ], - "type": "Audio" - }, - { - "id": "-102543275", - "predicate": "audio", - "params": [ - { - "name": "id", - "type": "long" - }, - { - "name": "access_hash", - "type": "long" - }, - { - "name": "date", - "type": "int" - }, - { - "name": "duration", - "type": "int" - }, - { - "name": "mime_type", - "type": "string" - }, - { - "name": "size", - "type": "int" - }, - { - "name": "dc_id", - "type": "int" - } - ], - "type": "Audio" - }, { "id": "922273905", "predicate": "documentEmpty", @@ -3940,20 +3811,32 @@ "type": "DocumentAttribute" }, { - "id": "-556656416", + "id": "-1739392570", "predicate": "documentAttributeAudio", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "voice", + "type": "flags.10?true" + }, { "name": "duration", "type": "int" }, { "name": "title", - "type": "string" + "type": "flags.0?string" }, { "name": "performer", - "type": "string" + "type": "flags.1?string" + }, + { + "name": "waveform", + "type": "flags.2?bytes" } ], "type": "DocumentAttribute" @@ -4068,36 +3951,6 @@ ], "type": "account.Password" }, - { - "id": "1038193057", - "predicate": "contactSuggested", - "params": [ - { - "name": "user_id", - "type": "int" - }, - { - "name": "mutual_contacts", - "type": "int" - } - ], - "type": "ContactSuggested" - }, - { - "id": "1447681221", - "predicate": "contacts.suggested", - "params": [ - { - "name": "results", - "type": "Vector" - }, - { - "name": "users", - "type": "Vector" - } - ], - "type": "contacts.Suggested" - }, { "id": "-1721631396", "predicate": "updateReadHistoryInbox", @@ -4392,7 +4245,7 @@ "type": "account.PasswordSettings" }, { - "id": "-1124314324", + "id": "-2037289493", "predicate": "account.passwordInputSettings", "params": [ { @@ -4685,12 +4538,6 @@ ], "type": "messages.StickerSet" }, - { - "id": "1526462308", - "predicate": "inputMessagesFilterAudioDocuments", - "params": [], - "type": "MessagesFilter" - }, { "id": "-787638374", "predicate": "user", @@ -5252,6 +5099,10 @@ "name": "restricted", "type": "flags.9?true" }, + { + "name": "invites_enabled", + "type": "flags.10?true" + }, { "name": "id", "type": "int" @@ -6549,6 +6400,49 @@ } ], "type": "messages.BotResults" + }, + { + "id": "1358283666", + "predicate": "inputMessagesFilterVoice", + "params": [], + "type": "MessagesFilter" + }, + { + "id": "928101534", + "predicate": "inputMessagesFilterMusic", + "params": [], + "type": "MessagesFilter" + }, + { + "id": "258597139", + "predicate": "updateBotInlineSend", + "params": [ + { + "name": "user_id", + "type": "int" + }, + { + "name": "query", + "type": "string" + }, + { + "name": "id", + "type": "string" + } + ], + "type": "Update" + }, + { + "id": "-1107622874", + "predicate": "inputPrivacyKeyChatInvite", + "params": [], + "type": "InputPrivacyKey" + }, + { + "id": "1343122938", + "predicate": "privacyKeyChatInvite", + "params": [], + "type": "PrivacyKey" } ], "methods": [ @@ -7011,7 +6905,7 @@ "type": "messages.Dialogs" }, { - "id": "-1970355494", + "id": "-1347868602", "method": "messages.getHistory", "params": [ { @@ -7022,6 +6916,10 @@ "name": "offset_id", "type": "int" }, + { + "name": "offset_date", + "type": "int" + }, { "name": "add_offset", "type": "int" @@ -8054,17 +7952,6 @@ ], "type": "auth.Authorization" }, - { - "id": "-847825880", - "method": "contacts.getSuggested", - "params": [ - { - "name": "limit", - "type": "int" - } - ], - "type": "contacts.Suggested" - }, { "id": "-1082919718", "method": "messages.sendBroadcast", @@ -8378,7 +8265,7 @@ "type": "messages.Dialogs" }, { - "id": "-575067701", + "id": "-1891021902", "method": "channels.getImportantHistory", "params": [ { @@ -8389,6 +8276,10 @@ "name": "offset_id", "type": "int" }, + { + "name": "offset_date", + "type": "int" + }, { "name": "add_offset", "type": "int" @@ -9018,6 +8909,21 @@ } ], "type": "Updates" + }, + { + "id": "1231065863", + "method": "channels.toggleInvites", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "enabled", + "type": "Bool" + } + ], + "type": "Updates" } ] } \ No newline at end of file diff --git a/schema.tl b/schema.tl index e7e22e2..aa8bbe0 100644 --- a/schema.tl +++ b/schema.tl @@ -183,27 +183,18 @@ messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentE inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile; inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile; storage.filePdf#ae1e508d = storage.FileType; -inputMessagesFilterAudio#cfc87522 = MessagesFilter; inputMessagesFilterDocument#9eddf188 = MessagesFilter; inputMessagesFilterPhotoVideoDocuments#d95e73bb = MessagesFilter; updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update; updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update; updateDcOptions#8e5e9873 dc_options:Vector = Update; -inputMediaUploadedAudio#4e498cab file:InputFile duration:int mime_type:string = InputMedia; -inputMediaAudio#89938781 id:InputAudio = InputMedia; inputMediaUploadedDocument#1d89306d file:InputFile mime_type:string attributes:Vector caption:string = InputMedia; inputMediaUploadedThumbDocument#ad613491 file:InputFile thumb:InputFile mime_type:string attributes:Vector caption:string = InputMedia; inputMediaDocument#1a77f29c id:InputDocument caption:string = InputMedia; messageMediaDocument#f3e02ea8 document:Document caption:string = MessageMedia; -messageMediaAudio#c6b68300 audio:Audio = MessageMedia; -inputAudioEmpty#d95adc84 = InputAudio; -inputAudio#77d440ff id:long access_hash:long = InputAudio; inputDocumentEmpty#72f0eaae = InputDocument; inputDocument#18798952 id:long access_hash:long = InputDocument; -inputAudioFileLocation#74dc404d id:long access_hash:long = InputFileLocation; inputDocumentFileLocation#4e45abe9 id:long access_hash:long = InputFileLocation; -audioEmpty#586988d8 id:long = Audio; -audio#f9e35055 id:long access_hash:long date:int duration:int mime_type:string size:int dc_id:int = Audio; documentEmpty#36f8c871 id:long = Document; document#f9a39f4f id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = Document; help.support#17c6b5f6 phone_number:string user:User = help.Support; @@ -252,7 +243,7 @@ documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; documentAttributeAnimated#11b58939 = DocumentAttribute; documentAttributeSticker#3a556302 alt:string stickerset:InputStickerSet = DocumentAttribute; documentAttributeVideo#5910cccb duration:int w:int h:int = DocumentAttribute; -documentAttributeAudio#ded218e0 duration:int title:string performer:string = DocumentAttribute; +documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; documentAttributeFilename#15590068 file_name:string = DocumentAttribute; messages.stickersNotModified#f1749a22 = messages.Stickers; messages.stickers#8a8ecd32 hash:string stickers:Vector = messages.Stickers; @@ -261,8 +252,6 @@ messages.allStickersNotModified#e86602c3 = messages.AllStickers; messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers; 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; updateReadHistoryInbox#9961fd5c peer:Peer max_id:int pts:int pts_count:int = Update; updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update; messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages; @@ -278,7 +267,7 @@ 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; +account.passwordInputSettings#86916deb 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; inputMediaVenue#2827a81a geo_point:InputGeoPoint title:string address:string provider:string venue_id:string = InputMedia; messageMediaVenue#7912b71f geo:GeoPoint title:string address:string provider:string venue_id:string = MessageMedia; @@ -294,7 +283,6 @@ inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; stickerSet#cd303b41 flags:# installed:flags.0?true disabled:flags.1?true official:flags.2?true id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet; messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; -inputMessagesFilterAudioDocuments#5afbf764 = MessagesFilter; user#d10d979a flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string = User; botCommand#c27ac8c7 command:string description:string = BotCommand; botInfoEmpty#bb2e37ce = BotInfo; @@ -323,7 +311,7 @@ messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity; updateShortSentMessage#11f1331c flags:# unread:flags.0?true out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates; inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer; peerChannel#bddde532 channel_id:int = Peer; -channel#4b1b7506 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true editor:flags.3?true moderator:flags.4?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true id:int access_hash:long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string = Chat; +channel#4b1b7506 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true editor:flags.3?true moderator:flags.4?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true invites_enabled:flags.10?true id:int access_hash:long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string = Chat; channelForbidden#2d85832c id:int access_hash:long title:string = Chat; channelFull#9e341ddf flags:# can_view_participants:flags.3?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int read_inbox_max_id:int unread_count:int unread_important_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int = ChatFull; messageActionChannelCreate#95d2ac92 title:string = MessageAction; @@ -395,6 +383,11 @@ botInlineMediaResultDocument#f897d33e id:string type:string document:Document se botInlineMediaResultPhoto#c5528587 id:string type:string photo:Photo send_message:BotInlineMessage = BotInlineResult; 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#1170b0a3 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string results:Vector = messages.BotResults; +inputMessagesFilterVoice#50f5c392 = MessagesFilter; +inputMessagesFilterMusic#3751b49e = MessagesFilter; +updateBotInlineSend#f69e113 user_id:int query:string id:string = Update; +inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; +privacyKeyChatInvite#500e6dfa = PrivacyKey; ---functions--- invokeAfterMsg#cb9f372d msg_id:long query:!X = X; invokeAfterMsgs#3dc4b4f0 msg_ids:Vector query:!X = X; @@ -429,7 +422,7 @@ contacts.unblock#e54100bd id:InputUser = Bool; contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked; messages.getMessages#4222fa74 id:Vector = messages.Messages; messages.getDialogs#6b47f94d offset_date:int offset_id:int offset_peer:InputPeer limit:int = messages.Dialogs; -messages.getHistory#8a8ec2da peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; +messages.getHistory#afa92846 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; messages.search#d4569248 flags:# important_only:flags.0?true peer:InputPeer q:string filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = messages.Messages; messages.readHistory#e306d3a peer:InputPeer max_id:int = messages.AffectedMessages; messages.deleteHistory#b7c13bd9 peer:InputPeer max_id:int = messages.AffectedHistory; @@ -494,7 +487,6 @@ messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers; account.updateDeviceLocked#38df3532 period:int = Bool; account.getPassword#548a30f5 = account.Password; auth.checkPassword#a63011e password_hash:bytes = auth.Authorization; -contacts.getSuggested#cd773428 limit:int = contacts.Suggested; messages.sendBroadcast#bf73f4da contacts:Vector random_id:Vector message:string media:InputMedia = Updates; messages.getWebPagePreview#25223e24 message:string = MessageMedia; account.getAuthorizations#e320c158 = account.Authorizations; @@ -517,7 +509,7 @@ messages.reportSpam#cf1592db peer:InputPeer = Bool; messages.getMessagesViews#c4c8a55d peer:InputPeer id:Vector increment:Bool = Vector; updates.getChannelDifference#bb32d7c0 channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; channels.getDialogs#a9d3d249 offset:int limit:int = messages.Dialogs; -channels.getImportantHistory#ddb929cb channel:InputChannel offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; +channels.getImportantHistory#8f494bb2 channel:InputChannel offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages; channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory; @@ -555,3 +547,4 @@ messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; messages.getInlineBotResults#9324600d bot:InputUser query:string offset:string = messages.BotResults; messages.setInlineBotResults#3f23ec12 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string = Bool; messages.sendInlineBotResult#b16e06fe flags:# broadcast:flags.4?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string = Updates; +channels.toggleInvites#49609307 channel:InputChannel enabled:Bool = Updates;