diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index df96a7c..d3bc823 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,16 +8,10 @@ jobs: timeout-minutes: 5 environment: test steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 with: - node-version: 20 + node-version: 22 - run: npm ci - run: npm run build - run: npm run test - env: - DEBUG: "*" - API_ID: ${{ vars.API_ID }} - API_HASH: ${{ vars.API_HASH }} - PHONE_NUMBER: ${{ vars.PHONE_NUMBER }} - PHONE_CODE: ${{ vars.PHONE_CODE }} diff --git a/README.md b/README.md index 34d1cd3..75f807d 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,14 @@ mtproto.call("updates.getState").then(function(state) { The library was initially created by [@alik0211](https://github.com/alik0211/mtproto-core). +## Resources + +The `mtproto.json` is well described [here](https://core.telegram.org/schema/mtproto) ([detailed schema in JSON](https://core.telegram.org/schema/mtproto-json)). + +The `api.json` is well desctibed [here](https://core.telegram.org/schema) ([detailed schema in JSON](https://core.telegram.org/schema/json)). + ## License GPLv3 + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 6c8212f..69ceec4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,28 +1,28 @@ { "name": "mtproto-nodejs-client", - "version": "7.3.1", + "version": "8.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mtproto-nodejs-client", - "version": "7.3.1", + "version": "8.0.0", "license": "GPL-3.0", "dependencies": { - "@types/aes-js": "^3.1.4", + "@typescript/native-preview": "^7.0.0-dev.20251113.1", "aes-js": "3.1.2", "big-integer": "1.6.52", - "debug": "4.4.0", + "debug": "4.4.3", "leemon": "6.2.0", "lodash.debounce": "4.0.8", "pako": "2.1.0" }, "devDependencies": { + "@types/aes-js": "^3.1.4", "@types/debug": "^4.1.12", "@types/lodash.debounce": "^4.0.9", - "@types/node": "^22.14.1", - "@types/pako": "^2.0.3", - "typescript": "^5.8.3" + "@types/node": "^24.10.1", + "@types/pako": "^2.0.4" }, "engines": { "node": ">=20" @@ -31,7 +31,8 @@ "node_modules/@types/aes-js": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/@types/aes-js/-/aes-js-3.1.4.tgz", - "integrity": "sha512-v3D66IptpUqh+pHKVNRxY8yvp2ESSZXe0rTzsGdzUhEwag7ljVfgCllkWv2YgiYXDhWFBrEywll4A5JToyTNFA==" + "integrity": "sha512-v3D66IptpUqh+pHKVNRxY8yvp2ESSZXe0rTzsGdzUhEwag7ljVfgCllkWv2YgiYXDhWFBrEywll4A5JToyTNFA==", + "dev": true }, "node_modules/@types/debug": { "version": "4.1.12", @@ -64,20 +65,130 @@ "dev": true }, "node_modules/@types/node": { - "version": "22.14.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.1.tgz", - "integrity": "sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==", + "version": "24.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", + "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": "~7.16.0" } }, "node_modules/@types/pako": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/pako/-/pako-2.0.3.tgz", - "integrity": "sha512-bq0hMV9opAcrmE0Byyo0fY3Ew4tgOevJmQ9grUhpXQhYfyLJ1Kqg3P33JT5fdbT2AjeAjR51zqqVjAL/HMkx7Q==", - "dev": true + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/pako/-/pako-2.0.4.tgz", + "integrity": "sha512-VWDCbrLeVXJM9fihYodcLiIv0ku+AlOa/TQ1SvYOaBuyrSKgEcro95LJyIsJ4vSo6BXIxOKxiJAat04CmST9Fw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript/native-preview": { + "version": "7.0.0-dev.20251113.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview/-/native-preview-7.0.0-dev.20251113.1.tgz", + "integrity": "sha512-gxe+j1h5DSnP/rE2+4BGSzfKRg2RdmMtHlPX+oH1iLGOHTWLQ5IVtS7hW2IlGJY2Y1dXXDARh9wRYzePPXyh8g==", + "license": "Apache-2.0", + "bin": { + "tsgo": "bin/tsgo.js" + }, + "optionalDependencies": { + "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20251113.1", + "@typescript/native-preview-darwin-x64": "7.0.0-dev.20251113.1", + "@typescript/native-preview-linux-arm": "7.0.0-dev.20251113.1", + "@typescript/native-preview-linux-arm64": "7.0.0-dev.20251113.1", + "@typescript/native-preview-linux-x64": "7.0.0-dev.20251113.1", + "@typescript/native-preview-win32-arm64": "7.0.0-dev.20251113.1", + "@typescript/native-preview-win32-x64": "7.0.0-dev.20251113.1" + } + }, + "node_modules/@typescript/native-preview-darwin-arm64": { + "version": "7.0.0-dev.20251113.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-darwin-arm64/-/native-preview-darwin-arm64-7.0.0-dev.20251113.1.tgz", + "integrity": "sha512-ArzjtsMWWUSRnqv/C7p+Lv7SJbL9EDGBPDgBvyI+xIcTqyD9WW2sMStjc1jTwWsimmQXzQQ8jZYpf+xSGj5boQ==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@typescript/native-preview-darwin-x64": { + "version": "7.0.0-dev.20251113.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-darwin-x64/-/native-preview-darwin-x64-7.0.0-dev.20251113.1.tgz", + "integrity": "sha512-airwguNehqwQhr6LjDcJ0LXfBv2GaOJkpj6fzxMK9gWlrx/tVwvRFoazUesdOnR1DM6zSE4gy+2UROxGeumOSw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@typescript/native-preview-linux-arm": { + "version": "7.0.0-dev.20251113.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-arm/-/native-preview-linux-arm-7.0.0-dev.20251113.1.tgz", + "integrity": "sha512-lTYX9vskfbq3kq2+vpqu2fwJP68iZ4OuWHuGLMzS/AlQ1vzs535su/s6xhL8UuyRP+n10A9z2xHq7UJSOx8u1w==", + "cpu": [ + "arm" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@typescript/native-preview-linux-arm64": { + "version": "7.0.0-dev.20251113.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-arm64/-/native-preview-linux-arm64-7.0.0-dev.20251113.1.tgz", + "integrity": "sha512-EefJd94Hm2507bMQekjoaad32pjGQgldSNjD1UAp6P0EKsn2wZV7H9gxosbZwL3tgMY/HDrQoS1j240/qv528w==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@typescript/native-preview-linux-x64": { + "version": "7.0.0-dev.20251113.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-x64/-/native-preview-linux-x64-7.0.0-dev.20251113.1.tgz", + "integrity": "sha512-2VLSCSHgnb94BLLeb1LGYTMIRgbCWkpJa74U45Fi9W+ErTW5QJR+b/nzKAzeeL8/6vu5cfnW4Yf5pCU4d+IvTg==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@typescript/native-preview-win32-arm64": { + "version": "7.0.0-dev.20251113.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-win32-arm64/-/native-preview-win32-arm64-7.0.0-dev.20251113.1.tgz", + "integrity": "sha512-byymVRxjqyQPBDpTxcfFprfNTN0e8RXE1VRmVrMU4kJeCxC9SRPQAZCIFw5bJKt74iic7Ixk0O+Ehjp+YlH/VQ==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@typescript/native-preview-win32-x64": { + "version": "7.0.0-dev.20251113.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-win32-x64/-/native-preview-win32-x64-7.0.0-dev.20251113.1.tgz", + "integrity": "sha512-H6dR8nmGmuKduG8kODnb5bRgsTScjJ7lLpG6cch+3MflNaIymMAiQsku2kWKtMiFp94wHgQIFk88ov2wG91FYw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ] }, "node_modules/aes-js": { "version": "3.1.2", @@ -93,9 +204,9 @@ } }, "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -130,24 +241,10 @@ "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz", "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==" }, - "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "dev": true, "license": "MIT" } diff --git a/package.json b/package.json index 4dc3859..7416eac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mtproto-nodejs-client", - "version": "7.3.1", + "version": "8.0.0", "type": "module", "description": "Telegram API JS (MTProto) client library for Node.js", "main": "lib/index.js", @@ -12,27 +12,28 @@ "node": ">=20" }, "scripts": { - "build": "tsc", - "watch": "tsc --watch", - "test": "node --test", - "prepublishOnly": "tsc" + "build": "tsgo", + "watch": "tsgo --watch", + "test": "node --test lib/**/*.test.js", + "sync-schema": "node lib/sync-schema.js", + "generate": "node lib/generate.js" }, "license": "GPL-3.0", "dependencies": { + "@typescript/native-preview": "^7.0.0-dev.20251113.1", "aes-js": "3.1.2", "big-integer": "1.6.52", - "debug": "4.4.0", + "debug": "4.4.3", "leemon": "6.2.0", "lodash.debounce": "4.0.8", - "@types/aes-js": "^3.1.4", "pako": "2.1.0" }, "devDependencies": { + "@types/aes-js": "^3.1.4", "@types/debug": "^4.1.12", "@types/lodash.debounce": "^4.0.9", - "@types/node": "^22.14.1", - "@types/pako": "^2.0.3", - "typescript": "^5.8.3" + "@types/node": "^24.10.1", + "@types/pako": "^2.0.4" }, "repository": { "type": "git", diff --git a/scheme/api.json b/scheme/api.json index c94f182..861afa8 100644 --- a/scheme/api.json +++ b/scheme/api.json @@ -793,7 +793,7 @@ "type": "Message" }, { - "id": "-1808510398", + "id": "-1743401272", "predicate": "message", "params": [ { @@ -856,6 +856,14 @@ "name": "video_processing_pending", "type": "flags2.4?true" }, + { + "name": "paid_suggested_post_stars", + "type": "flags2.8?true" + }, + { + "name": "paid_suggested_post_ton", + "type": "flags2.9?true" + }, { "name": "id", "type": "int" @@ -959,12 +967,24 @@ { "name": "factcheck", "type": "flags2.3?FactCheck" + }, + { + "name": "report_delivery_until_date", + "type": "flags2.5?int" + }, + { + "name": "paid_message_stars", + "type": "flags2.6?long" + }, + { + "name": "suggested_post", + "type": "flags2.7?SuggestedPost" } ], "type": "Message" }, { - "id": "721967202", + "id": "2055212554", "predicate": "messageService", "params": [ { @@ -983,6 +1003,10 @@ "name": "media_unread", "type": "flags.5?true" }, + { + "name": "reactions_are_possible", + "type": "flags.9?true" + }, { "name": "silent", "type": "flags.13?true" @@ -1007,6 +1031,10 @@ "name": "peer_id", "type": "Peer" }, + { + "name": "saved_peer_id", + "type": "flags.28?Peer" + }, { "name": "reply_to", "type": "flags.3?MessageReplyHeader" @@ -1019,6 +1047,10 @@ "name": "action", "type": "MessageAction" }, + { + "name": "reactions", + "type": "flags.20?MessageReactions" + }, { "name": "ttl_period", "type": "flags.25?int" @@ -1576,7 +1608,7 @@ "type": "PeerNotifySettings" }, { - "id": "-1395233698", + "id": "-193510921", "predicate": "peerSettings", "params": [ { @@ -1646,6 +1678,26 @@ { "name": "business_bot_manage_url", "type": "flags.13?string" + }, + { + "name": "charge_paid_message_stars", + "type": "flags.14?long" + }, + { + "name": "registration_month", + "type": "flags.15?string" + }, + { + "name": "phone_country", + "type": "flags.16?string" + }, + { + "name": "name_change_date", + "type": "flags.17?int" + }, + { + "name": "photo_change_date", + "type": "flags.18?int" } ], "type": "PeerSettings" @@ -1728,7 +1780,7 @@ "type": "ReportReason" }, { - "id": "-1751309450", + "id": "-982010451", "predicate": "userFull", "params": [ { @@ -1803,6 +1855,10 @@ "name": "bot_can_manage_emoji_status", "type": "flags2.10?true" }, + { + "name": "display_gifts_button", + "type": "flags2.16?true" + }, { "name": "id", "type": "long" @@ -1852,8 +1908,8 @@ "type": "flags.14?int" }, { - "name": "theme_emoticon", - "type": "flags.15?string" + "name": "theme", + "type": "flags.15?ChatTheme" }, { "name": "private_forward_name", @@ -1867,10 +1923,6 @@ "name": "bot_broadcast_admin_rights", "type": "flags.18?ChatAdminRights" }, - { - "name": "premium_gifts", - "type": "flags.19?Vector" - }, { "name": "wallpaper", "type": "flags.24?WallPaper" @@ -1918,6 +1970,38 @@ { "name": "starref_program", "type": "flags2.11?StarRefProgram" + }, + { + "name": "bot_verification", + "type": "flags2.12?BotVerification" + }, + { + "name": "send_paid_messages_stars", + "type": "flags2.14?long" + }, + { + "name": "disallowed_gifts", + "type": "flags2.15?DisallowedGiftsSettings" + }, + { + "name": "stars_rating", + "type": "flags2.17?StarsRating" + }, + { + "name": "stars_my_pending_rating", + "type": "flags2.18?StarsRating" + }, + { + "name": "stars_my_pending_rating_date", + "type": "flags2.18?int" + }, + { + "name": "main_tab", + "type": "flags2.20?ProfileTab" + }, + { + "name": "saved_music", + "type": "flags2.21?Document" } ], "type": "UserFull" @@ -2127,7 +2211,7 @@ "type": "messages.Messages" }, { - "id": "978610270", + "id": "1982539325", "predicate": "messages.messagesSlice", "params": [ { @@ -2150,6 +2234,10 @@ "name": "offset_id_offset", "type": "flags.2?int" }, + { + "name": "search_flood", + "type": "flags.3?SearchPostsFlood" + }, { "name": "messages", "type": "Vector" @@ -3653,7 +3741,7 @@ "type": "Update" }, { - "id": "1530447553", + "id": "58495792", "predicate": "inputMediaUploadedDocument", "params": [ { @@ -3692,6 +3780,14 @@ "name": "stickers", "type": "flags.0?Vector" }, + { + "name": "video_cover", + "type": "flags.6?InputPhoto" + }, + { + "name": "video_timestamp", + "type": "flags.7?int" + }, { "name": "ttl_seconds", "type": "flags.1?int" @@ -3700,7 +3796,7 @@ "type": "InputMedia" }, { - "id": "860303448", + "id": "-1468646731", "predicate": "inputMediaDocument", "params": [ { @@ -3715,6 +3811,14 @@ "name": "id", "type": "InputDocument" }, + { + "name": "video_cover", + "type": "flags.3?InputPhoto" + }, + { + "name": "video_timestamp", + "type": "flags.4?int" + }, { "name": "ttl_seconds", "type": "flags.0?int" @@ -3727,7 +3831,7 @@ "type": "InputMedia" }, { - "id": "-581497899", + "id": "1389939929", "predicate": "messageMediaDocument", "params": [ { @@ -3762,6 +3866,14 @@ "name": "alt_documents", "type": "flags.5?Vector" }, + { + "name": "video_cover", + "type": "flags.9?Photo" + }, + { + "name": "video_timestamp", + "type": "flags.10?int" + }, { "name": "ttl_seconds", "type": "flags.2?int" @@ -5111,7 +5223,7 @@ "type": "ChatInvite" }, { - "id": "-26920803", + "id": "1553807106", "predicate": "chatInvite", "params": [ { @@ -5185,6 +5297,10 @@ { "name": "subscription_form_id", "type": "flags.12?long" + }, + { + "name": "bot_verification", + "type": "flags.13?BotVerification" } ], "type": "ChatInvite" @@ -5366,7 +5482,7 @@ "type": "messages.StickerSet" }, { - "id": "-2093920310", + "id": "34280482", "predicate": "user", "params": [ { @@ -5548,6 +5664,14 @@ { "name": "bot_active_users", "type": "flags2.12?int" + }, + { + "name": "bot_verification_icon", + "type": "flags2.14?long" + }, + { + "name": "send_paid_messages_stars", + "type": "flags2.15?long" } ], "type": "User" @@ -5568,7 +5692,7 @@ "type": "BotCommand" }, { - "id": "912290611", + "id": "1300890265", "predicate": "botInfo", "params": [ { @@ -5610,6 +5734,10 @@ { "name": "app_settings", "type": "flags.8?BotAppSettings" + }, + { + "name": "verifier_settings", + "type": "flags.9?BotVerifierSettings" } ], "type": "BotInfo" @@ -6003,7 +6131,7 @@ "type": "InputPeer" }, { - "id": "-29067075", + "id": "-26717355", "predicate": "channel", "params": [ { @@ -6110,6 +6238,22 @@ "name": "signature_profiles", "type": "flags2.12?true" }, + { + "name": "autotranslation", + "type": "flags2.15?true" + }, + { + "name": "broadcast_messages_allowed", + "type": "flags2.16?true" + }, + { + "name": "monoforum", + "type": "flags2.17?true" + }, + { + "name": "forum_tabs", + "type": "flags2.19?true" + }, { "name": "id", "type": "long" @@ -6181,6 +6325,18 @@ { "name": "subscription_until_date", "type": "flags2.11?int" + }, + { + "name": "bot_verification_icon", + "type": "flags2.13?long" + }, + { + "name": "send_paid_messages_stars", + "type": "flags2.14?long" + }, + { + "name": "linked_monoforum_id", + "type": "flags2.18?long" } ], "type": "Chat" @@ -6240,7 +6396,7 @@ "type": "contacts.ResolvedPeer" }, { - "id": "-1146407795", + "id": "-455036259", "predicate": "channelFull", "params": [ { @@ -6327,6 +6483,14 @@ "name": "paid_reactions_available", "type": "flags2.16?true" }, + { + "name": "stargifts_available", + "type": "flags2.19?true" + }, + { + "name": "paid_messages_available", + "type": "flags2.20?true" + }, { "name": "id", "type": "long" @@ -6490,6 +6654,22 @@ { "name": "emojiset", "type": "flags2.10?StickerSet" + }, + { + "name": "bot_verification", + "type": "flags2.17?BotVerification" + }, + { + "name": "stargifts_count", + "type": "flags2.18?int" + }, + { + "name": "send_paid_messages_stars", + "type": "flags2.21?long" + }, + { + "name": "main_tab", + "type": "flags2.22?ProfileTab" } ], "type": "ChatFull" @@ -8395,7 +8575,7 @@ "type": "Update" }, { - "id": "457829485", + "id": "-302247650", "predicate": "updateDraftMessage", "params": [ { @@ -8410,6 +8590,10 @@ "name": "top_msg_id", "type": "flags.0?int" }, + { + "name": "saved_peer_id", + "type": "flags.1?Peer" + }, { "name": "draft", "type": "DraftMessage" @@ -8433,7 +8617,7 @@ "type": "DraftMessage" }, { - "id": "761606687", + "id": "-1763006997", "predicate": "draftMessage", "params": [ { @@ -8471,6 +8655,10 @@ { "name": "effect", "type": "flags.7?long" + }, + { + "name": "suggested_post", + "type": "flags.8?SuggestedPost" } ], "type": "DraftMessage" @@ -8647,7 +8835,7 @@ "type": "InputMedia" }, { - "id": "-78455655", + "id": "2006319353", "predicate": "inputMediaDocumentExternal", "params": [ { @@ -8665,6 +8853,14 @@ { "name": "ttl_seconds", "type": "flags.0?int" + }, + { + "name": "video_cover", + "type": "flags.2?InputPhoto" + }, + { + "name": "video_timestamp", + "type": "flags.3?int" } ], "type": "InputMedia" @@ -10546,6 +10742,10 @@ "name": "video", "type": "flags.6?true" }, + { + "name": "conference_supported", + "type": "flags.8?true" + }, { "name": "id", "type": "long" @@ -11502,7 +11702,7 @@ "type": "Update" }, { - "id": "-366410403", + "id": "636691703", "predicate": "updateChannelReadMessagesContents", "params": [ { @@ -11517,6 +11717,10 @@ "name": "top_msg_id", "type": "flags.0?int" }, + { + "name": "saved_peer_id", + "type": "flags.1?Peer" + }, { "name": "messages", "type": "Vector" @@ -12673,7 +12877,7 @@ "type": "InputFileLocation" }, { - "id": "-513517117", + "id": "-1235684802", "predicate": "updateDialogUnreadMark", "params": [ { @@ -12687,6 +12891,10 @@ { "name": "peer", "type": "DialogPeer" + }, + { + "name": "saved_peer_id", + "type": "flags.1?Peer" } ], "type": "Update" @@ -13823,6 +14031,10 @@ { "name": "delete_stories", "type": "flags.16?true" + }, + { + "name": "manage_direct_messages", + "type": "flags.17?true" } ], "type": "ChatAdminRights" @@ -15546,7 +15758,7 @@ "type": "PeerLocated" }, { - "id": "1605718587", + "id": "-1438177711", "predicate": "dialogFilter", "params": [ { @@ -15585,13 +15797,17 @@ "name": "exclude_archived", "type": "flags.13?true" }, + { + "name": "title_noanimate", + "type": "flags.28?true" + }, { "name": "id", "type": "int" }, { "name": "title", - "type": "string" + "type": "TextWithEntities" }, { "name": "emoticon", @@ -15897,7 +16113,7 @@ "type": "help.PromoData" }, { - "id": "-1942390465", + "id": "145021050", "predicate": "help.promoData", "params": [ { @@ -15914,15 +16130,7 @@ }, { "name": "peer", - "type": "Peer" - }, - { - "name": "chats", - "type": "Vector" - }, - { - "name": "users", - "type": "Vector" + "type": "flags.3?Peer" }, { "name": "psa_type", @@ -15931,6 +16139,26 @@ { "name": "psa_message", "type": "flags.2?string" + }, + { + "name": "pending_suggestions", + "type": "Vector" + }, + { + "name": "dismissed_suggestions", + "type": "Vector" + }, + { + "name": "custom_pending_suggestion", + "type": "flags.4?PendingSuggestion" + }, + { + "name": "chats", + "type": "Vector" + }, + { + "name": "users", + "type": "Vector" } ], "type": "help.PromoData" @@ -16129,7 +16357,7 @@ "type": "stats.MegagroupStats" }, { - "id": "1934380235", + "id": "-29248689", "predicate": "globalPrivacySettings", "params": [ { @@ -16155,6 +16383,18 @@ { "name": "new_noncontact_peers_require_premium", "type": "flags.4?true" + }, + { + "name": "display_gifts_button", + "type": "flags.7?true" + }, + { + "name": "noncontact_peers_paid_stars", + "type": "flags.5?long" + }, + { + "name": "disallowed_gifts", + "type": "flags.6?DisallowedGiftsSettings" } ], "type": "GlobalPrivacySettings" @@ -16451,7 +16691,7 @@ "type": "messages.DiscussionMessage" }, { - "id": "-1346631205", + "id": "1763137035", "predicate": "messageReplyHeader", "params": [ { @@ -16501,6 +16741,10 @@ { "name": "quote_offset", "type": "flags.10?int" + }, + { + "name": "todo_item_id", + "type": "flags.11?int" } ], "type": "MessageReplyHeader" @@ -16797,7 +17041,7 @@ "type": "GroupCall" }, { - "id": "-711498484", + "id": "1429932961", "predicate": "groupCall", "params": [ { @@ -16836,6 +17080,14 @@ "name": "listeners_hidden", "type": "flags.13?true" }, + { + "name": "conference", + "type": "flags.14?true" + }, + { + "name": "creator", + "type": "flags.15?true" + }, { "name": "id", "type": "long" @@ -16875,6 +17127,10 @@ { "name": "version", "type": "int" + }, + { + "name": "invite_link", + "type": "flags.16?string" } ], "type": "GroupCall" @@ -17046,12 +17302,16 @@ "type": "Update" }, { - "id": "347227392", + "id": "-1747565759", "predicate": "updateGroupCall", "params": [ + { + "name": "flags", + "type": "#" + }, { "name": "chat_id", - "type": "long" + "type": "flags.0?long" }, { "name": "call", @@ -18016,14 +18276,62 @@ "type": "Update" }, { - "id": "-1434950843", - "predicate": "messageActionSetChatTheme", + "id": "-1008731132", + "predicate": "chatTheme", "params": [ { "name": "emoticon", "type": "string" } ], + "type": "ChatTheme" + }, + { + "id": "-535699004", + "predicate": "account.chatThemesNotModified", + "params": [], + "type": "account.ChatThemes" + }, + { + "id": "373835863", + "predicate": "account.chatThemes", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "hash", + "type": "long" + }, + { + "name": "themes", + "type": "Vector" + }, + { + "name": "chats", + "type": "Vector" + }, + { + "name": "users", + "type": "Vector" + }, + { + "name": "next_offset", + "type": "flags.0?int" + } + ], + "type": "account.ChatThemes" + }, + { + "id": "-1189364422", + "predicate": "messageActionSetChatTheme", + "params": [ + { + "name": "theme", + "type": "ChatTheme" + } + ], "type": "MessageAction" }, { @@ -18033,7 +18341,7 @@ "type": "SendMessageAction" }, { - "id": "1301522832", + "id": "2109703795", "predicate": "sponsoredMessage", "params": [ { @@ -18091,12 +18399,20 @@ { "name": "additional_info", "type": "flags.8?string" + }, + { + "name": "min_display_duration", + "type": "flags.15?int" + }, + { + "name": "max_display_duration", + "type": "flags.15?int" } ], "type": "SponsoredMessage" }, { - "id": "-907141753", + "id": "-2464403", "predicate": "messages.sponsoredMessages", "params": [ { @@ -18107,6 +18423,14 @@ "name": "posts_between", "type": "flags.0?int" }, + { + "name": "start_delay", + "type": "flags.1?int" + }, + { + "name": "between_delay", + "type": "flags.2?int" + }, { "name": "messages", "type": "Vector" @@ -18508,7 +18832,7 @@ "type": "auth.LoggedOut" }, { - "id": "1578843320", + "id": "506035194", "predicate": "updateMessageReactions", "params": [ { @@ -18527,6 +18851,10 @@ "name": "top_msg_id", "type": "flags.0?int" }, + { + "name": "saved_peer_id", + "type": "flags.1?Peer" + }, { "name": "reactions", "type": "MessageReactions" @@ -19503,37 +19831,6 @@ ], "type": "MessageAction" }, - { - "id": "1958953753", - "predicate": "premiumGiftOption", - "params": [ - { - "name": "flags", - "type": "#" - }, - { - "name": "months", - "type": "int" - }, - { - "name": "currency", - "type": "string" - }, - { - "name": "amount", - "type": "long" - }, - { - "name": "bot_url", - "type": "string" - }, - { - "name": "store_product", - "type": "flags.0?string" - } - ], - "type": "PremiumGiftOption" - }, { "id": "-930399486", "predicate": "inputStickerSetPremiumGifts", @@ -19607,27 +19904,20 @@ "type": "EmojiStatus" }, { - "id": "-1835310691", + "id": "-402717046", "predicate": "emojiStatus", "params": [ { - "name": "document_id", - "type": "long" - } - ], - "type": "EmojiStatus" - }, - { - "id": "-97474361", - "predicate": "emojiStatusUntil", - "params": [ + "name": "flags", + "type": "#" + }, { "name": "document_id", "type": "long" }, { "name": "until", - "type": "int" + "type": "flags.0?int" } ], "type": "EmojiStatus" @@ -21056,7 +21346,7 @@ "type": "ReadParticipantDate" }, { - "id": "-1612542300", + "id": "-1772913705", "predicate": "dialogFilterChatlist", "params": [ { @@ -21067,13 +21357,17 @@ "name": "has_my_invites", "type": "flags.26?true" }, + { + "name": "title_noanimate", + "type": "flags.28?true" + }, { "name": "id", "type": "int" }, { "name": "title", - "type": "string" + "type": "TextWithEntities" }, { "name": "emoticon", @@ -21190,16 +21484,20 @@ "type": "chatlists.ChatlistInvite" }, { - "id": "500007837", + "id": "-250687953", "predicate": "chatlists.chatlistInvite", "params": [ { "name": "flags", "type": "#" }, + { + "name": "title_noanimate", + "type": "flags.1?true" + }, { "name": "title", - "type": "string" + "type": "TextWithEntities" }, { "name": "emoticon", @@ -21426,7 +21724,7 @@ "type": "StoryItem" }, { - "id": "2041735716", + "id": "-302947087", "predicate": "storyItem", "params": [ { @@ -21516,6 +21814,10 @@ { "name": "sent_reaction", "type": "flags.15?Reaction" + }, + { + "name": "albums", + "type": "flags.19?Vector" } ], "type": "StoryItem" @@ -21741,7 +22043,7 @@ "type": "stories.StoryViews" }, { - "id": "583071445", + "id": "-2036351472", "predicate": "inputReplyToMessage", "params": [ { @@ -21771,6 +22073,14 @@ { "name": "quote_offset", "type": "flags.4?int" + }, + { + "name": "monoforum_peer_id", + "type": "flags.5?InputPeer" + }, + { + "name": "todo_item_id", + "type": "flags.6?int" } ], "type": "InputReplyTo" @@ -24255,17 +24565,13 @@ "type": "Update" }, { - "id": "-1123645951", + "id": "-849058964", "predicate": "connectedBot", "params": [ { "name": "flags", "type": "#" }, - { - "name": "can_reply", - "type": "flags.0?true" - }, { "name": "bot_id", "type": "long" @@ -24273,6 +24579,10 @@ { "name": "recipients", "type": "BusinessBotRecipients" + }, + { + "name": "rights", + "type": "BusinessBotRights" } ], "type": "ConnectedBot" @@ -24427,17 +24737,13 @@ "type": "Update" }, { - "id": "-1989921868", + "id": "-1892371723", "predicate": "botBusinessConnection", "params": [ { "name": "flags", "type": "#" }, - { - "name": "can_reply", - "type": "flags.0?true" - }, { "name": "disabled", "type": "flags.1?true" @@ -24457,6 +24763,10 @@ { "name": "date", "type": "int" + }, + { + "name": "rights", + "type": "flags.2?BusinessBotRights" } ], "type": "BotBusinessConnection" @@ -25026,132 +25336,6 @@ "params": [], "type": "channels.SponsoredMessageReportResult" }, - { - "id": "1409802903", - "predicate": "stats.broadcastRevenueStats", - "params": [ - { - "name": "top_hours_graph", - "type": "StatsGraph" - }, - { - "name": "revenue_graph", - "type": "StatsGraph" - }, - { - "name": "balances", - "type": "BroadcastRevenueBalances" - }, - { - "name": "usd_rate", - "type": "double" - } - ], - "type": "stats.BroadcastRevenueStats" - }, - { - "id": "-328886473", - "predicate": "stats.broadcastRevenueWithdrawalUrl", - "params": [ - { - "name": "url", - "type": "string" - } - ], - "type": "stats.BroadcastRevenueWithdrawalUrl" - }, - { - "id": "1434332356", - "predicate": "broadcastRevenueTransactionProceeds", - "params": [ - { - "name": "amount", - "type": "long" - }, - { - "name": "from_date", - "type": "int" - }, - { - "name": "to_date", - "type": "int" - } - ], - "type": "BroadcastRevenueTransaction" - }, - { - "id": "1515784568", - "predicate": "broadcastRevenueTransactionWithdrawal", - "params": [ - { - "name": "flags", - "type": "#" - }, - { - "name": "pending", - "type": "flags.0?true" - }, - { - "name": "failed", - "type": "flags.2?true" - }, - { - "name": "amount", - "type": "long" - }, - { - "name": "date", - "type": "int" - }, - { - "name": "provider", - "type": "string" - }, - { - "name": "transaction_date", - "type": "flags.1?int" - }, - { - "name": "transaction_url", - "type": "flags.1?string" - } - ], - "type": "BroadcastRevenueTransaction" - }, - { - "id": "1121127726", - "predicate": "broadcastRevenueTransactionRefund", - "params": [ - { - "name": "amount", - "type": "long" - }, - { - "name": "date", - "type": "int" - }, - { - "name": "provider", - "type": "string" - } - ], - "type": "BroadcastRevenueTransaction" - }, - { - "id": "-2028632986", - "predicate": "stats.broadcastRevenueTransactions", - "params": [ - { - "name": "count", - "type": "int" - }, - { - "name": "transactions", - "type": "Vector" - } - ], - "type": "stats.BroadcastRevenueTransactions" - }, { "id": "1355547603", "predicate": "webPageAttributeStickerSet", @@ -25297,48 +25481,6 @@ ], "type": "EmojiGroup" }, - { - "id": "-1006669337", - "predicate": "broadcastRevenueBalances", - "params": [ - { - "name": "flags", - "type": "#" - }, - { - "name": "withdrawal_enabled", - "type": "flags.0?true" - }, - { - "name": "current_balance", - "type": "long" - }, - { - "name": "available_balance", - "type": "long" - }, - { - "name": "overall_revenue", - "type": "long" - } - ], - "type": "BroadcastRevenueBalances" - }, - { - "id": "-539401739", - "predicate": "updateBroadcastRevenueTransactions", - "params": [ - { - "name": "peer", - "type": "Peer" - }, - { - "name": "balances", - "type": "BroadcastRevenueBalances" - } - ], - "type": "Update" - }, { "id": "-1815879042", "predicate": "availableEffect", @@ -25510,7 +25652,7 @@ "type": "InputInvoice" }, { - "id": "1692387622", + "id": "325426864", "predicate": "starsTransaction", "params": [ { @@ -25537,12 +25679,32 @@ "name": "reaction", "type": "flags.11?true" }, + { + "name": "stargift_upgrade", + "type": "flags.18?true" + }, + { + "name": "business_transfer", + "type": "flags.21?true" + }, + { + "name": "stargift_resale", + "type": "flags.22?true" + }, + { + "name": "posts_search", + "type": "flags.24?true" + }, + { + "name": "stargift_prepaid_upgrade", + "type": "flags.25?true" + }, { "name": "id", "type": "string" }, { - "name": "stars", + "name": "amount", "type": "StarsAmount" }, { @@ -25612,6 +25774,22 @@ { "name": "starref_amount", "type": "flags.17?StarsAmount" + }, + { + "name": "paid_messages", + "type": "flags.19?int" + }, + { + "name": "premium_gift_months", + "type": "flags.20?int" + }, + { + "name": "ads_proceeds_from_date", + "type": "flags.23?int" + }, + { + "name": "ads_proceeds_to_date", + "type": "flags.23?int" } ], "type": "StarsTransaction" @@ -25919,9 +26097,17 @@ "type": "StarsRevenueStatus" }, { - "id": "-919881925", + "id": "1814066038", "predicate": "payments.starsRevenueStats", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "top_hours_graph", + "type": "flags.0?StatsGraph" + }, { "name": "revenue_graph", "type": "StatsGraph" @@ -26069,9 +26255,13 @@ "type": "MessageAction" }, { - "id": "-572715178", + "id": "-106780981", "predicate": "inputStorePaymentStarsTopup", "params": [ + { + "name": "flags", + "type": "#" + }, { "name": "stars", "type": "long" @@ -26083,6 +26273,10 @@ { "name": "amount", "type": "long" + }, + { + "name": "spend_purpose_peer", + "type": "flags.0?InputPeer" } ], "type": "InputStorePaymentPurpose" @@ -26523,12 +26717,12 @@ "type": "MessageAction" }, { - "id": "1372224236", + "id": "-1955438642", "predicate": "updatePaidReactionPrivacy", "params": [ { "name": "private", - "type": "Bool" + "type": "PaidReactionPrivacy" } ], "type": "Update" @@ -26642,7 +26836,7 @@ "type": "KeyboardButton" }, { - "id": "1237678029", + "id": "-2136190013", "predicate": "starGift", "params": [ { @@ -26661,6 +26855,14 @@ "name": "birthday", "type": "flags.2?true" }, + { + "name": "require_premium", + "type": "flags.7?true" + }, + { + "name": "limited_per_user", + "type": "flags.8?true" + }, { "name": "id", "type": "long" @@ -26681,6 +26883,10 @@ "name": "availability_total", "type": "flags.0?int" }, + { + "name": "availability_resale", + "type": "flags.4?long" + }, { "name": "convert_stars", "type": "long" @@ -26692,6 +26898,34 @@ { "name": "last_sale_date", "type": "flags.1?int" + }, + { + "name": "upgrade_stars", + "type": "flags.3?long" + }, + { + "name": "resell_min_stars", + "type": "flags.4?long" + }, + { + "name": "title", + "type": "flags.5?string" + }, + { + "name": "released_by", + "type": "flags.6?Peer" + }, + { + "name": "per_user_total", + "type": "flags.8?int" + }, + { + "name": "per_user_remains", + "type": "flags.8?int" + }, + { + "name": "locked_until_date", + "type": "flags.9?int" } ], "type": "StarGift" @@ -26703,7 +26937,7 @@ "type": "payments.StarGifts" }, { - "id": "-1877571094", + "id": "785918357", "predicate": "payments.starGifts", "params": [ { @@ -26713,12 +26947,20 @@ { "name": "gifts", "type": "Vector" + }, + { + "name": "chats", + "type": "Vector" + }, + { + "name": "users", + "type": "Vector" } ], "type": "payments.StarGifts" }, { - "id": "634962392", + "id": "-396206446", "predicate": "inputInvoiceStarGift", "params": [ { @@ -26730,8 +26972,12 @@ "type": "flags.0?true" }, { - "name": "user_id", - "type": "InputUser" + "name": "include_upgrade", + "type": "flags.2?true" + }, + { + "name": "peer", + "type": "InputPeer" }, { "name": "gift_id", @@ -26760,7 +27006,7 @@ "type": "payments.PaymentForm" }, { - "id": "139818551", + "id": "-229775366", "predicate": "messageActionStarGift", "params": [ { @@ -26780,43 +27026,24 @@ "type": "flags.3?true" }, { - "name": "gift", - "type": "StarGift" - }, - { - "name": "message", - "type": "flags.1?TextWithEntities" - }, - { - "name": "convert_stars", - "type": "flags.4?long" - } - ], - "type": "MessageAction" - }, - { - "id": "-291202450", - "predicate": "userStarGift", - "params": [ - { - "name": "flags", - "type": "#" + "name": "upgraded", + "type": "flags.5?true" }, { - "name": "name_hidden", - "type": "flags.0?true" + "name": "refunded", + "type": "flags.9?true" }, { - "name": "unsaved", - "type": "flags.5?true" + "name": "can_upgrade", + "type": "flags.10?true" }, { - "name": "from_id", - "type": "flags.1?long" + "name": "prepaid_upgrade", + "type": "flags.13?true" }, { - "name": "date", - "type": "int" + "name": "upgrade_separate", + "type": "flags.16?true" }, { "name": "gift", @@ -26824,45 +27051,42 @@ }, { "name": "message", - "type": "flags.2?TextWithEntities" - }, - { - "name": "msg_id", - "type": "flags.3?int" + "type": "flags.1?TextWithEntities" }, { "name": "convert_stars", "type": "flags.4?long" - } - ], - "type": "UserStarGift" - }, - { - "id": "1801827607", - "predicate": "payments.userStarGifts", - "params": [ + }, { - "name": "flags", - "type": "#" + "name": "upgrade_msg_id", + "type": "flags.5?int" }, { - "name": "count", - "type": "int" + "name": "upgrade_stars", + "type": "flags.8?long" }, { - "name": "gifts", - "type": "Vector" + "name": "from_id", + "type": "flags.11?Peer" }, { - "name": "next_offset", - "type": "flags.0?string" + "name": "peer", + "type": "flags.12?Peer" }, { - "name": "users", - "type": "Vector" + "name": "saved_id", + "type": "flags.12?long" + }, + { + "name": "prepaid_upgrade_hash", + "type": "flags.14?string" + }, + { + "name": "gift_msg_id", + "type": "flags.15?int" } ], - "type": "payments.UserStarGifts" + "type": "MessageAction" }, { "id": "2030298073", @@ -27206,1852 +27430,2097 @@ } ], "type": "messages.FoundStickers" - } - ], - "methods": [ + }, { - "id": "-878758099", - "method": "invokeAfterMsg", + "id": "-1328716265", + "predicate": "botVerifierSettings", "params": [ { - "name": "msg_id", + "name": "flags", + "type": "#" + }, + { + "name": "can_modify_custom_description", + "type": "flags.1?true" + }, + { + "name": "icon", "type": "long" }, { - "name": "query", - "type": "!X" + "name": "company", + "type": "string" + }, + { + "name": "custom_description", + "type": "flags.0?string" } ], - "type": "X" + "type": "BotVerifierSettings" }, { - "id": "1036301552", - "method": "invokeAfterMsgs", + "id": "-113453988", + "predicate": "botVerification", "params": [ { - "name": "msg_ids", - "type": "Vector" + "name": "bot_id", + "type": "long" }, { - "name": "query", - "type": "!X" + "name": "icon", + "type": "long" + }, + { + "name": "description", + "type": "string" } ], - "type": "X" + "type": "BotVerification" }, { - "id": "-1502141361", - "method": "auth.sendCode", + "id": "970559507", + "predicate": "starGiftAttributeModel", "params": [ { - "name": "phone_number", + "name": "name", "type": "string" }, { - "name": "api_id", - "type": "int" + "name": "document", + "type": "Document" }, { - "name": "api_hash", + "name": "rarity_permille", + "type": "int" + } + ], + "type": "StarGiftAttribute" + }, + { + "id": "330104601", + "predicate": "starGiftAttributePattern", + "params": [ + { + "name": "name", "type": "string" }, { - "name": "settings", - "type": "CodeSettings" + "name": "document", + "type": "Document" + }, + { + "name": "rarity_permille", + "type": "int" } ], - "type": "auth.SentCode" + "type": "StarGiftAttribute" }, { - "id": "-1429752041", - "method": "auth.signUp", + "id": "-650279524", + "predicate": "starGiftAttributeBackdrop", "params": [ { - "name": "flags", - "type": "#" + "name": "name", + "type": "string" }, { - "name": "no_joined_notifications", - "type": "flags.0?true" + "name": "backdrop_id", + "type": "int" }, { - "name": "phone_number", - "type": "string" + "name": "center_color", + "type": "int" }, { - "name": "phone_code_hash", - "type": "string" + "name": "edge_color", + "type": "int" }, { - "name": "first_name", - "type": "string" + "name": "pattern_color", + "type": "int" }, { - "name": "last_name", - "type": "string" + "name": "text_color", + "type": "int" + }, + { + "name": "rarity_permille", + "type": "int" } ], - "type": "auth.Authorization" + "type": "StarGiftAttribute" }, { - "id": "-1923962543", - "method": "auth.signIn", + "id": "-524291476", + "predicate": "starGiftAttributeOriginalDetails", "params": [ { "name": "flags", "type": "#" }, { - "name": "phone_number", - "type": "string" + "name": "sender_id", + "type": "flags.0?Peer" }, { - "name": "phone_code_hash", - "type": "string" + "name": "recipient_id", + "type": "Peer" }, { - "name": "phone_code", - "type": "flags.0?string" + "name": "date", + "type": "int" }, { - "name": "email_verification", - "type": "flags.1?EmailVerification" + "name": "message", + "type": "flags.1?TextWithEntities" } ], - "type": "auth.Authorization" - }, - { - "id": "1047706137", - "method": "auth.logOut", - "params": [], - "type": "auth.LoggedOut" + "type": "StarGiftAttribute" }, { - "id": "-1616179942", - "method": "auth.resetAuthorizations", - "params": [], - "type": "Bool" - }, - { - "id": "-440401971", - "method": "auth.exportAuthorization", + "id": "468707429", + "predicate": "starGiftUnique", "params": [ { - "name": "dc_id", - "type": "int" - } - ], - "type": "auth.ExportedAuthorization" - }, - { - "id": "-1518699091", - "method": "auth.importAuthorization", - "params": [ + "name": "flags", + "type": "#" + }, { - "name": "id", - "type": "long" + "name": "require_premium", + "type": "flags.6?true" }, { - "name": "bytes", - "type": "bytes" - } - ], - "type": "auth.Authorization" - }, - { - "id": "-841733627", - "method": "auth.bindTempAuthKey", - "params": [ + "name": "resale_ton_only", + "type": "flags.7?true" + }, { - "name": "perm_auth_key_id", - "type": "long" + "name": "theme_available", + "type": "flags.9?true" }, { - "name": "nonce", + "name": "id", "type": "long" }, { - "name": "expires_at", - "type": "int" + "name": "gift_id", + "type": "long" }, { - "name": "encrypted_message", - "type": "bytes" - } - ], - "type": "Bool" - }, - { - "id": "-326762118", - "method": "account.registerDevice", - "params": [ - { - "name": "flags", - "type": "#" + "name": "title", + "type": "string" }, { - "name": "no_muted", - "type": "flags.0?true" + "name": "slug", + "type": "string" }, { - "name": "token_type", + "name": "num", "type": "int" }, { - "name": "token", - "type": "string" + "name": "owner_id", + "type": "flags.0?Peer" }, { - "name": "app_sandbox", - "type": "Bool" + "name": "owner_name", + "type": "flags.1?string" }, { - "name": "secret", - "type": "bytes" + "name": "owner_address", + "type": "flags.2?string" }, { - "name": "other_uids", - "type": "Vector" - } - ], - "type": "Bool" - }, - { - "id": "1779249670", - "method": "account.unregisterDevice", - "params": [ + "name": "attributes", + "type": "Vector" + }, { - "name": "token_type", + "name": "availability_issued", "type": "int" }, { - "name": "token", - "type": "string" + "name": "availability_total", + "type": "int" }, { - "name": "other_uids", - "type": "Vector" - } - ], - "type": "Bool" - }, - { - "id": "-2067899501", - "method": "account.updateNotifySettings", - "params": [ + "name": "gift_address", + "type": "flags.3?string" + }, { - "name": "peer", - "type": "InputNotifyPeer" + "name": "resell_amount", + "type": "flags.4?Vector" }, { - "name": "settings", - "type": "InputPeerNotifySettings" - } - ], - "type": "Bool" - }, - { - "id": "313765169", - "method": "account.getNotifySettings", - "params": [ + "name": "released_by", + "type": "flags.5?Peer" + }, { - "name": "peer", - "type": "InputNotifyPeer" + "name": "value_amount", + "type": "flags.8?long" + }, + { + "name": "value_currency", + "type": "flags.8?string" + }, + { + "name": "theme_peer", + "type": "flags.10?Peer" } ], - "type": "PeerNotifySettings" - }, - { - "id": "-612493497", - "method": "account.resetNotifySettings", - "params": [], - "type": "Bool" + "type": "StarGift" }, { - "id": "2018596725", - "method": "account.updateProfile", + "id": "888627955", + "predicate": "messageActionStarGiftUnique", "params": [ { "name": "flags", "type": "#" }, { - "name": "first_name", - "type": "flags.0?string" + "name": "upgrade", + "type": "flags.0?true" }, { - "name": "last_name", - "type": "flags.1?string" + "name": "transferred", + "type": "flags.1?true" }, { - "name": "about", - "type": "flags.2?string" - } - ], - "type": "User" - }, - { - "id": "1713919532", - "method": "account.updateStatus", - "params": [ + "name": "saved", + "type": "flags.2?true" + }, { - "name": "offline", - "type": "Bool" - } - ], - "type": "Bool" - }, - { - "id": "127302966", - "method": "account.getWallPapers", - "params": [ + "name": "refunded", + "type": "flags.5?true" + }, { - "name": "hash", - "type": "long" + "name": "prepaid_upgrade", + "type": "flags.11?true" + }, + { + "name": "gift", + "type": "StarGift" + }, + { + "name": "can_export_at", + "type": "flags.3?int" + }, + { + "name": "transfer_stars", + "type": "flags.4?long" + }, + { + "name": "from_id", + "type": "flags.6?Peer" + }, + { + "name": "peer", + "type": "flags.7?Peer" + }, + { + "name": "saved_id", + "type": "flags.7?long" + }, + { + "name": "resale_amount", + "type": "flags.8?StarsAmount" + }, + { + "name": "can_transfer_at", + "type": "flags.9?int" + }, + { + "name": "can_resell_at", + "type": "flags.10?int" } ], - "type": "account.WallPapers" + "type": "MessageAction" }, { - "id": "-977650298", - "method": "account.reportPeer", + "id": "1300335965", + "predicate": "inputInvoiceStarGiftUpgrade", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "reason", - "type": "ReportReason" + "name": "keep_original_details", + "type": "flags.0?true" }, { - "name": "message", - "type": "string" + "name": "stargift", + "type": "InputSavedStarGift" } ], - "type": "Bool" + "type": "InputInvoice" }, { - "id": "227648840", - "method": "users.getUsers", + "id": "1247763417", + "predicate": "inputInvoiceStarGiftTransfer", "params": [ { - "name": "id", - "type": "Vector" + "name": "stargift", + "type": "InputSavedStarGift" + }, + { + "name": "to_id", + "type": "InputPeer" } ], - "type": "Vector" + "type": "InputInvoice" }, { - "id": "-1240508136", - "method": "users.getFullUser", + "id": "377215243", + "predicate": "payments.starGiftUpgradePreview", "params": [ { - "name": "id", - "type": "InputUser" + "name": "sample_attributes", + "type": "Vector" } ], - "type": "users.UserFull" + "type": "payments.StarGiftUpgradePreview" }, { - "id": "2061264541", - "method": "contacts.getContactIDs", + "id": "1658259128", + "predicate": "users.users", "params": [ { - "name": "hash", - "type": "long" + "name": "users", + "type": "Vector" } ], - "type": "Vector" - }, - { - "id": "-995929106", - "method": "contacts.getStatuses", - "params": [], - "type": "Vector" + "type": "users.Users" }, { - "id": "1574346258", - "method": "contacts.getContacts", + "id": "828000628", + "predicate": "users.usersSlice", "params": [ { - "name": "hash", - "type": "long" + "name": "count", + "type": "int" + }, + { + "name": "users", + "type": "Vector" } ], - "type": "contacts.Contacts" + "type": "users.Users" }, { - "id": "746589157", - "method": "contacts.importContacts", + "id": "1097619176", + "predicate": "payments.uniqueStarGift", "params": [ { - "name": "contacts", - "type": "Vector" + "name": "gift", + "type": "StarGift" + }, + { + "name": "chats", + "type": "Vector" + }, + { + "name": "users", + "type": "Vector" } ], - "type": "contacts.ImportedContacts" + "type": "payments.UniqueStarGift" }, { - "id": "157945344", - "method": "contacts.deleteContacts", + "id": "-814781000", + "predicate": "webPageAttributeUniqueStarGift", "params": [ { - "name": "id", - "type": "Vector" + "name": "gift", + "type": "StarGift" } ], - "type": "Updates" + "type": "WebPageAttribute" }, { - "id": "269745566", - "method": "contacts.deleteByPhones", + "id": "1468491885", + "predicate": "mediaAreaStarGift", "params": [ { - "name": "phones", - "type": "Vector" + "name": "coordinates", + "type": "MediaAreaCoordinates" + }, + { + "name": "slug", + "type": "string" } ], - "type": "Bool" + "type": "MediaArea" }, { - "id": "774801204", - "method": "contacts.block", + "id": "-1936029524", + "predicate": "messages.webPagePreview", "params": [ { - "name": "flags", - "type": "#" + "name": "media", + "type": "MessageMedia" }, { - "name": "my_stories_from", - "type": "flags.0?true" + "name": "chats", + "type": "Vector" }, { - "name": "id", - "type": "InputPeer" + "name": "users", + "type": "Vector" } ], - "type": "Bool" + "type": "messages.WebPagePreview" }, { - "id": "-1252994264", - "method": "contacts.unblock", + "id": "1904500795", + "predicate": "emojiStatusCollectible", "params": [ { "name": "flags", "type": "#" }, { - "name": "my_stories_from", - "type": "flags.0?true" + "name": "collectible_id", + "type": "long" }, { - "name": "id", - "type": "InputPeer" - } - ], - "type": "Bool" - }, - { - "id": "-1702457472", - "method": "contacts.getBlocked", - "params": [ + "name": "document_id", + "type": "long" + }, { - "name": "flags", - "type": "#" + "name": "title", + "type": "string" }, { - "name": "my_stories_from", - "type": "flags.0?true" + "name": "slug", + "type": "string" }, { - "name": "offset", + "name": "pattern_document_id", + "type": "long" + }, + { + "name": "center_color", "type": "int" }, { - "name": "limit", + "name": "edge_color", "type": "int" + }, + { + "name": "pattern_color", + "type": "int" + }, + { + "name": "text_color", + "type": "int" + }, + { + "name": "until", + "type": "flags.0?int" } ], - "type": "contacts.Blocked" + "type": "EmojiStatus" }, { - "id": "1673946374", - "method": "messages.getMessages", + "id": "118758847", + "predicate": "inputEmojiStatusCollectible", "params": [ { - "name": "id", - "type": "Vector" + "name": "flags", + "type": "#" + }, + { + "name": "collectible_id", + "type": "long" + }, + { + "name": "until", + "type": "flags.0?int" } ], - "type": "messages.Messages" + "type": "EmojiStatus" }, { - "id": "-1594569905", - "method": "messages.getDialogs", + "id": "430552434", + "predicate": "savedStarGift", "params": [ { "name": "flags", "type": "#" }, { - "name": "exclude_pinned", + "name": "name_hidden", "type": "flags.0?true" }, { - "name": "folder_id", - "type": "flags.1?int" + "name": "unsaved", + "type": "flags.5?true" }, { - "name": "offset_date", - "type": "int" + "name": "refunded", + "type": "flags.9?true" }, { - "name": "offset_id", - "type": "int" + "name": "can_upgrade", + "type": "flags.10?true" }, { - "name": "offset_peer", - "type": "InputPeer" + "name": "pinned_to_top", + "type": "flags.12?true" }, { - "name": "limit", - "type": "int" + "name": "upgrade_separate", + "type": "flags.17?true" }, { - "name": "hash", - "type": "long" - } - ], - "type": "messages.Dialogs" - }, - { - "id": "1143203525", - "method": "messages.getHistory", - "params": [ - { - "name": "peer", - "type": "InputPeer" + "name": "from_id", + "type": "flags.1?Peer" }, { - "name": "offset_id", + "name": "date", "type": "int" }, { - "name": "offset_date", - "type": "int" + "name": "gift", + "type": "StarGift" }, { - "name": "add_offset", - "type": "int" + "name": "message", + "type": "flags.2?TextWithEntities" }, { - "name": "limit", - "type": "int" + "name": "msg_id", + "type": "flags.3?int" }, { - "name": "max_id", - "type": "int" + "name": "saved_id", + "type": "flags.11?long" }, { - "name": "min_id", - "type": "int" + "name": "convert_stars", + "type": "flags.4?long" }, { - "name": "hash", - "type": "long" - } - ], - "type": "messages.Messages" - }, - { - "id": "703497338", - "method": "messages.search", - "params": [ - { - "name": "flags", - "type": "#" + "name": "upgrade_stars", + "type": "flags.6?long" }, { - "name": "peer", - "type": "InputPeer" + "name": "can_export_at", + "type": "flags.7?int" }, { - "name": "q", - "type": "string" + "name": "transfer_stars", + "type": "flags.8?long" }, { - "name": "from_id", - "type": "flags.0?InputPeer" + "name": "can_transfer_at", + "type": "flags.13?int" }, { - "name": "saved_peer_id", - "type": "flags.2?InputPeer" + "name": "can_resell_at", + "type": "flags.14?int" }, { - "name": "saved_reaction", - "type": "flags.3?Vector" + "name": "collection_id", + "type": "flags.15?Vector" }, { - "name": "top_msg_id", - "type": "flags.1?int" - }, + "name": "prepaid_upgrade_hash", + "type": "flags.16?string" + } + ], + "type": "SavedStarGift" + }, + { + "id": "-1779201615", + "predicate": "payments.savedStarGifts", + "params": [ { - "name": "filter", - "type": "MessagesFilter" + "name": "flags", + "type": "#" }, { - "name": "min_date", + "name": "count", "type": "int" }, { - "name": "max_date", - "type": "int" + "name": "chat_notifications_enabled", + "type": "flags.1?Bool" }, { - "name": "offset_id", - "type": "int" + "name": "gifts", + "type": "Vector" }, { - "name": "add_offset", - "type": "int" + "name": "next_offset", + "type": "flags.0?string" }, { - "name": "limit", - "type": "int" + "name": "chats", + "type": "Vector" }, { - "name": "max_id", - "type": "int" - }, + "name": "users", + "type": "Vector" + } + ], + "type": "payments.SavedStarGifts" + }, + { + "id": "1764202389", + "predicate": "inputSavedStarGiftUser", + "params": [ { - "name": "min_id", + "name": "msg_id", "type": "int" - }, - { - "name": "hash", - "type": "long" } ], - "type": "messages.Messages" + "type": "InputSavedStarGift" }, { - "id": "238054714", - "method": "messages.readHistory", + "id": "-251549057", + "predicate": "inputSavedStarGiftChat", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "max_id", - "type": "int" + "name": "saved_id", + "type": "long" } ], - "type": "messages.AffectedMessages" + "type": "InputSavedStarGift" }, { - "id": "-1332768214", - "method": "messages.deleteHistory", + "id": "-2069218660", + "predicate": "payments.starGiftWithdrawalUrl", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "just_clear", - "type": "flags.0?true" - }, - { - "name": "revoke", - "type": "flags.1?true" - }, + "name": "url", + "type": "string" + } + ], + "type": "payments.StarGiftWithdrawalUrl" + }, + { + "id": "543872158", + "predicate": "paidReactionPrivacyDefault", + "params": [], + "type": "PaidReactionPrivacy" + }, + { + "id": "520887001", + "predicate": "paidReactionPrivacyAnonymous", + "params": [], + "type": "PaidReactionPrivacy" + }, + { + "id": "-596837136", + "predicate": "paidReactionPrivacyPeer", + "params": [ { "name": "peer", "type": "InputPeer" - }, - { - "name": "max_id", - "type": "int" - }, - { - "name": "min_date", - "type": "flags.2?int" - }, - { - "name": "max_date", - "type": "flags.3?int" } ], - "type": "messages.AffectedHistory" + "type": "PaidReactionPrivacy" }, { - "id": "-443640366", - "method": "messages.deleteMessages", + "id": "-1111124044", + "predicate": "inputPrivacyKeyNoPaidMessages", + "params": [], + "type": "InputPrivacyKey" + }, + { + "id": "399722706", + "predicate": "privacyKeyNoPaidMessages", + "params": [], + "type": "PrivacyKey" + }, + { + "id": "504403720", + "predicate": "account.paidMessagesRevenue", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "revoke", - "type": "flags.0?true" - }, - { - "name": "id", - "type": "Vector" + "name": "stars_amount", + "type": "long" } ], - "type": "messages.AffectedMessages" + "type": "account.PaidMessagesRevenue" }, { - "id": "94983360", - "method": "messages.receivedMessages", + "id": "84580409", + "predicate": "requirementToContactEmpty", + "params": [], + "type": "RequirementToContact" + }, + { + "id": "-444472087", + "predicate": "requirementToContactPremium", + "params": [], + "type": "RequirementToContact" + }, + { + "id": "-1258914157", + "predicate": "requirementToContactPaidMessages", "params": [ { - "name": "max_id", - "type": "int" + "name": "stars_amount", + "type": "long" } ], - "type": "Vector" + "type": "RequirementToContact" }, { - "id": "1486110434", - "method": "messages.setTyping", + "id": "-625298705", + "predicate": "inputInvoicePremiumGiftStars", "params": [ { "name": "flags", "type": "#" }, { - "name": "peer", - "type": "InputPeer" + "name": "user_id", + "type": "InputUser" }, { - "name": "top_msg_id", - "type": "flags.0?int" + "name": "months", + "type": "int" }, { - "name": "action", - "type": "SendMessageAction" + "name": "message", + "type": "flags.0?TextWithEntities" } ], - "type": "Bool" + "type": "InputInvoice" }, { - "id": "-1740662971", - "method": "messages.sendMessage", + "id": "-677184263", + "predicate": "auth.sentCodePaymentRequired", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "no_webpage", - "type": "flags.1?true" - }, - { - "name": "silent", - "type": "flags.5?true" - }, - { - "name": "background", - "type": "flags.6?true" + "name": "store_product", + "type": "string" }, { - "name": "clear_draft", - "type": "flags.7?true" + "name": "phone_code_hash", + "type": "string" }, { - "name": "noforwards", - "type": "flags.14?true" + "name": "support_email_address", + "type": "string" }, { - "name": "update_stickersets_order", - "type": "flags.15?true" - }, + "name": "support_email_subject", + "type": "string" + } + ], + "type": "auth.SentCode" + }, + { + "id": "-1682807955", + "predicate": "inputStorePaymentAuthCode", + "params": [ { - "name": "invert_media", - "type": "flags.16?true" + "name": "flags", + "type": "#" }, { - "name": "allow_paid_floodskip", - "type": "flags.19?true" + "name": "restore", + "type": "flags.0?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "phone_number", + "type": "string" }, { - "name": "reply_to", - "type": "flags.0?InputReplyTo" + "name": "phone_code_hash", + "type": "string" }, { - "name": "message", + "name": "currency", "type": "string" }, { - "name": "random_id", + "name": "amount", "type": "long" - }, - { - "name": "reply_markup", - "type": "flags.2?ReplyMarkup" - }, - { - "name": "entities", - "type": "flags.3?Vector" - }, - { - "name": "schedule_date", - "type": "flags.10?int" - }, - { - "name": "send_as", - "type": "flags.13?InputPeer" - }, - { - "name": "quick_reply_shortcut", - "type": "flags.17?InputQuickReplyShortcut" - }, + } + ], + "type": "InputStorePaymentPurpose" + }, + { + "id": "1347068303", + "predicate": "updateSentPhoneCode", + "params": [ { - "name": "effect", - "type": "flags.18?long" + "name": "sent_code", + "type": "auth.SentCode" } ], - "type": "Updates" + "type": "Update" }, { - "id": "2018673486", - "method": "messages.sendMedia", + "id": "-1604170505", + "predicate": "businessBotRights", "params": [ { "name": "flags", "type": "#" }, { - "name": "silent", - "type": "flags.5?true" - }, - { - "name": "background", - "type": "flags.6?true" - }, - { - "name": "clear_draft", - "type": "flags.7?true" + "name": "reply", + "type": "flags.0?true" }, { - "name": "noforwards", - "type": "flags.14?true" + "name": "read_messages", + "type": "flags.1?true" }, { - "name": "update_stickersets_order", - "type": "flags.15?true" + "name": "delete_sent_messages", + "type": "flags.2?true" }, { - "name": "invert_media", - "type": "flags.16?true" + "name": "delete_received_messages", + "type": "flags.3?true" }, { - "name": "allow_paid_floodskip", - "type": "flags.19?true" + "name": "edit_name", + "type": "flags.4?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "edit_bio", + "type": "flags.5?true" }, { - "name": "reply_to", - "type": "flags.0?InputReplyTo" + "name": "edit_profile_photo", + "type": "flags.6?true" }, { - "name": "media", - "type": "InputMedia" + "name": "edit_username", + "type": "flags.7?true" }, { - "name": "message", - "type": "string" + "name": "view_gifts", + "type": "flags.8?true" }, { - "name": "random_id", - "type": "long" + "name": "sell_gifts", + "type": "flags.9?true" }, { - "name": "reply_markup", - "type": "flags.2?ReplyMarkup" + "name": "change_gift_settings", + "type": "flags.10?true" }, { - "name": "entities", - "type": "flags.3?Vector" + "name": "transfer_and_upgrade_gifts", + "type": "flags.11?true" }, { - "name": "schedule_date", - "type": "flags.10?int" + "name": "transfer_stars", + "type": "flags.12?true" }, { - "name": "send_as", - "type": "flags.13?InputPeer" - }, + "name": "manage_stories", + "type": "flags.13?true" + } + ], + "type": "BusinessBotRights" + }, + { + "id": "-1407246387", + "predicate": "messageActionPaidMessagesRefunded", + "params": [ { - "name": "quick_reply_shortcut", - "type": "flags.17?InputQuickReplyShortcut" + "name": "count", + "type": "int" }, { - "name": "effect", - "type": "flags.18?long" + "name": "stars", + "type": "long" } ], - "type": "Updates" + "type": "MessageAction" }, { - "id": "-721186296", - "method": "messages.forwardMessages", + "id": "-2068281992", + "predicate": "messageActionPaidMessagesPrice", "params": [ { "name": "flags", "type": "#" }, { - "name": "silent", - "type": "flags.5?true" - }, - { - "name": "background", - "type": "flags.6?true" + "name": "broadcast_messages_allowed", + "type": "flags.0?true" }, { - "name": "with_my_score", - "type": "flags.8?true" - }, + "name": "stars", + "type": "long" + } + ], + "type": "MessageAction" + }, + { + "id": "1911715524", + "predicate": "disallowedGiftsSettings", + "params": [ { - "name": "drop_author", - "type": "flags.11?true" + "name": "flags", + "type": "#" }, { - "name": "drop_media_captions", - "type": "flags.12?true" + "name": "disallow_unlimited_stargifts", + "type": "flags.0?true" }, { - "name": "noforwards", - "type": "flags.14?true" + "name": "disallow_limited_stargifts", + "type": "flags.1?true" }, { - "name": "allow_paid_floodskip", - "type": "flags.19?true" + "name": "disallow_unique_stargifts", + "type": "flags.2?true" }, { - "name": "from_peer", - "type": "InputPeer" - }, + "name": "disallow_premium_gifts", + "type": "flags.3?true" + } + ], + "type": "DisallowedGiftsSettings" + }, + { + "id": "-963180333", + "predicate": "sponsoredPeer", + "params": [ { - "name": "id", - "type": "Vector" + "name": "flags", + "type": "#" }, { "name": "random_id", - "type": "Vector" + "type": "bytes" }, { - "name": "to_peer", - "type": "InputPeer" + "name": "peer", + "type": "Peer" }, { - "name": "top_msg_id", - "type": "flags.9?int" + "name": "sponsor_info", + "type": "flags.0?string" }, { - "name": "schedule_date", - "type": "flags.10?int" + "name": "additional_info", + "type": "flags.1?string" + } + ], + "type": "SponsoredPeer" + }, + { + "id": "-365775695", + "predicate": "contacts.sponsoredPeersEmpty", + "params": [], + "type": "contacts.SponsoredPeers" + }, + { + "id": "-352114556", + "predicate": "contacts.sponsoredPeers", + "params": [ + { + "name": "peers", + "type": "Vector" }, { - "name": "send_as", - "type": "flags.13?InputPeer" + "name": "chats", + "type": "Vector" }, { - "name": "quick_reply_shortcut", - "type": "flags.17?InputQuickReplyShortcut" + "name": "users", + "type": "Vector" } ], - "type": "Updates" + "type": "contacts.SponsoredPeers" }, { - "id": "-820669733", - "method": "messages.reportSpam", + "id": "-191267262", + "predicate": "inputInvoiceBusinessBotTransferStars", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "bot", + "type": "InputUser" + }, + { + "name": "stars", + "type": "long" } ], - "type": "Bool" + "type": "InputInvoice" }, { - "id": "-270948702", - "method": "messages.getPeerSettings", + "id": "-33127873", + "predicate": "inputGroupCallSlug", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "slug", + "type": "string" } ], - "type": "messages.PeerSettings" + "type": "InputGroupCall" }, { - "id": "-59199589", - "method": "messages.report", + "id": "-1945083841", + "predicate": "inputGroupCallInviteMessage", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "msg_id", + "type": "int" + } + ], + "type": "InputGroupCall" + }, + { + "id": "-1535694705", + "predicate": "updateGroupCallChainBlocks", + "params": [ + { + "name": "call", + "type": "InputGroupCall" }, { - "name": "id", - "type": "Vector" + "name": "sub_chain_id", + "type": "int" }, { - "name": "option", - "type": "bytes" + "name": "blocks", + "type": "Vector" }, { - "name": "message", - "type": "string" + "name": "next_offset", + "type": "int" } ], - "type": "ReportResult" + "type": "Update" }, { - "id": "1240027791", - "method": "messages.getChats", + "id": "805187450", + "predicate": "messageActionConferenceCall", "params": [ { - "name": "id", - "type": "Vector" + "name": "flags", + "type": "#" + }, + { + "name": "missed", + "type": "flags.0?true" + }, + { + "name": "active", + "type": "flags.1?true" + }, + { + "name": "video", + "type": "flags.4?true" + }, + { + "name": "call_id", + "type": "long" + }, + { + "name": "duration", + "type": "flags.2?int" + }, + { + "name": "other_participants", + "type": "flags.3?Vector" } ], - "type": "messages.Chats" + "type": "MessageAction" }, { - "id": "-1364194508", - "method": "messages.getFullChat", + "id": "-1615072777", + "predicate": "phoneCallDiscardReasonMigrateConferenceCall", "params": [ { - "name": "chat_id", - "type": "long" + "name": "slug", + "type": "string" } ], - "type": "messages.ChatFull" + "type": "PhoneCallDiscardReason" }, { - "id": "1937260541", - "method": "messages.editChatTitle", + "id": "545636920", + "predicate": "inputSavedStarGiftSlug", "params": [ { - "name": "chat_id", - "type": "long" - }, - { - "name": "title", + "name": "slug", "type": "string" } ], - "type": "Updates" + "type": "InputSavedStarGift" }, { - "id": "903730804", - "method": "messages.editChatPhoto", + "id": "1219145276", + "predicate": "starGiftAttributeIdModel", "params": [ { - "name": "chat_id", + "name": "document_id", "type": "long" - }, - { - "name": "photo", - "type": "InputChatPhoto" } ], - "type": "Updates" + "type": "StarGiftAttributeId" }, { - "id": "-876162809", - "method": "messages.addChatUser", + "id": "1242965043", + "predicate": "starGiftAttributeIdPattern", "params": [ { - "name": "chat_id", + "name": "document_id", "type": "long" - }, - { - "name": "user_id", - "type": "InputUser" - }, - { - "name": "fwd_limit", - "type": "int" } ], - "type": "messages.InvitedUsers" + "type": "StarGiftAttributeId" }, { - "id": "-1575461717", - "method": "messages.deleteChatUser", + "id": "520210263", + "predicate": "starGiftAttributeIdBackdrop", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "revoke_history", - "type": "flags.0?true" - }, - { - "name": "chat_id", - "type": "long" - }, - { - "name": "user_id", - "type": "InputUser" + "name": "backdrop_id", + "type": "int" } ], - "type": "Updates" + "type": "StarGiftAttributeId" }, { - "id": "-1831936556", - "method": "messages.createChat", + "id": "783398488", + "predicate": "starGiftAttributeCounter", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "users", - "type": "Vector" - }, - { - "name": "title", - "type": "string" + "name": "attribute", + "type": "StarGiftAttributeId" }, { - "name": "ttl_period", - "type": "flags.0?int" + "name": "count", + "type": "int" } ], - "type": "messages.InvitedUsers" - }, - { - "id": "-304838614", - "method": "updates.getState", - "params": [], - "type": "updates.State" + "type": "StarGiftAttributeCounter" }, { - "id": "432207715", - "method": "updates.getDifference", + "id": "-1803939105", + "predicate": "payments.resaleStarGifts", "params": [ { "name": "flags", "type": "#" }, { - "name": "pts", + "name": "count", "type": "int" }, { - "name": "pts_limit", - "type": "flags.1?int" + "name": "gifts", + "type": "Vector" }, { - "name": "pts_total_limit", - "type": "flags.0?int" + "name": "next_offset", + "type": "flags.0?string" }, { - "name": "date", - "type": "int" + "name": "attributes", + "type": "flags.1?Vector" }, { - "name": "qts", - "type": "int" + "name": "attributes_hash", + "type": "flags.1?long" }, { - "name": "qts_limit", - "type": "flags.2?int" + "name": "chats", + "type": "Vector" + }, + { + "name": "counters", + "type": "flags.2?Vector" + }, + { + "name": "users", + "type": "Vector" } ], - "type": "updates.Difference" + "type": "payments.ResaleStarGifts" }, { - "id": "166207545", - "method": "photos.updateProfilePhoto", + "id": "-1012968668", + "predicate": "inputInvoiceStarGiftResale", "params": [ { "name": "flags", "type": "#" }, { - "name": "fallback", + "name": "ton", "type": "flags.0?true" }, { - "name": "bot", - "type": "flags.1?InputUser" + "name": "slug", + "type": "string" }, { - "name": "id", - "type": "InputPhoto" + "name": "to_id", + "type": "InputPeer" } ], - "type": "photos.Photo" + "type": "InputInvoice" }, { - "id": "59286453", - "method": "photos.uploadProfilePhoto", + "id": "-988285058", + "predicate": "channelAdminLogEventActionToggleAutotranslation", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "fallback", - "type": "flags.3?true" - }, + "name": "new_value", + "type": "Bool" + } + ], + "type": "ChannelAdminLogEventAction" + }, + { + "id": "-1014513586", + "predicate": "stories.canSendStoryCount", + "params": [ { - "name": "bot", - "type": "flags.5?InputUser" - }, + "name": "count_remains", + "type": "int" + } + ], + "type": "stories.CanSendStoryCount" + }, + { + "id": "-404214254", + "predicate": "pendingSuggestion", + "params": [ { - "name": "file", - "type": "flags.0?InputFile" + "name": "suggestion", + "type": "string" }, { - "name": "video", - "type": "flags.1?InputFile" + "name": "title", + "type": "TextWithEntities" }, { - "name": "video_start_ts", - "type": "flags.2?double" + "name": "description", + "type": "TextWithEntities" }, { - "name": "video_emoji_markup", - "type": "flags.4?VideoSize" + "name": "url", + "type": "string" } ], - "type": "photos.Photo" + "type": "PendingSuggestion" }, { - "id": "-2016444625", - "method": "photos.deletePhotos", + "id": "1775660101", + "predicate": "inputReplyToMonoForum", "params": [ { - "name": "id", - "type": "Vector" + "name": "monoforum_peer_id", + "type": "InputPeer" } ], - "type": "Vector" + "type": "InputReplyTo" }, { - "id": "-1291540959", - "method": "upload.saveFilePart", + "id": "1681948327", + "predicate": "monoForumDialog", "params": [ { - "name": "file_id", - "type": "long" + "name": "flags", + "type": "#" }, { - "name": "file_part", - "type": "int" + "name": "unread_mark", + "type": "flags.3?true" }, { - "name": "bytes", - "type": "bytes" - } - ], - "type": "Bool" - }, - { - "id": "-1101843010", - "method": "upload.getFile", - "params": [ + "name": "nopaid_messages_exception", + "type": "flags.4?true" + }, { - "name": "flags", - "type": "#" + "name": "peer", + "type": "Peer" }, { - "name": "precise", - "type": "flags.0?true" + "name": "top_message", + "type": "int" }, { - "name": "cdn_supported", - "type": "flags.1?true" + "name": "read_inbox_max_id", + "type": "int" }, { - "name": "location", - "type": "InputFileLocation" + "name": "read_outbox_max_id", + "type": "int" }, { - "name": "offset", - "type": "long" + "name": "unread_count", + "type": "int" }, { - "name": "limit", + "name": "unread_reactions_count", "type": "int" + }, + { + "name": "draft", + "type": "flags.1?DraftMessage" } ], - "type": "upload.File" - }, - { - "id": "-990308245", - "method": "help.getConfig", - "params": [], - "type": "Config" - }, - { - "id": "531836966", - "method": "help.getNearestDc", - "params": [], - "type": "NearestDc" + "type": "SavedDialog" }, { - "id": "1378703997", - "method": "help.getAppUpdate", + "id": "2008081266", + "predicate": "updateReadMonoForumInbox", "params": [ { - "name": "source", - "type": "string" + "name": "channel_id", + "type": "long" + }, + { + "name": "saved_peer_id", + "type": "Peer" + }, + { + "name": "read_max_id", + "type": "int" } ], - "type": "help.AppUpdate" - }, - { - "id": "1295590211", - "method": "help.getInviteText", - "params": [], - "type": "help.InviteText" + "type": "Update" }, { - "id": "-1848823128", - "method": "photos.getUserPhotos", + "id": "-1532521610", + "predicate": "updateReadMonoForumOutbox", "params": [ { - "name": "user_id", - "type": "InputUser" - }, - { - "name": "offset", - "type": "int" + "name": "channel_id", + "type": "long" }, { - "name": "max_id", - "type": "long" + "name": "saved_peer_id", + "type": "Peer" }, { - "name": "limit", + "name": "read_max_id", "type": "int" } ], - "type": "photos.Photos" + "type": "Update" }, { - "id": "651135312", - "method": "messages.getDhConfig", + "id": "-878074577", + "predicate": "todoItem", "params": [ { - "name": "version", + "name": "id", "type": "int" }, { - "name": "random_length", - "type": "int" + "name": "title", + "type": "TextWithEntities" } ], - "type": "messages.DhConfig" + "type": "TodoItem" }, { - "id": "-162681021", - "method": "messages.requestEncryption", + "id": "1236871718", + "predicate": "todoList", "params": [ { - "name": "user_id", - "type": "InputUser" + "name": "flags", + "type": "#" }, { - "name": "random_id", - "type": "int" + "name": "others_can_append", + "type": "flags.0?true" }, { - "name": "g_a", - "type": "bytes" + "name": "others_can_complete", + "type": "flags.1?true" + }, + { + "name": "title", + "type": "TextWithEntities" + }, + { + "name": "list", + "type": "Vector" } ], - "type": "EncryptedChat" + "type": "TodoList" }, { - "id": "1035731989", - "method": "messages.acceptEncryption", + "id": "1287725239", + "predicate": "todoCompletion", "params": [ { - "name": "peer", - "type": "InputEncryptedChat" + "name": "id", + "type": "int" }, { - "name": "g_b", - "type": "bytes" + "name": "completed_by", + "type": "long" }, { - "name": "key_fingerprint", - "type": "long" + "name": "date", + "type": "int" } ], - "type": "EncryptedChat" + "type": "TodoCompletion" }, { - "id": "-208425312", - "method": "messages.discardEncryption", + "id": "-1614454818", + "predicate": "inputMediaTodo", + "params": [ + { + "name": "todo", + "type": "TodoList" + } + ], + "type": "InputMedia" + }, + { + "id": "-1974226924", + "predicate": "messageMediaToDo", "params": [ { "name": "flags", "type": "#" }, { - "name": "delete_history", - "type": "flags.0?true" + "name": "todo", + "type": "TodoList" }, { - "name": "chat_id", - "type": "int" + "name": "completions", + "type": "flags.0?Vector" } ], - "type": "Bool" + "type": "MessageMedia" }, { - "id": "2031374829", - "method": "messages.setEncryptedTyping", + "id": "-864265079", + "predicate": "messageActionTodoCompletions", "params": [ { - "name": "peer", - "type": "InputEncryptedChat" + "name": "completed", + "type": "Vector" }, { - "name": "typing", - "type": "Bool" + "name": "incompleted", + "type": "Vector" } ], - "type": "Bool" + "type": "MessageAction" }, { - "id": "2135648522", - "method": "messages.readEncryptedHistory", + "id": "-940721021", + "predicate": "messageActionTodoAppendTasks", "params": [ { - "name": "peer", - "type": "InputEncryptedChat" - }, - { - "name": "max_date", - "type": "int" + "name": "list", + "type": "Vector" } ], - "type": "Bool" + "type": "MessageAction" }, { - "id": "1157265941", - "method": "messages.sendEncrypted", + "id": "-1618924792", + "predicate": "updateMonoForumNoPaidException", "params": [ { "name": "flags", "type": "#" }, { - "name": "silent", + "name": "exception", "type": "flags.0?true" }, { - "name": "peer", - "type": "InputEncryptedChat" - }, - { - "name": "random_id", + "name": "channel_id", "type": "long" }, { - "name": "data", - "type": "bytes" + "name": "saved_peer_id", + "type": "Peer" } ], - "type": "messages.SentEncryptedMessage" + "type": "Update" }, { - "id": "1431914525", - "method": "messages.sendEncryptedFile", + "id": "244201445", + "predicate": "suggestedPost", "params": [ { "name": "flags", "type": "#" }, { - "name": "silent", - "type": "flags.0?true" - }, - { - "name": "peer", - "type": "InputEncryptedChat" + "name": "accepted", + "type": "flags.1?true" }, { - "name": "random_id", - "type": "long" + "name": "rejected", + "type": "flags.2?true" }, { - "name": "data", - "type": "bytes" + "name": "price", + "type": "flags.3?StarsAmount" }, { - "name": "file", - "type": "InputEncryptedFile" + "name": "schedule_date", + "type": "flags.0?int" } ], - "type": "messages.SentEncryptedMessage" + "type": "SuggestedPost" }, { - "id": "852769188", - "method": "messages.sendEncryptedService", + "id": "-293988970", + "predicate": "messageActionSuggestedPostApproval", "params": [ { - "name": "peer", - "type": "InputEncryptedChat" + "name": "flags", + "type": "#" }, { - "name": "random_id", - "type": "long" + "name": "rejected", + "type": "flags.0?true" }, { - "name": "data", - "type": "bytes" + "name": "balance_too_low", + "type": "flags.1?true" + }, + { + "name": "reject_comment", + "type": "flags.2?string" + }, + { + "name": "schedule_date", + "type": "flags.3?int" + }, + { + "name": "price", + "type": "flags.4?StarsAmount" } ], - "type": "messages.SentEncryptedMessage" + "type": "MessageAction" }, { - "id": "1436924774", - "method": "messages.receivedQueue", + "id": "-1780625559", + "predicate": "messageActionSuggestedPostSuccess", "params": [ { - "name": "max_qts", - "type": "int" + "name": "price", + "type": "StarsAmount" } ], - "type": "Vector" + "type": "MessageAction" }, { - "id": "1259113487", - "method": "messages.reportEncryptedSpam", + "id": "1777932024", + "predicate": "messageActionSuggestedPostRefund", "params": [ { - "name": "peer", - "type": "InputEncryptedChat" + "name": "flags", + "type": "#" + }, + { + "name": "payer_initiated", + "type": "flags.0?true" } ], - "type": "Bool" + "type": "MessageAction" }, { - "id": "-562337987", - "method": "upload.saveBigFilePart", + "id": "1957618656", + "predicate": "starsTonAmount", "params": [ { - "name": "file_id", + "name": "amount", "type": "long" - }, - { - "name": "file_part", - "type": "int" - }, - { - "name": "file_total_parts", - "type": "int" - }, - { - "name": "bytes", - "type": "bytes" } ], - "type": "Bool" + "type": "StarsAmount" }, { - "id": "-1043505495", - "method": "initConnection", + "id": "-1465661799", + "predicate": "messageActionGiftTon", "params": [ { "name": "flags", "type": "#" }, { - "name": "api_id", - "type": "int" + "name": "currency", + "type": "string" }, { - "name": "device_model", - "type": "string" + "name": "amount", + "type": "long" }, { - "name": "system_version", + "name": "crypto_currency", "type": "string" }, { - "name": "app_version", - "type": "string" + "name": "crypto_amount", + "type": "long" }, { - "name": "system_lang_code", - "type": "string" + "name": "transaction_id", + "type": "flags.0?string" + } + ], + "type": "MessageAction" + }, + { + "id": "485912992", + "predicate": "inputStickerSetTonGifts", + "params": [], + "type": "InputStickerSet" + }, + { + "id": "453922567", + "predicate": "starsRating", + "params": [ + { + "name": "flags", + "type": "#" }, { - "name": "lang_pack", - "type": "string" + "name": "level", + "type": "int" }, { - "name": "lang_code", + "name": "current_level_stars", + "type": "long" + }, + { + "name": "stars", + "type": "long" + }, + { + "name": "next_level_stars", + "type": "flags.0?long" + } + ], + "type": "StarsRating" + }, + { + "id": "-1653926992", + "predicate": "starGiftCollection", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "collection_id", + "type": "int" + }, + { + "name": "title", "type": "string" }, { - "name": "proxy", - "type": "flags.0?InputClientProxy" + "name": "icon", + "type": "flags.0?Document" }, { - "name": "params", - "type": "flags.1?JSONValue" + "name": "gifts_count", + "type": "int" }, { - "name": "query", - "type": "!X" + "name": "hash", + "type": "long" } ], - "type": "X" + "type": "StarGiftCollection" }, { - "id": "-1663104819", - "method": "help.getSupport", + "id": "-1598402793", + "predicate": "payments.starGiftCollectionsNotModified", "params": [], - "type": "help.Support" + "type": "payments.StarGiftCollections" }, { - "id": "916930423", - "method": "messages.readMessageContents", + "id": "-1977011469", + "predicate": "payments.starGiftCollections", "params": [ { - "name": "id", - "type": "Vector" + "name": "collections", + "type": "Vector" } ], - "type": "messages.AffectedMessages" + "type": "payments.StarGiftCollections" }, { - "id": "655677548", - "method": "account.checkUsername", + "id": "-1826262950", + "predicate": "storyAlbum", "params": [ { - "name": "username", + "name": "flags", + "type": "#" + }, + { + "name": "album_id", + "type": "int" + }, + { + "name": "title", "type": "string" + }, + { + "name": "icon_photo", + "type": "flags.0?Photo" + }, + { + "name": "icon_video", + "type": "flags.1?Document" } ], - "type": "Bool" + "type": "StoryAlbum" }, { - "id": "1040964988", - "method": "account.updateUsername", + "id": "1448008427", + "predicate": "stories.albumsNotModified", + "params": [], + "type": "stories.Albums" + }, + { + "id": "-1013417414", + "predicate": "stories.albums", "params": [ { - "name": "username", - "type": "string" + "name": "hash", + "type": "long" + }, + { + "name": "albums", + "type": "Vector" } ], - "type": "User" + "type": "stories.Albums" }, { - "id": "301470424", - "method": "contacts.search", + "id": "1040931690", + "predicate": "searchPostsFlood", "params": [ { - "name": "q", - "type": "string" + "name": "flags", + "type": "#" }, { - "name": "limit", + "name": "query_is_free", + "type": "flags.0?true" + }, + { + "name": "total_daily", + "type": "int" + }, + { + "name": "remains", "type": "int" + }, + { + "name": "wait_till", + "type": "flags.1?int" + }, + { + "name": "stars_amount", + "type": "long" } ], - "type": "contacts.Found" + "type": "SearchPostsFlood" }, { - "id": "-623130288", - "method": "account.getPrivacy", + "id": "835375875", + "predicate": "webPageAttributeStarGiftCollection", "params": [ { - "name": "key", - "type": "InputPrivacyKey" + "name": "icons", + "type": "Vector" } ], - "type": "account.PrivacyRules" + "type": "WebPageAttribute" }, { - "id": "-906486552", - "method": "account.setPrivacy", + "id": "-1710536520", + "predicate": "inputInvoiceStarGiftPrepaidUpgrade", "params": [ { - "name": "key", - "type": "InputPrivacyKey" + "name": "peer", + "type": "InputPeer" }, { - "name": "rules", - "type": "Vector" + "name": "hash", + "type": "string" } ], - "type": "account.PrivacyRules" + "type": "InputInvoice" }, { - "id": "-1564422284", - "method": "account.deleteAccount", + "id": "1362093126", + "predicate": "payments.uniqueStarGiftValueInfo", "params": [ { "name": "flags", "type": "#" }, { - "name": "reason", + "name": "last_sale_on_fragment", + "type": "flags.1?true" + }, + { + "name": "value_is_average", + "type": "flags.6?true" + }, + { + "name": "currency", "type": "string" }, { - "name": "password", - "type": "flags.0?InputCheckPasswordSRP" + "name": "value", + "type": "long" + }, + { + "name": "initial_sale_date", + "type": "int" + }, + { + "name": "initial_sale_stars", + "type": "long" + }, + { + "name": "initial_sale_price", + "type": "long" + }, + { + "name": "last_sale_date", + "type": "flags.0?int" + }, + { + "name": "last_sale_price", + "type": "flags.0?long" + }, + { + "name": "floor_price", + "type": "flags.2?long" + }, + { + "name": "average_price", + "type": "flags.3?long" + }, + { + "name": "listed_count", + "type": "flags.4?int" + }, + { + "name": "fragment_listed_count", + "type": "flags.5?int" + }, + { + "name": "fragment_listed_url", + "type": "flags.5?string" } ], - "type": "Bool" + "type": "payments.UniqueStarGiftValueInfo" }, { - "id": "150761757", - "method": "account.getAccountTTL", + "id": "-1181952362", + "predicate": "profileTabPosts", "params": [], - "type": "AccountDaysTTL" + "type": "ProfileTab" }, { - "id": "608323678", - "method": "account.setAccountTTL", + "id": "1296815210", + "predicate": "profileTabGifts", + "params": [], + "type": "ProfileTab" + }, + { + "id": "1925597525", + "predicate": "profileTabMedia", + "params": [], + "type": "ProfileTab" + }, + { + "id": "-1422681088", + "predicate": "profileTabFiles", + "params": [], + "type": "ProfileTab" + }, + { + "id": "-1624780178", + "predicate": "profileTabMusic", + "params": [], + "type": "ProfileTab" + }, + { + "id": "-461960914", + "predicate": "profileTabVoice", + "params": [], + "type": "ProfileTab" + }, + { + "id": "-748329831", + "predicate": "profileTabLinks", + "params": [], + "type": "ProfileTab" + }, + { + "id": "-1564412267", + "predicate": "profileTabGifs", + "params": [], + "type": "ProfileTab" + }, + { + "id": "-477656412", + "predicate": "users.savedMusicNotModified", "params": [ { - "name": "ttl", - "type": "AccountDaysTTL" + "name": "count", + "type": "int" } ], - "type": "Bool" + "type": "users.SavedMusic" }, { - "id": "-627372787", - "method": "invokeWithLayer", + "id": "883094167", + "predicate": "users.savedMusic", "params": [ { - "name": "layer", + "name": "count", "type": "int" }, { - "name": "query", - "type": "!X" + "name": "documents", + "type": "Vector" } ], - "type": "X" + "type": "users.SavedMusic" }, { - "id": "1918565308", - "method": "contacts.resolveUsername", + "id": "1338514798", + "predicate": "account.savedMusicIdsNotModified", + "params": [], + "type": "account.SavedMusicIds" + }, + { + "id": "-1718786506", + "predicate": "account.savedMusicIds", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "username", - "type": "string" - }, - { - "name": "referer", - "type": "flags.0?string" + "name": "ids", + "type": "Vector" } ], - "type": "contacts.ResolvedPeer" + "type": "account.SavedMusicIds" }, { - "id": "-2108208411", - "method": "account.sendChangePhoneCode", + "id": "927967149", + "predicate": "payments.checkCanSendGiftResultOk", + "params": [], + "type": "payments.CheckCanSendGiftResult" + }, + { + "id": "-706379148", + "predicate": "payments.checkCanSendGiftResultFail", "params": [ { - "name": "phone_number", - "type": "string" - }, - { - "name": "settings", - "type": "CodeSettings" + "name": "reason", + "type": "TextWithEntities" } ], - "type": "auth.SentCode" + "type": "payments.CheckCanSendGiftResult" }, { - "id": "1891839707", - "method": "account.changePhone", + "id": "878246344", + "predicate": "chatThemeUniqueGift", "params": [ { - "name": "phone_number", - "type": "string" - }, - { - "name": "phone_code_hash", - "type": "string" + "name": "gift", + "type": "StarGift" }, { - "name": "phone_code", - "type": "string" + "name": "theme_settings", + "type": "Vector" } ], - "type": "User" + "type": "ChatTheme" }, { - "id": "-710552671", - "method": "messages.getStickers", + "id": "-2094627709", + "predicate": "inputChatThemeEmpty", + "params": [], + "type": "InputChatTheme" + }, + { + "id": "-918689444", + "predicate": "inputChatTheme", "params": [ { "name": "emoticon", "type": "string" - }, - { - "name": "hash", - "type": "long" } ], - "type": "messages.Stickers" + "type": "InputChatTheme" }, { - "id": "-1197432408", - "method": "messages.getAllStickers", + "id": "-2014978076", + "predicate": "inputChatThemeUniqueGift", "params": [ { - "name": "hash", + "name": "slug", + "type": "string" + } + ], + "type": "InputChatTheme" + } + ], + "methods": [ + { + "id": "-878758099", + "method": "invokeAfterMsg", + "params": [ + { + "name": "msg_id", "type": "long" + }, + { + "name": "query", + "type": "!X" } ], - "type": "messages.AllStickers" + "type": "X" }, { - "id": "954152242", - "method": "account.updateDeviceLocked", + "id": "1036301552", + "method": "invokeAfterMsgs", "params": [ { - "name": "period", - "type": "int" + "name": "msg_ids", + "type": "Vector" + }, + { + "name": "query", + "type": "!X" } ], - "type": "Bool" + "type": "X" }, { - "id": "1738800940", - "method": "auth.importBotAuthorization", + "id": "-1502141361", + "method": "auth.sendCode", "params": [ { - "name": "flags", - "type": "int" + "name": "phone_number", + "type": "string" }, { "name": "api_id", @@ -29062,665 +29531,545 @@ "type": "string" }, { - "name": "bot_auth_token", - "type": "string" + "name": "settings", + "type": "CodeSettings" } ], - "type": "auth.Authorization" + "type": "auth.SentCode" }, { - "id": "-1956073268", - "method": "messages.getWebPagePreview", + "id": "-1429752041", + "method": "auth.signUp", "params": [ { "name": "flags", "type": "#" }, { - "name": "message", + "name": "no_joined_notifications", + "type": "flags.0?true" + }, + { + "name": "phone_number", "type": "string" }, { - "name": "entities", - "type": "flags.3?Vector" + "name": "phone_code_hash", + "type": "string" + }, + { + "name": "first_name", + "type": "string" + }, + { + "name": "last_name", + "type": "string" } ], - "type": "MessageMedia" - }, - { - "id": "-484392616", - "method": "account.getAuthorizations", - "params": [], - "type": "account.Authorizations" + "type": "auth.Authorization" }, { - "id": "-545786948", - "method": "account.resetAuthorization", + "id": "-1923962543", + "method": "auth.signIn", "params": [ { - "name": "hash", - "type": "long" + "name": "flags", + "type": "#" + }, + { + "name": "phone_number", + "type": "string" + }, + { + "name": "phone_code_hash", + "type": "string" + }, + { + "name": "phone_code", + "type": "flags.0?string" + }, + { + "name": "email_verification", + "type": "flags.1?EmailVerification" } ], - "type": "Bool" + "type": "auth.Authorization" }, { - "id": "1418342645", - "method": "account.getPassword", + "id": "1047706137", + "method": "auth.logOut", "params": [], - "type": "account.Password" + "type": "auth.LoggedOut" }, { - "id": "-1663767815", - "method": "account.getPasswordSettings", - "params": [ - { - "name": "password", - "type": "InputCheckPasswordSRP" - } - ], - "type": "account.PasswordSettings" + "id": "-1616179942", + "method": "auth.resetAuthorizations", + "params": [], + "type": "Bool" }, { - "id": "-1516564433", - "method": "account.updatePasswordSettings", + "id": "-440401971", + "method": "auth.exportAuthorization", "params": [ { - "name": "password", - "type": "InputCheckPasswordSRP" - }, - { - "name": "new_settings", - "type": "account.PasswordInputSettings" + "name": "dc_id", + "type": "int" } ], - "type": "Bool" + "type": "auth.ExportedAuthorization" }, { - "id": "-779399914", - "method": "auth.checkPassword", + "id": "-1518699091", + "method": "auth.importAuthorization", "params": [ { - "name": "password", - "type": "InputCheckPasswordSRP" + "name": "id", + "type": "long" + }, + { + "name": "bytes", + "type": "bytes" } ], "type": "auth.Authorization" }, { - "id": "-661144474", - "method": "auth.requestPasswordRecovery", - "params": [], - "type": "auth.PasswordRecovery" - }, - { - "id": "923364464", - "method": "auth.recoverPassword", + "id": "-841733627", + "method": "auth.bindTempAuthKey", "params": [ { - "name": "flags", - "type": "#" + "name": "perm_auth_key_id", + "type": "long" }, { - "name": "code", - "type": "string" + "name": "nonce", + "type": "long" }, { - "name": "new_settings", - "type": "flags.0?account.PasswordInputSettings" - } - ], - "type": "auth.Authorization" - }, - { - "id": "-1080796745", - "method": "invokeWithoutUpdates", - "params": [ + "name": "expires_at", + "type": "int" + }, { - "name": "query", - "type": "!X" + "name": "encrypted_message", + "type": "bytes" } ], - "type": "X" + "type": "Bool" }, { - "id": "-1537876336", - "method": "messages.exportChatInvite", + "id": "-326762118", + "method": "account.registerDevice", "params": [ { "name": "flags", "type": "#" }, { - "name": "legacy_revoke_permanent", - "type": "flags.2?true" - }, - { - "name": "request_needed", - "type": "flags.3?true" + "name": "no_muted", + "type": "flags.0?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "token_type", + "type": "int" }, { - "name": "expire_date", - "type": "flags.0?int" + "name": "token", + "type": "string" }, { - "name": "usage_limit", - "type": "flags.1?int" + "name": "app_sandbox", + "type": "Bool" }, { - "name": "title", - "type": "flags.4?string" + "name": "secret", + "type": "bytes" }, { - "name": "subscription_pricing", - "type": "flags.5?StarsSubscriptionPricing" + "name": "other_uids", + "type": "Vector" } ], - "type": "ExportedChatInvite" + "type": "Bool" }, { - "id": "1051570619", - "method": "messages.checkChatInvite", + "id": "1779249670", + "method": "account.unregisterDevice", "params": [ { - "name": "hash", + "name": "token_type", + "type": "int" + }, + { + "name": "token", "type": "string" - } - ], - "type": "ChatInvite" - }, - { - "id": "1817183516", - "method": "messages.importChatInvite", - "params": [ + }, { - "name": "hash", - "type": "string" + "name": "other_uids", + "type": "Vector" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-928977804", - "method": "messages.getStickerSet", + "id": "-2067899501", + "method": "account.updateNotifySettings", "params": [ { - "name": "stickerset", - "type": "InputStickerSet" + "name": "peer", + "type": "InputNotifyPeer" }, { - "name": "hash", - "type": "int" + "name": "settings", + "type": "InputPeerNotifySettings" } ], - "type": "messages.StickerSet" + "type": "Bool" }, { - "id": "-946871200", - "method": "messages.installStickerSet", + "id": "313765169", + "method": "account.getNotifySettings", "params": [ { - "name": "stickerset", - "type": "InputStickerSet" - }, - { - "name": "archived", - "type": "Bool" + "name": "peer", + "type": "InputNotifyPeer" } ], - "type": "messages.StickerSetInstallResult" + "type": "PeerNotifySettings" }, { - "id": "-110209570", - "method": "messages.uninstallStickerSet", - "params": [ - { - "name": "stickerset", - "type": "InputStickerSet" - } - ], + "id": "-612493497", + "method": "account.resetNotifySettings", + "params": [], "type": "Bool" }, { - "id": "-421563528", - "method": "messages.startBot", + "id": "2018596725", + "method": "account.updateProfile", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "flags", + "type": "#" }, { - "name": "peer", - "type": "InputPeer" + "name": "first_name", + "type": "flags.0?string" }, { - "name": "random_id", - "type": "long" + "name": "last_name", + "type": "flags.1?string" }, { - "name": "start_param", - "type": "string" + "name": "about", + "type": "flags.2?string" } ], - "type": "Updates" + "type": "User" }, { - "id": "1468322785", - "method": "messages.getMessagesViews", + "id": "1713919532", + "method": "account.updateStatus", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "Vector" - }, - { - "name": "increment", + "name": "offline", "type": "Bool" } ], - "type": "messages.MessageViews" - }, - { - "id": "-871347913", - "method": "channels.readHistory", - "params": [ - { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "max_id", - "type": "int" - } - ], "type": "Bool" }, { - "id": "-2067661490", - "method": "channels.deleteMessages", + "id": "127302966", + "method": "account.getWallPapers", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "id", - "type": "Vector" + "name": "hash", + "type": "long" } ], - "type": "messages.AffectedMessages" + "type": "account.WallPapers" }, { - "id": "-196443371", - "method": "channels.reportSpam", + "id": "-977650298", + "method": "account.reportPeer", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "peer", + "type": "InputPeer" }, { - "name": "participant", - "type": "InputPeer" + "name": "reason", + "type": "ReportReason" }, { - "name": "id", - "type": "Vector" + "name": "message", + "type": "string" } ], "type": "Bool" }, { - "id": "-1383294429", - "method": "channels.getMessages", + "id": "227648840", + "method": "users.getUsers", "params": [ - { - "name": "channel", - "type": "InputChannel" - }, { "name": "id", - "type": "Vector" + "type": "Vector" } ], - "type": "messages.Messages" + "type": "Vector" }, { - "id": "2010044880", - "method": "channels.getParticipants", + "id": "-1240508136", + "method": "users.getFullUser", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "filter", - "type": "ChannelParticipantsFilter" - }, - { - "name": "offset", - "type": "int" - }, - { - "name": "limit", - "type": "int" - }, - { - "name": "hash", - "type": "long" + "name": "id", + "type": "InputUser" } ], - "type": "channels.ChannelParticipants" + "type": "users.UserFull" }, { - "id": "-1599378234", - "method": "channels.getParticipant", + "id": "2061264541", + "method": "contacts.getContactIDs", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "participant", - "type": "InputPeer" + "name": "hash", + "type": "long" } ], - "type": "channels.ChannelParticipant" + "type": "Vector" }, { - "id": "176122811", - "method": "channels.getChannels", - "params": [ - { - "name": "id", - "type": "Vector" - } - ], - "type": "messages.Chats" + "id": "-995929106", + "method": "contacts.getStatuses", + "params": [], + "type": "Vector" }, { - "id": "141781513", - "method": "channels.getFullChannel", + "id": "1574346258", + "method": "contacts.getContacts", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "hash", + "type": "long" } ], - "type": "messages.ChatFull" + "type": "contacts.Contacts" }, { - "id": "-1862244601", - "method": "channels.createChannel", + "id": "746589157", + "method": "contacts.importContacts", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "broadcast", - "type": "flags.0?true" - }, - { - "name": "megagroup", - "type": "flags.1?true" - }, - { - "name": "for_import", - "type": "flags.3?true" - }, - { - "name": "forum", - "type": "flags.5?true" - }, - { - "name": "title", - "type": "string" - }, - { - "name": "about", - "type": "string" - }, - { - "name": "geo_point", - "type": "flags.2?InputGeoPoint" - }, - { - "name": "address", - "type": "flags.2?string" - }, - { - "name": "ttl_period", - "type": "flags.4?int" + "name": "contacts", + "type": "Vector" } ], - "type": "Updates" + "type": "contacts.ImportedContacts" }, { - "id": "-751007486", - "method": "channels.editAdmin", + "id": "157945344", + "method": "contacts.deleteContacts", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "user_id", - "type": "InputUser" - }, - { - "name": "admin_rights", - "type": "ChatAdminRights" - }, - { - "name": "rank", - "type": "string" + "name": "id", + "type": "Vector" } ], "type": "Updates" }, { - "id": "1450044624", - "method": "channels.editTitle", + "id": "269745566", + "method": "contacts.deleteByPhones", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "title", - "type": "string" + "name": "phones", + "type": "Vector" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-248621111", - "method": "channels.editPhoto", + "id": "774801204", + "method": "contacts.block", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "flags", + "type": "#" }, { - "name": "photo", - "type": "InputChatPhoto" - } - ], - "type": "Updates" - }, - { - "id": "283557164", - "method": "channels.checkUsername", - "params": [ - { - "name": "channel", - "type": "InputChannel" + "name": "my_stories_from", + "type": "flags.0?true" }, { - "name": "username", - "type": "string" + "name": "id", + "type": "InputPeer" } ], "type": "Bool" }, { - "id": "890549214", - "method": "channels.updateUsername", + "id": "-1252994264", + "method": "contacts.unblock", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "flags", + "type": "#" }, { - "name": "username", - "type": "string" + "name": "my_stories_from", + "type": "flags.0?true" + }, + { + "name": "id", + "type": "InputPeer" } ], "type": "Bool" }, { - "id": "615851205", - "method": "channels.joinChannel", + "id": "-1702457472", + "method": "contacts.getBlocked", "params": [ { - "name": "channel", - "type": "InputChannel" - } - ], - "type": "Updates" - }, - { - "id": "-130635115", - "method": "channels.leaveChannel", - "params": [ + "name": "flags", + "type": "#" + }, { - "name": "channel", - "type": "InputChannel" - } - ], - "type": "Updates" - }, - { - "id": "-907854508", - "method": "channels.inviteToChannel", - "params": [ + "name": "my_stories_from", + "type": "flags.0?true" + }, { - "name": "channel", - "type": "InputChannel" + "name": "offset", + "type": "int" }, { - "name": "users", - "type": "Vector" + "name": "limit", + "type": "int" } ], - "type": "messages.InvitedUsers" + "type": "contacts.Blocked" }, { - "id": "-1072619549", - "method": "channels.deleteChannel", + "id": "1673946374", + "method": "messages.getMessages", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "id", + "type": "Vector" } ], - "type": "Updates" + "type": "messages.Messages" }, { - "id": "51854712", - "method": "updates.getChannelDifference", + "id": "-1594569905", + "method": "messages.getDialogs", "params": [ { "name": "flags", "type": "#" }, { - "name": "force", + "name": "exclude_pinned", "type": "flags.0?true" }, { - "name": "channel", - "type": "InputChannel" + "name": "folder_id", + "type": "flags.1?int" }, { - "name": "filter", - "type": "ChannelMessagesFilter" + "name": "offset_date", + "type": "int" }, { - "name": "pts", + "name": "offset_id", "type": "int" }, + { + "name": "offset_peer", + "type": "InputPeer" + }, { "name": "limit", "type": "int" + }, + { + "name": "hash", + "type": "long" } ], - "type": "updates.ChannelDifference" + "type": "messages.Dialogs" }, { - "id": "-1470377534", - "method": "messages.editChatAdmin", + "id": "1143203525", + "method": "messages.getHistory", "params": [ { - "name": "chat_id", - "type": "long" + "name": "peer", + "type": "InputPeer" }, { - "name": "user_id", - "type": "InputUser" + "name": "offset_id", + "type": "int" }, { - "name": "is_admin", - "type": "Bool" - } - ], - "type": "Bool" - }, - { - "id": "-1568189671", - "method": "messages.migrateChat", - "params": [ + "name": "offset_date", + "type": "int" + }, { - "name": "chat_id", + "name": "add_offset", + "type": "int" + }, + { + "name": "limit", + "type": "int" + }, + { + "name": "max_id", + "type": "int" + }, + { + "name": "min_id", + "type": "int" + }, + { + "name": "hash", "type": "long" } ], - "type": "Updates" + "type": "messages.Messages" }, { - "id": "1271290010", - "method": "messages.searchGlobal", + "id": "703497338", + "method": "messages.search", "params": [ { "name": "flags", "type": "#" }, { - "name": "broadcasts_only", - "type": "flags.1?true" + "name": "peer", + "type": "InputPeer" }, { - "name": "groups_only", - "type": "flags.2?true" + "name": "q", + "type": "string" }, { - "name": "users_only", - "type": "flags.3?true" + "name": "from_id", + "type": "flags.0?InputPeer" }, { - "name": "folder_id", - "type": "flags.0?int" + "name": "saved_peer_id", + "type": "flags.2?InputPeer" }, { - "name": "q", - "type": "string" + "name": "saved_reaction", + "type": "flags.3?Vector" + }, + { + "name": "top_msg_id", + "type": "flags.1?int" }, { "name": "filter", @@ -29735,174 +30084,147 @@ "type": "int" }, { - "name": "offset_rate", + "name": "offset_id", "type": "int" }, { - "name": "offset_peer", - "type": "InputPeer" + "name": "add_offset", + "type": "int" }, { - "name": "offset_id", + "name": "limit", "type": "int" }, { - "name": "limit", + "name": "max_id", + "type": "int" + }, + { + "name": "min_id", "type": "int" + }, + { + "name": "hash", + "type": "long" } ], "type": "messages.Messages" }, { - "id": "2016638777", - "method": "messages.reorderStickerSets", + "id": "238054714", + "method": "messages.readHistory", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "masks", - "type": "flags.0?true" + "name": "peer", + "type": "InputPeer" }, { - "name": "emojis", - "type": "flags.1?true" - }, - { - "name": "order", - "type": "Vector" - } - ], - "type": "Bool" - }, - { - "id": "-1309538785", - "method": "messages.getDocumentByHash", - "params": [ - { - "name": "sha256", - "type": "bytes" - }, - { - "name": "size", - "type": "long" - }, - { - "name": "mime_type", - "type": "string" - } - ], - "type": "Document" - }, - { - "id": "1559270965", - "method": "messages.getSavedGifs", - "params": [ - { - "name": "hash", - "type": "long" - } - ], - "type": "messages.SavedGifs" - }, - { - "id": "846868683", - "method": "messages.saveGif", - "params": [ - { - "name": "id", - "type": "InputDocument" - }, - { - "name": "unsave", - "type": "Bool" + "name": "max_id", + "type": "int" } ], - "type": "Bool" + "type": "messages.AffectedMessages" }, { - "id": "1364105629", - "method": "messages.getInlineBotResults", + "id": "-1332768214", + "method": "messages.deleteHistory", "params": [ { "name": "flags", "type": "#" }, { - "name": "bot", - "type": "InputUser" + "name": "just_clear", + "type": "flags.0?true" + }, + { + "name": "revoke", + "type": "flags.1?true" }, { "name": "peer", "type": "InputPeer" }, { - "name": "geo_point", - "type": "flags.0?InputGeoPoint" + "name": "max_id", + "type": "int" }, { - "name": "query", - "type": "string" + "name": "min_date", + "type": "flags.2?int" }, { - "name": "offset", - "type": "string" + "name": "max_date", + "type": "flags.3?int" } ], - "type": "messages.BotResults" + "type": "messages.AffectedHistory" }, { - "id": "-1156406247", - "method": "messages.setInlineBotResults", + "id": "-443640366", + "method": "messages.deleteMessages", "params": [ { "name": "flags", "type": "#" }, { - "name": "gallery", + "name": "revoke", "type": "flags.0?true" }, { - "name": "private", - "type": "flags.1?true" - }, - { - "name": "query_id", - "type": "long" - }, - { - "name": "results", - "type": "Vector" - }, + "name": "id", + "type": "Vector" + } + ], + "type": "messages.AffectedMessages" + }, + { + "id": "94983360", + "method": "messages.receivedMessages", + "params": [ { - "name": "cache_time", + "name": "max_id", "type": "int" + } + ], + "type": "Vector" + }, + { + "id": "1486110434", + "method": "messages.setTyping", + "params": [ + { + "name": "flags", + "type": "#" }, { - "name": "next_offset", - "type": "flags.2?string" + "name": "peer", + "type": "InputPeer" }, { - "name": "switch_pm", - "type": "flags.3?InlineBotSwitchPM" + "name": "top_msg_id", + "type": "flags.0?int" }, { - "name": "switch_webview", - "type": "flags.4?InlineBotWebView" + "name": "action", + "type": "SendMessageAction" } ], "type": "Bool" }, { - "id": "1052698730", - "method": "messages.sendInlineBotResult", + "id": "-33170278", + "method": "messages.sendMessage", "params": [ { "name": "flags", "type": "#" }, + { + "name": "no_webpage", + "type": "flags.1?true" + }, { "name": "silent", "type": "flags.5?true" @@ -29916,8 +30238,20 @@ "type": "flags.7?true" }, { - "name": "hide_via", - "type": "flags.11?true" + "name": "noforwards", + "type": "flags.14?true" + }, + { + "name": "update_stickersets_order", + "type": "flags.15?true" + }, + { + "name": "invert_media", + "type": "flags.16?true" + }, + { + "name": "allow_paid_floodskip", + "type": "flags.19?true" }, { "name": "peer", @@ -29927,17 +30261,21 @@ "name": "reply_to", "type": "flags.0?InputReplyTo" }, + { + "name": "message", + "type": "string" + }, { "name": "random_id", "type": "long" }, { - "name": "query_id", - "type": "long" + "name": "reply_markup", + "type": "flags.2?ReplyMarkup" }, { - "name": "id", - "type": "string" + "name": "entities", + "type": "flags.3?Vector" }, { "name": "schedule_date", @@ -29950,144 +30288,77 @@ { "name": "quick_reply_shortcut", "type": "flags.17?InputQuickReplyShortcut" - } - ], - "type": "Updates" - }, - { - "id": "-432034325", - "method": "channels.exportMessageLink", - "params": [ - { - "name": "flags", - "type": "#" - }, - { - "name": "grouped", - "type": "flags.0?true" - }, - { - "name": "thread", - "type": "flags.1?true" - }, - { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "id", - "type": "int" - } - ], - "type": "ExportedMessageLink" - }, - { - "id": "1099781276", - "method": "channels.toggleSignatures", - "params": [ - { - "name": "flags", - "type": "#" }, { - "name": "signatures_enabled", - "type": "flags.0?true" + "name": "effect", + "type": "flags.18?long" }, { - "name": "profiles_enabled", - "type": "flags.1?true" + "name": "allow_paid_stars", + "type": "flags.21?long" }, { - "name": "channel", - "type": "InputChannel" + "name": "suggested_post", + "type": "flags.22?SuggestedPost" } ], "type": "Updates" }, { - "id": "-890997469", - "method": "auth.resendCode", + "id": "-1403659839", + "method": "messages.sendMedia", "params": [ { "name": "flags", "type": "#" }, { - "name": "phone_number", - "type": "string" - }, - { - "name": "phone_code_hash", - "type": "string" + "name": "silent", + "type": "flags.5?true" }, { - "name": "reason", - "type": "flags.0?string" - } - ], - "type": "auth.SentCode" - }, - { - "id": "520357240", - "method": "auth.cancelCode", - "params": [ - { - "name": "phone_number", - "type": "string" + "name": "background", + "type": "flags.6?true" }, { - "name": "phone_code_hash", - "type": "string" - } - ], - "type": "Bool" - }, - { - "id": "-39416522", - "method": "messages.getMessageEditData", - "params": [ - { - "name": "peer", - "type": "InputPeer" + "name": "clear_draft", + "type": "flags.7?true" }, { - "name": "id", - "type": "int" - } - ], - "type": "messages.MessageEditData" - }, - { - "id": "-539934715", - "method": "messages.editMessage", - "params": [ - { - "name": "flags", - "type": "#" + "name": "noforwards", + "type": "flags.14?true" }, { - "name": "no_webpage", - "type": "flags.1?true" + "name": "update_stickersets_order", + "type": "flags.15?true" }, { "name": "invert_media", "type": "flags.16?true" }, + { + "name": "allow_paid_floodskip", + "type": "flags.19?true" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "id", - "type": "int" + "name": "reply_to", + "type": "flags.0?InputReplyTo" + }, + { + "name": "media", + "type": "InputMedia" }, { "name": "message", - "type": "flags.11?string" + "type": "string" }, { - "name": "media", - "type": "flags.14?InputMedia" + "name": "random_id", + "type": "long" }, { "name": "reply_markup", @@ -30099,183 +30370,122 @@ }, { "name": "schedule_date", - "type": "flags.15?int" - }, - { - "name": "quick_reply_shortcut_id", - "type": "flags.17?int" - } - ], - "type": "Updates" - }, - { - "id": "-2091549254", - "method": "messages.editInlineBotMessage", - "params": [ - { - "name": "flags", - "type": "#" - }, - { - "name": "no_webpage", - "type": "flags.1?true" - }, - { - "name": "invert_media", - "type": "flags.16?true" + "type": "flags.10?int" }, { - "name": "id", - "type": "InputBotInlineMessageID" + "name": "send_as", + "type": "flags.13?InputPeer" }, { - "name": "message", - "type": "flags.11?string" + "name": "quick_reply_shortcut", + "type": "flags.17?InputQuickReplyShortcut" }, { - "name": "media", - "type": "flags.14?InputMedia" + "name": "effect", + "type": "flags.18?long" }, { - "name": "reply_markup", - "type": "flags.2?ReplyMarkup" + "name": "allow_paid_stars", + "type": "flags.21?long" }, { - "name": "entities", - "type": "flags.3?Vector" + "name": "suggested_post", + "type": "flags.22?SuggestedPost" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-1824339449", - "method": "messages.getBotCallbackAnswer", + "id": "-1752618806", + "method": "messages.forwardMessages", "params": [ { "name": "flags", "type": "#" }, { - "name": "game", - "type": "flags.1?true" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "msg_id", - "type": "int" - }, - { - "name": "data", - "type": "flags.0?bytes" + "name": "silent", + "type": "flags.5?true" }, { - "name": "password", - "type": "flags.2?InputCheckPasswordSRP" - } - ], - "type": "messages.BotCallbackAnswer" - }, - { - "id": "-712043766", - "method": "messages.setBotCallbackAnswer", - "params": [ - { - "name": "flags", - "type": "#" + "name": "background", + "type": "flags.6?true" }, { - "name": "alert", - "type": "flags.1?true" + "name": "with_my_score", + "type": "flags.8?true" }, { - "name": "query_id", - "type": "long" + "name": "drop_author", + "type": "flags.11?true" }, { - "name": "message", - "type": "flags.0?string" + "name": "drop_media_captions", + "type": "flags.12?true" }, { - "name": "url", - "type": "flags.2?string" + "name": "noforwards", + "type": "flags.14?true" }, { - "name": "cache_time", - "type": "int" - } - ], - "type": "Bool" - }, - { - "id": "-1758168906", - "method": "contacts.getTopPeers", - "params": [ - { - "name": "flags", - "type": "#" + "name": "allow_paid_floodskip", + "type": "flags.19?true" }, { - "name": "correspondents", - "type": "flags.0?true" + "name": "from_peer", + "type": "InputPeer" }, { - "name": "bots_pm", - "type": "flags.1?true" + "name": "id", + "type": "Vector" }, { - "name": "bots_inline", - "type": "flags.2?true" + "name": "random_id", + "type": "Vector" }, { - "name": "phone_calls", - "type": "flags.3?true" + "name": "to_peer", + "type": "InputPeer" }, { - "name": "forward_users", - "type": "flags.4?true" + "name": "top_msg_id", + "type": "flags.9?int" }, { - "name": "forward_chats", - "type": "flags.5?true" + "name": "reply_to", + "type": "flags.22?InputReplyTo" }, { - "name": "groups", - "type": "flags.10?true" + "name": "schedule_date", + "type": "flags.10?int" }, { - "name": "channels", - "type": "flags.15?true" + "name": "send_as", + "type": "flags.13?InputPeer" }, { - "name": "bots_app", - "type": "flags.16?true" + "name": "quick_reply_shortcut", + "type": "flags.17?InputQuickReplyShortcut" }, { - "name": "offset", - "type": "int" + "name": "video_timestamp", + "type": "flags.20?int" }, { - "name": "limit", - "type": "int" + "name": "allow_paid_stars", + "type": "flags.21?long" }, { - "name": "hash", - "type": "long" + "name": "suggested_post", + "type": "flags.23?SuggestedPost" } ], - "type": "contacts.TopPeers" + "type": "Updates" }, { - "id": "451113900", - "method": "contacts.resetTopPeerRating", + "id": "-820669733", + "method": "messages.reportSpam", "params": [ - { - "name": "category", - "type": "TopPeerCategory" - }, { "name": "peer", "type": "InputPeer" @@ -30284,3105 +30494,6232 @@ "type": "Bool" }, { - "id": "-462373635", - "method": "messages.getPeerDialogs", + "id": "-270948702", + "method": "messages.getPeerSettings", "params": [ { - "name": "peers", - "type": "Vector" + "name": "peer", + "type": "InputPeer" } ], - "type": "messages.PeerDialogs" + "type": "messages.PeerSettings" }, { - "id": "-747452978", - "method": "messages.saveDraft", + "id": "-59199589", + "method": "messages.report", "params": [ - { - "name": "flags", - "type": "#" - }, - { - "name": "no_webpage", - "type": "flags.1?true" - }, - { - "name": "invert_media", - "type": "flags.6?true" - }, - { - "name": "reply_to", - "type": "flags.4?InputReplyTo" - }, { "name": "peer", "type": "InputPeer" }, { - "name": "message", - "type": "string" - }, - { - "name": "entities", - "type": "flags.3?Vector" + "name": "id", + "type": "Vector" }, { - "name": "media", - "type": "flags.5?InputMedia" + "name": "option", + "type": "bytes" }, { - "name": "effect", - "type": "flags.7?long" + "name": "message", + "type": "string" } ], - "type": "Bool" - }, - { - "id": "1782549861", - "method": "messages.getAllDrafts", - "params": [], - "type": "Updates" + "type": "ReportResult" }, { - "id": "1685588756", - "method": "messages.getFeaturedStickers", + "id": "1240027791", + "method": "messages.getChats", "params": [ { - "name": "hash", - "type": "long" + "name": "id", + "type": "Vector" } ], - "type": "messages.FeaturedStickers" + "type": "messages.Chats" }, { - "id": "1527873830", - "method": "messages.readFeaturedStickers", + "id": "-1364194508", + "method": "messages.getFullChat", "params": [ { - "name": "id", - "type": "Vector" + "name": "chat_id", + "type": "long" } ], - "type": "Bool" + "type": "messages.ChatFull" }, { - "id": "-1649852357", - "method": "messages.getRecentStickers", + "id": "1937260541", + "method": "messages.editChatTitle", "params": [ { - "name": "flags", - "type": "#" + "name": "chat_id", + "type": "long" }, { - "name": "attached", - "type": "flags.0?true" + "name": "title", + "type": "string" + } + ], + "type": "Updates" + }, + { + "id": "903730804", + "method": "messages.editChatPhoto", + "params": [ + { + "name": "chat_id", + "type": "long" }, { - "name": "hash", + "name": "photo", + "type": "InputChatPhoto" + } + ], + "type": "Updates" + }, + { + "id": "-876162809", + "method": "messages.addChatUser", + "params": [ + { + "name": "chat_id", "type": "long" + }, + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "fwd_limit", + "type": "int" } ], - "type": "messages.RecentStickers" + "type": "messages.InvitedUsers" }, { - "id": "958863608", - "method": "messages.saveRecentSticker", + "id": "-1575461717", + "method": "messages.deleteChatUser", "params": [ { "name": "flags", "type": "#" }, { - "name": "attached", + "name": "revoke_history", "type": "flags.0?true" }, { - "name": "id", - "type": "InputDocument" + "name": "chat_id", + "type": "long" }, { - "name": "unsave", - "type": "Bool" + "name": "user_id", + "type": "InputUser" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-1986437075", - "method": "messages.clearRecentStickers", + "id": "-1831936556", + "method": "messages.createChat", "params": [ { "name": "flags", "type": "#" }, { - "name": "attached", - "type": "flags.0?true" + "name": "users", + "type": "Vector" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "ttl_period", + "type": "flags.0?int" } ], - "type": "Bool" + "type": "messages.InvitedUsers" }, { - "id": "1475442322", - "method": "messages.getArchivedStickers", + "id": "-304838614", + "method": "updates.getState", + "params": [], + "type": "updates.State" + }, + { + "id": "432207715", + "method": "updates.getDifference", "params": [ { "name": "flags", "type": "#" }, { - "name": "masks", - "type": "flags.0?true" + "name": "pts", + "type": "int" }, { - "name": "emojis", - "type": "flags.1?true" + "name": "pts_limit", + "type": "flags.1?int" }, { - "name": "offset_id", - "type": "long" + "name": "pts_total_limit", + "type": "flags.0?int" }, { - "name": "limit", + "name": "date", "type": "int" - } - ], - "type": "messages.ArchivedStickers" - }, - { - "id": "457157256", - "method": "account.sendConfirmPhoneCode", - "params": [ + }, { - "name": "hash", - "type": "string" + "name": "qts", + "type": "int" }, { - "name": "settings", - "type": "CodeSettings" + "name": "qts_limit", + "type": "flags.2?int" } ], - "type": "auth.SentCode" + "type": "updates.Difference" }, { - "id": "1596029123", - "method": "account.confirmPhone", + "id": "166207545", + "method": "photos.updateProfilePhoto", "params": [ { - "name": "phone_code_hash", - "type": "string" + "name": "flags", + "type": "#" }, { - "name": "phone_code", - "type": "string" + "name": "fallback", + "type": "flags.0?true" + }, + { + "name": "bot", + "type": "flags.1?InputUser" + }, + { + "name": "id", + "type": "InputPhoto" } ], - "type": "Bool" + "type": "photos.Photo" }, { - "id": "-122669393", - "method": "channels.getAdminedPublicChannels", + "id": "59286453", + "method": "photos.uploadProfilePhoto", "params": [ { "name": "flags", "type": "#" }, { - "name": "by_location", - "type": "flags.0?true" + "name": "fallback", + "type": "flags.3?true" }, { - "name": "check_limit", - "type": "flags.1?true" + "name": "bot", + "type": "flags.5?InputUser" }, { - "name": "for_personal", - "type": "flags.2?true" - } - ], - "type": "messages.Chats" - }, - { - "id": "1678738104", - "method": "messages.getMaskStickers", - "params": [ + "name": "file", + "type": "flags.0?InputFile" + }, { - "name": "hash", - "type": "long" + "name": "video", + "type": "flags.1?InputFile" + }, + { + "name": "video_start_ts", + "type": "flags.2?double" + }, + { + "name": "video_emoji_markup", + "type": "flags.4?VideoSize" } ], - "type": "messages.AllStickers" + "type": "photos.Photo" }, { - "id": "-866424884", - "method": "messages.getAttachedStickers", + "id": "-2016444625", + "method": "photos.deletePhotos", "params": [ { - "name": "media", - "type": "InputStickeredMedia" + "name": "id", + "type": "Vector" } ], - "type": "Vector" + "type": "Vector" }, { - "id": "-1907842680", - "method": "auth.dropTempAuthKeys", + "id": "-1291540959", + "method": "upload.saveFilePart", "params": [ { - "name": "except_auth_keys", - "type": "Vector" + "name": "file_id", + "type": "long" + }, + { + "name": "file_part", + "type": "int" + }, + { + "name": "bytes", + "type": "bytes" } ], "type": "Bool" }, { - "id": "-1896289088", - "method": "messages.setGameScore", + "id": "-1101843010", + "method": "upload.getFile", "params": [ { "name": "flags", "type": "#" }, { - "name": "edit_message", + "name": "precise", "type": "flags.0?true" }, { - "name": "force", + "name": "cdn_supported", "type": "flags.1?true" }, { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "int" + "name": "location", + "type": "InputFileLocation" }, { - "name": "user_id", - "type": "InputUser" + "name": "offset", + "type": "long" }, { - "name": "score", + "name": "limit", "type": "int" } ], - "type": "Updates" + "type": "upload.File" }, { - "id": "363700068", - "method": "messages.setInlineGameScore", + "id": "-990308245", + "method": "help.getConfig", + "params": [], + "type": "Config" + }, + { + "id": "531836966", + "method": "help.getNearestDc", + "params": [], + "type": "NearestDc" + }, + { + "id": "1378703997", + "method": "help.getAppUpdate", "params": [ { - "name": "flags", - "type": "#" - }, + "name": "source", + "type": "string" + } + ], + "type": "help.AppUpdate" + }, + { + "id": "1295590211", + "method": "help.getInviteText", + "params": [], + "type": "help.InviteText" + }, + { + "id": "-1848823128", + "method": "photos.getUserPhotos", + "params": [ { - "name": "edit_message", - "type": "flags.0?true" + "name": "user_id", + "type": "InputUser" }, { - "name": "force", - "type": "flags.1?true" + "name": "offset", + "type": "int" }, { - "name": "id", - "type": "InputBotInlineMessageID" + "name": "max_id", + "type": "long" }, { - "name": "user_id", - "type": "InputUser" + "name": "limit", + "type": "int" + } + ], + "type": "photos.Photos" + }, + { + "id": "651135312", + "method": "messages.getDhConfig", + "params": [ + { + "name": "version", + "type": "int" }, { - "name": "score", + "name": "random_length", "type": "int" } ], - "type": "Bool" + "type": "messages.DhConfig" }, { - "id": "-400399203", - "method": "messages.getGameHighScores", + "id": "-162681021", + "method": "messages.requestEncryption", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "user_id", + "type": "InputUser" }, { - "name": "id", + "name": "random_id", "type": "int" }, { - "name": "user_id", - "type": "InputUser" + "name": "g_a", + "type": "bytes" } ], - "type": "messages.HighScores" + "type": "EncryptedChat" }, { - "id": "258170395", - "method": "messages.getInlineGameHighScores", + "id": "1035731989", + "method": "messages.acceptEncryption", "params": [ { - "name": "id", - "type": "InputBotInlineMessageID" + "name": "peer", + "type": "InputEncryptedChat" }, { - "name": "user_id", - "type": "InputUser" + "name": "g_b", + "type": "bytes" + }, + { + "name": "key_fingerprint", + "type": "long" } ], - "type": "messages.HighScores" + "type": "EncryptedChat" }, { - "id": "-468934396", - "method": "messages.getCommonChats", + "id": "-208425312", + "method": "messages.discardEncryption", "params": [ { - "name": "user_id", - "type": "InputUser" + "name": "flags", + "type": "#" }, { - "name": "max_id", - "type": "long" + "name": "delete_history", + "type": "flags.0?true" }, { - "name": "limit", + "name": "chat_id", "type": "int" } ], - "type": "messages.Chats" + "type": "Bool" }, { - "id": "-333262899", - "method": "help.setBotUpdatesStatus", + "id": "2031374829", + "method": "messages.setEncryptedTyping", "params": [ { - "name": "pending_updates_count", - "type": "int" + "name": "peer", + "type": "InputEncryptedChat" }, { - "name": "message", - "type": "string" + "name": "typing", + "type": "Bool" } ], "type": "Bool" }, { - "id": "-1919511901", - "method": "messages.getWebPage", + "id": "2135648522", + "method": "messages.readEncryptedHistory", "params": [ { - "name": "url", - "type": "string" + "name": "peer", + "type": "InputEncryptedChat" }, { - "name": "hash", + "name": "max_date", "type": "int" } ], - "type": "messages.WebPage" + "type": "Bool" }, { - "id": "-1489903017", - "method": "messages.toggleDialogPin", + "id": "1157265941", + "method": "messages.sendEncrypted", "params": [ { "name": "flags", "type": "#" }, { - "name": "pinned", + "name": "silent", "type": "flags.0?true" }, { "name": "peer", - "type": "InputDialogPeer" + "type": "InputEncryptedChat" + }, + { + "name": "random_id", + "type": "long" + }, + { + "name": "data", + "type": "bytes" } ], - "type": "Bool" + "type": "messages.SentEncryptedMessage" }, { - "id": "991616823", - "method": "messages.reorderPinnedDialogs", + "id": "1431914525", + "method": "messages.sendEncryptedFile", "params": [ { "name": "flags", "type": "#" }, { - "name": "force", + "name": "silent", "type": "flags.0?true" }, { - "name": "folder_id", - "type": "int" + "name": "peer", + "type": "InputEncryptedChat" }, { - "name": "order", - "type": "Vector" + "name": "random_id", + "type": "long" + }, + { + "name": "data", + "type": "bytes" + }, + { + "name": "file", + "type": "InputEncryptedFile" } ], - "type": "Bool" + "type": "messages.SentEncryptedMessage" }, { - "id": "-692498958", - "method": "messages.getPinnedDialogs", + "id": "852769188", + "method": "messages.sendEncryptedService", "params": [ { - "name": "folder_id", - "type": "int" + "name": "peer", + "type": "InputEncryptedChat" + }, + { + "name": "random_id", + "type": "long" + }, + { + "name": "data", + "type": "bytes" } ], - "type": "messages.PeerDialogs" + "type": "messages.SentEncryptedMessage" }, { - "id": "-1440257555", - "method": "bots.sendCustomRequest", + "id": "1436924774", + "method": "messages.receivedQueue", "params": [ { - "name": "custom_method", - "type": "string" - }, - { - "name": "params", - "type": "DataJSON" + "name": "max_qts", + "type": "int" } ], - "type": "DataJSON" + "type": "Vector" }, { - "id": "-434028723", - "method": "bots.answerWebhookJSONQuery", + "id": "1259113487", + "method": "messages.reportEncryptedSpam", "params": [ { - "name": "query_id", - "type": "long" - }, - { - "name": "data", - "type": "DataJSON" + "name": "peer", + "type": "InputEncryptedChat" } ], "type": "Bool" }, { - "id": "619086221", - "method": "upload.getWebFile", + "id": "-562337987", + "method": "upload.saveBigFilePart", "params": [ { - "name": "location", - "type": "InputWebFileLocation" + "name": "file_id", + "type": "long" }, { - "name": "offset", + "name": "file_part", "type": "int" }, { - "name": "limit", + "name": "file_total_parts", "type": "int" + }, + { + "name": "bytes", + "type": "bytes" } ], - "type": "upload.WebFile" + "type": "Bool" }, { - "id": "924093883", - "method": "payments.getPaymentForm", + "id": "-1043505495", + "method": "initConnection", "params": [ { "name": "flags", "type": "#" }, { - "name": "invoice", - "type": "InputInvoice" + "name": "api_id", + "type": "int" }, { - "name": "theme_params", - "type": "flags.0?DataJSON" - } - ], - "type": "payments.PaymentForm" - }, - { - "id": "611897804", - "method": "payments.getPaymentReceipt", - "params": [ - { - "name": "peer", - "type": "InputPeer" + "name": "device_model", + "type": "string" }, { - "name": "msg_id", + "name": "system_version", + "type": "string" + }, + { + "name": "app_version", + "type": "string" + }, + { + "name": "system_lang_code", + "type": "string" + }, + { + "name": "lang_pack", + "type": "string" + }, + { + "name": "lang_code", + "type": "string" + }, + { + "name": "proxy", + "type": "flags.0?InputClientProxy" + }, + { + "name": "params", + "type": "flags.1?JSONValue" + }, + { + "name": "query", + "type": "!X" + } + ], + "type": "X" + }, + { + "id": "-1663104819", + "method": "help.getSupport", + "params": [], + "type": "help.Support" + }, + { + "id": "916930423", + "method": "messages.readMessageContents", + "params": [ + { + "name": "id", + "type": "Vector" + } + ], + "type": "messages.AffectedMessages" + }, + { + "id": "655677548", + "method": "account.checkUsername", + "params": [ + { + "name": "username", + "type": "string" + } + ], + "type": "Bool" + }, + { + "id": "1040964988", + "method": "account.updateUsername", + "params": [ + { + "name": "username", + "type": "string" + } + ], + "type": "User" + }, + { + "id": "301470424", + "method": "contacts.search", + "params": [ + { + "name": "q", + "type": "string" + }, + { + "name": "limit", + "type": "int" + } + ], + "type": "contacts.Found" + }, + { + "id": "-623130288", + "method": "account.getPrivacy", + "params": [ + { + "name": "key", + "type": "InputPrivacyKey" + } + ], + "type": "account.PrivacyRules" + }, + { + "id": "-906486552", + "method": "account.setPrivacy", + "params": [ + { + "name": "key", + "type": "InputPrivacyKey" + }, + { + "name": "rules", + "type": "Vector" + } + ], + "type": "account.PrivacyRules" + }, + { + "id": "-1564422284", + "method": "account.deleteAccount", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "reason", + "type": "string" + }, + { + "name": "password", + "type": "flags.0?InputCheckPasswordSRP" + } + ], + "type": "Bool" + }, + { + "id": "150761757", + "method": "account.getAccountTTL", + "params": [], + "type": "AccountDaysTTL" + }, + { + "id": "608323678", + "method": "account.setAccountTTL", + "params": [ + { + "name": "ttl", + "type": "AccountDaysTTL" + } + ], + "type": "Bool" + }, + { + "id": "-627372787", + "method": "invokeWithLayer", + "params": [ + { + "name": "layer", + "type": "int" + }, + { + "name": "query", + "type": "!X" + } + ], + "type": "X" + }, + { + "id": "1918565308", + "method": "contacts.resolveUsername", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "username", + "type": "string" + }, + { + "name": "referer", + "type": "flags.0?string" + } + ], + "type": "contacts.ResolvedPeer" + }, + { + "id": "-2108208411", + "method": "account.sendChangePhoneCode", + "params": [ + { + "name": "phone_number", + "type": "string" + }, + { + "name": "settings", + "type": "CodeSettings" + } + ], + "type": "auth.SentCode" + }, + { + "id": "1891839707", + "method": "account.changePhone", + "params": [ + { + "name": "phone_number", + "type": "string" + }, + { + "name": "phone_code_hash", + "type": "string" + }, + { + "name": "phone_code", + "type": "string" + } + ], + "type": "User" + }, + { + "id": "-710552671", + "method": "messages.getStickers", + "params": [ + { + "name": "emoticon", + "type": "string" + }, + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.Stickers" + }, + { + "id": "-1197432408", + "method": "messages.getAllStickers", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.AllStickers" + }, + { + "id": "954152242", + "method": "account.updateDeviceLocked", + "params": [ + { + "name": "period", + "type": "int" + } + ], + "type": "Bool" + }, + { + "id": "1738800940", + "method": "auth.importBotAuthorization", + "params": [ + { + "name": "flags", + "type": "int" + }, + { + "name": "api_id", + "type": "int" + }, + { + "name": "api_hash", + "type": "string" + }, + { + "name": "bot_auth_token", + "type": "string" + } + ], + "type": "auth.Authorization" + }, + { + "id": "1460498287", + "method": "messages.getWebPagePreview", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "message", + "type": "string" + }, + { + "name": "entities", + "type": "flags.3?Vector" + } + ], + "type": "messages.WebPagePreview" + }, + { + "id": "-484392616", + "method": "account.getAuthorizations", + "params": [], + "type": "account.Authorizations" + }, + { + "id": "-545786948", + "method": "account.resetAuthorization", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "Bool" + }, + { + "id": "1418342645", + "method": "account.getPassword", + "params": [], + "type": "account.Password" + }, + { + "id": "-1663767815", + "method": "account.getPasswordSettings", + "params": [ + { + "name": "password", + "type": "InputCheckPasswordSRP" + } + ], + "type": "account.PasswordSettings" + }, + { + "id": "-1516564433", + "method": "account.updatePasswordSettings", + "params": [ + { + "name": "password", + "type": "InputCheckPasswordSRP" + }, + { + "name": "new_settings", + "type": "account.PasswordInputSettings" + } + ], + "type": "Bool" + }, + { + "id": "-779399914", + "method": "auth.checkPassword", + "params": [ + { + "name": "password", + "type": "InputCheckPasswordSRP" + } + ], + "type": "auth.Authorization" + }, + { + "id": "-661144474", + "method": "auth.requestPasswordRecovery", + "params": [], + "type": "auth.PasswordRecovery" + }, + { + "id": "923364464", + "method": "auth.recoverPassword", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "code", + "type": "string" + }, + { + "name": "new_settings", + "type": "flags.0?account.PasswordInputSettings" + } + ], + "type": "auth.Authorization" + }, + { + "id": "-1080796745", + "method": "invokeWithoutUpdates", + "params": [ + { + "name": "query", + "type": "!X" + } + ], + "type": "X" + }, + { + "id": "-1537876336", + "method": "messages.exportChatInvite", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "legacy_revoke_permanent", + "type": "flags.2?true" + }, + { + "name": "request_needed", + "type": "flags.3?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "expire_date", + "type": "flags.0?int" + }, + { + "name": "usage_limit", + "type": "flags.1?int" + }, + { + "name": "title", + "type": "flags.4?string" + }, + { + "name": "subscription_pricing", + "type": "flags.5?StarsSubscriptionPricing" + } + ], + "type": "ExportedChatInvite" + }, + { + "id": "1051570619", + "method": "messages.checkChatInvite", + "params": [ + { + "name": "hash", + "type": "string" + } + ], + "type": "ChatInvite" + }, + { + "id": "1817183516", + "method": "messages.importChatInvite", + "params": [ + { + "name": "hash", + "type": "string" + } + ], + "type": "Updates" + }, + { + "id": "-928977804", + "method": "messages.getStickerSet", + "params": [ + { + "name": "stickerset", + "type": "InputStickerSet" + }, + { + "name": "hash", + "type": "int" + } + ], + "type": "messages.StickerSet" + }, + { + "id": "-946871200", + "method": "messages.installStickerSet", + "params": [ + { + "name": "stickerset", + "type": "InputStickerSet" + }, + { + "name": "archived", + "type": "Bool" + } + ], + "type": "messages.StickerSetInstallResult" + }, + { + "id": "-110209570", + "method": "messages.uninstallStickerSet", + "params": [ + { + "name": "stickerset", + "type": "InputStickerSet" + } + ], + "type": "Bool" + }, + { + "id": "-421563528", + "method": "messages.startBot", + "params": [ + { + "name": "bot", + "type": "InputUser" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "random_id", + "type": "long" + }, + { + "name": "start_param", + "type": "string" + } + ], + "type": "Updates" + }, + { + "id": "1468322785", + "method": "messages.getMessagesViews", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "Vector" + }, + { + "name": "increment", + "type": "Bool" + } + ], + "type": "messages.MessageViews" + }, + { + "id": "-871347913", + "method": "channels.readHistory", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "max_id", + "type": "int" + } + ], + "type": "Bool" + }, + { + "id": "-2067661490", + "method": "channels.deleteMessages", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "id", + "type": "Vector" + } + ], + "type": "messages.AffectedMessages" + }, + { + "id": "-196443371", + "method": "channels.reportSpam", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "participant", + "type": "InputPeer" + }, + { + "name": "id", + "type": "Vector" + } + ], + "type": "Bool" + }, + { + "id": "-1383294429", + "method": "channels.getMessages", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "id", + "type": "Vector" + } + ], + "type": "messages.Messages" + }, + { + "id": "2010044880", + "method": "channels.getParticipants", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "filter", + "type": "ChannelParticipantsFilter" + }, + { + "name": "offset", + "type": "int" + }, + { + "name": "limit", + "type": "int" + }, + { + "name": "hash", + "type": "long" + } + ], + "type": "channels.ChannelParticipants" + }, + { + "id": "-1599378234", + "method": "channels.getParticipant", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "participant", + "type": "InputPeer" + } + ], + "type": "channels.ChannelParticipant" + }, + { + "id": "176122811", + "method": "channels.getChannels", + "params": [ + { + "name": "id", + "type": "Vector" + } + ], + "type": "messages.Chats" + }, + { + "id": "141781513", + "method": "channels.getFullChannel", + "params": [ + { + "name": "channel", + "type": "InputChannel" + } + ], + "type": "messages.ChatFull" + }, + { + "id": "-1862244601", + "method": "channels.createChannel", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "broadcast", + "type": "flags.0?true" + }, + { + "name": "megagroup", + "type": "flags.1?true" + }, + { + "name": "for_import", + "type": "flags.3?true" + }, + { + "name": "forum", + "type": "flags.5?true" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "about", + "type": "string" + }, + { + "name": "geo_point", + "type": "flags.2?InputGeoPoint" + }, + { + "name": "address", + "type": "flags.2?string" + }, + { + "name": "ttl_period", + "type": "flags.4?int" + } + ], + "type": "Updates" + }, + { + "id": "-751007486", + "method": "channels.editAdmin", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "admin_rights", + "type": "ChatAdminRights" + }, + { + "name": "rank", + "type": "string" + } + ], + "type": "Updates" + }, + { + "id": "1450044624", + "method": "channels.editTitle", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "title", + "type": "string" + } + ], + "type": "Updates" + }, + { + "id": "-248621111", + "method": "channels.editPhoto", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "photo", + "type": "InputChatPhoto" + } + ], + "type": "Updates" + }, + { + "id": "283557164", + "method": "channels.checkUsername", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "username", + "type": "string" + } + ], + "type": "Bool" + }, + { + "id": "890549214", + "method": "channels.updateUsername", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "username", + "type": "string" + } + ], + "type": "Bool" + }, + { + "id": "615851205", + "method": "channels.joinChannel", + "params": [ + { + "name": "channel", + "type": "InputChannel" + } + ], + "type": "Updates" + }, + { + "id": "-130635115", + "method": "channels.leaveChannel", + "params": [ + { + "name": "channel", + "type": "InputChannel" + } + ], + "type": "Updates" + }, + { + "id": "-907854508", + "method": "channels.inviteToChannel", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "users", + "type": "Vector" + } + ], + "type": "messages.InvitedUsers" + }, + { + "id": "-1072619549", + "method": "channels.deleteChannel", + "params": [ + { + "name": "channel", + "type": "InputChannel" + } + ], + "type": "Updates" + }, + { + "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": "-1470377534", + "method": "messages.editChatAdmin", + "params": [ + { + "name": "chat_id", + "type": "long" + }, + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "is_admin", + "type": "Bool" + } + ], + "type": "Bool" + }, + { + "id": "-1568189671", + "method": "messages.migrateChat", + "params": [ + { + "name": "chat_id", + "type": "long" + } + ], + "type": "Updates" + }, + { + "id": "1271290010", + "method": "messages.searchGlobal", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "broadcasts_only", + "type": "flags.1?true" + }, + { + "name": "groups_only", + "type": "flags.2?true" + }, + { + "name": "users_only", + "type": "flags.3?true" + }, + { + "name": "folder_id", + "type": "flags.0?int" + }, + { + "name": "q", + "type": "string" + }, + { + "name": "filter", + "type": "MessagesFilter" + }, + { + "name": "min_date", + "type": "int" + }, + { + "name": "max_date", + "type": "int" + }, + { + "name": "offset_rate", + "type": "int" + }, + { + "name": "offset_peer", + "type": "InputPeer" + }, + { + "name": "offset_id", + "type": "int" + }, + { + "name": "limit", + "type": "int" + } + ], + "type": "messages.Messages" + }, + { + "id": "2016638777", + "method": "messages.reorderStickerSets", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "masks", + "type": "flags.0?true" + }, + { + "name": "emojis", + "type": "flags.1?true" + }, + { + "name": "order", + "type": "Vector" + } + ], + "type": "Bool" + }, + { + "id": "-1309538785", + "method": "messages.getDocumentByHash", + "params": [ + { + "name": "sha256", + "type": "bytes" + }, + { + "name": "size", + "type": "long" + }, + { + "name": "mime_type", + "type": "string" + } + ], + "type": "Document" + }, + { + "id": "1559270965", + "method": "messages.getSavedGifs", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.SavedGifs" + }, + { + "id": "846868683", + "method": "messages.saveGif", + "params": [ + { + "name": "id", + "type": "InputDocument" + }, + { + "name": "unsave", + "type": "Bool" + } + ], + "type": "Bool" + }, + { + "id": "1364105629", + "method": "messages.getInlineBotResults", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "bot", + "type": "InputUser" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "geo_point", + "type": "flags.0?InputGeoPoint" + }, + { + "name": "query", + "type": "string" + }, + { + "name": "offset", + "type": "string" + } + ], + "type": "messages.BotResults" + }, + { + "id": "-1156406247", + "method": "messages.setInlineBotResults", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "gallery", + "type": "flags.0?true" + }, + { + "name": "private", + "type": "flags.1?true" + }, + { + "name": "query_id", + "type": "long" + }, + { + "name": "results", + "type": "Vector" + }, + { + "name": "cache_time", + "type": "int" + }, + { + "name": "next_offset", + "type": "flags.2?string" + }, + { + "name": "switch_pm", + "type": "flags.3?InlineBotSwitchPM" + }, + { + "name": "switch_webview", + "type": "flags.4?InlineBotWebView" + } + ], + "type": "Bool" + }, + { + "id": "-1060145594", + "method": "messages.sendInlineBotResult", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "silent", + "type": "flags.5?true" + }, + { + "name": "background", + "type": "flags.6?true" + }, + { + "name": "clear_draft", + "type": "flags.7?true" + }, + { + "name": "hide_via", + "type": "flags.11?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "reply_to", + "type": "flags.0?InputReplyTo" + }, + { + "name": "random_id", + "type": "long" + }, + { + "name": "query_id", + "type": "long" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "schedule_date", + "type": "flags.10?int" + }, + { + "name": "send_as", + "type": "flags.13?InputPeer" + }, + { + "name": "quick_reply_shortcut", + "type": "flags.17?InputQuickReplyShortcut" + }, + { + "name": "allow_paid_stars", + "type": "flags.21?long" + } + ], + "type": "Updates" + }, + { + "id": "-432034325", + "method": "channels.exportMessageLink", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "grouped", + "type": "flags.0?true" + }, + { + "name": "thread", + "type": "flags.1?true" + }, + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "id", + "type": "int" + } + ], + "type": "ExportedMessageLink" + }, + { + "id": "1099781276", + "method": "channels.toggleSignatures", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "signatures_enabled", + "type": "flags.0?true" + }, + { + "name": "profiles_enabled", + "type": "flags.1?true" + }, + { + "name": "channel", + "type": "InputChannel" + } + ], + "type": "Updates" + }, + { + "id": "-890997469", + "method": "auth.resendCode", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "phone_number", + "type": "string" + }, + { + "name": "phone_code_hash", + "type": "string" + }, + { + "name": "reason", + "type": "flags.0?string" + } + ], + "type": "auth.SentCode" + }, + { + "id": "520357240", + "method": "auth.cancelCode", + "params": [ + { + "name": "phone_number", + "type": "string" + }, + { + "name": "phone_code_hash", + "type": "string" + } + ], + "type": "Bool" + }, + { + "id": "-39416522", + "method": "messages.getMessageEditData", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "int" + } + ], + "type": "messages.MessageEditData" + }, + { + "id": "-539934715", + "method": "messages.editMessage", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "no_webpage", + "type": "flags.1?true" + }, + { + "name": "invert_media", + "type": "flags.16?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "int" + }, + { + "name": "message", + "type": "flags.11?string" + }, + { + "name": "media", + "type": "flags.14?InputMedia" + }, + { + "name": "reply_markup", + "type": "flags.2?ReplyMarkup" + }, + { + "name": "entities", + "type": "flags.3?Vector" + }, + { + "name": "schedule_date", + "type": "flags.15?int" + }, + { + "name": "quick_reply_shortcut_id", + "type": "flags.17?int" + } + ], + "type": "Updates" + }, + { + "id": "-2091549254", + "method": "messages.editInlineBotMessage", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "no_webpage", + "type": "flags.1?true" + }, + { + "name": "invert_media", + "type": "flags.16?true" + }, + { + "name": "id", + "type": "InputBotInlineMessageID" + }, + { + "name": "message", + "type": "flags.11?string" + }, + { + "name": "media", + "type": "flags.14?InputMedia" + }, + { + "name": "reply_markup", + "type": "flags.2?ReplyMarkup" + }, + { + "name": "entities", + "type": "flags.3?Vector" + } + ], + "type": "Bool" + }, + { + "id": "-1824339449", + "method": "messages.getBotCallbackAnswer", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "game", + "type": "flags.1?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "msg_id", + "type": "int" + }, + { + "name": "data", + "type": "flags.0?bytes" + }, + { + "name": "password", + "type": "flags.2?InputCheckPasswordSRP" + } + ], + "type": "messages.BotCallbackAnswer" + }, + { + "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": "-1758168906", + "method": "contacts.getTopPeers", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "correspondents", + "type": "flags.0?true" + }, + { + "name": "bots_pm", + "type": "flags.1?true" + }, + { + "name": "bots_inline", + "type": "flags.2?true" + }, + { + "name": "phone_calls", + "type": "flags.3?true" + }, + { + "name": "forward_users", + "type": "flags.4?true" + }, + { + "name": "forward_chats", + "type": "flags.5?true" + }, + { + "name": "groups", + "type": "flags.10?true" + }, + { + "name": "channels", + "type": "flags.15?true" + }, + { + "name": "bots_app", + "type": "flags.16?true" + }, + { + "name": "offset", + "type": "int" + }, + { + "name": "limit", + "type": "int" + }, + { + "name": "hash", + "type": "long" + } + ], + "type": "contacts.TopPeers" + }, + { + "id": "451113900", + "method": "contacts.resetTopPeerRating", + "params": [ + { + "name": "category", + "type": "TopPeerCategory" + }, + { + "name": "peer", + "type": "InputPeer" + } + ], + "type": "Bool" + }, + { + "id": "-462373635", + "method": "messages.getPeerDialogs", + "params": [ + { + "name": "peers", + "type": "Vector" + } + ], + "type": "messages.PeerDialogs" + }, + { + "id": "1420701838", + "method": "messages.saveDraft", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "no_webpage", + "type": "flags.1?true" + }, + { + "name": "invert_media", + "type": "flags.6?true" + }, + { + "name": "reply_to", + "type": "flags.4?InputReplyTo" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "message", + "type": "string" + }, + { + "name": "entities", + "type": "flags.3?Vector" + }, + { + "name": "media", + "type": "flags.5?InputMedia" + }, + { + "name": "effect", + "type": "flags.7?long" + }, + { + "name": "suggested_post", + "type": "flags.8?SuggestedPost" + } + ], + "type": "Bool" + }, + { + "id": "1782549861", + "method": "messages.getAllDrafts", + "params": [], + "type": "Updates" + }, + { + "id": "1685588756", + "method": "messages.getFeaturedStickers", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.FeaturedStickers" + }, + { + "id": "1527873830", + "method": "messages.readFeaturedStickers", + "params": [ + { + "name": "id", + "type": "Vector" + } + ], + "type": "Bool" + }, + { + "id": "-1649852357", + "method": "messages.getRecentStickers", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "attached", + "type": "flags.0?true" + }, + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.RecentStickers" + }, + { + "id": "958863608", + "method": "messages.saveRecentSticker", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "attached", + "type": "flags.0?true" + }, + { + "name": "id", + "type": "InputDocument" + }, + { + "name": "unsave", + "type": "Bool" + } + ], + "type": "Bool" + }, + { + "id": "-1986437075", + "method": "messages.clearRecentStickers", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "attached", + "type": "flags.0?true" + } + ], + "type": "Bool" + }, + { + "id": "1475442322", + "method": "messages.getArchivedStickers", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "masks", + "type": "flags.0?true" + }, + { + "name": "emojis", + "type": "flags.1?true" + }, + { + "name": "offset_id", + "type": "long" + }, + { + "name": "limit", + "type": "int" + } + ], + "type": "messages.ArchivedStickers" + }, + { + "id": "457157256", + "method": "account.sendConfirmPhoneCode", + "params": [ + { + "name": "hash", + "type": "string" + }, + { + "name": "settings", + "type": "CodeSettings" + } + ], + "type": "auth.SentCode" + }, + { + "id": "1596029123", + "method": "account.confirmPhone", + "params": [ + { + "name": "phone_code_hash", + "type": "string" + }, + { + "name": "phone_code", + "type": "string" + } + ], + "type": "Bool" + }, + { + "id": "-122669393", + "method": "channels.getAdminedPublicChannels", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "by_location", + "type": "flags.0?true" + }, + { + "name": "check_limit", + "type": "flags.1?true" + }, + { + "name": "for_personal", + "type": "flags.2?true" + } + ], + "type": "messages.Chats" + }, + { + "id": "1678738104", + "method": "messages.getMaskStickers", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.AllStickers" + }, + { + "id": "-866424884", + "method": "messages.getAttachedStickers", + "params": [ + { + "name": "media", + "type": "InputStickeredMedia" + } + ], + "type": "Vector" + }, + { + "id": "-1907842680", + "method": "auth.dropTempAuthKeys", + "params": [ + { + "name": "except_auth_keys", + "type": "Vector" + } + ], + "type": "Bool" + }, + { + "id": "-1896289088", + "method": "messages.setGameScore", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "edit_message", + "type": "flags.0?true" + }, + { + "name": "force", + "type": "flags.1?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "int" + }, + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "score", + "type": "int" + } + ], + "type": "Updates" + }, + { + "id": "363700068", + "method": "messages.setInlineGameScore", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "edit_message", + "type": "flags.0?true" + }, + { + "name": "force", + "type": "flags.1?true" + }, + { + "name": "id", + "type": "InputBotInlineMessageID" + }, + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "score", + "type": "int" + } + ], + "type": "Bool" + }, + { + "id": "-400399203", + "method": "messages.getGameHighScores", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "int" + }, + { + "name": "user_id", + "type": "InputUser" + } + ], + "type": "messages.HighScores" + }, + { + "id": "258170395", + "method": "messages.getInlineGameHighScores", + "params": [ + { + "name": "id", + "type": "InputBotInlineMessageID" + }, + { + "name": "user_id", + "type": "InputUser" + } + ], + "type": "messages.HighScores" + }, + { + "id": "-468934396", + "method": "messages.getCommonChats", + "params": [ + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "max_id", + "type": "long" + }, + { + "name": "limit", + "type": "int" + } + ], + "type": "messages.Chats" + }, + { + "id": "-333262899", + "method": "help.setBotUpdatesStatus", + "params": [ + { + "name": "pending_updates_count", + "type": "int" + }, + { + "name": "message", + "type": "string" + } + ], + "type": "Bool" + }, + { + "id": "-1919511901", + "method": "messages.getWebPage", + "params": [ + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "int" + } + ], + "type": "messages.WebPage" + }, + { + "id": "-1489903017", + "method": "messages.toggleDialogPin", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "pinned", + "type": "flags.0?true" + }, + { + "name": "peer", + "type": "InputDialogPeer" + } + ], + "type": "Bool" + }, + { + "id": "991616823", + "method": "messages.reorderPinnedDialogs", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "force", + "type": "flags.0?true" + }, + { + "name": "folder_id", + "type": "int" + }, + { + "name": "order", + "type": "Vector" + } + ], + "type": "Bool" + }, + { + "id": "-692498958", + "method": "messages.getPinnedDialogs", + "params": [ + { + "name": "folder_id", + "type": "int" + } + ], + "type": "messages.PeerDialogs" + }, + { + "id": "-1440257555", + "method": "bots.sendCustomRequest", + "params": [ + { + "name": "custom_method", + "type": "string" + }, + { + "name": "params", + "type": "DataJSON" + } + ], + "type": "DataJSON" + }, + { + "id": "-434028723", + "method": "bots.answerWebhookJSONQuery", + "params": [ + { + "name": "query_id", + "type": "long" + }, + { + "name": "data", + "type": "DataJSON" + } + ], + "type": "Bool" + }, + { + "id": "619086221", + "method": "upload.getWebFile", + "params": [ + { + "name": "location", + "type": "InputWebFileLocation" + }, + { + "name": "offset", + "type": "int" + }, + { + "name": "limit", + "type": "int" + } + ], + "type": "upload.WebFile" + }, + { + "id": "924093883", + "method": "payments.getPaymentForm", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "invoice", + "type": "InputInvoice" + }, + { + "name": "theme_params", + "type": "flags.0?DataJSON" + } + ], + "type": "payments.PaymentForm" + }, + { + "id": "611897804", + "method": "payments.getPaymentReceipt", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "msg_id", + "type": "int" + } + ], + "type": "payments.PaymentReceipt" + }, + { + "id": "-1228345045", + "method": "payments.validateRequestedInfo", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "save", + "type": "flags.0?true" + }, + { + "name": "invoice", + "type": "InputInvoice" + }, + { + "name": "info", + "type": "PaymentRequestedInfo" + } + ], + "type": "payments.ValidatedRequestedInfo" + }, + { + "id": "755192367", + "method": "payments.sendPaymentForm", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "form_id", + "type": "long" + }, + { + "name": "invoice", + "type": "InputInvoice" + }, + { + "name": "requested_info_id", + "type": "flags.0?string" + }, + { + "name": "shipping_option_id", + "type": "flags.1?string" + }, + { + "name": "credentials", + "type": "InputPaymentCredentials" + }, + { + "name": "tip_amount", + "type": "flags.2?long" + } + ], + "type": "payments.PaymentResult" + }, + { + "id": "1151208273", + "method": "account.getTmpPassword", + "params": [ + { + "name": "password", + "type": "InputCheckPasswordSRP" + }, + { + "name": "period", + "type": "int" + } + ], + "type": "account.TmpPassword" + }, + { + "id": "578650699", + "method": "payments.getSavedInfo", + "params": [], + "type": "payments.SavedInfo" + }, + { + "id": "-667062079", + "method": "payments.clearSavedInfo", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "credentials", + "type": "flags.0?true" + }, + { + "name": "info", + "type": "flags.1?true" + } + ], + "type": "Bool" + }, + { + "id": "-436833542", + "method": "messages.setBotShippingResults", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "query_id", + "type": "long" + }, + { + "name": "error", + "type": "flags.0?string" + }, + { + "name": "shipping_options", + "type": "flags.1?Vector" + } + ], + "type": "Bool" + }, + { + "id": "163765653", + "method": "messages.setBotPrecheckoutResults", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "success", + "type": "flags.1?true" + }, + { + "name": "query_id", + "type": "long" + }, + { + "name": "error", + "type": "flags.0?string" + } + ], + "type": "Bool" + }, + { + "id": "-1876841625", + "method": "stickers.createStickerSet", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "masks", + "type": "flags.0?true" + }, + { + "name": "emojis", + "type": "flags.5?true" + }, + { + "name": "text_color", + "type": "flags.6?true" + }, + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "short_name", + "type": "string" + }, + { + "name": "thumb", + "type": "flags.2?InputDocument" + }, + { + "name": "stickers", + "type": "Vector" + }, + { + "name": "software", + "type": "flags.3?string" + } + ], + "type": "messages.StickerSet" + }, + { + "id": "-143257775", + "method": "stickers.removeStickerFromSet", + "params": [ + { + "name": "sticker", + "type": "InputDocument" + } + ], + "type": "messages.StickerSet" + }, + { + "id": "-4795190", + "method": "stickers.changeStickerPosition", + "params": [ + { + "name": "sticker", + "type": "InputDocument" + }, + { + "name": "position", + "type": "int" + } + ], + "type": "messages.StickerSet" + }, + { + "id": "-2041315650", + "method": "stickers.addStickerToSet", + "params": [ + { + "name": "stickerset", + "type": "InputStickerSet" + }, + { + "name": "sticker", + "type": "InputStickerSetItem" + } + ], + "type": "messages.StickerSet" + }, + { + "id": "345405816", + "method": "messages.uploadMedia", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "business_connection_id", + "type": "flags.0?string" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "media", + "type": "InputMedia" + } + ], + "type": "MessageMedia" + }, + { + "id": "1430593449", + "method": "phone.getCallConfig", + "params": [], + "type": "DataJSON" + }, + { + "id": "1124046573", + "method": "phone.requestCall", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "video", + "type": "flags.0?true" + }, + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "random_id", + "type": "int" + }, + { + "name": "g_a_hash", + "type": "bytes" + }, + { + "name": "protocol", + "type": "PhoneCallProtocol" + } + ], + "type": "phone.PhoneCall" + }, + { + "id": "1003664544", + "method": "phone.acceptCall", + "params": [ + { + "name": "peer", + "type": "InputPhoneCall" + }, + { + "name": "g_b", + "type": "bytes" + }, + { + "name": "protocol", + "type": "PhoneCallProtocol" + } + ], + "type": "phone.PhoneCall" + }, + { + "id": "788404002", + "method": "phone.confirmCall", + "params": [ + { + "name": "peer", + "type": "InputPhoneCall" + }, + { + "name": "g_a", + "type": "bytes" + }, + { + "name": "key_fingerprint", + "type": "long" + }, + { + "name": "protocol", + "type": "PhoneCallProtocol" + } + ], + "type": "phone.PhoneCall" + }, + { + "id": "399855457", + "method": "phone.receivedCall", + "params": [ + { + "name": "peer", + "type": "InputPhoneCall" + } + ], + "type": "Bool" + }, + { + "id": "-1295269440", + "method": "phone.discardCall", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "video", + "type": "flags.0?true" + }, + { + "name": "peer", + "type": "InputPhoneCall" + }, + { + "name": "duration", + "type": "int" + }, + { + "name": "reason", + "type": "PhoneCallDiscardReason" + }, + { + "name": "connection_id", + "type": "long" + } + ], + "type": "Updates" + }, + { + "id": "1508562471", + "method": "phone.setCallRating", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "user_initiative", + "type": "flags.0?true" + }, + { + "name": "peer", + "type": "InputPhoneCall" + }, + { + "name": "rating", + "type": "int" + }, + { + "name": "comment", + "type": "string" + } + ], + "type": "Updates" + }, + { + "id": "662363518", + "method": "phone.saveCallDebug", + "params": [ + { + "name": "peer", + "type": "InputPhoneCall" + }, + { + "name": "debug", + "type": "DataJSON" + } + ], + "type": "Bool" + }, + { + "id": "962554330", + "method": "upload.getCdnFile", + "params": [ + { + "name": "file_token", + "type": "bytes" + }, + { + "name": "offset", + "type": "long" + }, + { + "name": "limit", + "type": "int" + } + ], + "type": "upload.CdnFile" + }, + { + "id": "-1691921240", + "method": "upload.reuploadCdnFile", + "params": [ + { + "name": "file_token", + "type": "bytes" + }, + { + "name": "request_token", + "type": "bytes" + } + ], + "type": "Vector" + }, + { + "id": "1375900482", + "method": "help.getCdnConfig", + "params": [], + "type": "CdnConfig" + }, + { + "id": "-219008246", + "method": "langpack.getLangPack", + "params": [ + { + "name": "lang_pack", + "type": "string" + }, + { + "name": "lang_code", + "type": "string" + } + ], + "type": "LangPackDifference" + }, + { + "id": "-269862909", + "method": "langpack.getStrings", + "params": [ + { + "name": "lang_pack", + "type": "string" + }, + { + "name": "lang_code", + "type": "string" + }, + { + "name": "keys", + "type": "Vector" + } + ], + "type": "Vector" + }, + { + "id": "-845657435", + "method": "langpack.getDifference", + "params": [ + { + "name": "lang_pack", + "type": "string" + }, + { + "name": "lang_code", + "type": "string" + }, + { + "name": "from_version", + "type": "int" + } + ], + "type": "LangPackDifference" + }, + { + "id": "1120311183", + "method": "langpack.getLanguages", + "params": [ + { + "name": "lang_pack", + "type": "string" + } + ], + "type": "Vector" + }, + { + "id": "-1763259007", + "method": "channels.editBanned", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "participant", + "type": "InputPeer" + }, + { + "name": "banned_rights", + "type": "ChatBannedRights" + } + ], + "type": "Updates" + }, + { + "id": "870184064", + "method": "channels.getAdminLog", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "q", + "type": "string" + }, + { + "name": "events_filter", + "type": "flags.0?ChannelAdminLogEventsFilter" + }, + { + "name": "admins", + "type": "flags.1?Vector" + }, + { + "name": "max_id", + "type": "long" + }, + { + "name": "min_id", + "type": "long" + }, + { + "name": "limit", + "type": "int" + } + ], + "type": "channels.AdminLogResults" + }, + { + "id": "-1847836879", + "method": "upload.getCdnFileHashes", + "params": [ + { + "name": "file_token", + "type": "bytes" + }, + { + "name": "offset", + "type": "long" + } + ], + "type": "Vector" + }, + { + "id": "-1589618665", + "method": "messages.sendScreenshotNotification", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "reply_to", + "type": "InputReplyTo" + }, + { + "name": "random_id", + "type": "long" + } + ], + "type": "Updates" + }, + { + "id": "-359881479", + "method": "channels.setStickers", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "stickerset", + "type": "InputStickerSet" + } + ], + "type": "Bool" + }, + { + "id": "82946729", + "method": "messages.getFavedStickers", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.FavedStickers" + }, + { + "id": "-1174420133", + "method": "messages.faveSticker", + "params": [ + { + "name": "id", + "type": "InputDocument" + }, + { + "name": "unfave", + "type": "Bool" + } + ], + "type": "Bool" + }, + { + "id": "-357180360", + "method": "channels.readMessageContents", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "id", + "type": "Vector" + } + ], + "type": "Bool" + }, + { + "id": "-2020263951", + "method": "contacts.resetSaved", + "params": [], + "type": "Bool" + }, + { + "id": "-251140208", + "method": "messages.getUnreadMentions", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "top_msg_id", + "type": "flags.0?int" + }, + { + "name": "offset_id", + "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": "-1683319225", + "method": "channels.deleteHistory", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "for_everyone", + "type": "flags.0?true" + }, + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "max_id", + "type": "int" + } + ], + "type": "Updates" + }, + { + "id": "1036054804", + "method": "help.getRecentMeUrls", + "params": [ + { + "name": "referer", + "type": "string" + } + ], + "type": "help.RecentMeUrls" + }, + { + "id": "-356796084", + "method": "channels.togglePreHistoryHidden", + "params": [ + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "enabled", + "type": "Bool" + } + ], + "type": "Updates" + }, + { + "id": "921026381", + "method": "messages.readMentions", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "top_msg_id", + "type": "flags.0?int" + } + ], + "type": "messages.AffectedHistory" + }, + { + "id": "1881817312", + "method": "messages.getRecentLocations", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "limit", "type": "int" + }, + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.Messages" + }, + { + "id": "469278068", + "method": "messages.sendMultiMedia", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "silent", + "type": "flags.5?true" + }, + { + "name": "background", + "type": "flags.6?true" + }, + { + "name": "clear_draft", + "type": "flags.7?true" + }, + { + "name": "noforwards", + "type": "flags.14?true" + }, + { + "name": "update_stickersets_order", + "type": "flags.15?true" + }, + { + "name": "invert_media", + "type": "flags.16?true" + }, + { + "name": "allow_paid_floodskip", + "type": "flags.19?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "reply_to", + "type": "flags.0?InputReplyTo" + }, + { + "name": "multi_media", + "type": "Vector" + }, + { + "name": "schedule_date", + "type": "flags.10?int" + }, + { + "name": "send_as", + "type": "flags.13?InputPeer" + }, + { + "name": "quick_reply_shortcut", + "type": "flags.17?InputQuickReplyShortcut" + }, + { + "name": "effect", + "type": "flags.18?long" + }, + { + "name": "allow_paid_stars", + "type": "flags.21?long" + } + ], + "type": "Updates" + }, + { + "id": "1347929239", + "method": "messages.uploadEncryptedFile", + "params": [ + { + "name": "peer", + "type": "InputEncryptedChat" + }, + { + "name": "file", + "type": "InputEncryptedFile" + } + ], + "type": "EncryptedFile" + }, + { + "id": "405695855", + "method": "account.getWebAuthorizations", + "params": [], + "type": "account.WebAuthorizations" + }, + { + "id": "755087855", + "method": "account.resetWebAuthorization", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "Bool" + }, + { + "id": "1747789204", + "method": "account.resetWebAuthorizations", + "params": [], + "type": "Bool" + }, + { + "id": "896555914", + "method": "messages.searchStickerSets", + "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "exclude_featured", + "type": "flags.0?true" + }, + { + "name": "q", + "type": "string" + }, + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.FoundStickerSets" + }, + { + "id": "-1856595926", + "method": "upload.getFileHashes", + "params": [ + { + "name": "location", + "type": "InputFileLocation" + }, + { + "name": "offset", + "type": "long" + } + ], + "type": "Vector" + }, + { + "id": "749019089", + "method": "help.getTermsOfServiceUpdate", + "params": [], + "type": "help.TermsOfServiceUpdate" + }, + { + "id": "-294455398", + "method": "help.acceptTermsOfService", + "params": [ + { + "name": "id", + "type": "DataJSON" + } + ], + "type": "Bool" + }, + { + "id": "-1299661699", + "method": "account.getAllSecureValues", + "params": [], + "type": "Vector" + }, + { + "id": "1936088002", + "method": "account.getSecureValue", + "params": [ + { + "name": "types", + "type": "Vector" } ], - "type": "payments.PaymentReceipt" + "type": "Vector" }, { - "id": "-1228345045", - "method": "payments.validateRequestedInfo", + "id": "-1986010339", + "method": "account.saveSecureValue", "params": [ { - "name": "flags", - "type": "#" + "name": "value", + "type": "InputSecureValue" }, { - "name": "save", - "type": "flags.0?true" - }, + "name": "secure_secret_id", + "type": "long" + } + ], + "type": "SecureValue" + }, + { + "id": "-1199522741", + "method": "account.deleteSecureValue", + "params": [ { - "name": "invoice", - "type": "InputInvoice" + "name": "types", + "type": "Vector" + } + ], + "type": "Bool" + }, + { + "id": "-1865902923", + "method": "users.setSecureValueErrors", + "params": [ + { + "name": "id", + "type": "InputUser" }, { - "name": "info", - "type": "PaymentRequestedInfo" + "name": "errors", + "type": "Vector" } ], - "type": "payments.ValidatedRequestedInfo" + "type": "Bool" }, { - "id": "755192367", - "method": "payments.sendPaymentForm", + "id": "-1456907910", + "method": "account.getAuthorizationForm", "params": [ { - "name": "flags", - "type": "#" + "name": "bot_id", + "type": "long" }, { - "name": "form_id", - "type": "long" + "name": "scope", + "type": "string" }, { - "name": "invoice", - "type": "InputInvoice" + "name": "public_key", + "type": "string" + } + ], + "type": "account.AuthorizationForm" + }, + { + "id": "-202552205", + "method": "account.acceptAuthorization", + "params": [ + { + "name": "bot_id", + "type": "long" }, { - "name": "requested_info_id", - "type": "flags.0?string" + "name": "scope", + "type": "string" }, { - "name": "shipping_option_id", - "type": "flags.1?string" + "name": "public_key", + "type": "string" }, { - "name": "credentials", - "type": "InputPaymentCredentials" + "name": "value_hashes", + "type": "Vector" }, { - "name": "tip_amount", - "type": "flags.2?long" + "name": "credentials", + "type": "SecureCredentialsEncrypted" } ], - "type": "payments.PaymentResult" + "type": "Bool" }, { - "id": "1151208273", - "method": "account.getTmpPassword", + "id": "-1516022023", + "method": "account.sendVerifyPhoneCode", "params": [ { - "name": "password", - "type": "InputCheckPasswordSRP" + "name": "phone_number", + "type": "string" }, { - "name": "period", - "type": "int" + "name": "settings", + "type": "CodeSettings" } ], - "type": "account.TmpPassword" - }, - { - "id": "578650699", - "method": "payments.getSavedInfo", - "params": [], - "type": "payments.SavedInfo" + "type": "auth.SentCode" }, { - "id": "-667062079", - "method": "payments.clearSavedInfo", + "id": "1305716726", + "method": "account.verifyPhone", "params": [ { - "name": "flags", - "type": "#" + "name": "phone_number", + "type": "string" }, { - "name": "credentials", - "type": "flags.0?true" + "name": "phone_code_hash", + "type": "string" }, { - "name": "info", - "type": "flags.1?true" + "name": "phone_code", + "type": "string" } ], "type": "Bool" }, { - "id": "-436833542", - "method": "messages.setBotShippingResults", + "id": "-1730136133", + "method": "account.sendVerifyEmailCode", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "query_id", - "type": "long" - }, - { - "name": "error", - "type": "flags.0?string" + "name": "purpose", + "type": "EmailVerifyPurpose" }, { - "name": "shipping_options", - "type": "flags.1?Vector" + "name": "email", + "type": "string" } ], - "type": "Bool" + "type": "account.SentEmailCode" }, { - "id": "163765653", - "method": "messages.setBotPrecheckoutResults", + "id": "53322959", + "method": "account.verifyEmail", "params": [ { - "name": "flags", - "type": "#" + "name": "purpose", + "type": "EmailVerifyPurpose" }, { - "name": "success", - "type": "flags.1?true" - }, + "name": "verification", + "type": "EmailVerification" + } + ], + "type": "account.EmailVerified" + }, + { + "id": "1072547679", + "method": "help.getDeepLinkInfo", + "params": [ { - "name": "query_id", - "type": "long" - }, + "name": "path", + "type": "string" + } + ], + "type": "help.DeepLinkInfo" + }, + { + "id": "-2098076769", + "method": "contacts.getSaved", + "params": [], + "type": "Vector" + }, + { + "id": "-2092831552", + "method": "channels.getLeftChannels", + "params": [ { - "name": "error", - "type": "flags.0?string" + "name": "offset", + "type": "int" } ], - "type": "Bool" + "type": "messages.Chats" }, { - "id": "-1876841625", - "method": "stickers.createStickerSet", + "id": "-1896617296", + "method": "account.initTakeoutSession", "params": [ { "name": "flags", "type": "#" }, { - "name": "masks", + "name": "contacts", "type": "flags.0?true" }, { - "name": "emojis", - "type": "flags.5?true" - }, - { - "name": "text_color", - "type": "flags.6?true" - }, - { - "name": "user_id", - "type": "InputUser" + "name": "message_users", + "type": "flags.1?true" }, { - "name": "title", - "type": "string" + "name": "message_chats", + "type": "flags.2?true" }, { - "name": "short_name", - "type": "string" + "name": "message_megagroups", + "type": "flags.3?true" }, { - "name": "thumb", - "type": "flags.2?InputDocument" + "name": "message_channels", + "type": "flags.4?true" }, { - "name": "stickers", - "type": "Vector" + "name": "files", + "type": "flags.5?true" }, { - "name": "software", - "type": "flags.3?string" + "name": "file_max_size", + "type": "flags.5?long" } ], - "type": "messages.StickerSet" + "type": "account.Takeout" }, { - "id": "-143257775", - "method": "stickers.removeStickerFromSet", + "id": "489050862", + "method": "account.finishTakeoutSession", "params": [ { - "name": "sticker", - "type": "InputDocument" + "name": "flags", + "type": "#" + }, + { + "name": "success", + "type": "flags.0?true" } ], - "type": "messages.StickerSet" + "type": "Bool" }, { - "id": "-4795190", - "method": "stickers.changeStickerPosition", + "id": "486505992", + "method": "messages.getSplitRanges", + "params": [], + "type": "Vector" + }, + { + "id": "911373810", + "method": "invokeWithMessagesRange", "params": [ { - "name": "sticker", - "type": "InputDocument" + "name": "range", + "type": "MessageRange" }, { - "name": "position", - "type": "int" + "name": "query", + "type": "!X" } ], - "type": "messages.StickerSet" + "type": "X" }, { - "id": "-2041315650", - "method": "stickers.addStickerToSet", + "id": "-1398145746", + "method": "invokeWithTakeout", "params": [ { - "name": "stickerset", - "type": "InputStickerSet" + "name": "takeout_id", + "type": "long" }, { - "name": "sticker", - "type": "InputStickerSetItem" + "name": "query", + "type": "!X" } ], - "type": "messages.StickerSet" + "type": "X" }, { - "id": "345405816", - "method": "messages.uploadMedia", + "id": "-1940912392", + "method": "messages.markDialogUnread", "params": [ { "name": "flags", "type": "#" }, { - "name": "business_connection_id", - "type": "flags.0?string" + "name": "unread", + "type": "flags.0?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "parent_peer", + "type": "flags.1?InputPeer" }, { - "name": "media", - "type": "InputMedia" + "name": "peer", + "type": "InputDialogPeer" } ], - "type": "MessageMedia" - }, - { - "id": "1430593449", - "method": "phone.getCallConfig", - "params": [], - "type": "DataJSON" + "type": "Bool" }, { - "id": "1124046573", - "method": "phone.requestCall", + "id": "555754018", + "method": "messages.getDialogUnreadMarks", "params": [ { "name": "flags", "type": "#" }, { - "name": "video", - "type": "flags.0?true" - }, - { - "name": "user_id", - "type": "InputUser" - }, - { - "name": "random_id", - "type": "int" - }, - { - "name": "g_a_hash", - "type": "bytes" - }, - { - "name": "protocol", - "type": "PhoneCallProtocol" + "name": "parent_peer", + "type": "flags.0?InputPeer" } ], - "type": "phone.PhoneCall" + "type": "Vector" }, { - "id": "1003664544", - "method": "phone.acceptCall", + "id": "-2062238246", + "method": "contacts.toggleTopPeers", "params": [ { - "name": "peer", - "type": "InputPhoneCall" - }, - { - "name": "g_b", - "type": "bytes" - }, - { - "name": "protocol", - "type": "PhoneCallProtocol" + "name": "enabled", + "type": "Bool" } ], - "type": "phone.PhoneCall" + "type": "Bool" }, { - "id": "788404002", - "method": "phone.confirmCall", + "id": "2119757468", + "method": "messages.clearAllDrafts", + "params": [], + "type": "Bool" + }, + { + "id": "1642330196", + "method": "help.getAppConfig", "params": [ { - "name": "peer", - "type": "InputPhoneCall" - }, - { - "name": "g_a", - "type": "bytes" - }, - { - "name": "key_fingerprint", - "type": "long" - }, - { - "name": "protocol", - "type": "PhoneCallProtocol" + "name": "hash", + "type": "int" } ], - "type": "phone.PhoneCall" + "type": "help.AppConfig" }, { - "id": "399855457", - "method": "phone.receivedCall", + "id": "1862465352", + "method": "help.saveAppLog", "params": [ { - "name": "peer", - "type": "InputPhoneCall" + "name": "events", + "type": "Vector" } ], "type": "Bool" }, { - "id": "-1295269440", - "method": "phone.discardCall", + "id": "-966677240", + "method": "help.getPassportConfig", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "video", - "type": "flags.0?true" - }, - { - "name": "peer", - "type": "InputPhoneCall" - }, - { - "name": "duration", + "name": "hash", "type": "int" - }, + } + ], + "type": "help.PassportConfig" + }, + { + "id": "1784243458", + "method": "langpack.getLanguage", + "params": [ { - "name": "reason", - "type": "PhoneCallDiscardReason" + "name": "lang_pack", + "type": "string" }, { - "name": "connection_id", - "type": "long" + "name": "lang_code", + "type": "string" } ], - "type": "Updates" + "type": "LangPackLanguage" }, { - "id": "1508562471", - "method": "phone.setCallRating", + "id": "-760547348", + "method": "messages.updatePinnedMessage", "params": [ { "name": "flags", "type": "#" }, { - "name": "user_initiative", + "name": "silent", "type": "flags.0?true" }, { - "name": "peer", - "type": "InputPhoneCall" + "name": "unpin", + "type": "flags.1?true" }, { - "name": "rating", - "type": "int" + "name": "pm_oneside", + "type": "flags.2?true" }, - { - "name": "comment", - "type": "string" - } - ], - "type": "Updates" - }, - { - "id": "662363518", - "method": "phone.saveCallDebug", - "params": [ { "name": "peer", - "type": "InputPhoneCall" + "type": "InputPeer" }, { - "name": "debug", - "type": "DataJSON" + "name": "id", + "type": "int" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "962554330", - "method": "upload.getCdnFile", + "id": "-1881204448", + "method": "account.confirmPasswordEmail", "params": [ { - "name": "file_token", - "type": "bytes" - }, - { - "name": "offset", - "type": "long" - }, - { - "name": "limit", - "type": "int" + "name": "code", + "type": "string" } ], - "type": "upload.CdnFile" + "type": "Bool" }, { - "id": "-1691921240", - "method": "upload.reuploadCdnFile", - "params": [ - { - "name": "file_token", - "type": "bytes" - }, - { - "name": "request_token", - "type": "bytes" - } - ], - "type": "Vector" + "id": "2055154197", + "method": "account.resendPasswordEmail", + "params": [], + "type": "Bool" }, { - "id": "1375900482", - "method": "help.getCdnConfig", + "id": "-1043606090", + "method": "account.cancelPasswordEmail", "params": [], - "type": "CdnConfig" + "type": "Bool" }, { - "id": "-219008246", - "method": "langpack.getLangPack", - "params": [ - { - "name": "lang_pack", - "type": "string" - }, - { - "name": "lang_code", - "type": "string" - } - ], - "type": "LangPackDifference" + "id": "-748624084", + "method": "help.getSupportName", + "params": [], + "type": "help.SupportName" }, { - "id": "-269862909", - "method": "langpack.getStrings", + "id": "59377875", + "method": "help.getUserInfo", "params": [ { - "name": "lang_pack", - "type": "string" - }, - { - "name": "lang_code", - "type": "string" - }, - { - "name": "keys", - "type": "Vector" + "name": "user_id", + "type": "InputUser" } ], - "type": "Vector" + "type": "help.UserInfo" }, { - "id": "-845657435", - "method": "langpack.getDifference", + "id": "1723407216", + "method": "help.editUserInfo", "params": [ { - "name": "lang_pack", - "type": "string" + "name": "user_id", + "type": "InputUser" }, { - "name": "lang_code", + "name": "message", "type": "string" }, { - "name": "from_version", - "type": "int" + "name": "entities", + "type": "Vector" } ], - "type": "LangPackDifference" + "type": "help.UserInfo" }, { - "id": "1120311183", - "method": "langpack.getLanguages", - "params": [ - { - "name": "lang_pack", - "type": "string" - } - ], - "type": "Vector" + "id": "-1626880216", + "method": "account.getContactSignUpNotification", + "params": [], + "type": "Bool" }, { - "id": "-1763259007", - "method": "channels.editBanned", + "id": "-806076575", + "method": "account.setContactSignUpNotification", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "participant", - "type": "InputPeer" - }, - { - "name": "banned_rights", - "type": "ChatBannedRights" + "name": "silent", + "type": "Bool" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "870184064", - "method": "channels.getAdminLog", + "id": "1398240377", + "method": "account.getNotifyExceptions", "params": [ { "name": "flags", "type": "#" }, { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "q", - "type": "string" - }, - { - "name": "events_filter", - "type": "flags.0?ChannelAdminLogEventsFilter" - }, - { - "name": "admins", - "type": "flags.1?Vector" - }, - { - "name": "max_id", - "type": "long" - }, - { - "name": "min_id", - "type": "long" + "name": "compare_sound", + "type": "flags.1?true" }, { - "name": "limit", - "type": "int" - } - ], - "type": "channels.AdminLogResults" - }, - { - "id": "-1847836879", - "method": "upload.getCdnFileHashes", - "params": [ - { - "name": "file_token", - "type": "bytes" + "name": "compare_stories", + "type": "flags.2?true" }, { - "name": "offset", - "type": "long" + "name": "peer", + "type": "flags.0?InputNotifyPeer" } ], - "type": "Vector" + "type": "Updates" }, { - "id": "-1589618665", - "method": "messages.sendScreenshotNotification", + "id": "283795844", + "method": "messages.sendVote", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "reply_to", - "type": "InputReplyTo" + "name": "msg_id", + "type": "int" }, { - "name": "random_id", - "type": "long" + "name": "options", + "type": "Vector" } ], "type": "Updates" }, { - "id": "-359881479", - "method": "channels.setStickers", + "id": "1941660731", + "method": "messages.getPollResults", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "peer", + "type": "InputPeer" }, { - "name": "stickerset", - "type": "InputStickerSet" + "name": "msg_id", + "type": "int" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "82946729", - "method": "messages.getFavedStickers", + "id": "1848369232", + "method": "messages.getOnlines", "params": [ { - "name": "hash", - "type": "long" + "name": "peer", + "type": "InputPeer" } ], - "type": "messages.FavedStickers" + "type": "ChatOnlines" }, { - "id": "-1174420133", - "method": "messages.faveSticker", + "id": "-554301545", + "method": "messages.editChatAbout", "params": [ { - "name": "id", - "type": "InputDocument" + "name": "peer", + "type": "InputPeer" }, { - "name": "unfave", - "type": "Bool" + "name": "about", + "type": "string" } ], "type": "Bool" }, { - "id": "-357180360", - "method": "channels.readMessageContents", + "id": "-1517917375", + "method": "messages.editChatDefaultBannedRights", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "peer", + "type": "InputPeer" }, { - "name": "id", - "type": "Vector" + "name": "banned_rights", + "type": "ChatBannedRights" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-2020263951", - "method": "contacts.resetSaved", - "params": [], - "type": "Bool" + "id": "-57811990", + "method": "account.getWallPaper", + "params": [ + { + "name": "wallpaper", + "type": "InputWallPaper" + } + ], + "type": "WallPaper" }, { - "id": "-251140208", - "method": "messages.getUnreadMentions", + "id": "-476410109", + "method": "account.uploadWallPaper", "params": [ { "name": "flags", "type": "#" }, { - "name": "peer", - "type": "InputPeer" + "name": "for_chat", + "type": "flags.0?true" }, { - "name": "top_msg_id", - "type": "flags.0?int" + "name": "file", + "type": "InputFile" }, { - "name": "offset_id", - "type": "int" + "name": "mime_type", + "type": "string" }, { - "name": "add_offset", - "type": "int" + "name": "settings", + "type": "WallPaperSettings" + } + ], + "type": "WallPaper" + }, + { + "id": "1817860919", + "method": "account.saveWallPaper", + "params": [ + { + "name": "wallpaper", + "type": "InputWallPaper" }, { - "name": "limit", - "type": "int" + "name": "unsave", + "type": "Bool" }, { - "name": "max_id", - "type": "int" + "name": "settings", + "type": "WallPaperSettings" + } + ], + "type": "Bool" + }, + { + "id": "-18000023", + "method": "account.installWallPaper", + "params": [ + { + "name": "wallpaper", + "type": "InputWallPaper" }, { - "name": "min_id", - "type": "int" + "name": "settings", + "type": "WallPaperSettings" } ], - "type": "messages.Messages" + "type": "Bool" }, { - "id": "-1683319225", - "method": "channels.deleteHistory", + "id": "-1153722364", + "method": "account.resetWallPapers", + "params": [], + "type": "Bool" + }, + { + "id": "1457130303", + "method": "account.getAutoDownloadSettings", + "params": [], + "type": "account.AutoDownloadSettings" + }, + { + "id": "1995661875", + "method": "account.saveAutoDownloadSettings", "params": [ { "name": "flags", "type": "#" }, { - "name": "for_everyone", + "name": "low", "type": "flags.0?true" }, { - "name": "channel", - "type": "InputChannel" + "name": "high", + "type": "flags.1?true" }, { - "name": "max_id", - "type": "int" + "name": "settings", + "type": "AutoDownloadSettings" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "1036054804", - "method": "help.getRecentMeUrls", + "id": "899735650", + "method": "messages.getEmojiKeywords", "params": [ { - "name": "referer", + "name": "lang_code", "type": "string" } ], - "type": "help.RecentMeUrls" + "type": "EmojiKeywordsDifference" }, { - "id": "-356796084", - "method": "channels.togglePreHistoryHidden", + "id": "352892591", + "method": "messages.getEmojiKeywordsDifference", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "lang_code", + "type": "string" }, { - "name": "enabled", - "type": "Bool" + "name": "from_version", + "type": "int" } ], - "type": "Updates" + "type": "EmojiKeywordsDifference" }, { - "id": "921026381", - "method": "messages.readMentions", + "id": "1318675378", + "method": "messages.getEmojiKeywordsLanguages", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "top_msg_id", - "type": "flags.0?int" + "name": "lang_codes", + "type": "Vector" } ], - "type": "messages.AffectedHistory" + "type": "Vector" }, { - "id": "1881817312", - "method": "messages.getRecentLocations", + "id": "-709817306", + "method": "messages.getEmojiURL", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "limit", - "type": "int" - }, + "name": "lang_code", + "type": "string" + } + ], + "type": "EmojiURL" + }, + { + "id": "1749536939", + "method": "folders.editPeerFolders", + "params": [ { - "name": "hash", - "type": "long" + "name": "folder_peers", + "type": "Vector" } ], - "type": "messages.Messages" + "type": "Updates" }, { - "id": "934757205", - "method": "messages.sendMultiMedia", + "id": "465367808", + "method": "messages.getSearchCounters", "params": [ { "name": "flags", "type": "#" }, - { - "name": "silent", - "type": "flags.5?true" - }, - { - "name": "background", - "type": "flags.6?true" - }, - { - "name": "clear_draft", - "type": "flags.7?true" - }, - { - "name": "noforwards", - "type": "flags.14?true" - }, - { - "name": "update_stickersets_order", - "type": "flags.15?true" - }, - { - "name": "invert_media", - "type": "flags.16?true" - }, - { - "name": "allow_paid_floodskip", - "type": "flags.19?true" - }, { "name": "peer", "type": "InputPeer" }, { - "name": "reply_to", - "type": "flags.0?InputReplyTo" - }, - { - "name": "multi_media", - "type": "Vector" - }, - { - "name": "schedule_date", - "type": "flags.10?int" - }, - { - "name": "send_as", - "type": "flags.13?InputPeer" - }, - { - "name": "quick_reply_shortcut", - "type": "flags.17?InputQuickReplyShortcut" + "name": "saved_peer_id", + "type": "flags.2?InputPeer" }, { - "name": "effect", - "type": "flags.18?long" - } - ], - "type": "Updates" - }, - { - "id": "1347929239", - "method": "messages.uploadEncryptedFile", - "params": [ - { - "name": "peer", - "type": "InputEncryptedChat" + "name": "top_msg_id", + "type": "flags.0?int" }, { - "name": "file", - "type": "InputEncryptedFile" + "name": "filters", + "type": "Vector" } ], - "type": "EncryptedFile" + "type": "Vector" }, { - "id": "405695855", - "method": "account.getWebAuthorizations", + "id": "-170208392", + "method": "channels.getGroupsForDiscussion", "params": [], - "type": "account.WebAuthorizations" + "type": "messages.Chats" }, { - "id": "755087855", - "method": "account.resetWebAuthorization", + "id": "1079520178", + "method": "channels.setDiscussionGroup", "params": [ { - "name": "hash", - "type": "long" + "name": "broadcast", + "type": "InputChannel" + }, + { + "name": "group", + "type": "InputChannel" } ], "type": "Bool" }, { - "id": "1747789204", - "method": "account.resetWebAuthorizations", - "params": [], - "type": "Bool" - }, - { - "id": "896555914", - "method": "messages.searchStickerSets", + "id": "428848198", + "method": "messages.requestUrlAuth", "params": [ { "name": "flags", "type": "#" }, { - "name": "exclude_featured", - "type": "flags.0?true" + "name": "peer", + "type": "flags.1?InputPeer" }, { - "name": "q", - "type": "string" + "name": "msg_id", + "type": "flags.1?int" }, { - "name": "hash", - "type": "long" + "name": "button_id", + "type": "flags.1?int" + }, + { + "name": "url", + "type": "flags.2?string" } ], - "type": "messages.FoundStickerSets" + "type": "UrlAuthResult" }, { - "id": "-1856595926", - "method": "upload.getFileHashes", + "id": "-1322487515", + "method": "messages.acceptUrlAuth", "params": [ { - "name": "location", - "type": "InputFileLocation" + "name": "flags", + "type": "#" }, { - "name": "offset", - "type": "long" - } - ], - "type": "Vector" - }, - { - "id": "749019089", - "method": "help.getTermsOfServiceUpdate", - "params": [], - "type": "help.TermsOfServiceUpdate" - }, - { - "id": "-294455398", - "method": "help.acceptTermsOfService", - "params": [ + "name": "write_allowed", + "type": "flags.0?true" + }, { - "name": "id", - "type": "DataJSON" - } - ], - "type": "Bool" - }, - { - "id": "-1299661699", - "method": "account.getAllSecureValues", - "params": [], - "type": "Vector" - }, - { - "id": "1936088002", - "method": "account.getSecureValue", - "params": [ + "name": "peer", + "type": "flags.1?InputPeer" + }, { - "name": "types", - "type": "Vector" - } - ], - "type": "Vector" - }, - { - "id": "-1986010339", - "method": "account.saveSecureValue", - "params": [ + "name": "msg_id", + "type": "flags.1?int" + }, { - "name": "value", - "type": "InputSecureValue" + "name": "button_id", + "type": "flags.1?int" }, { - "name": "secure_secret_id", - "type": "long" + "name": "url", + "type": "flags.2?string" } ], - "type": "SecureValue" + "type": "UrlAuthResult" }, { - "id": "-1199522741", - "method": "account.deleteSecureValue", + "id": "1336717624", + "method": "messages.hidePeerSettingsBar", "params": [ { - "name": "types", - "type": "Vector" + "name": "peer", + "type": "InputPeer" } ], "type": "Bool" }, { - "id": "-1865902923", - "method": "users.setSecureValueErrors", + "id": "-386636848", + "method": "contacts.addContact", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "add_phone_privacy_exception", + "type": "flags.0?true" + }, { "name": "id", "type": "InputUser" }, { - "name": "errors", - "type": "Vector" - } - ], - "type": "Bool" - }, - { - "id": "-1456907910", - "method": "account.getAuthorizationForm", - "params": [ - { - "name": "bot_id", - "type": "long" + "name": "first_name", + "type": "string" }, { - "name": "scope", + "name": "last_name", "type": "string" }, { - "name": "public_key", + "name": "phone", "type": "string" } ], - "type": "account.AuthorizationForm" + "type": "Updates" }, { - "id": "-202552205", - "method": "account.acceptAuthorization", + "id": "-130964977", + "method": "contacts.acceptContact", "params": [ { - "name": "bot_id", - "type": "long" - }, - { - "name": "scope", - "type": "string" - }, + "name": "id", + "type": "InputUser" + } + ], + "type": "Updates" + }, + { + "id": "-1892102881", + "method": "channels.editCreator", + "params": [ { - "name": "public_key", - "type": "string" + "name": "channel", + "type": "InputChannel" }, { - "name": "value_hashes", - "type": "Vector" + "name": "user_id", + "type": "InputUser" }, { - "name": "credentials", - "type": "SecureCredentialsEncrypted" + "name": "password", + "type": "InputCheckPasswordSRP" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-1516022023", - "method": "account.sendVerifyPhoneCode", + "id": "-750207932", + "method": "contacts.getLocated", "params": [ { - "name": "phone_number", - "type": "string" + "name": "flags", + "type": "#" }, { - "name": "settings", - "type": "CodeSettings" + "name": "background", + "type": "flags.1?true" + }, + { + "name": "geo_point", + "type": "InputGeoPoint" + }, + { + "name": "self_expires", + "type": "flags.0?int" } ], - "type": "auth.SentCode" + "type": "Updates" }, { - "id": "1305716726", - "method": "account.verifyPhone", + "id": "1491484525", + "method": "channels.editLocation", "params": [ { - "name": "phone_number", - "type": "string" + "name": "channel", + "type": "InputChannel" }, { - "name": "phone_code_hash", - "type": "string" + "name": "geo_point", + "type": "InputGeoPoint" }, { - "name": "phone_code", + "name": "address", "type": "string" } ], "type": "Bool" }, { - "id": "-1730136133", - "method": "account.sendVerifyEmailCode", + "id": "-304832784", + "method": "channels.toggleSlowMode", "params": [ { - "name": "purpose", - "type": "EmailVerifyPurpose" + "name": "channel", + "type": "InputChannel" }, { - "name": "email", - "type": "string" + "name": "seconds", + "type": "int" } ], - "type": "account.SentEmailCode" + "type": "Updates" }, { - "id": "53322959", - "method": "account.verifyEmail", + "id": "-183077365", + "method": "messages.getScheduledHistory", "params": [ { - "name": "purpose", - "type": "EmailVerifyPurpose" + "name": "peer", + "type": "InputPeer" }, { - "name": "verification", - "type": "EmailVerification" + "name": "hash", + "type": "long" } ], - "type": "account.EmailVerified" + "type": "messages.Messages" }, { - "id": "1072547679", - "method": "help.getDeepLinkInfo", + "id": "-1111817116", + "method": "messages.getScheduledMessages", "params": [ { - "name": "path", - "type": "string" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "Vector" } ], - "type": "help.DeepLinkInfo" + "type": "messages.Messages" }, { - "id": "-2098076769", - "method": "contacts.getSaved", - "params": [], - "type": "Vector" + "id": "-1120369398", + "method": "messages.sendScheduledMessages", + "params": [ + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "Vector" + } + ], + "type": "Updates" }, { - "id": "-2092831552", - "method": "channels.getLeftChannels", + "id": "1504586518", + "method": "messages.deleteScheduledMessages", "params": [ { - "name": "offset", - "type": "int" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "Vector" } ], - "type": "messages.Chats" + "type": "Updates" }, { - "id": "-1896617296", - "method": "account.initTakeoutSession", + "id": "473805619", + "method": "account.uploadTheme", "params": [ { "name": "flags", "type": "#" }, { - "name": "contacts", - "type": "flags.0?true" + "name": "file", + "type": "InputFile" }, { - "name": "message_users", - "type": "flags.1?true" + "name": "thumb", + "type": "flags.0?InputFile" }, { - "name": "message_chats", - "type": "flags.2?true" + "name": "file_name", + "type": "string" }, { - "name": "message_megagroups", - "type": "flags.3?true" + "name": "mime_type", + "type": "string" + } + ], + "type": "Document" + }, + { + "id": "1697530880", + "method": "account.createTheme", + "params": [ + { + "name": "flags", + "type": "#" }, { - "name": "message_channels", - "type": "flags.4?true" + "name": "slug", + "type": "string" }, { - "name": "files", - "type": "flags.5?true" + "name": "title", + "type": "string" }, { - "name": "file_max_size", - "type": "flags.5?long" + "name": "document", + "type": "flags.2?InputDocument" + }, + { + "name": "settings", + "type": "flags.3?Vector" } ], - "type": "account.Takeout" + "type": "Theme" }, { - "id": "489050862", - "method": "account.finishTakeoutSession", + "id": "737414348", + "method": "account.updateTheme", "params": [ { "name": "flags", "type": "#" }, { - "name": "success", - "type": "flags.0?true" - } - ], - "type": "Bool" - }, - { - "id": "486505992", - "method": "messages.getSplitRanges", - "params": [], - "type": "Vector" - }, - { - "id": "911373810", - "method": "invokeWithMessagesRange", - "params": [ + "name": "format", + "type": "string" + }, { - "name": "range", - "type": "MessageRange" + "name": "theme", + "type": "InputTheme" }, { - "name": "query", - "type": "!X" + "name": "slug", + "type": "flags.0?string" + }, + { + "name": "title", + "type": "flags.1?string" + }, + { + "name": "document", + "type": "flags.2?InputDocument" + }, + { + "name": "settings", + "type": "flags.3?Vector" } ], - "type": "X" + "type": "Theme" }, { - "id": "-1398145746", - "method": "invokeWithTakeout", + "id": "-229175188", + "method": "account.saveTheme", "params": [ { - "name": "takeout_id", - "type": "long" + "name": "theme", + "type": "InputTheme" }, { - "name": "query", - "type": "!X" + "name": "unsave", + "type": "Bool" } ], - "type": "X" + "type": "Bool" }, { - "id": "-1031349873", - "method": "messages.markDialogUnread", + "id": "-953697477", + "method": "account.installTheme", "params": [ { "name": "flags", "type": "#" }, { - "name": "unread", + "name": "dark", "type": "flags.0?true" }, { - "name": "peer", - "type": "InputDialogPeer" + "name": "theme", + "type": "flags.1?InputTheme" + }, + { + "name": "format", + "type": "flags.2?string" + }, + { + "name": "base_theme", + "type": "flags.3?BaseTheme" } ], "type": "Bool" }, { - "id": "585256482", - "method": "messages.getDialogUnreadMarks", - "params": [], - "type": "Vector" - }, - { - "id": "-2062238246", - "method": "contacts.toggleTopPeers", + "id": "978872812", + "method": "account.getTheme", "params": [ { - "name": "enabled", - "type": "Bool" + "name": "format", + "type": "string" + }, + { + "name": "theme", + "type": "InputTheme" } ], - "type": "Bool" - }, - { - "id": "2119757468", - "method": "messages.clearAllDrafts", - "params": [], - "type": "Bool" + "type": "Theme" }, { - "id": "1642330196", - "method": "help.getAppConfig", + "id": "1913054296", + "method": "account.getThemes", "params": [ + { + "name": "format", + "type": "string" + }, { "name": "hash", - "type": "int" + "type": "long" } ], - "type": "help.AppConfig" + "type": "account.Themes" }, { - "id": "1862465352", - "method": "help.saveAppLog", + "id": "-1210022402", + "method": "auth.exportLoginToken", "params": [ { - "name": "events", - "type": "Vector" + "name": "api_id", + "type": "int" + }, + { + "name": "api_hash", + "type": "string" + }, + { + "name": "except_ids", + "type": "Vector" } ], - "type": "Bool" + "type": "auth.LoginToken" }, { - "id": "-966677240", - "method": "help.getPassportConfig", + "id": "-1783866140", + "method": "auth.importLoginToken", "params": [ { - "name": "hash", - "type": "int" + "name": "token", + "type": "bytes" } ], - "type": "help.PassportConfig" + "type": "auth.LoginToken" }, { - "id": "1784243458", - "method": "langpack.getLanguage", + "id": "-392909491", + "method": "auth.acceptLoginToken", "params": [ { - "name": "lang_pack", - "type": "string" - }, - { - "name": "lang_code", - "type": "string" + "name": "token", + "type": "bytes" } ], - "type": "LangPackLanguage" + "type": "Authorization" }, { - "id": "-760547348", - "method": "messages.updatePinnedMessage", + "id": "-1250643605", + "method": "account.setContentSettings", "params": [ { "name": "flags", "type": "#" }, { - "name": "silent", + "name": "sensitive_enabled", "type": "flags.0?true" - }, - { - "name": "unpin", - "type": "flags.1?true" - }, - { - "name": "pm_oneside", - "type": "flags.2?true" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "int" - } - ], - "type": "Updates" - }, - { - "id": "-1881204448", - "method": "account.confirmPasswordEmail", - "params": [ - { - "name": "code", - "type": "string" } ], "type": "Bool" }, { - "id": "2055154197", - "method": "account.resendPasswordEmail", - "params": [], - "type": "Bool" - }, - { - "id": "-1043606090", - "method": "account.cancelPasswordEmail", + "id": "-1952756306", + "method": "account.getContentSettings", "params": [], - "type": "Bool" + "type": "account.ContentSettings" }, { - "id": "-748624084", - "method": "help.getSupportName", + "id": "300429806", + "method": "channels.getInactiveChannels", "params": [], - "type": "help.SupportName" + "type": "messages.InactiveChats" }, { - "id": "59377875", - "method": "help.getUserInfo", + "id": "1705865692", + "method": "account.getMultiWallPapers", "params": [ { - "name": "user_id", - "type": "InputUser" + "name": "wallpapers", + "type": "Vector" } ], - "type": "help.UserInfo" + "type": "Vector" }, { - "id": "1723407216", - "method": "help.editUserInfo", + "id": "-1200736242", + "method": "messages.getPollVotes", "params": [ { - "name": "user_id", - "type": "InputUser" + "name": "flags", + "type": "#" }, { - "name": "message", - "type": "string" + "name": "peer", + "type": "InputPeer" }, { - "name": "entities", - "type": "Vector" - } - ], - "type": "help.UserInfo" - }, - { - "id": "-1626880216", - "method": "account.getContactSignUpNotification", - "params": [], - "type": "Bool" - }, - { - "id": "-806076575", - "method": "account.setContactSignUpNotification", - "params": [ + "name": "id", + "type": "int" + }, { - "name": "silent", - "type": "Bool" + "name": "option", + "type": "flags.0?bytes" + }, + { + "name": "offset", + "type": "flags.1?string" + }, + { + "name": "limit", + "type": "int" } ], - "type": "Bool" + "type": "messages.VotesList" }, { - "id": "1398240377", - "method": "account.getNotifyExceptions", + "id": "-1257951254", + "method": "messages.toggleStickerSets", "params": [ { "name": "flags", "type": "#" }, { - "name": "compare_sound", + "name": "uninstall", + "type": "flags.0?true" + }, + { + "name": "archive", "type": "flags.1?true" }, { - "name": "compare_stories", + "name": "unarchive", "type": "flags.2?true" }, { - "name": "peer", - "type": "flags.0?InputNotifyPeer" + "name": "stickersets", + "type": "Vector" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "283795844", - "method": "messages.sendVote", + "id": "779736953", + "method": "payments.getBankCardData", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "msg_id", - "type": "int" - }, - { - "name": "options", - "type": "Vector" + "name": "number", + "type": "string" } ], - "type": "Updates" + "type": "payments.BankCardData" }, { - "id": "1941660731", - "method": "messages.getPollResults", + "id": "-271283063", + "method": "messages.getDialogFilters", + "params": [], + "type": "messages.DialogFilters" + }, + { + "id": "-1566780372", + "method": "messages.getSuggestedDialogFilters", + "params": [], + "type": "Vector" + }, + { + "id": "450142282", + "method": "messages.updateDialogFilter", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "msg_id", + "name": "id", "type": "int" + }, + { + "name": "filter", + "type": "flags.0?DialogFilter" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "1848369232", - "method": "messages.getOnlines", + "id": "-983318044", + "method": "messages.updateDialogFiltersOrder", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "order", + "type": "Vector" } ], - "type": "ChatOnlines" + "type": "Bool" }, { - "id": "-554301545", - "method": "messages.editChatAbout", + "id": "-1421720550", + "method": "stats.getBroadcastStats", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "about", - "type": "string" + "name": "dark", + "type": "flags.0?true" + }, + { + "name": "channel", + "type": "InputChannel" } ], - "type": "Bool" + "type": "stats.BroadcastStats" }, { - "id": "-1517917375", - "method": "messages.editChatDefaultBannedRights", + "id": "1646092192", + "method": "stats.loadAsyncGraph", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "banned_rights", - "type": "ChatBannedRights" - } - ], - "type": "Updates" - }, - { - "id": "-57811990", - "method": "account.getWallPaper", - "params": [ + "name": "token", + "type": "string" + }, { - "name": "wallpaper", - "type": "InputWallPaper" + "name": "x", + "type": "flags.0?long" } ], - "type": "WallPaper" + "type": "StatsGraph" }, { - "id": "-476410109", - "method": "account.uploadWallPaper", + "id": "-1486204014", + "method": "stickers.setStickerSetThumb", "params": [ { "name": "flags", "type": "#" }, { - "name": "for_chat", - "type": "flags.0?true" - }, - { - "name": "file", - "type": "InputFile" + "name": "stickerset", + "type": "InputStickerSet" }, { - "name": "mime_type", - "type": "string" + "name": "thumb", + "type": "flags.0?InputDocument" }, { - "name": "settings", - "type": "WallPaperSettings" + "name": "thumb_document_id", + "type": "flags.1?long" } ], - "type": "WallPaper" + "type": "messages.StickerSet" }, { - "id": "1817860919", - "method": "account.saveWallPaper", + "id": "85399130", + "method": "bots.setBotCommands", "params": [ { - "name": "wallpaper", - "type": "InputWallPaper" + "name": "scope", + "type": "BotCommandScope" }, { - "name": "unsave", - "type": "Bool" + "name": "lang_code", + "type": "string" }, { - "name": "settings", - "type": "WallPaperSettings" + "name": "commands", + "type": "Vector" } ], "type": "Bool" }, { - "id": "-18000023", - "method": "account.installWallPaper", + "id": "2127598753", + "method": "messages.getOldFeaturedStickers", "params": [ { - "name": "wallpaper", - "type": "InputWallPaper" + "name": "offset", + "type": "int" }, { - "name": "settings", - "type": "WallPaperSettings" + "name": "limit", + "type": "int" + }, + { + "name": "hash", + "type": "long" } ], - "type": "Bool" + "type": "messages.FeaturedStickers" }, { - "id": "-1153722364", - "method": "account.resetWallPapers", + "id": "-1063816159", + "method": "help.getPromoData", "params": [], + "type": "help.PromoData" + }, + { + "id": "505748629", + "method": "help.hidePromoData", + "params": [ + { + "name": "peer", + "type": "InputPeer" + } + ], "type": "Bool" }, { - "id": "1457130303", - "method": "account.getAutoDownloadSettings", - "params": [], - "type": "account.AutoDownloadSettings" + "id": "-8744061", + "method": "phone.sendSignalingData", + "params": [ + { + "name": "peer", + "type": "InputPhoneCall" + }, + { + "name": "data", + "type": "bytes" + } + ], + "type": "Bool" }, { - "id": "1995661875", - "method": "account.saveAutoDownloadSettings", + "id": "-589330937", + "method": "stats.getMegagroupStats", "params": [ { "name": "flags", "type": "#" }, { - "name": "low", + "name": "dark", "type": "flags.0?true" }, { - "name": "high", - "type": "flags.1?true" - }, + "name": "channel", + "type": "InputChannel" + } + ], + "type": "stats.MegagroupStats" + }, + { + "id": "-349483786", + "method": "account.getGlobalPrivacySettings", + "params": [], + "type": "GlobalPrivacySettings" + }, + { + "id": "517647042", + "method": "account.setGlobalPrivacySettings", + "params": [ { "name": "settings", - "type": "AutoDownloadSettings" + "type": "GlobalPrivacySettings" } ], - "type": "Bool" + "type": "GlobalPrivacySettings" }, { - "id": "899735650", - "method": "messages.getEmojiKeywords", + "id": "-183649631", + "method": "help.dismissSuggestion", "params": [ { - "name": "lang_code", + "name": "peer", + "type": "InputPeer" + }, + { + "name": "suggestion", "type": "string" } ], - "type": "EmojiKeywordsDifference" + "type": "Bool" }, { - "id": "352892591", - "method": "messages.getEmojiKeywordsDifference", + "id": "1935116200", + "method": "help.getCountriesList", "params": [ { "name": "lang_code", "type": "string" }, { - "name": "from_version", + "name": "hash", "type": "int" } ], - "type": "EmojiKeywordsDifference" + "type": "help.CountriesList" }, { - "id": "1318675378", - "method": "messages.getEmojiKeywordsLanguages", + "id": "584962828", + "method": "messages.getReplies", "params": [ { - "name": "lang_codes", - "type": "Vector" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "msg_id", + "type": "int" + }, + { + "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" + }, + { + "name": "hash", + "type": "long" } ], - "type": "Vector" + "type": "messages.Messages" }, { - "id": "-709817306", - "method": "messages.getEmojiURL", + "id": "1147761405", + "method": "messages.getDiscussionMessage", "params": [ { - "name": "lang_code", - "type": "string" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "msg_id", + "type": "int" } ], - "type": "EmojiURL" + "type": "messages.DiscussionMessage" }, { - "id": "1749536939", - "method": "folders.editPeerFolders", + "id": "-147740172", + "method": "messages.readDiscussion", "params": [ { - "name": "folder_peers", - "type": "Vector" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "msg_id", + "type": "int" + }, + { + "name": "read_max_id", + "type": "int" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "465367808", - "method": "messages.getSearchCounters", + "id": "698914348", + "method": "contacts.blockFromReplies", "params": [ { "name": "flags", "type": "#" }, { - "name": "peer", - "type": "InputPeer" + "name": "delete_message", + "type": "flags.0?true" }, { - "name": "saved_peer_id", - "type": "flags.2?InputPeer" + "name": "delete_history", + "type": "flags.1?true" }, { - "name": "top_msg_id", - "type": "flags.0?int" + "name": "report_spam", + "type": "flags.2?true" }, { - "name": "filters", - "type": "Vector" + "name": "msg_id", + "type": "int" } ], - "type": "Vector" - }, - { - "id": "-170208392", - "method": "channels.getGroupsForDiscussion", - "params": [], - "type": "messages.Chats" + "type": "Updates" }, { - "id": "1079520178", - "method": "channels.setDiscussionGroup", + "id": "1595212100", + "method": "stats.getMessagePublicForwards", "params": [ { - "name": "broadcast", + "name": "channel", "type": "InputChannel" }, { - "name": "group", - "type": "InputChannel" + "name": "msg_id", + "type": "int" + }, + { + "name": "offset", + "type": "string" + }, + { + "name": "limit", + "type": "int" } ], - "type": "Bool" + "type": "stats.PublicForwards" }, { - "id": "428848198", - "method": "messages.requestUrlAuth", + "id": "-1226791947", + "method": "stats.getMessageStats", "params": [ { "name": "flags", "type": "#" }, { - "name": "peer", - "type": "flags.1?InputPeer" - }, - { - "name": "msg_id", - "type": "flags.1?int" + "name": "dark", + "type": "flags.0?true" }, { - "name": "button_id", - "type": "flags.1?int" + "name": "channel", + "type": "InputChannel" }, { - "name": "url", - "type": "flags.2?string" + "name": "msg_id", + "type": "int" } ], - "type": "UrlAuthResult" + "type": "stats.MessageStats" }, { - "id": "-1322487515", - "method": "messages.acceptUrlAuth", + "id": "103667527", + "method": "messages.unpinAllMessages", "params": [ { "name": "flags", "type": "#" }, - { - "name": "write_allowed", - "type": "flags.0?true" - }, { "name": "peer", - "type": "flags.1?InputPeer" - }, - { - "name": "msg_id", - "type": "flags.1?int" + "type": "InputPeer" }, { - "name": "button_id", - "type": "flags.1?int" + "name": "top_msg_id", + "type": "flags.0?int" }, { - "name": "url", - "type": "flags.2?string" + "name": "saved_peer_id", + "type": "flags.1?InputPeer" } ], - "type": "UrlAuthResult" + "type": "messages.AffectedHistory" }, { - "id": "1336717624", - "method": "messages.hidePeerSettingsBar", + "id": "1221445336", + "method": "phone.createGroupCall", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "rtmp_stream", + "type": "flags.2?true" + }, { "name": "peer", "type": "InputPeer" + }, + { + "name": "random_id", + "type": "int" + }, + { + "name": "title", + "type": "flags.0?string" + }, + { + "name": "schedule_date", + "type": "flags.1?int" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-386636848", - "method": "contacts.addContact", + "id": "-1883951017", + "method": "phone.joinGroupCall", "params": [ { "name": "flags", "type": "#" }, { - "name": "add_phone_privacy_exception", + "name": "muted", "type": "flags.0?true" }, { - "name": "id", - "type": "InputUser" + "name": "video_stopped", + "type": "flags.2?true" }, { - "name": "first_name", - "type": "string" + "name": "call", + "type": "InputGroupCall" }, { - "name": "last_name", - "type": "string" + "name": "join_as", + "type": "InputPeer" }, { - "name": "phone", - "type": "string" + "name": "invite_hash", + "type": "flags.1?string" + }, + { + "name": "public_key", + "type": "flags.3?int256" + }, + { + "name": "block", + "type": "flags.3?bytes" + }, + { + "name": "params", + "type": "DataJSON" } ], "type": "Updates" }, { - "id": "-130964977", - "method": "contacts.acceptContact", + "id": "1342404601", + "method": "phone.leaveGroupCall", "params": [ { - "name": "id", - "type": "InputUser" + "name": "call", + "type": "InputGroupCall" + }, + { + "name": "source", + "type": "int" } ], "type": "Updates" }, { - "id": "-1892102881", - "method": "channels.editCreator", + "id": "2067345760", + "method": "phone.inviteToGroupCall", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "call", + "type": "InputGroupCall" }, { - "name": "user_id", - "type": "InputUser" - }, + "name": "users", + "type": "Vector" + } + ], + "type": "Updates" + }, + { + "id": "2054648117", + "method": "phone.discardGroupCall", + "params": [ { - "name": "password", - "type": "InputCheckPasswordSRP" + "name": "call", + "type": "InputGroupCall" } ], "type": "Updates" }, { - "id": "-750207932", - "method": "contacts.getLocated", + "id": "1958458429", + "method": "phone.toggleGroupCallSettings", "params": [ { "name": "flags", "type": "#" }, { - "name": "background", + "name": "reset_invite_hash", "type": "flags.1?true" }, { - "name": "geo_point", - "type": "InputGeoPoint" + "name": "call", + "type": "InputGroupCall" }, { - "name": "self_expires", - "type": "flags.0?int" + "name": "join_muted", + "type": "flags.0?Bool" } ], "type": "Updates" }, { - "id": "1491484525", - "method": "channels.editLocation", + "id": "68699611", + "method": "phone.getGroupCall", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "geo_point", - "type": "InputGeoPoint" + "name": "call", + "type": "InputGroupCall" }, { - "name": "address", - "type": "string" + "name": "limit", + "type": "int" } ], - "type": "Bool" + "type": "phone.GroupCall" }, { - "id": "-304832784", - "method": "channels.toggleSlowMode", + "id": "-984033109", + "method": "phone.getGroupParticipants", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "call", + "type": "InputGroupCall" }, { - "name": "seconds", + "name": "ids", + "type": "Vector" + }, + { + "name": "sources", + "type": "Vector" + }, + { + "name": "offset", + "type": "string" + }, + { + "name": "limit", "type": "int" } ], - "type": "Updates" + "type": "phone.GroupParticipants" }, { - "id": "-183077365", - "method": "messages.getScheduledHistory", + "id": "-1248003721", + "method": "phone.checkGroupCall", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "call", + "type": "InputGroupCall" }, { - "name": "hash", - "type": "long" + "name": "sources", + "type": "Vector" } ], - "type": "messages.Messages" + "type": "Vector" }, { - "id": "-1111817116", - "method": "messages.getScheduledMessages", + "id": "1540419152", + "method": "messages.deleteChat", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "Vector" + "name": "chat_id", + "type": "long" } ], - "type": "messages.Messages" + "type": "Bool" }, { - "id": "-1120369398", - "method": "messages.sendScheduledMessages", + "id": "-104078327", + "method": "messages.deletePhoneCallHistory", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "id", - "type": "Vector" + "name": "revoke", + "type": "flags.0?true" } ], - "type": "Updates" + "type": "messages.AffectedFoundMessages" }, { - "id": "1504586518", - "method": "messages.deleteScheduledMessages", + "id": "1140726259", + "method": "messages.checkHistoryImport", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "Vector" + "name": "import_head", + "type": "string" } ], - "type": "Updates" + "type": "messages.HistoryImportParsed" }, { - "id": "473805619", - "method": "account.uploadTheme", + "id": "873008187", + "method": "messages.initHistoryImport", "params": [ { - "name": "flags", - "type": "#" + "name": "peer", + "type": "InputPeer" }, { "name": "file", "type": "InputFile" }, { - "name": "thumb", - "type": "flags.0?InputFile" - }, - { - "name": "file_name", - "type": "string" - }, - { - "name": "mime_type", - "type": "string" + "name": "media_count", + "type": "int" } ], - "type": "Document" + "type": "messages.HistoryImport" }, { - "id": "1697530880", - "method": "account.createTheme", + "id": "713433234", + "method": "messages.uploadImportedMedia", "params": [ { - "name": "flags", - "type": "#" + "name": "peer", + "type": "InputPeer" }, { - "name": "slug", - "type": "string" + "name": "import_id", + "type": "long" }, { - "name": "title", + "name": "file_name", "type": "string" }, { - "name": "document", - "type": "flags.2?InputDocument" + "name": "media", + "type": "InputMedia" + } + ], + "type": "MessageMedia" + }, + { + "id": "-1271008444", + "method": "messages.startHistoryImport", + "params": [ + { + "name": "peer", + "type": "InputPeer" }, { - "name": "settings", - "type": "flags.3?Vector" + "name": "import_id", + "type": "long" } ], - "type": "Theme" + "type": "Bool" }, { - "id": "737414348", - "method": "account.updateTheme", + "id": "-1565154314", + "method": "messages.getExportedChatInvites", "params": [ { "name": "flags", "type": "#" }, { - "name": "format", - "type": "string" + "name": "revoked", + "type": "flags.3?true" }, { - "name": "theme", - "type": "InputTheme" + "name": "peer", + "type": "InputPeer" }, { - "name": "slug", - "type": "flags.0?string" + "name": "admin_id", + "type": "InputUser" }, { - "name": "title", - "type": "flags.1?string" + "name": "offset_date", + "type": "flags.2?int" }, { - "name": "document", - "type": "flags.2?InputDocument" + "name": "offset_link", + "type": "flags.2?string" }, { - "name": "settings", - "type": "flags.3?Vector" + "name": "limit", + "type": "int" } ], - "type": "Theme" + "type": "messages.ExportedChatInvites" }, { - "id": "-229175188", - "method": "account.saveTheme", + "id": "1937010524", + "method": "messages.getExportedChatInvite", "params": [ { - "name": "theme", - "type": "InputTheme" + "name": "peer", + "type": "InputPeer" }, { - "name": "unsave", - "type": "Bool" + "name": "link", + "type": "string" } ], - "type": "Bool" + "type": "messages.ExportedChatInvite" }, { - "id": "-953697477", - "method": "account.installTheme", + "id": "-1110823051", + "method": "messages.editExportedChatInvite", "params": [ { "name": "flags", "type": "#" }, { - "name": "dark", - "type": "flags.0?true" + "name": "revoked", + "type": "flags.2?true" }, { - "name": "theme", - "type": "flags.1?InputTheme" + "name": "peer", + "type": "InputPeer" }, { - "name": "format", - "type": "flags.2?string" + "name": "link", + "type": "string" }, { - "name": "base_theme", - "type": "flags.3?BaseTheme" + "name": "expire_date", + "type": "flags.0?int" + }, + { + "name": "usage_limit", + "type": "flags.1?int" + }, + { + "name": "request_needed", + "type": "flags.3?Bool" + }, + { + "name": "title", + "type": "flags.4?string" } ], - "type": "Bool" + "type": "messages.ExportedChatInvite" }, { - "id": "978872812", - "method": "account.getTheme", + "id": "1452833749", + "method": "messages.deleteRevokedExportedChatInvites", "params": [ { - "name": "format", - "type": "string" + "name": "peer", + "type": "InputPeer" }, { - "name": "theme", - "type": "InputTheme" + "name": "admin_id", + "type": "InputUser" } ], - "type": "Theme" + "type": "Bool" }, { - "id": "1913054296", - "method": "account.getThemes", + "id": "-731601877", + "method": "messages.deleteExportedChatInvite", "params": [ { - "name": "format", - "type": "string" + "name": "peer", + "type": "InputPeer" }, { - "name": "hash", - "type": "long" + "name": "link", + "type": "string" } ], - "type": "account.Themes" + "type": "Bool" }, { - "id": "-1210022402", - "method": "auth.exportLoginToken", + "id": "958457583", + "method": "messages.getAdminsWithInvites", "params": [ { - "name": "api_id", - "type": "int" - }, - { - "name": "api_hash", - "type": "string" - }, - { - "name": "except_ids", - "type": "Vector" + "name": "peer", + "type": "InputPeer" } ], - "type": "auth.LoginToken" + "type": "messages.ChatAdminsWithInvites" }, { - "id": "-1783866140", - "method": "auth.importLoginToken", + "id": "-553329330", + "method": "messages.getChatInviteImporters", "params": [ { - "name": "token", - "type": "bytes" + "name": "flags", + "type": "#" + }, + { + "name": "requested", + "type": "flags.0?true" + }, + { + "name": "subscription_expired", + "type": "flags.3?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "link", + "type": "flags.1?string" + }, + { + "name": "q", + "type": "flags.2?string" + }, + { + "name": "offset_date", + "type": "int" + }, + { + "name": "offset_user", + "type": "InputUser" + }, + { + "name": "limit", + "type": "int" } ], - "type": "auth.LoginToken" + "type": "messages.ChatInviteImporters" }, { - "id": "-392909491", - "method": "auth.acceptLoginToken", + "id": "-1207017500", + "method": "messages.setHistoryTTL", "params": [ { - "name": "token", - "type": "bytes" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "period", + "type": "int" } ], - "type": "Authorization" + "type": "Updates" }, { - "id": "-1250643605", - "method": "account.setContentSettings", + "id": "-91437323", + "method": "account.reportProfilePhoto", "params": [ { - "name": "flags", - "type": "#" + "name": "peer", + "type": "InputPeer" }, { - "name": "sensitive_enabled", - "type": "flags.0?true" + "name": "photo_id", + "type": "InputPhoto" + }, + { + "name": "reason", + "type": "ReportReason" + }, + { + "name": "message", + "type": "string" } ], "type": "Bool" }, { - "id": "-1952756306", - "method": "account.getContentSettings", - "params": [], - "type": "account.ContentSettings" - }, - { - "id": "300429806", - "method": "channels.getInactiveChannels", - "params": [], - "type": "messages.InactiveChats" + "id": "187239529", + "method": "channels.convertToGigagroup", + "params": [ + { + "name": "channel", + "type": "InputChannel" + } + ], + "type": "Updates" }, { - "id": "1705865692", - "method": "account.getMultiWallPapers", + "id": "1573261059", + "method": "messages.checkHistoryImportPeer", "params": [ { - "name": "wallpapers", - "type": "Vector" + "name": "peer", + "type": "InputPeer" } ], - "type": "Vector" + "type": "messages.CheckedHistoryImportPeer" }, { - "id": "-1200736242", - "method": "messages.getPollVotes", + "id": "-248985848", + "method": "phone.toggleGroupCallRecord", "params": [ { "name": "flags", "type": "#" }, { - "name": "peer", - "type": "InputPeer" + "name": "start", + "type": "flags.0?true" }, { - "name": "id", - "type": "int" + "name": "video", + "type": "flags.2?true" }, { - "name": "option", - "type": "flags.0?bytes" + "name": "call", + "type": "InputGroupCall" }, { - "name": "offset", + "name": "title", "type": "flags.1?string" }, { - "name": "limit", - "type": "int" + "name": "video_portrait", + "type": "flags.2?Bool" } ], - "type": "messages.VotesList" + "type": "Updates" }, { - "id": "-1257951254", - "method": "messages.toggleStickerSets", + "id": "-1524155713", + "method": "phone.editGroupCallParticipant", "params": [ { "name": "flags", "type": "#" }, { - "name": "uninstall", - "type": "flags.0?true" + "name": "call", + "type": "InputGroupCall" }, { - "name": "archive", - "type": "flags.1?true" + "name": "participant", + "type": "InputPeer" }, { - "name": "unarchive", - "type": "flags.2?true" + "name": "muted", + "type": "flags.0?Bool" }, { - "name": "stickersets", - "type": "Vector" - } - ], - "type": "Bool" - }, - { - "id": "779736953", - "method": "payments.getBankCardData", - "params": [ + "name": "volume", + "type": "flags.1?int" + }, { - "name": "number", - "type": "string" + "name": "raise_hand", + "type": "flags.2?Bool" + }, + { + "name": "video_stopped", + "type": "flags.3?Bool" + }, + { + "name": "video_paused", + "type": "flags.4?Bool" + }, + { + "name": "presentation_paused", + "type": "flags.5?Bool" } ], - "type": "payments.BankCardData" - }, - { - "id": "-271283063", - "method": "messages.getDialogFilters", - "params": [], - "type": "messages.DialogFilters" - }, - { - "id": "-1566780372", - "method": "messages.getSuggestedDialogFilters", - "params": [], - "type": "Vector" + "type": "Updates" }, { - "id": "450142282", - "method": "messages.updateDialogFilter", + "id": "480685066", + "method": "phone.editGroupCallTitle", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "id", - "type": "int" + "name": "call", + "type": "InputGroupCall" }, { - "name": "filter", - "type": "flags.0?DialogFilter" + "name": "title", + "type": "string" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-983318044", - "method": "messages.updateDialogFiltersOrder", + "id": "-277077702", + "method": "phone.getGroupCallJoinAs", "params": [ { - "name": "order", - "type": "Vector" + "name": "peer", + "type": "InputPeer" } ], - "type": "Bool" + "type": "phone.JoinAsPeers" }, { - "id": "-1421720550", - "method": "stats.getBroadcastStats", + "id": "-425040769", + "method": "phone.exportGroupCallInvite", "params": [ { "name": "flags", "type": "#" }, { - "name": "dark", + "name": "can_self_unmute", "type": "flags.0?true" }, { - "name": "channel", - "type": "InputChannel" + "name": "call", + "type": "InputGroupCall" } ], - "type": "stats.BroadcastStats" + "type": "phone.ExportedGroupCallInvite" }, { - "id": "1646092192", - "method": "stats.loadAsyncGraph", + "id": "563885286", + "method": "phone.toggleGroupCallStartSubscription", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "token", - "type": "string" + "name": "call", + "type": "InputGroupCall" }, { - "name": "x", - "type": "flags.0?long" + "name": "subscribed", + "type": "Bool" } ], - "type": "StatsGraph" + "type": "Updates" }, { - "id": "-1486204014", - "method": "stickers.setStickerSetThumb", + "id": "1451287362", + "method": "phone.startScheduledGroupCall", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "stickerset", - "type": "InputStickerSet" - }, - { - "name": "thumb", - "type": "flags.0?InputDocument" - }, - { - "name": "thumb_document_id", - "type": "flags.1?long" + "name": "call", + "type": "InputGroupCall" } ], - "type": "messages.StickerSet" + "type": "Updates" }, { - "id": "85399130", - "method": "bots.setBotCommands", + "id": "1465786252", + "method": "phone.saveDefaultGroupCallJoinAs", "params": [ { - "name": "scope", - "type": "BotCommandScope" - }, - { - "name": "lang_code", - "type": "string" + "name": "peer", + "type": "InputPeer" }, { - "name": "commands", - "type": "Vector" + "name": "join_as", + "type": "InputPeer" } ], "type": "Bool" }, { - "id": "2127598753", - "method": "messages.getOldFeaturedStickers", + "id": "-873829436", + "method": "phone.joinGroupCallPresentation", "params": [ { - "name": "offset", - "type": "int" - }, - { - "name": "limit", - "type": "int" + "name": "call", + "type": "InputGroupCall" }, { - "name": "hash", - "type": "long" + "name": "params", + "type": "DataJSON" } ], - "type": "messages.FeaturedStickers" + "type": "Updates" }, { - "id": "-1063816159", - "method": "help.getPromoData", - "params": [], - "type": "help.PromoData" + "id": "475058500", + "method": "phone.leaveGroupCallPresentation", + "params": [ + { + "name": "call", + "type": "InputGroupCall" + } + ], + "type": "Updates" }, { - "id": "505748629", - "method": "help.hidePromoData", + "id": "676017721", + "method": "stickers.checkShortName", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "short_name", + "type": "string" } ], "type": "Bool" }, { - "id": "-8744061", - "method": "phone.sendSignalingData", + "id": "1303364867", + "method": "stickers.suggestShortName", "params": [ { - "name": "peer", - "type": "InputPhoneCall" + "name": "title", + "type": "string" + } + ], + "type": "stickers.SuggestedShortName" + }, + { + "id": "1032708345", + "method": "bots.resetBotCommands", + "params": [ + { + "name": "scope", + "type": "BotCommandScope" }, { - "name": "data", - "type": "bytes" + "name": "lang_code", + "type": "string" } ], "type": "Bool" }, { - "id": "-589330937", - "method": "stats.getMegagroupStats", + "id": "-481554986", + "method": "bots.getBotCommands", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "dark", - "type": "flags.0?true" + "name": "scope", + "type": "BotCommandScope" }, { - "name": "channel", - "type": "InputChannel" + "name": "lang_code", + "type": "string" } ], - "type": "stats.MegagroupStats" + "type": "Vector" }, { - "id": "-349483786", - "method": "account.getGlobalPrivacySettings", + "id": "-1828139493", + "method": "account.resetPassword", "params": [], - "type": "GlobalPrivacySettings" + "type": "account.ResetPasswordResult" }, { - "id": "517647042", - "method": "account.setGlobalPrivacySettings", + "id": "1284770294", + "method": "account.declinePasswordReset", + "params": [], + "type": "Bool" + }, + { + "id": "221691769", + "method": "auth.checkRecoveryPassword", "params": [ { - "name": "settings", - "type": "GlobalPrivacySettings" + "name": "code", + "type": "string" } ], - "type": "GlobalPrivacySettings" + "type": "Bool" }, { - "id": "-183649631", - "method": "help.dismissSuggestion", + "id": "-700916087", + "method": "account.getChatThemes", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "account.Themes" + }, + { + "id": "135398089", + "method": "messages.setChatTheme", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "suggestion", - "type": "string" + "name": "theme", + "type": "InputChatTheme" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "1935116200", - "method": "help.getCountriesList", + "id": "834782287", + "method": "messages.getMessageReadParticipants", "params": [ { - "name": "lang_code", - "type": "string" + "name": "peer", + "type": "InputPeer" }, { - "name": "hash", + "name": "msg_id", "type": "int" } ], - "type": "help.CountriesList" + "type": "Vector" }, { - "id": "584962828", - "method": "messages.getReplies", + "id": "1789130429", + "method": "messages.getSearchResultsCalendar", "params": [ + { + "name": "flags", + "type": "#" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "msg_id", - "type": "int" + "name": "saved_peer_id", + "type": "flags.2?InputPeer" + }, + { + "name": "filter", + "type": "MessagesFilter" }, { "name": "offset_id", @@ -33391,166 +36728,203 @@ { "name": "offset_date", "type": "int" + } + ], + "type": "messages.SearchResultsCalendar" + }, + { + "id": "-1669386480", + "method": "messages.getSearchResultsPositions", + "params": [ + { + "name": "flags", + "type": "#" }, { - "name": "add_offset", + "name": "peer", + "type": "InputPeer" + }, + { + "name": "saved_peer_id", + "type": "flags.2?InputPeer" + }, + { + "name": "filter", + "type": "MessagesFilter" + }, + { + "name": "offset_id", "type": "int" }, { "name": "limit", "type": "int" + } + ], + "type": "messages.SearchResultsPositions" + }, + { + "id": "2145904661", + "method": "messages.hideChatJoinRequest", + "params": [ + { + "name": "flags", + "type": "#" }, { - "name": "max_id", - "type": "int" + "name": "approved", + "type": "flags.0?true" }, { - "name": "min_id", - "type": "int" + "name": "peer", + "type": "InputPeer" }, { - "name": "hash", - "type": "long" + "name": "user_id", + "type": "InputUser" } ], - "type": "messages.Messages" + "type": "Updates" }, { - "id": "1147761405", - "method": "messages.getDiscussionMessage", + "id": "-528091926", + "method": "messages.hideAllChatJoinRequests", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "approved", + "type": "flags.0?true" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "msg_id", - "type": "int" + "name": "link", + "type": "flags.1?string" } ], - "type": "messages.DiscussionMessage" + "type": "Updates" }, { - "id": "-147740172", - "method": "messages.readDiscussion", + "id": "-1323389022", + "method": "messages.toggleNoForwards", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "msg_id", - "type": "int" + "name": "enabled", + "type": "Bool" + } + ], + "type": "Updates" + }, + { + "id": "-855777386", + "method": "messages.saveDefaultSendAs", + "params": [ + { + "name": "peer", + "type": "InputPeer" }, { - "name": "read_max_id", - "type": "int" + "name": "send_as", + "type": "InputPeer" } ], "type": "Bool" }, { - "id": "698914348", - "method": "contacts.blockFromReplies", + "id": "-410672065", + "method": "channels.getSendAs", "params": [ { "name": "flags", "type": "#" }, { - "name": "delete_message", + "name": "for_paid_reactions", "type": "flags.0?true" }, { - "name": "delete_history", - "type": "flags.1?true" - }, - { - "name": "report_spam", - "type": "flags.2?true" - }, - { - "name": "msg_id", - "type": "int" + "name": "peer", + "type": "InputPeer" } ], - "type": "Updates" + "type": "channels.SendAsPeers" }, { - "id": "1595212100", - "method": "stats.getMessagePublicForwards", + "id": "-1081501024", + "method": "account.setAuthorizationTTL", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "msg_id", - "type": "int" - }, - { - "name": "offset", - "type": "string" - }, - { - "name": "limit", + "name": "authorization_ttl_days", "type": "int" } ], - "type": "stats.PublicForwards" + "type": "Bool" }, { - "id": "-1226791947", - "method": "stats.getMessageStats", + "id": "1089766498", + "method": "account.changeAuthorizationSettings", "params": [ { "name": "flags", "type": "#" }, { - "name": "dark", - "type": "flags.0?true" + "name": "confirmed", + "type": "flags.3?true" }, { - "name": "channel", - "type": "InputChannel" + "name": "hash", + "type": "long" }, { - "name": "msg_id", - "type": "int" + "name": "encrypted_requests_disabled", + "type": "flags.0?Bool" + }, + { + "name": "call_requests_disabled", + "type": "flags.1?Bool" } ], - "type": "stats.MessageStats" + "type": "Bool" }, { - "id": "-299714136", - "method": "messages.unpinAllMessages", + "id": "913655003", + "method": "channels.deleteParticipantHistory", "params": [ { - "name": "flags", - "type": "#" + "name": "channel", + "type": "InputChannel" }, { - "name": "peer", + "name": "participant", "type": "InputPeer" - }, - { - "name": "top_msg_id", - "type": "flags.0?int" } ], "type": "messages.AffectedHistory" }, { - "id": "1221445336", - "method": "phone.createGroupCall", + "id": "-754091820", + "method": "messages.sendReaction", "params": [ { "name": "flags", "type": "#" }, { - "name": "rtmp_stream", + "name": "big", + "type": "flags.1?true" + }, + { + "name": "add_to_recent", "type": "flags.2?true" }, { @@ -33558,1897 +36932,1784 @@ "type": "InputPeer" }, { - "name": "random_id", + "name": "msg_id", "type": "int" }, { - "name": "title", - "type": "flags.0?string" + "name": "reaction", + "type": "flags.0?Vector" + } + ], + "type": "Updates" + }, + { + "id": "-1950707482", + "method": "messages.getMessagesReactions", + "params": [ + { + "name": "peer", + "type": "InputPeer" }, { - "name": "schedule_date", - "type": "flags.1?int" + "name": "id", + "type": "Vector" } ], "type": "Updates" }, { - "id": "-1322057861", - "method": "phone.joinGroupCall", + "id": "1176190792", + "method": "messages.getMessageReactionsList", "params": [ { "name": "flags", "type": "#" }, { - "name": "muted", - "type": "flags.0?true" - }, - { - "name": "video_stopped", - "type": "flags.2?true" + "name": "peer", + "type": "InputPeer" }, { - "name": "call", - "type": "InputGroupCall" + "name": "id", + "type": "int" }, { - "name": "join_as", - "type": "InputPeer" + "name": "reaction", + "type": "flags.0?Reaction" }, { - "name": "invite_hash", + "name": "offset", "type": "flags.1?string" }, { - "name": "params", - "type": "DataJSON" + "name": "limit", + "type": "int" } ], - "type": "Updates" + "type": "messages.MessageReactionsList" }, { - "id": "1342404601", - "method": "phone.leaveGroupCall", + "id": "-2041895551", + "method": "messages.setChatAvailableReactions", "params": [ { - "name": "call", - "type": "InputGroupCall" + "name": "flags", + "type": "#" }, { - "name": "source", - "type": "int" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "available_reactions", + "type": "ChatReactions" + }, + { + "name": "reactions_limit", + "type": "flags.0?int" + }, + { + "name": "paid_enabled", + "type": "flags.1?Bool" } ], "type": "Updates" }, { - "id": "2067345760", - "method": "phone.inviteToGroupCall", + "id": "417243308", + "method": "messages.getAvailableReactions", "params": [ { - "name": "call", - "type": "InputGroupCall" - }, + "name": "hash", + "type": "int" + } + ], + "type": "messages.AvailableReactions" + }, + { + "id": "1330094102", + "method": "messages.setDefaultReaction", + "params": [ { - "name": "users", - "type": "Vector" + "name": "reaction", + "type": "Reaction" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "2054648117", - "method": "phone.discardGroupCall", + "id": "1662529584", + "method": "messages.translateText", "params": [ { - "name": "call", - "type": "InputGroupCall" + "name": "flags", + "type": "#" + }, + { + "name": "peer", + "type": "flags.0?InputPeer" + }, + { + "name": "id", + "type": "flags.0?Vector" + }, + { + "name": "text", + "type": "flags.1?Vector" + }, + { + "name": "to_lang", + "type": "string" } ], - "type": "Updates" + "type": "messages.TranslatedText" }, { - "id": "1958458429", - "method": "phone.toggleGroupCallSettings", + "id": "-1115713364", + "method": "messages.getUnreadReactions", "params": [ { "name": "flags", "type": "#" }, { - "name": "reset_invite_hash", - "type": "flags.1?true" + "name": "peer", + "type": "InputPeer" }, { - "name": "call", - "type": "InputGroupCall" + "name": "top_msg_id", + "type": "flags.0?int" }, { - "name": "join_muted", - "type": "flags.0?Bool" - } - ], - "type": "Updates" - }, - { - "id": "68699611", - "method": "phone.getGroupCall", - "params": [ + "name": "saved_peer_id", + "type": "flags.1?InputPeer" + }, { - "name": "call", - "type": "InputGroupCall" + "name": "offset_id", + "type": "int" + }, + { + "name": "add_offset", + "type": "int" }, { "name": "limit", "type": "int" + }, + { + "name": "max_id", + "type": "int" + }, + { + "name": "min_id", + "type": "int" } ], - "type": "phone.GroupCall" + "type": "messages.Messages" }, { - "id": "-984033109", - "method": "phone.getGroupParticipants", + "id": "-1631301741", + "method": "messages.readReactions", "params": [ { - "name": "call", - "type": "InputGroupCall" - }, - { - "name": "ids", - "type": "Vector" + "name": "flags", + "type": "#" }, { - "name": "sources", - "type": "Vector" + "name": "peer", + "type": "InputPeer" }, { - "name": "offset", - "type": "string" + "name": "top_msg_id", + "type": "flags.0?int" }, { - "name": "limit", - "type": "int" + "name": "saved_peer_id", + "type": "flags.1?InputPeer" } ], - "type": "phone.GroupParticipants" + "type": "messages.AffectedHistory" }, { - "id": "-1248003721", - "method": "phone.checkGroupCall", + "id": "-1963375804", + "method": "contacts.resolvePhone", "params": [ { - "name": "call", - "type": "InputGroupCall" - }, - { - "name": "sources", - "type": "Vector" + "name": "phone", + "type": "string" } ], - "type": "Vector" + "type": "contacts.ResolvedPeer" }, { - "id": "1540419152", - "method": "messages.deleteChat", + "id": "447879488", + "method": "phone.getGroupCallStreamChannels", "params": [ { - "name": "chat_id", - "type": "long" + "name": "call", + "type": "InputGroupCall" } ], - "type": "Bool" + "type": "phone.GroupCallStreamChannels" }, { - "id": "-104078327", - "method": "messages.deletePhoneCallHistory", + "id": "-558650433", + "method": "phone.getGroupCallStreamRtmpUrl", "params": [ { - "name": "flags", - "type": "#" + "name": "peer", + "type": "InputPeer" }, { "name": "revoke", - "type": "flags.0?true" + "type": "Bool" } ], - "type": "messages.AffectedFoundMessages" + "type": "phone.GroupCallStreamRtmpUrl" }, { - "id": "1140726259", - "method": "messages.checkHistoryImport", + "id": "276705696", + "method": "messages.searchSentMedia", "params": [ { - "name": "import_head", + "name": "q", "type": "string" - } - ], - "type": "messages.HistoryImportParsed" - }, - { - "id": "873008187", - "method": "messages.initHistoryImport", - "params": [ - { - "name": "peer", - "type": "InputPeer" }, { - "name": "file", - "type": "InputFile" + "name": "filter", + "type": "MessagesFilter" }, { - "name": "media_count", + "name": "limit", "type": "int" } ], - "type": "messages.HistoryImport" + "type": "messages.Messages" }, { - "id": "713433234", - "method": "messages.uploadImportedMedia", + "id": "385663691", + "method": "messages.getAttachMenuBots", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "import_id", + "name": "hash", "type": "long" - }, - { - "name": "file_name", - "type": "string" - }, - { - "name": "media", - "type": "InputMedia" } ], - "type": "MessageMedia" + "type": "AttachMenuBots" }, { - "id": "-1271008444", - "method": "messages.startHistoryImport", + "id": "1998676370", + "method": "messages.getAttachMenuBot", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "import_id", - "type": "long" + "name": "bot", + "type": "InputUser" } ], - "type": "Bool" + "type": "AttachMenuBotsBot" }, { - "id": "-1565154314", - "method": "messages.getExportedChatInvites", + "id": "1777704297", + "method": "messages.toggleBotInAttachMenu", "params": [ { "name": "flags", "type": "#" }, { - "name": "revoked", - "type": "flags.3?true" - }, - { - "name": "peer", - "type": "InputPeer" + "name": "write_allowed", + "type": "flags.0?true" }, { - "name": "admin_id", + "name": "bot", "type": "InputUser" }, { - "name": "offset_date", - "type": "flags.2?int" - }, - { - "name": "offset_link", - "type": "flags.2?string" - }, - { - "name": "limit", - "type": "int" + "name": "enabled", + "type": "Bool" } ], - "type": "messages.ExportedChatInvites" + "type": "Bool" }, { - "id": "1937010524", - "method": "messages.getExportedChatInvite", + "id": "647873217", + "method": "messages.requestWebView", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "link", - "type": "string" - } - ], - "type": "messages.ExportedChatInvite" - }, - { - "id": "-1110823051", - "method": "messages.editExportedChatInvite", - "params": [ + "name": "from_bot_menu", + "type": "flags.4?true" + }, { - "name": "flags", - "type": "#" + "name": "silent", + "type": "flags.5?true" }, { - "name": "revoked", - "type": "flags.2?true" + "name": "compact", + "type": "flags.7?true" + }, + { + "name": "fullscreen", + "type": "flags.8?true" }, { "name": "peer", "type": "InputPeer" }, { - "name": "link", - "type": "string" + "name": "bot", + "type": "InputUser" }, { - "name": "expire_date", - "type": "flags.0?int" + "name": "url", + "type": "flags.1?string" }, { - "name": "usage_limit", - "type": "flags.1?int" + "name": "start_param", + "type": "flags.3?string" }, { - "name": "request_needed", - "type": "flags.3?Bool" + "name": "theme_params", + "type": "flags.2?DataJSON" }, { - "name": "title", - "type": "flags.4?string" + "name": "platform", + "type": "string" + }, + { + "name": "reply_to", + "type": "flags.0?InputReplyTo" + }, + { + "name": "send_as", + "type": "flags.13?InputPeer" } ], - "type": "messages.ExportedChatInvite" + "type": "WebViewResult" }, { - "id": "1452833749", - "method": "messages.deleteRevokedExportedChatInvites", + "id": "-1328014717", + "method": "messages.prolongWebView", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "silent", + "type": "flags.5?true" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "admin_id", + "name": "bot", "type": "InputUser" - } - ], - "type": "Bool" - }, - { - "id": "-731601877", - "method": "messages.deleteExportedChatInvite", - "params": [ + }, { - "name": "peer", - "type": "InputPeer" + "name": "query_id", + "type": "long" }, { - "name": "link", - "type": "string" - } - ], - "type": "Bool" - }, - { - "id": "958457583", - "method": "messages.getAdminsWithInvites", - "params": [ + "name": "reply_to", + "type": "flags.0?InputReplyTo" + }, { - "name": "peer", - "type": "InputPeer" + "name": "send_as", + "type": "flags.13?InputPeer" } ], - "type": "messages.ChatAdminsWithInvites" + "type": "Bool" }, { - "id": "-553329330", - "method": "messages.getChatInviteImporters", + "id": "1094336115", + "method": "messages.requestSimpleWebView", "params": [ { "name": "flags", "type": "#" }, { - "name": "requested", - "type": "flags.0?true" + "name": "from_switch_webview", + "type": "flags.1?true" }, { - "name": "subscription_expired", - "type": "flags.3?true" + "name": "from_side_menu", + "type": "flags.2?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "compact", + "type": "flags.7?true" }, { - "name": "link", - "type": "flags.1?string" + "name": "fullscreen", + "type": "flags.8?true" }, { - "name": "q", - "type": "flags.2?string" + "name": "bot", + "type": "InputUser" }, { - "name": "offset_date", - "type": "int" + "name": "url", + "type": "flags.3?string" }, { - "name": "offset_user", - "type": "InputUser" + "name": "start_param", + "type": "flags.4?string" }, { - "name": "limit", - "type": "int" + "name": "theme_params", + "type": "flags.0?DataJSON" + }, + { + "name": "platform", + "type": "string" } ], - "type": "messages.ChatInviteImporters" + "type": "WebViewResult" }, { - "id": "-1207017500", - "method": "messages.setHistoryTTL", + "id": "172168437", + "method": "messages.sendWebViewResultMessage", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "bot_query_id", + "type": "string" }, { - "name": "period", - "type": "int" + "name": "result", + "type": "InputBotInlineResult" } ], - "type": "Updates" + "type": "WebViewMessageSent" }, { - "id": "-91437323", - "method": "account.reportProfilePhoto", + "id": "-603831608", + "method": "messages.sendWebViewData", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "bot", + "type": "InputUser" }, { - "name": "photo_id", - "type": "InputPhoto" + "name": "random_id", + "type": "long" }, { - "name": "reason", - "type": "ReportReason" + "name": "button_text", + "type": "string" }, { - "name": "message", + "name": "data", "type": "string" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "187239529", - "method": "channels.convertToGigagroup", + "id": "1157944655", + "method": "bots.setBotMenuButton", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "user_id", + "type": "InputUser" + }, + { + "name": "button", + "type": "BotMenuButton" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "1573261059", - "method": "messages.checkHistoryImportPeer", + "id": "-1671369944", + "method": "bots.getBotMenuButton", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "user_id", + "type": "InputUser" } ], - "type": "messages.CheckedHistoryImportPeer" + "type": "BotMenuButton" }, { - "id": "-248985848", - "method": "phone.toggleGroupCallRecord", + "id": "-510647672", + "method": "account.getSavedRingtones", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "start", - "type": "flags.0?true" - }, - { - "name": "video", - "type": "flags.2?true" - }, - { - "name": "call", - "type": "InputGroupCall" - }, - { - "name": "title", - "type": "flags.1?string" - }, - { - "name": "video_portrait", - "type": "flags.2?Bool" + "name": "hash", + "type": "long" } ], - "type": "Updates" + "type": "account.SavedRingtones" }, { - "id": "-1524155713", - "method": "phone.editGroupCallParticipant", + "id": "1038768899", + "method": "account.saveRingtone", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "call", - "type": "InputGroupCall" - }, - { - "name": "participant", - "type": "InputPeer" - }, - { - "name": "muted", - "type": "flags.0?Bool" - }, - { - "name": "volume", - "type": "flags.1?int" + "name": "id", + "type": "InputDocument" }, { - "name": "raise_hand", - "type": "flags.2?Bool" - }, + "name": "unsave", + "type": "Bool" + } + ], + "type": "account.SavedRingtone" + }, + { + "id": "-2095414366", + "method": "account.uploadRingtone", + "params": [ { - "name": "video_stopped", - "type": "flags.3?Bool" + "name": "file", + "type": "InputFile" }, { - "name": "video_paused", - "type": "flags.4?Bool" + "name": "file_name", + "type": "string" }, { - "name": "presentation_paused", - "type": "flags.5?Bool" + "name": "mime_type", + "type": "string" } ], - "type": "Updates" + "type": "Document" }, { - "id": "480685066", - "method": "phone.editGroupCallTitle", + "id": "2021942497", + "method": "bots.setBotBroadcastDefaultAdminRights", "params": [ { - "name": "call", - "type": "InputGroupCall" - }, + "name": "admin_rights", + "type": "ChatAdminRights" + } + ], + "type": "Bool" + }, + { + "id": "-1839281686", + "method": "bots.setBotGroupDefaultAdminRights", + "params": [ { - "name": "title", - "type": "string" + "name": "admin_rights", + "type": "ChatAdminRights" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-277077702", - "method": "phone.getGroupCallJoinAs", + "id": "1092913030", + "method": "phone.saveCallLog", "params": [ { "name": "peer", - "type": "InputPeer" + "type": "InputPhoneCall" + }, + { + "name": "file", + "type": "InputFile" } ], - "type": "phone.JoinAsPeers" + "type": "Bool" }, { - "id": "-425040769", - "method": "phone.exportGroupCallInvite", + "id": "-456419968", + "method": "channels.toggleJoinToSend", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "can_self_unmute", - "type": "flags.0?true" + "name": "channel", + "type": "InputChannel" }, { - "name": "call", - "type": "InputGroupCall" + "name": "enabled", + "type": "Bool" } ], - "type": "phone.ExportedGroupCallInvite" + "type": "Updates" }, { - "id": "563885286", - "method": "phone.toggleGroupCallStartSubscription", + "id": "1277789622", + "method": "channels.toggleJoinRequest", "params": [ { - "name": "call", - "type": "InputGroupCall" + "name": "channel", + "type": "InputChannel" }, { - "name": "subscribed", + "name": "enabled", "type": "Bool" } ], "type": "Updates" }, { - "id": "1451287362", - "method": "phone.startScheduledGroupCall", + "id": "261206117", + "method": "payments.exportInvoice", "params": [ { - "name": "call", - "type": "InputGroupCall" + "name": "invoice_media", + "type": "InputMedia" } ], - "type": "Updates" + "type": "payments.ExportedInvoice" }, { - "id": "1465786252", - "method": "phone.saveDefaultGroupCallJoinAs", + "id": "647928393", + "method": "messages.transcribeAudio", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "join_as", - "type": "InputPeer" + "name": "msg_id", + "type": "int" } ], - "type": "Bool" + "type": "messages.TranscribedAudio" }, { - "id": "-873829436", - "method": "phone.joinGroupCallPresentation", + "id": "2132608815", + "method": "messages.rateTranscribedAudio", "params": [ { - "name": "call", - "type": "InputGroupCall" + "name": "peer", + "type": "InputPeer" }, { - "name": "params", - "type": "DataJSON" + "name": "msg_id", + "type": "int" + }, + { + "name": "transcription_id", + "type": "long" + }, + { + "name": "good", + "type": "Bool" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "475058500", - "method": "phone.leaveGroupCallPresentation", + "id": "-2131921795", + "method": "payments.assignAppStoreTransaction", "params": [ { - "name": "call", - "type": "InputGroupCall" + "name": "receipt", + "type": "bytes" + }, + { + "name": "purpose", + "type": "InputStorePaymentPurpose" } ], "type": "Updates" }, { - "id": "676017721", - "method": "stickers.checkShortName", + "id": "-537046829", + "method": "payments.assignPlayMarketTransaction", "params": [ { - "name": "short_name", - "type": "string" + "name": "receipt", + "type": "DataJSON" + }, + { + "name": "purpose", + "type": "InputStorePaymentPurpose" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "1303364867", - "method": "stickers.suggestShortName", + "id": "-1206152236", + "method": "help.getPremiumPromo", + "params": [], + "type": "help.PremiumPromo" + }, + { + "id": "-643100844", + "method": "messages.getCustomEmojiDocuments", "params": [ { - "name": "title", - "type": "string" + "name": "document_id", + "type": "Vector" } ], - "type": "stickers.SuggestedShortName" + "type": "Vector" }, { - "id": "1032708345", - "method": "bots.resetBotCommands", + "id": "-67329649", + "method": "messages.getEmojiStickers", "params": [ { - "name": "scope", - "type": "BotCommandScope" - }, - { - "name": "lang_code", - "type": "string" + "name": "hash", + "type": "long" } ], - "type": "Bool" + "type": "messages.AllStickers" }, { - "id": "-481554986", - "method": "bots.getBotCommands", + "id": "248473398", + "method": "messages.getFeaturedEmojiStickers", "params": [ { - "name": "scope", - "type": "BotCommandScope" - }, - { - "name": "lang_code", - "type": "string" + "name": "hash", + "type": "long" } ], - "type": "Vector" - }, - { - "id": "-1828139493", - "method": "account.resetPassword", - "params": [], - "type": "account.ResetPasswordResult" - }, - { - "id": "1284770294", - "method": "account.declinePasswordReset", - "params": [], - "type": "Bool" + "type": "messages.FeaturedStickers" }, { - "id": "221691769", - "method": "auth.checkRecoveryPassword", + "id": "-70001045", + "method": "account.updateEmojiStatus", "params": [ { - "name": "code", - "type": "string" + "name": "emoji_status", + "type": "EmojiStatus" } ], "type": "Bool" }, { - "id": "-700916087", - "method": "account.getChatThemes", + "id": "-696962170", + "method": "account.getDefaultEmojiStatuses", "params": [ { "name": "hash", "type": "long" } ], - "type": "account.Themes" + "type": "account.EmojiStatuses" }, { - "id": "-432283329", - "method": "messages.setChatTheme", + "id": "257392901", + "method": "account.getRecentEmojiStatuses", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "emoticon", - "type": "string" + "name": "hash", + "type": "long" } ], - "type": "Updates" + "type": "account.EmojiStatuses" }, { - "id": "834782287", - "method": "messages.getMessageReadParticipants", + "id": "404757166", + "method": "account.clearRecentEmojiStatuses", + "params": [], + "type": "Bool" + }, + { + "id": "1063567478", + "method": "messages.reportReaction", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "msg_id", + "name": "id", "type": "int" + }, + { + "name": "reaction_peer", + "type": "InputPeer" } ], - "type": "Vector" + "type": "Bool" }, { - "id": "1789130429", - "method": "messages.getSearchResultsCalendar", + "id": "-1149164102", + "method": "messages.getTopReactions", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "saved_peer_id", - "type": "flags.2?InputPeer" - }, - { - "name": "filter", - "type": "MessagesFilter" - }, - { - "name": "offset_id", + "name": "limit", "type": "int" }, { - "name": "offset_date", - "type": "int" + "name": "hash", + "type": "long" } ], - "type": "messages.SearchResultsCalendar" + "type": "messages.Reactions" }, { - "id": "-1669386480", - "method": "messages.getSearchResultsPositions", + "id": "960896434", + "method": "messages.getRecentReactions", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "saved_peer_id", - "type": "flags.2?InputPeer" - }, - { - "name": "filter", - "type": "MessagesFilter" - }, - { - "name": "offset_id", + "name": "limit", "type": "int" }, { - "name": "limit", - "type": "int" + "name": "hash", + "type": "long" } ], - "type": "messages.SearchResultsPositions" + "type": "messages.Reactions" }, { - "id": "2145904661", - "method": "messages.hideChatJoinRequest", + "id": "-1644236876", + "method": "messages.clearRecentReactions", + "params": [], + "type": "Bool" + }, + { + "id": "-2064119788", + "method": "messages.getExtendedMedia", "params": [ - { - "name": "flags", - "type": "#" - }, - { - "name": "approved", - "type": "flags.0?true" - }, { "name": "peer", "type": "InputPeer" }, { - "name": "user_id", - "type": "InputUser" + "name": "id", + "type": "Vector" } ], "type": "Updates" }, { - "id": "-528091926", - "method": "messages.hideAllChatJoinRequests", + "id": "767062953", + "method": "auth.importWebTokenAuthorization", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "approved", - "type": "flags.0?true" + "name": "api_id", + "type": "int" }, { - "name": "peer", - "type": "InputPeer" + "name": "api_hash", + "type": "string" }, { - "name": "link", - "type": "flags.1?string" + "name": "web_auth_token", + "type": "string" } ], - "type": "Updates" + "type": "auth.Authorization" }, { - "id": "-1323389022", - "method": "messages.toggleNoForwards", + "id": "-279966037", + "method": "account.reorderUsernames", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "enabled", - "type": "Bool" + "name": "order", + "type": "Vector" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-855777386", - "method": "messages.saveDefaultSendAs", + "id": "1490465654", + "method": "account.toggleUsername", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "username", + "type": "string" }, { - "name": "send_as", - "type": "InputPeer" + "name": "active", + "type": "Bool" } ], "type": "Bool" }, { - "id": "231174382", - "method": "channels.getSendAs", + "id": "-1268978403", + "method": "channels.reorderUsernames", "params": [ { - "name": "peer", - "type": "InputPeer" - } - ], - "type": "channels.SendAsPeers" - }, - { - "id": "-1081501024", - "method": "account.setAuthorizationTTL", - "params": [ + "name": "channel", + "type": "InputChannel" + }, { - "name": "authorization_ttl_days", - "type": "int" + "name": "order", + "type": "Vector" } ], "type": "Bool" }, { - "id": "1089766498", - "method": "account.changeAuthorizationSettings", + "id": "1358053637", + "method": "channels.toggleUsername", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "confirmed", - "type": "flags.3?true" - }, - { - "name": "hash", - "type": "long" + "name": "channel", + "type": "InputChannel" }, { - "name": "encrypted_requests_disabled", - "type": "flags.0?Bool" + "name": "username", + "type": "string" }, { - "name": "call_requests_disabled", - "type": "flags.1?Bool" + "name": "active", + "type": "Bool" } ], "type": "Bool" }, { - "id": "913655003", - "method": "channels.deleteParticipantHistory", + "id": "170155475", + "method": "channels.deactivateAllUsernames", "params": [ { "name": "channel", "type": "InputChannel" - }, - { - "name": "participant", - "type": "InputPeer" } ], - "type": "messages.AffectedHistory" + "type": "Bool" }, { - "id": "-754091820", - "method": "messages.sendReaction", + "id": "1073174324", + "method": "channels.toggleForum", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "big", - "type": "flags.1?true" - }, - { - "name": "add_to_recent", - "type": "flags.2?true" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "msg_id", - "type": "int" + "name": "channel", + "type": "InputChannel" }, { - "name": "reaction", - "type": "flags.0?Vector" - } - ], - "type": "Updates" - }, - { - "id": "-1950707482", - "method": "messages.getMessagesReactions", - "params": [ - { - "name": "peer", - "type": "InputPeer" + "name": "enabled", + "type": "Bool" }, { - "name": "id", - "type": "Vector" + "name": "tabs", + "type": "Bool" } ], "type": "Updates" }, { - "id": "1176190792", - "method": "messages.getMessageReactionsList", + "id": "-200539612", + "method": "channels.createForumTopic", "params": [ { "name": "flags", "type": "#" }, { - "name": "peer", - "type": "InputPeer" + "name": "channel", + "type": "InputChannel" }, { - "name": "id", - "type": "int" + "name": "title", + "type": "string" }, { - "name": "reaction", - "type": "flags.0?Reaction" + "name": "icon_color", + "type": "flags.0?int" }, { - "name": "offset", - "type": "flags.1?string" + "name": "icon_emoji_id", + "type": "flags.3?long" }, { - "name": "limit", - "type": "int" + "name": "random_id", + "type": "long" + }, + { + "name": "send_as", + "type": "flags.2?InputPeer" } ], - "type": "messages.MessageReactionsList" + "type": "Updates" }, { - "id": "-2041895551", - "method": "messages.setChatAvailableReactions", + "id": "233136337", + "method": "channels.getForumTopics", "params": [ { "name": "flags", "type": "#" }, { - "name": "peer", - "type": "InputPeer" + "name": "channel", + "type": "InputChannel" }, { - "name": "available_reactions", - "type": "ChatReactions" + "name": "q", + "type": "flags.0?string" }, { - "name": "reactions_limit", - "type": "flags.0?int" + "name": "offset_date", + "type": "int" }, { - "name": "paid_enabled", - "type": "flags.1?Bool" - } - ], - "type": "Updates" - }, - { - "id": "417243308", - "method": "messages.getAvailableReactions", - "params": [ + "name": "offset_id", + "type": "int" + }, { - "name": "hash", + "name": "offset_topic", "type": "int" - } - ], - "type": "messages.AvailableReactions" - }, - { - "id": "1330094102", - "method": "messages.setDefaultReaction", - "params": [ + }, { - "name": "reaction", - "type": "Reaction" + "name": "limit", + "type": "int" } ], - "type": "Bool" + "type": "messages.ForumTopics" }, { - "id": "1662529584", - "method": "messages.translateText", + "id": "-1333584199", + "method": "channels.getForumTopicsByID", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "peer", - "type": "flags.0?InputPeer" - }, - { - "name": "id", - "type": "flags.0?Vector" - }, - { - "name": "text", - "type": "flags.1?Vector" + "name": "channel", + "type": "InputChannel" }, { - "name": "to_lang", - "type": "string" + "name": "topics", + "type": "Vector" } ], - "type": "messages.TranslatedText" + "type": "messages.ForumTopics" }, { - "id": "841173339", - "method": "messages.getUnreadReactions", + "id": "-186670715", + "method": "channels.editForumTopic", "params": [ { "name": "flags", "type": "#" }, { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "top_msg_id", - "type": "flags.0?int" + "name": "channel", + "type": "InputChannel" }, { - "name": "offset_id", + "name": "topic_id", "type": "int" }, { - "name": "add_offset", - "type": "int" + "name": "title", + "type": "flags.0?string" }, { - "name": "limit", - "type": "int" + "name": "icon_emoji_id", + "type": "flags.1?long" }, { - "name": "max_id", - "type": "int" + "name": "closed", + "type": "flags.2?Bool" }, { - "name": "min_id", - "type": "int" + "name": "hidden", + "type": "flags.3?Bool" } ], - "type": "messages.Messages" + "type": "Updates" }, { - "id": "1420459918", - "method": "messages.readReactions", + "id": "1814925350", + "method": "channels.updatePinnedForumTopic", "params": [ { - "name": "flags", - "type": "#" + "name": "channel", + "type": "InputChannel" }, { - "name": "peer", - "type": "InputPeer" + "name": "topic_id", + "type": "int" }, { - "name": "top_msg_id", - "type": "flags.0?int" + "name": "pinned", + "type": "Bool" } ], - "type": "messages.AffectedHistory" + "type": "Updates" }, { - "id": "-1963375804", - "method": "contacts.resolvePhone", + "id": "876830509", + "method": "channels.deleteTopicHistory", "params": [ { - "name": "phone", - "type": "string" + "name": "channel", + "type": "InputChannel" + }, + { + "name": "top_msg_id", + "type": "int" } ], - "type": "contacts.ResolvedPeer" + "type": "messages.AffectedHistory" }, { - "id": "447879488", - "method": "phone.getGroupCallStreamChannels", + "id": "693150095", + "method": "channels.reorderPinnedForumTopics", "params": [ { - "name": "call", - "type": "InputGroupCall" + "name": "flags", + "type": "#" + }, + { + "name": "force", + "type": "flags.0?true" + }, + { + "name": "channel", + "type": "InputChannel" + }, + { + "name": "order", + "type": "Vector" } ], - "type": "phone.GroupCallStreamChannels" + "type": "Updates" }, { - "id": "-558650433", - "method": "phone.getGroupCallStreamRtmpUrl", + "id": "1760814315", + "method": "channels.toggleAntiSpam", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "channel", + "type": "InputChannel" }, { - "name": "revoke", + "name": "enabled", "type": "Bool" } ], - "type": "phone.GroupCallStreamRtmpUrl" + "type": "Updates" }, { - "id": "276705696", - "method": "messages.searchSentMedia", + "id": "-1471109485", + "method": "channels.reportAntiSpamFalsePositive", "params": [ { - "name": "q", - "type": "string" - }, - { - "name": "filter", - "type": "MessagesFilter" + "name": "channel", + "type": "InputChannel" }, { - "name": "limit", + "name": "msg_id", "type": "int" } ], - "type": "messages.Messages" + "type": "Bool" }, { - "id": "385663691", - "method": "messages.getAttachMenuBots", + "id": "-1632299963", + "method": "messages.setDefaultHistoryTTL", "params": [ { - "name": "hash", - "type": "long" + "name": "period", + "type": "int" } ], - "type": "AttachMenuBots" + "type": "Bool" }, { - "id": "1998676370", - "method": "messages.getAttachMenuBot", - "params": [ - { - "name": "bot", - "type": "InputUser" - } - ], - "type": "AttachMenuBotsBot" + "id": "1703637384", + "method": "messages.getDefaultHistoryTTL", + "params": [], + "type": "DefaultHistoryTTL" }, { - "id": "1777704297", - "method": "messages.toggleBotInAttachMenu", + "id": "-127582169", + "method": "contacts.exportContactToken", + "params": [], + "type": "ExportedContactToken" + }, + { + "id": "318789512", + "method": "contacts.importContactToken", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "write_allowed", - "type": "flags.0?true" - }, - { - "name": "bot", - "type": "InputUser" - }, - { - "name": "enabled", - "type": "Bool" + "name": "token", + "type": "string" } ], - "type": "Bool" + "type": "User" }, { - "id": "647873217", - "method": "messages.requestWebView", + "id": "-515093903", + "method": "photos.uploadContactProfilePhoto", "params": [ { "name": "flags", "type": "#" }, { - "name": "from_bot_menu", - "type": "flags.4?true" - }, - { - "name": "silent", - "type": "flags.5?true" - }, - { - "name": "compact", - "type": "flags.7?true" - }, - { - "name": "fullscreen", - "type": "flags.8?true" + "name": "suggest", + "type": "flags.3?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "save", + "type": "flags.4?true" }, { - "name": "bot", + "name": "user_id", "type": "InputUser" }, { - "name": "url", - "type": "flags.1?string" - }, - { - "name": "start_param", - "type": "flags.3?string" - }, - { - "name": "theme_params", - "type": "flags.2?DataJSON" + "name": "file", + "type": "flags.0?InputFile" }, { - "name": "platform", - "type": "string" + "name": "video", + "type": "flags.1?InputFile" }, { - "name": "reply_to", - "type": "flags.0?InputReplyTo" + "name": "video_start_ts", + "type": "flags.2?double" }, { - "name": "send_as", - "type": "flags.13?InputPeer" + "name": "video_emoji_markup", + "type": "flags.5?VideoSize" } ], - "type": "WebViewResult" + "type": "photos.Photo" }, { - "id": "-1328014717", - "method": "messages.prolongWebView", + "id": "1785624660", + "method": "channels.toggleParticipantsHidden", "params": [ { - "name": "flags", - "type": "#" + "name": "channel", + "type": "InputChannel" }, { - "name": "silent", - "type": "flags.5?true" - }, + "name": "enabled", + "type": "Bool" + } + ], + "type": "Updates" + }, + { + "id": "-1850552224", + "method": "messages.sendBotRequestedPeer", + "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "bot", - "type": "InputUser" - }, - { - "name": "query_id", - "type": "long" + "name": "msg_id", + "type": "int" }, { - "name": "reply_to", - "type": "flags.0?InputReplyTo" + "name": "button_id", + "type": "int" }, { - "name": "send_as", - "type": "flags.13?InputPeer" + "name": "requested_peers", + "type": "Vector" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "1094336115", - "method": "messages.requestSimpleWebView", + "id": "-495647960", + "method": "account.getDefaultProfilePhotoEmojis", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "from_switch_webview", - "type": "flags.1?true" - }, - { - "name": "from_side_menu", - "type": "flags.2?true" - }, - { - "name": "compact", - "type": "flags.7?true" - }, - { - "name": "fullscreen", - "type": "flags.8?true" - }, - { - "name": "bot", - "type": "InputUser" - }, - { - "name": "url", - "type": "flags.3?string" - }, - { - "name": "start_param", - "type": "flags.4?string" - }, - { - "name": "theme_params", - "type": "flags.0?DataJSON" - }, - { - "name": "platform", - "type": "string" + "name": "hash", + "type": "long" } ], - "type": "WebViewResult" + "type": "EmojiList" }, { - "id": "172168437", - "method": "messages.sendWebViewResultMessage", + "id": "-1856479058", + "method": "account.getDefaultGroupPhotoEmojis", "params": [ { - "name": "bot_query_id", - "type": "string" - }, - { - "name": "result", - "type": "InputBotInlineResult" + "name": "hash", + "type": "long" } ], - "type": "WebViewMessageSent" + "type": "EmojiList" }, { - "id": "-603831608", - "method": "messages.sendWebViewData", + "id": "-1908857314", + "method": "auth.requestFirebaseSms", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "flags", + "type": "#" }, { - "name": "random_id", - "type": "long" + "name": "phone_number", + "type": "string" }, { - "name": "button_text", + "name": "phone_code_hash", "type": "string" }, { - "name": "data", - "type": "string" - } - ], - "type": "Updates" - }, - { - "id": "1157944655", - "method": "bots.setBotMenuButton", - "params": [ + "name": "safety_net_token", + "type": "flags.0?string" + }, { - "name": "user_id", - "type": "InputUser" + "name": "play_integrity_token", + "type": "flags.2?string" }, { - "name": "button", - "type": "BotMenuButton" + "name": "ios_push_secret", + "type": "flags.1?string" } ], "type": "Bool" }, { - "id": "-1671369944", - "method": "bots.getBotMenuButton", + "id": "1955122779", + "method": "messages.getEmojiGroups", "params": [ { - "name": "user_id", - "type": "InputUser" + "name": "hash", + "type": "int" } ], - "type": "BotMenuButton" + "type": "messages.EmojiGroups" }, { - "id": "-510647672", - "method": "account.getSavedRingtones", + "id": "785209037", + "method": "messages.getEmojiStatusGroups", "params": [ { "name": "hash", - "type": "long" + "type": "int" } ], - "type": "account.SavedRingtones" + "type": "messages.EmojiGroups" }, { - "id": "1038768899", - "method": "account.saveRingtone", + "id": "564480243", + "method": "messages.getEmojiProfilePhotoGroups", "params": [ { - "name": "id", - "type": "InputDocument" - }, - { - "name": "unsave", - "type": "Bool" + "name": "hash", + "type": "int" } ], - "type": "account.SavedRingtone" + "type": "messages.EmojiGroups" }, { - "id": "-2095414366", - "method": "account.uploadRingtone", + "id": "739360983", + "method": "messages.searchCustomEmoji", "params": [ { - "name": "file", - "type": "InputFile" - }, - { - "name": "file_name", + "name": "emoticon", "type": "string" }, { - "name": "mime_type", - "type": "string" + "name": "hash", + "type": "long" } ], - "type": "Document" + "type": "EmojiList" }, { - "id": "2021942497", - "method": "bots.setBotBroadcastDefaultAdminRights", + "id": "-461589127", + "method": "messages.togglePeerTranslations", "params": [ { - "name": "admin_rights", - "type": "ChatAdminRights" + "name": "flags", + "type": "#" + }, + { + "name": "disabled", + "type": "flags.0?true" + }, + { + "name": "peer", + "type": "InputPeer" } ], "type": "Bool" }, { - "id": "-1839281686", - "method": "bots.setBotGroupDefaultAdminRights", - "params": [ - { - "name": "admin_rights", - "type": "ChatAdminRights" - } - ], - "type": "Bool" + "id": "-1379156774", + "method": "account.getAutoSaveSettings", + "params": [], + "type": "account.AutoSaveSettings" }, { - "id": "1092913030", - "method": "phone.saveCallLog", + "id": "-694451359", + "method": "account.saveAutoSaveSettings", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "users", + "type": "flags.0?true" + }, + { + "name": "chats", + "type": "flags.1?true" + }, + { + "name": "broadcasts", + "type": "flags.2?true" + }, { "name": "peer", - "type": "InputPhoneCall" + "type": "flags.3?InputPeer" }, { - "name": "file", - "type": "InputFile" + "name": "settings", + "type": "AutoSaveSettings" } ], "type": "Bool" }, { - "id": "-456419968", - "method": "channels.toggleJoinToSend", + "id": "1404829728", + "method": "account.deleteAutoSaveExceptions", + "params": [], + "type": "Bool" + }, + { + "id": "-179077444", + "method": "stickers.changeSticker", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "flags", + "type": "#" }, { - "name": "enabled", - "type": "Bool" + "name": "sticker", + "type": "InputDocument" + }, + { + "name": "emoji", + "type": "flags.0?string" + }, + { + "name": "mask_coords", + "type": "flags.1?MaskCoords" + }, + { + "name": "keywords", + "type": "flags.2?string" } ], - "type": "Updates" + "type": "messages.StickerSet" }, { - "id": "1277789622", - "method": "channels.toggleJoinRequest", + "id": "306912256", + "method": "stickers.renameStickerSet", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "stickerset", + "type": "InputStickerSet" }, { - "name": "enabled", - "type": "Bool" + "name": "title", + "type": "string" } ], - "type": "Updates" + "type": "messages.StickerSet" }, { - "id": "261206117", - "method": "payments.exportInvoice", + "id": "-2022685804", + "method": "stickers.deleteStickerSet", "params": [ { - "name": "invoice_media", - "type": "InputMedia" + "name": "stickerset", + "type": "InputStickerSet" } ], - "type": "payments.ExportedInvoice" + "type": "Bool" }, { - "id": "647928393", - "method": "messages.transcribeAudio", + "id": "889046467", + "method": "messages.getBotApp", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "app", + "type": "InputBotApp" }, { - "name": "msg_id", - "type": "int" + "name": "hash", + "type": "long" } ], - "type": "messages.TranscribedAudio" + "type": "messages.BotApp" }, { - "id": "2132608815", - "method": "messages.rateTranscribedAudio", + "id": "1398901710", + "method": "messages.requestAppWebView", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "write_allowed", + "type": "flags.0?true" + }, + { + "name": "compact", + "type": "flags.7?true" + }, + { + "name": "fullscreen", + "type": "flags.8?true" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "msg_id", - "type": "int" + "name": "app", + "type": "InputBotApp" }, { - "name": "transcription_id", - "type": "long" + "name": "start_param", + "type": "flags.1?string" }, { - "name": "good", - "type": "Bool" + "name": "theme_params", + "type": "flags.2?DataJSON" + }, + { + "name": "platform", + "type": "string" } ], - "type": "Bool" + "type": "WebViewResult" }, { - "id": "-2131921795", - "method": "payments.assignAppStoreTransaction", + "id": "282013987", + "method": "bots.setBotInfo", "params": [ { - "name": "receipt", - "type": "bytes" + "name": "flags", + "type": "#" }, { - "name": "purpose", - "type": "InputStorePaymentPurpose" + "name": "bot", + "type": "flags.2?InputUser" + }, + { + "name": "lang_code", + "type": "string" + }, + { + "name": "name", + "type": "flags.3?string" + }, + { + "name": "about", + "type": "flags.0?string" + }, + { + "name": "description", + "type": "flags.1?string" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-537046829", - "method": "payments.assignPlayMarketTransaction", + "id": "-589753091", + "method": "bots.getBotInfo", "params": [ { - "name": "receipt", - "type": "DataJSON" + "name": "flags", + "type": "#" }, { - "name": "purpose", - "type": "InputStorePaymentPurpose" + "name": "bot", + "type": "flags.0?InputUser" + }, + { + "name": "lang_code", + "type": "string" } ], - "type": "Updates" + "type": "bots.BotInfo" }, { - "id": "-1614700874", - "method": "payments.canPurchasePremium", + "id": "2123760019", + "method": "auth.resetLoginEmail", "params": [ { - "name": "purpose", - "type": "InputStorePaymentPurpose" + "name": "phone_number", + "type": "string" + }, + { + "name": "phone_code_hash", + "type": "string" } ], - "type": "Bool" - }, - { - "id": "-1206152236", - "method": "help.getPremiumPromo", - "params": [], - "type": "help.PremiumPromo" + "type": "auth.SentCode" }, { - "id": "-643100844", - "method": "messages.getCustomEmojiDocuments", + "id": "-2072885362", + "method": "chatlists.exportChatlistInvite", "params": [ { - "name": "document_id", - "type": "Vector" + "name": "chatlist", + "type": "InputChatlist" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "peers", + "type": "Vector" } ], - "type": "Vector" + "type": "chatlists.ExportedChatlistInvite" }, { - "id": "-67329649", - "method": "messages.getEmojiStickers", + "id": "1906072670", + "method": "chatlists.deleteExportedInvite", "params": [ { - "name": "hash", - "type": "long" + "name": "chatlist", + "type": "InputChatlist" + }, + { + "name": "slug", + "type": "string" } ], - "type": "messages.AllStickers" + "type": "Bool" }, { - "id": "248473398", - "method": "messages.getFeaturedEmojiStickers", + "id": "1698543165", + "method": "chatlists.editExportedInvite", "params": [ { - "name": "hash", - "type": "long" + "name": "flags", + "type": "#" + }, + { + "name": "chatlist", + "type": "InputChatlist" + }, + { + "name": "slug", + "type": "string" + }, + { + "name": "title", + "type": "flags.1?string" + }, + { + "name": "peers", + "type": "flags.2?Vector" } ], - "type": "messages.FeaturedStickers" + "type": "ExportedChatlistInvite" }, { - "id": "-70001045", - "method": "account.updateEmojiStatus", + "id": "-838608253", + "method": "chatlists.getExportedInvites", "params": [ { - "name": "emoji_status", - "type": "EmojiStatus" + "name": "chatlist", + "type": "InputChatlist" } ], - "type": "Bool" + "type": "chatlists.ExportedInvites" }, { - "id": "-696962170", - "method": "account.getDefaultEmojiStatuses", + "id": "1103171583", + "method": "chatlists.checkChatlistInvite", "params": [ { - "name": "hash", - "type": "long" + "name": "slug", + "type": "string" } ], - "type": "account.EmojiStatuses" + "type": "chatlists.ChatlistInvite" }, { - "id": "257392901", - "method": "account.getRecentEmojiStatuses", + "id": "-1498291302", + "method": "chatlists.joinChatlistInvite", "params": [ { - "name": "hash", - "type": "long" + "name": "slug", + "type": "string" + }, + { + "name": "peers", + "type": "Vector" } ], - "type": "account.EmojiStatuses" - }, - { - "id": "404757166", - "method": "account.clearRecentEmojiStatuses", - "params": [], - "type": "Bool" + "type": "Updates" }, { - "id": "1063567478", - "method": "messages.reportReaction", + "id": "-1992190687", + "method": "chatlists.getChatlistUpdates", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "int" - }, - { - "name": "reaction_peer", - "type": "InputPeer" + "name": "chatlist", + "type": "InputChatlist" } ], - "type": "Bool" + "type": "chatlists.ChatlistUpdates" }, { - "id": "-1149164102", - "method": "messages.getTopReactions", + "id": "-527828747", + "method": "chatlists.joinChatlistUpdates", "params": [ { - "name": "limit", - "type": "int" + "name": "chatlist", + "type": "InputChatlist" }, { - "name": "hash", - "type": "long" + "name": "peers", + "type": "Vector" } ], - "type": "messages.Reactions" + "type": "Updates" }, { - "id": "960896434", - "method": "messages.getRecentReactions", + "id": "1726252795", + "method": "chatlists.hideChatlistUpdates", "params": [ { - "name": "limit", - "type": "int" - }, - { - "name": "hash", - "type": "long" + "name": "chatlist", + "type": "InputChatlist" } ], - "type": "messages.Reactions" - }, - { - "id": "-1644236876", - "method": "messages.clearRecentReactions", - "params": [], "type": "Bool" }, { - "id": "-2064119788", - "method": "messages.getExtendedMedia", + "id": "-37955820", + "method": "chatlists.getLeaveChatlistSuggestions", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "Vector" + "name": "chatlist", + "type": "InputChatlist" } ], - "type": "Updates" + "type": "Vector" }, { - "id": "767062953", - "method": "auth.importWebTokenAuthorization", + "id": "1962598714", + "method": "chatlists.leaveChatlist", "params": [ { - "name": "api_id", - "type": "int" - }, - { - "name": "api_hash", - "type": "string" + "name": "chatlist", + "type": "InputChatlist" }, { - "name": "web_auth_token", - "type": "string" + "name": "peers", + "type": "Vector" } ], - "type": "auth.Authorization" + "type": "Updates" }, { - "id": "-279966037", - "method": "account.reorderUsernames", + "id": "-1760972350", + "method": "bots.reorderUsernames", "params": [ + { + "name": "bot", + "type": "InputUser" + }, { "name": "order", "type": "Vector" @@ -35457,9 +38718,13 @@ "type": "Bool" }, { - "id": "1490465654", - "method": "account.toggleUsername", + "id": "87861619", + "method": "bots.toggleUsername", "params": [ + { + "name": "bot", + "type": "InputUser" + }, { "name": "username", "type": "string" @@ -35472,3807 +38737,3936 @@ "type": "Bool" }, { - "id": "-1268978403", - "method": "channels.reorderUsernames", + "id": "-1879389471", + "method": "messages.setChatWallPaper", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "flags", + "type": "#" }, { - "name": "order", - "type": "Vector" + "name": "for_both", + "type": "flags.3?true" + }, + { + "name": "revert", + "type": "flags.4?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "wallpaper", + "type": "flags.0?InputWallPaper" + }, + { + "name": "settings", + "type": "flags.2?WallPaperSettings" + }, + { + "name": "id", + "type": "flags.1?int" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "1358053637", - "method": "channels.toggleUsername", + "id": "-896866118", + "method": "account.invalidateSignInCodes", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "username", - "type": "string" - }, - { - "name": "active", - "type": "Bool" + "name": "codes", + "type": "Vector" } ], "type": "Bool" }, { - "id": "170155475", - "method": "channels.deactivateAllUsernames", + "id": "-1167653392", + "method": "contacts.editCloseFriends", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "id", + "type": "Vector" } ], "type": "Bool" }, { - "id": "-1540781271", - "method": "channels.toggleForum", + "id": "820732912", + "method": "stories.canSendStory", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "enabled", - "type": "Bool" + "name": "peer", + "type": "InputPeer" } ], - "type": "Updates" + "type": "stories.CanSendStoryCount" }, { - "id": "-200539612", - "method": "channels.createForumTopic", + "id": "1937752812", + "method": "stories.sendStory", "params": [ { "name": "flags", "type": "#" }, { - "name": "channel", - "type": "InputChannel" + "name": "pinned", + "type": "flags.2?true" }, { - "name": "title", - "type": "string" + "name": "noforwards", + "type": "flags.4?true" }, { - "name": "icon_color", - "type": "flags.0?int" + "name": "fwd_modified", + "type": "flags.7?true" }, { - "name": "icon_emoji_id", - "type": "flags.3?long" + "name": "peer", + "type": "InputPeer" }, { - "name": "random_id", - "type": "long" + "name": "media", + "type": "InputMedia" }, { - "name": "send_as", - "type": "flags.2?InputPeer" - } - ], - "type": "Updates" - }, - { - "id": "233136337", - "method": "channels.getForumTopics", - "params": [ - { - "name": "flags", - "type": "#" + "name": "media_areas", + "type": "flags.5?Vector" }, { - "name": "channel", - "type": "InputChannel" + "name": "caption", + "type": "flags.0?string" }, { - "name": "q", - "type": "flags.0?string" + "name": "entities", + "type": "flags.1?Vector" }, { - "name": "offset_date", - "type": "int" + "name": "privacy_rules", + "type": "Vector" }, { - "name": "offset_id", - "type": "int" + "name": "random_id", + "type": "long" }, { - "name": "offset_topic", - "type": "int" + "name": "period", + "type": "flags.3?int" }, { - "name": "limit", - "type": "int" - } - ], - "type": "messages.ForumTopics" - }, - { - "id": "-1333584199", - "method": "channels.getForumTopicsByID", - "params": [ + "name": "fwd_from_id", + "type": "flags.6?InputPeer" + }, { - "name": "channel", - "type": "InputChannel" + "name": "fwd_from_story", + "type": "flags.6?int" }, { - "name": "topics", - "type": "Vector" + "name": "albums", + "type": "flags.8?Vector" } ], - "type": "messages.ForumTopics" + "type": "Updates" }, { - "id": "-186670715", - "method": "channels.editForumTopic", + "id": "-1249658298", + "method": "stories.editStory", "params": [ { "name": "flags", "type": "#" }, { - "name": "channel", - "type": "InputChannel" + "name": "peer", + "type": "InputPeer" }, { - "name": "topic_id", + "name": "id", "type": "int" }, { - "name": "title", - "type": "flags.0?string" + "name": "media", + "type": "flags.0?InputMedia" }, { - "name": "icon_emoji_id", - "type": "flags.1?long" + "name": "media_areas", + "type": "flags.3?Vector" }, { - "name": "closed", - "type": "flags.2?Bool" + "name": "caption", + "type": "flags.1?string" }, { - "name": "hidden", - "type": "flags.3?Bool" + "name": "entities", + "type": "flags.1?Vector" + }, + { + "name": "privacy_rules", + "type": "flags.2?Vector" } ], "type": "Updates" }, { - "id": "1814925350", - "method": "channels.updatePinnedForumTopic", + "id": "-1369842849", + "method": "stories.deleteStories", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "topic_id", - "type": "int" + "name": "peer", + "type": "InputPeer" }, { - "name": "pinned", - "type": "Bool" + "name": "id", + "type": "Vector" } ], - "type": "Updates" + "type": "Vector" }, { - "id": "876830509", - "method": "channels.deleteTopicHistory", + "id": "-1703566865", + "method": "stories.togglePinned", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "peer", + "type": "InputPeer" }, { - "name": "top_msg_id", - "type": "int" + "name": "id", + "type": "Vector" + }, + { + "name": "pinned", + "type": "Bool" } ], - "type": "messages.AffectedHistory" + "type": "Vector" }, { - "id": "693150095", - "method": "channels.reorderPinnedForumTopics", + "id": "-290400731", + "method": "stories.getAllStories", "params": [ { "name": "flags", "type": "#" }, { - "name": "force", - "type": "flags.0?true" + "name": "next", + "type": "flags.1?true" }, { - "name": "channel", - "type": "InputChannel" + "name": "hidden", + "type": "flags.2?true" }, { - "name": "order", - "type": "Vector" + "name": "state", + "type": "flags.0?string" } ], - "type": "Updates" + "type": "stories.AllStories" }, { - "id": "1760814315", - "method": "channels.toggleAntiSpam", + "id": "1478600156", + "method": "stories.getPinnedStories", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "peer", + "type": "InputPeer" }, { - "name": "enabled", - "type": "Bool" - } - ], - "type": "Updates" - }, - { - "id": "-1471109485", - "method": "channels.reportAntiSpamFalsePositive", - "params": [ - { - "name": "channel", - "type": "InputChannel" + "name": "offset_id", + "type": "int" }, { - "name": "msg_id", + "name": "limit", "type": "int" } ], - "type": "Bool" + "type": "stories.Stories" }, { - "id": "-1632299963", - "method": "messages.setDefaultHistoryTTL", + "id": "-1271586794", + "method": "stories.getStoriesArchive", "params": [ { - "name": "period", + "name": "peer", + "type": "InputPeer" + }, + { + "name": "offset_id", "type": "int" - } - ], - "type": "Bool" - }, - { - "id": "1703637384", - "method": "messages.getDefaultHistoryTTL", - "params": [], - "type": "DefaultHistoryTTL" - }, - { - "id": "-127582169", - "method": "contacts.exportContactToken", - "params": [], - "type": "ExportedContactToken" - }, - { - "id": "318789512", - "method": "contacts.importContactToken", - "params": [ + }, { - "name": "token", - "type": "string" + "name": "limit", + "type": "int" } ], - "type": "User" + "type": "stories.Stories" }, { - "id": "-515093903", - "method": "photos.uploadContactProfilePhoto", + "id": "1467271796", + "method": "stories.getStoriesByID", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "suggest", - "type": "flags.3?true" - }, - { - "name": "save", - "type": "flags.4?true" - }, - { - "name": "user_id", - "type": "InputUser" - }, - { - "name": "file", - "type": "flags.0?InputFile" - }, - { - "name": "video", - "type": "flags.1?InputFile" - }, - { - "name": "video_start_ts", - "type": "flags.2?double" + "name": "peer", + "type": "InputPeer" }, { - "name": "video_emoji_markup", - "type": "flags.5?VideoSize" + "name": "id", + "type": "Vector" } ], - "type": "photos.Photo" + "type": "stories.Stories" }, { - "id": "1785624660", - "method": "channels.toggleParticipantsHidden", + "id": "2082822084", + "method": "stories.toggleAllStoriesHidden", "params": [ { - "name": "channel", - "type": "InputChannel" - }, - { - "name": "enabled", + "name": "hidden", "type": "Bool" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-1850552224", - "method": "messages.sendBotRequestedPeer", + "id": "-1521034552", + "method": "stories.readStories", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "msg_id", - "type": "int" - }, - { - "name": "button_id", + "name": "max_id", "type": "int" - }, - { - "name": "requested_peers", - "type": "Vector" } ], - "type": "Updates" + "type": "Vector" }, { - "id": "-495647960", - "method": "account.getDefaultProfilePhotoEmojis", + "id": "-1308456197", + "method": "stories.incrementStoryViews", "params": [ { - "name": "hash", - "type": "long" - } - ], - "type": "EmojiList" - }, - { - "id": "-1856479058", - "method": "account.getDefaultGroupPhotoEmojis", - "params": [ + "name": "peer", + "type": "InputPeer" + }, { - "name": "hash", - "type": "long" + "name": "id", + "type": "Vector" } ], - "type": "EmojiList" + "type": "Bool" }, { - "id": "-1908857314", - "method": "auth.requestFirebaseSms", + "id": "2127707223", + "method": "stories.getStoryViewsList", "params": [ { "name": "flags", "type": "#" }, { - "name": "phone_number", - "type": "string" + "name": "just_contacts", + "type": "flags.0?true" }, { - "name": "phone_code_hash", - "type": "string" + "name": "reactions_first", + "type": "flags.2?true" }, { - "name": "safety_net_token", - "type": "flags.0?string" + "name": "forwards_first", + "type": "flags.3?true" }, { - "name": "play_integrity_token", - "type": "flags.2?string" + "name": "peer", + "type": "InputPeer" }, { - "name": "ios_push_secret", + "name": "q", "type": "flags.1?string" - } - ], - "type": "Bool" - }, - { - "id": "1955122779", - "method": "messages.getEmojiGroups", - "params": [ + }, { - "name": "hash", + "name": "id", + "type": "int" + }, + { + "name": "offset", + "type": "string" + }, + { + "name": "limit", "type": "int" } ], - "type": "messages.EmojiGroups" + "type": "stories.StoryViewsList" }, { - "id": "785209037", - "method": "messages.getEmojiStatusGroups", + "id": "685862088", + "method": "stories.getStoriesViews", "params": [ { - "name": "hash", - "type": "int" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "Vector" } ], - "type": "messages.EmojiGroups" + "type": "stories.StoryViews" }, { - "id": "564480243", - "method": "messages.getEmojiProfilePhotoGroups", + "id": "2072899360", + "method": "stories.exportStoryLink", "params": [ { - "name": "hash", + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", "type": "int" } ], - "type": "messages.EmojiGroups" + "type": "ExportedStoryLink" }, { - "id": "739360983", - "method": "messages.searchCustomEmoji", + "id": "433646405", + "method": "stories.report", "params": [ { - "name": "emoticon", - "type": "string" + "name": "peer", + "type": "InputPeer" }, { - "name": "hash", - "type": "long" + "name": "id", + "type": "Vector" + }, + { + "name": "option", + "type": "bytes" + }, + { + "name": "message", + "type": "string" } ], - "type": "EmojiList" + "type": "ReportResult" }, { - "id": "-461589127", - "method": "messages.togglePeerTranslations", + "id": "1471926630", + "method": "stories.activateStealthMode", "params": [ { "name": "flags", "type": "#" }, { - "name": "disabled", + "name": "past", "type": "flags.0?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "future", + "type": "flags.1?true" } ], - "type": "Bool" - }, - { - "id": "-1379156774", - "method": "account.getAutoSaveSettings", - "params": [], - "type": "account.AutoSaveSettings" + "type": "Updates" }, { - "id": "-694451359", - "method": "account.saveAutoSaveSettings", + "id": "-1798939530", + "method": "contacts.setBlocked", "params": [ { "name": "flags", "type": "#" }, { - "name": "users", + "name": "my_stories_from", "type": "flags.0?true" }, { - "name": "chats", - "type": "flags.1?true" - }, - { - "name": "broadcasts", - "type": "flags.2?true" - }, - { - "name": "peer", - "type": "flags.3?InputPeer" + "name": "id", + "type": "Vector" }, { - "name": "settings", - "type": "AutoSaveSettings" + "name": "limit", + "type": "int" } ], "type": "Bool" }, { - "id": "1404829728", - "method": "account.deleteAutoSaveExceptions", - "params": [], - "type": "Bool" - }, - { - "id": "-179077444", - "method": "stickers.changeSticker", + "id": "2144810674", + "method": "stories.sendReaction", "params": [ { "name": "flags", "type": "#" }, { - "name": "sticker", - "type": "InputDocument" + "name": "add_to_recent", + "type": "flags.0?true" }, { - "name": "emoji", - "type": "flags.0?string" + "name": "peer", + "type": "InputPeer" }, { - "name": "mask_coords", - "type": "flags.1?MaskCoords" + "name": "story_id", + "type": "int" }, { - "name": "keywords", - "type": "flags.2?string" + "name": "reaction", + "type": "Reaction" } ], - "type": "messages.StickerSet" + "type": "Updates" }, { - "id": "306912256", - "method": "stickers.renameStickerSet", + "id": "324662502", + "method": "bots.canSendMessage", "params": [ { - "name": "stickerset", - "type": "InputStickerSet" - }, - { - "name": "title", - "type": "string" + "name": "bot", + "type": "InputUser" } ], - "type": "messages.StickerSet" + "type": "Bool" }, { - "id": "-2022685804", - "method": "stickers.deleteStickerSet", + "id": "-248323089", + "method": "bots.allowSendMessage", "params": [ { - "name": "stickerset", - "type": "InputStickerSet" + "name": "bot", + "type": "InputUser" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "889046467", - "method": "messages.getBotApp", + "id": "142591463", + "method": "bots.invokeWebViewCustomMethod", "params": [ { - "name": "app", - "type": "InputBotApp" + "name": "bot", + "type": "InputUser" }, { - "name": "hash", - "type": "long" + "name": "custom_method", + "type": "string" + }, + { + "name": "params", + "type": "DataJSON" } ], - "type": "messages.BotApp" + "type": "DataJSON" }, { - "id": "1398901710", - "method": "messages.requestAppWebView", + "id": "743103056", + "method": "stories.getPeerStories", "params": [ - { - "name": "flags", - "type": "#" - }, - { - "name": "write_allowed", - "type": "flags.0?true" - }, - { - "name": "compact", - "type": "flags.7?true" - }, - { - "name": "fullscreen", - "type": "flags.8?true" - }, { "name": "peer", "type": "InputPeer" - }, - { - "name": "app", - "type": "InputBotApp" - }, + } + ], + "type": "stories.PeerStories" + }, + { + "id": "-1688541191", + "method": "stories.getAllReadPeerStories", + "params": [], + "type": "Updates" + }, + { + "id": "1398375363", + "method": "stories.getPeerMaxIDs", + "params": [ { - "name": "start_param", - "type": "flags.1?string" - }, + "name": "id", + "type": "Vector" + } + ], + "type": "Vector" + }, + { + "id": "-1519744160", + "method": "stories.getChatsToSend", + "params": [], + "type": "messages.Chats" + }, + { + "id": "-1123805756", + "method": "stories.togglePeerStoriesHidden", + "params": [ { - "name": "theme_params", - "type": "flags.2?DataJSON" + "name": "peer", + "type": "InputPeer" }, { - "name": "platform", - "type": "string" + "name": "hidden", + "type": "Bool" } ], - "type": "WebViewResult" + "type": "Bool" }, { - "id": "282013987", - "method": "bots.setBotInfo", + "id": "660060756", + "method": "payments.getPremiumGiftCodeOptions", "params": [ { "name": "flags", "type": "#" }, { - "name": "bot", - "type": "flags.2?InputUser" - }, + "name": "boost_peer", + "type": "flags.0?InputPeer" + } + ], + "type": "Vector" + }, + { + "id": "-1907247935", + "method": "payments.checkGiftCode", + "params": [ { - "name": "lang_code", + "name": "slug", "type": "string" - }, - { - "name": "name", - "type": "flags.3?string" - }, - { - "name": "about", - "type": "flags.0?string" - }, - { - "name": "description", - "type": "flags.1?string" } ], - "type": "Bool" + "type": "payments.CheckedGiftCode" }, { - "id": "-589753091", - "method": "bots.getBotInfo", + "id": "-152934316", + "method": "payments.applyGiftCode", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "bot", - "type": "flags.0?InputUser" - }, - { - "name": "lang_code", + "name": "slug", "type": "string" } ], - "type": "bots.BotInfo" + "type": "Updates" }, { - "id": "2123760019", - "method": "auth.resetLoginEmail", + "id": "-198994907", + "method": "payments.getGiveawayInfo", "params": [ { - "name": "phone_number", - "type": "string" + "name": "peer", + "type": "InputPeer" }, { - "name": "phone_code_hash", - "type": "string" + "name": "msg_id", + "type": "int" } ], - "type": "auth.SentCode" + "type": "payments.GiveawayInfo" }, { - "id": "-2072885362", - "method": "chatlists.exportChatlistInvite", + "id": "1609928480", + "method": "payments.launchPrepaidGiveaway", "params": [ { - "name": "chatlist", - "type": "InputChatlist" + "name": "peer", + "type": "InputPeer" }, { - "name": "title", - "type": "string" + "name": "giveaway_id", + "type": "long" }, { - "name": "peers", - "type": "Vector" + "name": "purpose", + "type": "InputStorePaymentPurpose" } ], - "type": "chatlists.ExportedChatlistInvite" + "type": "Updates" }, { - "id": "1906072670", - "method": "chatlists.deleteExportedInvite", + "id": "2096079197", + "method": "account.updateColor", "params": [ { - "name": "chatlist", - "type": "InputChatlist" + "name": "flags", + "type": "#" }, { - "name": "slug", - "type": "string" + "name": "for_profile", + "type": "flags.1?true" + }, + { + "name": "color", + "type": "flags.2?int" + }, + { + "name": "background_emoji_id", + "type": "flags.0?long" } ], "type": "Bool" }, { - "id": "1698543165", - "method": "chatlists.editExportedInvite", + "id": "-659933583", + "method": "channels.updateColor", "params": [ { "name": "flags", "type": "#" }, { - "name": "chatlist", - "type": "InputChatlist" + "name": "for_profile", + "type": "flags.1?true" }, { - "name": "slug", - "type": "string" + "name": "channel", + "type": "InputChannel" }, { - "name": "title", - "type": "flags.1?string" + "name": "color", + "type": "flags.2?int" }, { - "name": "peers", - "type": "flags.2?Vector" + "name": "background_emoji_id", + "type": "flags.0?long" } ], - "type": "ExportedChatlistInvite" + "type": "Updates" }, { - "id": "-838608253", - "method": "chatlists.getExportedInvites", + "id": "-1509246514", + "method": "account.getDefaultBackgroundEmojis", "params": [ { - "name": "chatlist", - "type": "InputChatlist" + "name": "hash", + "type": "long" } ], - "type": "chatlists.ExportedInvites" + "type": "EmojiList" }, { - "id": "1103171583", - "method": "chatlists.checkChatlistInvite", + "id": "1626764896", + "method": "premium.getBoostsList", "params": [ { - "name": "slug", + "name": "flags", + "type": "#" + }, + { + "name": "gifts", + "type": "flags.0?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "offset", "type": "string" + }, + { + "name": "limit", + "type": "int" } ], - "type": "chatlists.ChatlistInvite" + "type": "premium.BoostsList" }, { - "id": "-1498291302", - "method": "chatlists.joinChatlistInvite", + "id": "199719754", + "method": "premium.getMyBoosts", + "params": [], + "type": "premium.MyBoosts" + }, + { + "id": "1803396934", + "method": "premium.applyBoost", "params": [ { - "name": "slug", - "type": "string" + "name": "flags", + "type": "#" }, { - "name": "peers", - "type": "Vector" + "name": "slots", + "type": "flags.0?Vector" + }, + { + "name": "peer", + "type": "InputPeer" } ], - "type": "Updates" + "type": "premium.MyBoosts" }, { - "id": "-1992190687", - "method": "chatlists.getChatlistUpdates", + "id": "70197089", + "method": "premium.getBoostsStatus", "params": [ { - "name": "chatlist", - "type": "InputChatlist" + "name": "peer", + "type": "InputPeer" } ], - "type": "chatlists.ChatlistUpdates" + "type": "premium.BoostsStatus" }, { - "id": "-527828747", - "method": "chatlists.joinChatlistUpdates", + "id": "965037343", + "method": "premium.getUserBoosts", "params": [ { - "name": "chatlist", - "type": "InputChatlist" + "name": "peer", + "type": "InputPeer" }, { - "name": "peers", - "type": "Vector" + "name": "user_id", + "type": "InputUser" } ], - "type": "Updates" + "type": "premium.BoostsList" }, { - "id": "1726252795", - "method": "chatlists.hideChatlistUpdates", + "id": "-1757889771", + "method": "channels.toggleViewForumAsMessages", "params": [ { - "name": "chatlist", - "type": "InputChatlist" + "name": "channel", + "type": "InputChannel" + }, + { + "name": "enabled", + "type": "Bool" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-37955820", - "method": "chatlists.getLeaveChatlistSuggestions", + "id": "-1833678516", + "method": "messages.searchEmojiStickerSets", "params": [ { - "name": "chatlist", - "type": "InputChatlist" + "name": "flags", + "type": "#" + }, + { + "name": "exclude_featured", + "type": "flags.0?true" + }, + { + "name": "q", + "type": "string" + }, + { + "name": "hash", + "type": "long" } ], - "type": "Vector" + "type": "messages.FoundStickerSets" }, { - "id": "1962598714", - "method": "chatlists.leaveChatlist", + "id": "631707458", + "method": "channels.getChannelRecommendations", "params": [ { - "name": "chatlist", - "type": "InputChatlist" + "name": "flags", + "type": "#" }, { - "name": "peers", - "type": "Vector" + "name": "channel", + "type": "flags.0?InputChannel" } ], - "type": "Updates" + "type": "messages.Chats" }, { - "id": "-1760972350", - "method": "bots.reorderUsernames", + "id": "927985472", + "method": "stats.getStoryStats", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "flags", + "type": "#" }, { - "name": "order", - "type": "Vector" + "name": "dark", + "type": "flags.0?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "int" } ], - "type": "Bool" + "type": "stats.StoryStats" }, { - "id": "87861619", - "method": "bots.toggleUsername", + "id": "-1505526026", + "method": "stats.getStoryPublicForwards", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "peer", + "type": "InputPeer" }, { - "name": "username", + "name": "id", + "type": "int" + }, + { + "name": "offset", "type": "string" }, { - "name": "active", - "type": "Bool" + "name": "limit", + "type": "int" } ], - "type": "Bool" + "type": "stats.PublicForwards" }, { - "id": "-1879389471", - "method": "messages.setChatWallPaper", + "id": "-629083089", + "method": "help.getPeerColors", + "params": [ + { + "name": "hash", + "type": "int" + } + ], + "type": "help.PeerColors" + }, + { + "id": "-1412453891", + "method": "help.getPeerProfileColors", + "params": [ + { + "name": "hash", + "type": "int" + } + ], + "type": "help.PeerColors" + }, + { + "id": "-1179482081", + "method": "stories.getStoryReactionsList", "params": [ { "name": "flags", "type": "#" }, { - "name": "for_both", - "type": "flags.3?true" - }, - { - "name": "revert", - "type": "flags.4?true" + "name": "forwards_first", + "type": "flags.2?true" }, { "name": "peer", "type": "InputPeer" }, { - "name": "wallpaper", - "type": "flags.0?InputWallPaper" + "name": "id", + "type": "int" }, { - "name": "settings", - "type": "flags.2?WallPaperSettings" + "name": "reaction", + "type": "flags.0?Reaction" }, { - "name": "id", - "type": "flags.1?int" + "name": "offset", + "type": "flags.1?string" + }, + { + "name": "limit", + "type": "int" } ], - "type": "Updates" + "type": "stories.StoryReactionsList" }, { - "id": "-896866118", - "method": "account.invalidateSignInCodes", + "id": "-254548312", + "method": "channels.updateEmojiStatus", "params": [ { - "name": "codes", - "type": "Vector" + "name": "channel", + "type": "InputChannel" + }, + { + "name": "emoji_status", + "type": "EmojiStatus" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-1167653392", - "method": "contacts.editCloseFriends", + "id": "1999087573", + "method": "account.getChannelDefaultEmojiStatuses", "params": [ { - "name": "id", - "type": "Vector" + "name": "hash", + "type": "long" } ], - "type": "Bool" + "type": "account.EmojiStatuses" }, { - "id": "-941629475", - "method": "stories.canSendStory", + "id": "900325589", + "method": "account.getChannelRestrictedStatusEmojis", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "hash", + "type": "long" } ], - "type": "Bool" + "type": "EmojiList" }, { - "id": "-454661813", - "method": "stories.sendStory", + "id": "512883865", + "method": "messages.getSavedDialogs", "params": [ { "name": "flags", "type": "#" }, { - "name": "pinned", - "type": "flags.2?true" + "name": "exclude_pinned", + "type": "flags.0?true" }, { - "name": "noforwards", - "type": "flags.4?true" + "name": "parent_peer", + "type": "flags.1?InputPeer" }, { - "name": "fwd_modified", - "type": "flags.7?true" + "name": "offset_date", + "type": "int" }, { - "name": "peer", + "name": "offset_id", + "type": "int" + }, + { + "name": "offset_peer", "type": "InputPeer" }, { - "name": "media", - "type": "InputMedia" + "name": "limit", + "type": "int" }, { - "name": "media_areas", - "type": "flags.5?Vector" + "name": "hash", + "type": "long" + } + ], + "type": "messages.SavedDialogs" + }, + { + "id": "-1718964215", + "method": "messages.getSavedHistory", + "params": [ + { + "name": "flags", + "type": "#" }, { - "name": "caption", - "type": "flags.0?string" + "name": "parent_peer", + "type": "flags.0?InputPeer" }, { - "name": "entities", - "type": "flags.1?Vector" + "name": "peer", + "type": "InputPeer" }, { - "name": "privacy_rules", - "type": "Vector" + "name": "offset_id", + "type": "int" }, { - "name": "random_id", - "type": "long" + "name": "offset_date", + "type": "int" }, { - "name": "period", - "type": "flags.3?int" + "name": "add_offset", + "type": "int" }, { - "name": "fwd_from_id", - "type": "flags.6?InputPeer" + "name": "limit", + "type": "int" }, { - "name": "fwd_from_story", - "type": "flags.6?int" + "name": "max_id", + "type": "int" + }, + { + "name": "min_id", + "type": "int" + }, + { + "name": "hash", + "type": "long" } ], - "type": "Updates" + "type": "messages.Messages" }, { - "id": "-1249658298", - "method": "stories.editStory", + "id": "1304758367", + "method": "messages.deleteSavedHistory", "params": [ { "name": "flags", "type": "#" }, + { + "name": "parent_peer", + "type": "flags.0?InputPeer" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "id", + "name": "max_id", "type": "int" }, { - "name": "media", - "type": "flags.0?InputMedia" + "name": "min_date", + "type": "flags.2?int" }, { - "name": "media_areas", - "type": "flags.3?Vector" - }, + "name": "max_date", + "type": "flags.3?int" + } + ], + "type": "messages.AffectedHistory" + }, + { + "id": "-700607264", + "method": "messages.getPinnedSavedDialogs", + "params": [], + "type": "messages.SavedDialogs" + }, + { + "id": "-1400783906", + "method": "messages.toggleSavedDialogPin", + "params": [ { - "name": "caption", - "type": "flags.1?string" + "name": "flags", + "type": "#" }, { - "name": "entities", - "type": "flags.1?Vector" + "name": "pinned", + "type": "flags.0?true" }, { - "name": "privacy_rules", - "type": "flags.2?Vector" + "name": "peer", + "type": "InputDialogPeer" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-1369842849", - "method": "stories.deleteStories", + "id": "-1955502713", + "method": "messages.reorderPinnedSavedDialogs", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "id", - "type": "Vector" + "name": "force", + "type": "flags.0?true" + }, + { + "name": "order", + "type": "Vector" } ], - "type": "Vector" + "type": "Bool" }, { - "id": "-1703566865", - "method": "stories.togglePinned", + "id": "909631579", + "method": "messages.getSavedReactionTags", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "id", - "type": "Vector" + "name": "peer", + "type": "flags.0?InputPeer" }, { - "name": "pinned", - "type": "Bool" + "name": "hash", + "type": "long" } ], - "type": "Vector" + "type": "messages.SavedReactionTags" }, { - "id": "-290400731", - "method": "stories.getAllStories", + "id": "1613331948", + "method": "messages.updateSavedReactionTag", "params": [ { "name": "flags", "type": "#" }, { - "name": "next", - "type": "flags.1?true" - }, - { - "name": "hidden", - "type": "flags.2?true" + "name": "reaction", + "type": "Reaction" }, { - "name": "state", + "name": "title", "type": "flags.0?string" } ], - "type": "stories.AllStories" + "type": "Bool" + }, + { + "id": "-1107741656", + "method": "messages.getDefaultTagReactions", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "messages.Reactions" }, { - "id": "1478600156", - "method": "stories.getPinnedStories", + "id": "-1941176739", + "method": "messages.getOutboxReadDate", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "offset_id", - "type": "int" - }, - { - "name": "limit", + "name": "msg_id", "type": "int" } ], - "type": "stories.Stories" + "type": "OutboxReadDate" }, { - "id": "-1271586794", - "method": "stories.getStoriesArchive", + "id": "-1388733202", + "method": "channels.setBoostsToUnblockRestrictions", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "offset_id", - "type": "int" + "name": "channel", + "type": "InputChannel" }, { - "name": "limit", + "name": "boosts", "type": "int" } ], - "type": "stories.Stories" + "type": "Updates" }, { - "id": "1467271796", - "method": "stories.getStoriesByID", + "id": "1020866743", + "method": "channels.setEmojiStickers", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "channel", + "type": "InputChannel" }, { - "name": "id", - "type": "Vector" + "name": "stickerset", + "type": "InputStickerSet" } ], - "type": "stories.Stories" + "type": "Bool" }, { - "id": "2082822084", - "method": "stories.toggleAllStoriesHidden", - "params": [ - { - "name": "hidden", - "type": "Bool" - } - ], + "id": "249313744", + "method": "smsjobs.isEligibleToJoin", + "params": [], + "type": "smsjobs.EligibilityToJoin" + }, + { + "id": "-1488007635", + "method": "smsjobs.join", + "params": [], "type": "Bool" }, { - "id": "-1521034552", - "method": "stories.readStories", + "id": "-1734824589", + "method": "smsjobs.leave", + "params": [], + "type": "Bool" + }, + { + "id": "155164863", + "method": "smsjobs.updateSettings", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "max_id", - "type": "int" + "name": "allow_international", + "type": "flags.0?true" } ], - "type": "Vector" + "type": "Bool" }, { - "id": "-1308456197", - "method": "stories.incrementStoryViews", + "id": "279353576", + "method": "smsjobs.getStatus", + "params": [], + "type": "smsjobs.Status" + }, + { + "id": "2005766191", + "method": "smsjobs.getSmsJob", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "Vector" + "name": "job_id", + "type": "string" } ], - "type": "Bool" + "type": "SmsJob" }, { - "id": "2127707223", - "method": "stories.getStoryViewsList", + "id": "1327415076", + "method": "smsjobs.finishJob", "params": [ { "name": "flags", "type": "#" }, { - "name": "just_contacts", - "type": "flags.0?true" - }, - { - "name": "reactions_first", - "type": "flags.2?true" - }, - { - "name": "forwards_first", - "type": "flags.3?true" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "q", - "type": "flags.1?string" - }, - { - "name": "id", - "type": "int" - }, - { - "name": "offset", + "name": "job_id", "type": "string" }, { - "name": "limit", - "type": "int" + "name": "error", + "type": "flags.0?string" } ], - "type": "stories.StoryViewsList" + "type": "Bool" }, { - "id": "685862088", - "method": "stories.getStoriesViews", + "id": "1236468288", + "method": "help.getTimezonesList", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "Vector" + "name": "hash", + "type": "int" } ], - "type": "stories.StoryViews" + "type": "help.TimezonesList" }, { - "id": "2072899360", - "method": "stories.exportStoryLink", + "id": "1258348646", + "method": "account.updateBusinessWorkHours", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "id", - "type": "int" + "name": "business_work_hours", + "type": "flags.0?BusinessWorkHours" } ], - "type": "ExportedStoryLink" + "type": "Bool" }, { - "id": "433646405", - "method": "stories.report", + "id": "-1637149926", + "method": "account.updateBusinessLocation", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "Vector" + "name": "flags", + "type": "#" }, { - "name": "option", - "type": "bytes" + "name": "geo_point", + "type": "flags.1?InputGeoPoint" }, { - "name": "message", - "type": "string" + "name": "address", + "type": "flags.0?string" } ], - "type": "ReportResult" + "type": "Bool" }, { - "id": "1471926630", - "method": "stories.activateStealthMode", + "id": "1724755908", + "method": "account.updateBusinessGreetingMessage", "params": [ { "name": "flags", "type": "#" }, { - "name": "past", - "type": "flags.0?true" - }, - { - "name": "future", - "type": "flags.1?true" + "name": "message", + "type": "flags.0?InputBusinessGreetingMessage" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-1798939530", - "method": "contacts.setBlocked", + "id": "-1570078811", + "method": "account.updateBusinessAwayMessage", "params": [ { "name": "flags", "type": "#" }, { - "name": "my_stories_from", - "type": "flags.0?true" - }, - { - "name": "id", - "type": "Vector" - }, - { - "name": "limit", - "type": "int" + "name": "message", + "type": "flags.0?InputBusinessAwayMessage" } ], "type": "Bool" }, { - "id": "2144810674", - "method": "stories.sendReaction", + "id": "-729550168", + "method": "messages.getQuickReplies", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "add_to_recent", - "type": "flags.0?true" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "story_id", - "type": "int" - }, - { - "name": "reaction", - "type": "Reaction" + "name": "hash", + "type": "long" } ], - "type": "Updates" + "type": "messages.QuickReplies" }, { - "id": "324662502", - "method": "bots.canSendMessage", + "id": "1613961479", + "method": "messages.reorderQuickReplies", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "order", + "type": "Vector" } ], "type": "Bool" }, { - "id": "-248323089", - "method": "bots.allowSendMessage", + "id": "-237962285", + "method": "messages.checkQuickReplyShortcut", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "shortcut", + "type": "string" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "142591463", - "method": "bots.invokeWebViewCustomMethod", + "id": "1543519471", + "method": "messages.editQuickReplyShortcut", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "shortcut_id", + "type": "int" }, { - "name": "custom_method", + "name": "shortcut", "type": "string" - }, - { - "name": "params", - "type": "DataJSON" } ], - "type": "DataJSON" + "type": "Bool" }, { - "id": "743103056", - "method": "stories.getPeerStories", + "id": "1019234112", + "method": "messages.deleteQuickReplyShortcut", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "shortcut_id", + "type": "int" } ], - "type": "stories.PeerStories" - }, - { - "id": "-1688541191", - "method": "stories.getAllReadPeerStories", - "params": [], - "type": "Updates" + "type": "Bool" }, { - "id": "1398375363", - "method": "stories.getPeerMaxIDs", + "id": "-1801153085", + "method": "messages.getQuickReplyMessages", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "shortcut_id", + "type": "int" + }, { "name": "id", - "type": "Vector" + "type": "flags.0?Vector" + }, + { + "name": "hash", + "type": "long" } ], - "type": "Vector" - }, - { - "id": "-1519744160", - "method": "stories.getChatsToSend", - "params": [], - "type": "messages.Chats" + "type": "messages.Messages" }, { - "id": "-1123805756", - "method": "stories.togglePeerStoriesHidden", + "id": "1819610593", + "method": "messages.sendQuickReplyMessages", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "hidden", - "type": "Bool" + "name": "shortcut_id", + "type": "int" + }, + { + "name": "id", + "type": "Vector" + }, + { + "name": "random_id", + "type": "Vector" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "660060756", - "method": "payments.getPremiumGiftCodeOptions", + "id": "-519706352", + "method": "messages.deleteQuickReplyMessages", "params": [ { - "name": "flags", - "type": "#" + "name": "shortcut_id", + "type": "int" }, { - "name": "boost_peer", - "type": "flags.0?InputPeer" + "name": "id", + "type": "Vector" } ], - "type": "Vector" + "type": "Updates" }, { - "id": "-1907247935", - "method": "payments.checkGiftCode", + "id": "1721797758", + "method": "account.updateConnectedBot", "params": [ { - "name": "slug", - "type": "string" + "name": "flags", + "type": "#" + }, + { + "name": "deleted", + "type": "flags.1?true" + }, + { + "name": "rights", + "type": "flags.0?BusinessBotRights" + }, + { + "name": "bot", + "type": "InputUser" + }, + { + "name": "recipients", + "type": "InputBusinessBotRecipients" } ], - "type": "payments.CheckedGiftCode" + "type": "Updates" }, { - "id": "-152934316", - "method": "payments.applyGiftCode", + "id": "1319421967", + "method": "account.getConnectedBots", + "params": [], + "type": "account.ConnectedBots" + }, + { + "id": "-47326647", + "method": "messages.toggleDialogFilterTags", "params": [ { - "name": "slug", - "type": "string" + "name": "enabled", + "type": "Bool" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-198994907", - "method": "payments.getGiveawayInfo", + "id": "-584540274", + "method": "invokeWithBusinessConnection", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "connection_id", + "type": "string" }, { - "name": "msg_id", - "type": "int" + "name": "query", + "type": "!X" } ], - "type": "payments.GiveawayInfo" + "type": "X" }, { - "id": "1609928480", - "method": "payments.launchPrepaidGiveaway", + "id": "1990746736", + "method": "account.getBotBusinessConnection", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "giveaway_id", - "type": "long" - }, - { - "name": "purpose", - "type": "InputStorePaymentPurpose" + "name": "connection_id", + "type": "string" } ], "type": "Updates" }, { - "id": "2096079197", - "method": "account.updateColor", + "id": "-1508585420", + "method": "account.updateBusinessIntro", "params": [ { "name": "flags", "type": "#" }, { - "name": "for_profile", - "type": "flags.1?true" - }, - { - "name": "color", - "type": "flags.2?int" - }, - { - "name": "background_emoji_id", - "type": "flags.0?long" + "name": "intro", + "type": "flags.0?InputBusinessIntro" } ], "type": "Bool" }, { - "id": "-659933583", - "method": "channels.updateColor", + "id": "1184253338", + "method": "stickers.replaceSticker", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "for_profile", - "type": "flags.1?true" + "name": "sticker", + "type": "InputDocument" }, { - "name": "channel", - "type": "InputChannel" - }, + "name": "new_sticker", + "type": "InputStickerSetItem" + } + ], + "type": "messages.StickerSet" + }, + { + "id": "-793386500", + "method": "messages.getMyStickers", + "params": [ { - "name": "color", - "type": "flags.2?int" + "name": "offset_id", + "type": "long" }, { - "name": "background_emoji_id", - "type": "flags.0?long" + "name": "limit", + "type": "int" } ], - "type": "Updates" + "type": "messages.MyStickers" }, { - "id": "-1509246514", - "method": "account.getDefaultBackgroundEmojis", + "id": "-1105295942", + "method": "fragment.getCollectibleInfo", "params": [ { - "name": "hash", - "type": "long" + "name": "collectible", + "type": "InputCollectible" } ], - "type": "EmojiList" + "type": "fragment.CollectibleInfo" }, { - "id": "1626764896", - "method": "premium.getBoostsList", + "id": "1684934807", + "method": "account.toggleConnectedBotPaused", "params": [ { - "name": "flags", - "type": "#" + "name": "peer", + "type": "InputPeer" }, { - "name": "gifts", - "type": "flags.0?true" - }, + "name": "paused", + "type": "Bool" + } + ], + "type": "Bool" + }, + { + "id": "1581481689", + "method": "account.disablePeerConnectedBot", + "params": [ { "name": "peer", "type": "InputPeer" + } + ], + "type": "Bool" + }, + { + "id": "-865203183", + "method": "account.updateBirthday", + "params": [ + { + "name": "flags", + "type": "#" }, { - "name": "offset", - "type": "string" - }, - { - "name": "limit", - "type": "int" + "name": "birthday", + "type": "flags.0?Birthday" } ], - "type": "premium.BoostsList" + "type": "Bool" }, { - "id": "199719754", - "method": "premium.getMyBoosts", + "id": "-621959068", + "method": "contacts.getBirthdays", "params": [], - "type": "premium.MyBoosts" + "type": "contacts.ContactBirthdays" }, { - "id": "1803396934", - "method": "premium.applyBoost", + "id": "-2007898482", + "method": "account.createBusinessChatLink", "params": [ { - "name": "flags", - "type": "#" - }, + "name": "link", + "type": "InputBusinessChatLink" + } + ], + "type": "BusinessChatLink" + }, + { + "id": "-1942744913", + "method": "account.editBusinessChatLink", + "params": [ { - "name": "slots", - "type": "flags.0?Vector" + "name": "slug", + "type": "string" }, { - "name": "peer", - "type": "InputPeer" + "name": "link", + "type": "InputBusinessChatLink" } ], - "type": "premium.MyBoosts" + "type": "BusinessChatLink" }, { - "id": "70197089", - "method": "premium.getBoostsStatus", + "id": "1611085428", + "method": "account.deleteBusinessChatLink", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "slug", + "type": "string" } ], - "type": "premium.BoostsStatus" + "type": "Bool" }, { - "id": "965037343", - "method": "premium.getUserBoosts", + "id": "1869667809", + "method": "account.getBusinessChatLinks", + "params": [], + "type": "account.BusinessChatLinks" + }, + { + "id": "1418913262", + "method": "account.resolveBusinessChatLink", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "user_id", - "type": "InputUser" + "name": "slug", + "type": "string" } ], - "type": "premium.BoostsList" + "type": "account.ResolvedBusinessChatLinks" }, { - "id": "-1757889771", - "method": "channels.toggleViewForumAsMessages", + "id": "-649919008", + "method": "account.updatePersonalChannel", "params": [ { "name": "channel", "type": "InputChannel" - }, - { - "name": "enabled", - "type": "Bool" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-1833678516", - "method": "messages.searchEmojiStickerSets", + "id": "-1696000743", + "method": "channels.restrictSponsoredMessages", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "exclude_featured", - "type": "flags.0?true" - }, - { - "name": "q", - "type": "string" + "name": "channel", + "type": "InputChannel" }, { - "name": "hash", - "type": "long" + "name": "restricted", + "type": "Bool" } ], - "type": "messages.FoundStickerSets" + "type": "Updates" }, { - "id": "631707458", - "method": "channels.getChannelRecommendations", + "id": "-1176919155", + "method": "account.toggleSponsoredMessages", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "channel", - "type": "flags.0?InputChannel" + "name": "enabled", + "type": "Bool" } ], - "type": "messages.Chats" + "type": "Bool" }, { - "id": "927985472", - "method": "stats.getStoryStats", + "id": "187268763", + "method": "stories.togglePinnedToTop", "params": [ - { - "name": "flags", - "type": "#" - }, - { - "name": "dark", - "type": "flags.0?true" - }, { "name": "peer", "type": "InputPeer" }, { "name": "id", - "type": "int" + "type": "Vector" } ], - "type": "stats.StoryStats" + "type": "Bool" }, { - "id": "-1505526026", - "method": "stats.getStoryPublicForwards", + "id": "115172684", + "method": "account.getReactionsNotifySettings", + "params": [], + "type": "ReactionsNotifySettings" + }, + { + "id": "829220168", + "method": "account.setReactionsNotifySettings", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "int" - }, - { - "name": "offset", - "type": "string" - }, - { - "name": "limit", - "type": "int" + "name": "settings", + "type": "ReactionsNotifySettings" } ], - "type": "stats.PublicForwards" + "type": "ReactionsNotifySettings" }, { - "id": "-629083089", - "method": "help.getPeerColors", + "id": "-878841866", + "method": "auth.reportMissingCode", "params": [ { - "name": "hash", - "type": "int" + "name": "phone_number", + "type": "string" + }, + { + "name": "phone_code_hash", + "type": "string" + }, + { + "name": "mnc", + "type": "string" } ], - "type": "help.PeerColors" + "type": "Bool" }, { - "id": "-1412453891", - "method": "help.getPeerProfileColors", + "id": "500711669", + "method": "messages.getEmojiStickerGroups", "params": [ { "name": "hash", "type": "int" } ], - "type": "help.PeerColors" + "type": "messages.EmojiGroups" }, { - "id": "-1179482081", - "method": "stories.getStoryReactionsList", + "id": "502868356", + "method": "invokeWithGooglePlayIntegrity", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "forwards_first", - "type": "flags.2?true" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "id", - "type": "int" - }, - { - "name": "reaction", - "type": "flags.0?Reaction" + "name": "nonce", + "type": "string" }, { - "name": "offset", - "type": "flags.1?string" + "name": "token", + "type": "string" }, { - "name": "limit", - "type": "int" + "name": "query", + "type": "!X" } ], - "type": "stories.StoryReactionsList" + "type": "X" }, { - "id": "-254548312", - "method": "channels.updateEmojiStatus", + "id": "229528824", + "method": "invokeWithApnsSecret", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "nonce", + "type": "string" }, { - "name": "emoji_status", - "type": "EmojiStatus" - } - ], - "type": "Updates" - }, - { - "id": "1999087573", - "method": "account.getChannelDefaultEmojiStatuses", - "params": [ + "name": "secret", + "type": "string" + }, { - "name": "hash", - "type": "long" + "name": "query", + "type": "!X" } ], - "type": "account.EmojiStatuses" + "type": "X" }, { - "id": "900325589", - "method": "account.getChannelRestrictedStatusEmojis", + "id": "-559805895", + "method": "messages.getAvailableEffects", "params": [ { "name": "hash", - "type": "long" + "type": "int" } ], - "type": "EmojiList" + "type": "messages.AvailableEffects" }, { - "id": "1401016858", - "method": "messages.getSavedDialogs", + "id": "-221973939", + "method": "channels.searchPosts", "params": [ { "name": "flags", "type": "#" }, { - "name": "exclude_pinned", - "type": "flags.0?true" + "name": "hashtag", + "type": "flags.0?string" }, { - "name": "offset_date", - "type": "int" + "name": "query", + "type": "flags.1?string" }, { - "name": "offset_id", + "name": "offset_rate", "type": "int" }, { "name": "offset_peer", "type": "InputPeer" }, + { + "name": "offset_id", + "type": "int" + }, { "name": "limit", "type": "int" }, { - "name": "hash", - "type": "long" + "name": "allow_paid_stars", + "type": "flags.2?long" } ], - "type": "messages.SavedDialogs" + "type": "messages.Messages" }, { - "id": "1033519437", - "method": "messages.getSavedHistory", + "id": "92925557", + "method": "messages.editFactCheck", "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", + "name": "msg_id", "type": "int" }, { - "name": "hash", - "type": "long" + "name": "text", + "type": "TextWithEntities" } ], - "type": "messages.Messages" + "type": "Updates" }, { - "id": "1855459371", - "method": "messages.deleteSavedHistory", + "id": "-774204404", + "method": "messages.deleteFactCheck", "params": [ - { - "name": "flags", - "type": "#" - }, { "name": "peer", "type": "InputPeer" }, { - "name": "max_id", + "name": "msg_id", "type": "int" - }, + } + ], + "type": "Updates" + }, + { + "id": "-1177696786", + "method": "messages.getFactCheck", + "params": [ { - "name": "min_date", - "type": "flags.2?int" + "name": "peer", + "type": "InputPeer" }, { - "name": "max_date", - "type": "flags.3?int" + "name": "msg_id", + "type": "Vector" } ], - "type": "messages.AffectedHistory" + "type": "Vector" }, { - "id": "-700607264", - "method": "messages.getPinnedSavedDialogs", + "id": "-1072773165", + "method": "payments.getStarsTopupOptions", "params": [], - "type": "messages.SavedDialogs" + "type": "Vector" }, { - "id": "-1400783906", - "method": "messages.toggleSavedDialogPin", + "id": "1319744447", + "method": "payments.getStarsStatus", "params": [ { "name": "flags", "type": "#" }, { - "name": "pinned", + "name": "ton", "type": "flags.0?true" }, { "name": "peer", - "type": "InputDialogPeer" + "type": "InputPeer" } ], - "type": "Bool" + "type": "payments.StarsStatus" }, { - "id": "-1955502713", - "method": "messages.reorderPinnedSavedDialogs", + "id": "1775912279", + "method": "payments.getStarsTransactions", "params": [ { "name": "flags", "type": "#" }, { - "name": "force", + "name": "inbound", "type": "flags.0?true" }, { - "name": "order", - "type": "Vector" - } - ], - "type": "Bool" - }, - { - "id": "909631579", - "method": "messages.getSavedReactionTags", - "params": [ + "name": "outbound", + "type": "flags.1?true" + }, { - "name": "flags", - "type": "#" + "name": "ascending", + "type": "flags.2?true" }, { - "name": "peer", - "type": "flags.0?InputPeer" + "name": "ton", + "type": "flags.4?true" }, { - "name": "hash", - "type": "long" - } - ], - "type": "messages.SavedReactionTags" - }, - { - "id": "1613331948", - "method": "messages.updateSavedReactionTag", - "params": [ + "name": "subscription_id", + "type": "flags.3?string" + }, { - "name": "flags", - "type": "#" + "name": "peer", + "type": "InputPeer" }, { - "name": "reaction", - "type": "Reaction" + "name": "offset", + "type": "string" }, { - "name": "title", - "type": "flags.0?string" + "name": "limit", + "type": "int" } ], - "type": "Bool" + "type": "payments.StarsStatus" }, { - "id": "-1107741656", - "method": "messages.getDefaultTagReactions", + "id": "2040056084", + "method": "payments.sendStarsForm", "params": [ { - "name": "hash", + "name": "form_id", "type": "long" + }, + { + "name": "invoice", + "type": "InputInvoice" } ], - "type": "messages.Reactions" + "type": "payments.PaymentResult" }, { - "id": "-1941176739", - "method": "messages.getOutboxReadDate", + "id": "632196938", + "method": "payments.refundStarsCharge", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "user_id", + "type": "InputUser" }, { - "name": "msg_id", - "type": "int" + "name": "charge_id", + "type": "string" } ], - "type": "OutboxReadDate" + "type": "Updates" }, { - "id": "-1507677680", - "method": "users.getIsPremiumRequiredToContact", + "id": "-780072697", + "method": "stories.searchPosts", "params": [ { - "name": "id", - "type": "Vector" - } - ], - "type": "Vector" - }, - { - "id": "-1388733202", - "method": "channels.setBoostsToUnblockRestrictions", - "params": [ + "name": "flags", + "type": "#" + }, { - "name": "channel", - "type": "InputChannel" + "name": "hashtag", + "type": "flags.0?string" }, { - "name": "boosts", - "type": "int" - } - ], - "type": "Updates" - }, - { - "id": "1020866743", - "method": "channels.setEmojiStickers", - "params": [ + "name": "area", + "type": "flags.1?MediaArea" + }, { - "name": "channel", - "type": "InputChannel" + "name": "peer", + "type": "flags.2?InputPeer" }, { - "name": "stickerset", - "type": "InputStickerSet" + "name": "offset", + "type": "string" + }, + { + "name": "limit", + "type": "int" } ], - "type": "Bool" - }, - { - "id": "249313744", - "method": "smsjobs.isEligibleToJoin", - "params": [], - "type": "smsjobs.EligibilityToJoin" - }, - { - "id": "-1488007635", - "method": "smsjobs.join", - "params": [], - "type": "Bool" - }, - { - "id": "-1734824589", - "method": "smsjobs.leave", - "params": [], - "type": "Bool" + "type": "stories.FoundStories" }, { - "id": "155164863", - "method": "smsjobs.updateSettings", + "id": "-652215594", + "method": "payments.getStarsRevenueStats", "params": [ { "name": "flags", "type": "#" }, { - "name": "allow_international", - "type": "flags.0?true" - } - ], - "type": "Bool" - }, - { - "id": "279353576", - "method": "smsjobs.getStatus", - "params": [], - "type": "smsjobs.Status" - }, - { - "id": "2005766191", - "method": "smsjobs.getSmsJob", - "params": [ + "name": "dark", + "type": "flags.0?true" + }, { - "name": "job_id", - "type": "string" + "name": "ton", + "type": "flags.1?true" + }, + { + "name": "peer", + "type": "InputPeer" } ], - "type": "SmsJob" + "type": "payments.StarsRevenueStats" }, { - "id": "1327415076", - "method": "smsjobs.finishJob", + "id": "607378578", + "method": "payments.getStarsRevenueWithdrawalUrl", "params": [ { "name": "flags", "type": "#" }, { - "name": "job_id", - "type": "string" + "name": "ton", + "type": "flags.0?true" }, { - "name": "error", - "type": "flags.0?string" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "amount", + "type": "flags.1?long" + }, + { + "name": "password", + "type": "InputCheckPasswordSRP" } ], - "type": "Bool" + "type": "payments.StarsRevenueWithdrawalUrl" }, { - "id": "1236468288", - "method": "help.getTimezonesList", + "id": "-774377531", + "method": "payments.getStarsRevenueAdsAccountUrl", "params": [ { - "name": "hash", - "type": "int" + "name": "peer", + "type": "InputPeer" } ], - "type": "help.TimezonesList" + "type": "payments.StarsRevenueAdsAccountUrl" }, { - "id": "1258348646", - "method": "account.updateBusinessWorkHours", + "id": "768218808", + "method": "payments.getStarsTransactionsByID", "params": [ { "name": "flags", "type": "#" }, { - "name": "business_work_hours", - "type": "flags.0?BusinessWorkHours" + "name": "ton", + "type": "flags.0?true" + }, + { + "name": "peer", + "type": "InputPeer" + }, + { + "name": "id", + "type": "Vector" } ], - "type": "Bool" + "type": "payments.StarsStatus" }, { - "id": "-1637149926", - "method": "account.updateBusinessLocation", + "id": "-741774392", + "method": "payments.getStarsGiftOptions", "params": [ { "name": "flags", "type": "#" }, { - "name": "geo_point", - "type": "flags.1?InputGeoPoint" - }, - { - "name": "address", - "type": "flags.0?string" + "name": "user_id", + "type": "flags.0?InputUser" } ], - "type": "Bool" + "type": "Vector" }, { - "id": "1724755908", - "method": "account.updateBusinessGreetingMessage", + "id": "-1034878574", + "method": "bots.getPopularAppBots", "params": [ { - "name": "flags", - "type": "#" + "name": "offset", + "type": "string" }, { - "name": "message", - "type": "flags.0?InputBusinessGreetingMessage" + "name": "limit", + "type": "int" } ], - "type": "Bool" + "type": "bots.PopularAppBots" }, { - "id": "-1570078811", - "method": "account.updateBusinessAwayMessage", + "id": "397326170", + "method": "bots.addPreviewMedia", "params": [ { - "name": "flags", - "type": "#" + "name": "bot", + "type": "InputUser" }, { - "name": "message", - "type": "flags.0?InputBusinessAwayMessage" + "name": "lang_code", + "type": "string" + }, + { + "name": "media", + "type": "InputMedia" } ], - "type": "Bool" + "type": "BotPreviewMedia" }, { - "id": "-729550168", - "method": "messages.getQuickReplies", + "id": "-2061148049", + "method": "bots.editPreviewMedia", "params": [ { - "name": "hash", - "type": "long" + "name": "bot", + "type": "InputUser" + }, + { + "name": "lang_code", + "type": "string" + }, + { + "name": "media", + "type": "InputMedia" + }, + { + "name": "new_media", + "type": "InputMedia" } ], - "type": "messages.QuickReplies" + "type": "BotPreviewMedia" }, { - "id": "1613961479", - "method": "messages.reorderQuickReplies", + "id": "755054003", + "method": "bots.deletePreviewMedia", "params": [ { - "name": "order", - "type": "Vector" + "name": "bot", + "type": "InputUser" + }, + { + "name": "lang_code", + "type": "string" + }, + { + "name": "media", + "type": "Vector" } ], "type": "Bool" }, { - "id": "-237962285", - "method": "messages.checkQuickReplyShortcut", + "id": "-1238895702", + "method": "bots.reorderPreviewMedias", "params": [ { - "name": "shortcut", + "name": "bot", + "type": "InputUser" + }, + { + "name": "lang_code", "type": "string" + }, + { + "name": "order", + "type": "Vector" } ], "type": "Bool" }, { - "id": "1543519471", - "method": "messages.editQuickReplyShortcut", + "id": "1111143341", + "method": "bots.getPreviewInfo", "params": [ { - "name": "shortcut_id", - "type": "int" + "name": "bot", + "type": "InputUser" }, { - "name": "shortcut", + "name": "lang_code", "type": "string" } ], - "type": "Bool" + "type": "bots.PreviewInfo" }, { - "id": "1019234112", - "method": "messages.deleteQuickReplyShortcut", + "id": "-1566222003", + "method": "bots.getPreviewMedias", "params": [ { - "name": "shortcut_id", - "type": "int" + "name": "bot", + "type": "InputUser" } ], - "type": "Bool" + "type": "Vector" }, { - "id": "-1801153085", - "method": "messages.getQuickReplyMessages", + "id": "-908059013", + "method": "messages.requestMainWebView", "params": [ { "name": "flags", "type": "#" }, { - "name": "shortcut_id", - "type": "int" + "name": "compact", + "type": "flags.7?true" }, { - "name": "id", - "type": "flags.0?Vector" + "name": "fullscreen", + "type": "flags.8?true" }, { - "name": "hash", - "type": "long" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "bot", + "type": "InputUser" + }, + { + "name": "start_param", + "type": "flags.1?string" + }, + { + "name": "theme_params", + "type": "flags.0?DataJSON" + }, + { + "name": "platform", + "type": "string" } ], - "type": "messages.Messages" + "type": "WebViewResult" }, { - "id": "1819610593", - "method": "messages.sendQuickReplyMessages", + "id": "52761285", + "method": "payments.getStarsSubscriptions", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "missing_balance", + "type": "flags.0?true" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "shortcut_id", - "type": "int" + "name": "offset", + "type": "string" + } + ], + "type": "payments.StarsStatus" + }, + { + "id": "-948500360", + "method": "payments.changeStarsSubscription", + "params": [ + { + "name": "flags", + "type": "#" }, { - "name": "id", - "type": "Vector" + "name": "peer", + "type": "InputPeer" }, { - "name": "random_id", - "type": "Vector" + "name": "subscription_id", + "type": "string" + }, + { + "name": "canceled", + "type": "flags.0?Bool" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-519706352", - "method": "messages.deleteQuickReplyMessages", + "id": "-866391117", + "method": "payments.fulfillStarsSubscription", "params": [ { - "name": "shortcut_id", - "type": "int" + "name": "peer", + "type": "InputPeer" }, { - "name": "id", - "type": "Vector" + "name": "subscription_id", + "type": "string" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "1138250269", - "method": "account.updateConnectedBot", + "id": "1488702288", + "method": "messages.sendPaidReaction", "params": [ { "name": "flags", "type": "#" }, { - "name": "can_reply", - "type": "flags.0?true" + "name": "peer", + "type": "InputPeer" }, { - "name": "deleted", - "type": "flags.1?true" + "name": "msg_id", + "type": "int" }, { - "name": "bot", - "type": "InputUser" + "name": "count", + "type": "int" }, { - "name": "recipients", - "type": "InputBusinessBotRecipients" + "name": "random_id", + "type": "long" + }, + { + "name": "private", + "type": "flags.0?PaidReactionPrivacy" } ], "type": "Updates" }, { - "id": "1319421967", - "method": "account.getConnectedBots", - "params": [], - "type": "account.ConnectedBots" - }, - { - "id": "-47326647", - "method": "messages.toggleDialogFilterTags", + "id": "1129874869", + "method": "messages.togglePaidReactionPrivacy", "params": [ { - "name": "enabled", - "type": "Bool" - } - ], - "type": "Bool" - }, - { - "id": "-584540274", - "method": "invokeWithBusinessConnection", - "params": [ + "name": "peer", + "type": "InputPeer" + }, { - "name": "connection_id", - "type": "string" + "name": "msg_id", + "type": "int" }, { - "name": "query", - "type": "!X" + "name": "private", + "type": "PaidReactionPrivacy" } ], - "type": "X" + "type": "Bool" }, { - "id": "1990746736", - "method": "account.getBotBusinessConnection", + "id": "-1122042562", + "method": "payments.getStarsGiveawayOptions", + "params": [], + "type": "Vector" + }, + { + "id": "1193563562", + "method": "messages.getPaidReactionPrivacy", + "params": [], + "type": "Updates" + }, + { + "id": "-1000983152", + "method": "payments.getStarGifts", "params": [ { - "name": "connection_id", - "type": "string" + "name": "hash", + "type": "int" } ], - "type": "Updates" + "type": "payments.StarGifts" }, { - "id": "-1508585420", - "method": "account.updateBusinessIntro", + "id": "707422588", + "method": "payments.saveStarGift", "params": [ { "name": "flags", "type": "#" }, { - "name": "intro", - "type": "flags.0?InputBusinessIntro" + "name": "unsave", + "type": "flags.0?true" + }, + { + "name": "stargift", + "type": "InputSavedStarGift" } ], "type": "Bool" }, { - "id": "1184253338", - "method": "stickers.replaceSticker", + "id": "1958676331", + "method": "payments.convertStarGift", "params": [ { - "name": "sticker", - "type": "InputDocument" - }, - { - "name": "new_sticker", - "type": "InputStickerSetItem" + "name": "stargift", + "type": "InputSavedStarGift" } ], - "type": "messages.StickerSet" + "type": "Bool" }, { - "id": "-793386500", - "method": "messages.getMyStickers", + "id": "647902787", + "method": "messages.viewSponsoredMessage", "params": [ { - "name": "offset_id", - "type": "long" - }, - { - "name": "limit", - "type": "int" + "name": "random_id", + "type": "bytes" } ], - "type": "messages.MyStickers" + "type": "Bool" }, { - "id": "-1105295942", - "method": "fragment.getCollectibleInfo", + "id": "-2110454402", + "method": "messages.clickSponsoredMessage", "params": [ { - "name": "collectible", - "type": "InputCollectible" + "name": "flags", + "type": "#" + }, + { + "name": "media", + "type": "flags.0?true" + }, + { + "name": "fullscreen", + "type": "flags.1?true" + }, + { + "name": "random_id", + "type": "bytes" } ], - "type": "fragment.CollectibleInfo" + "type": "Bool" }, { - "id": "1684934807", - "method": "account.toggleConnectedBotPaused", + "id": "315355332", + "method": "messages.reportSponsoredMessage", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "random_id", + "type": "bytes" }, { - "name": "paused", - "type": "Bool" + "name": "option", + "type": "bytes" } ], - "type": "Bool" + "type": "channels.SponsoredMessageReportResult" }, { - "id": "1581481689", - "method": "account.disablePeerConnectedBot", + "id": "1030547536", + "method": "messages.getSponsoredMessages", "params": [ + { + "name": "flags", + "type": "#" + }, { "name": "peer", "type": "InputPeer" + }, + { + "name": "msg_id", + "type": "flags.0?int" } ], - "type": "Bool" + "type": "messages.SponsoredMessages" }, { - "id": "-865203183", - "method": "account.updateBirthday", + "id": "-232816849", + "method": "messages.savePreparedInlineMessage", "params": [ { "name": "flags", "type": "#" }, { - "name": "birthday", - "type": "flags.0?Birthday" + "name": "result", + "type": "InputBotInlineResult" + }, + { + "name": "user_id", + "type": "InputUser" + }, + { + "name": "peer_types", + "type": "flags.0?Vector" } ], - "type": "Bool" - }, - { - "id": "-621959068", - "method": "contacts.getBirthdays", - "params": [], - "type": "contacts.ContactBirthdays" + "type": "messages.BotPreparedInlineMessage" }, { - "id": "-2007898482", - "method": "account.createBusinessChatLink", + "id": "-2055291464", + "method": "messages.getPreparedInlineMessage", "params": [ { - "name": "link", - "type": "InputBusinessChatLink" + "name": "bot", + "type": "InputUser" + }, + { + "name": "id", + "type": "string" } ], - "type": "BusinessChatLink" + "type": "messages.PreparedInlineMessage" }, { - "id": "-1942744913", - "method": "account.editBusinessChatLink", + "id": "-308334395", + "method": "bots.updateUserEmojiStatus", "params": [ { - "name": "slug", - "type": "string" + "name": "user_id", + "type": "InputUser" }, { - "name": "link", - "type": "InputBusinessChatLink" + "name": "emoji_status", + "type": "EmojiStatus" } ], - "type": "BusinessChatLink" + "type": "Bool" }, { - "id": "1611085428", - "method": "account.deleteBusinessChatLink", + "id": "115237778", + "method": "bots.toggleUserEmojiStatusPermission", "params": [ { - "name": "slug", - "type": "string" + "name": "bot", + "type": "InputUser" + }, + { + "name": "enabled", + "type": "Bool" } ], "type": "Bool" }, { - "id": "1869667809", - "method": "account.getBusinessChatLinks", - "params": [], - "type": "account.BusinessChatLinks" - }, - { - "id": "1418913262", - "method": "account.resolveBusinessChatLink", + "id": "1342666121", + "method": "bots.checkDownloadFileParams", "params": [ { - "name": "slug", + "name": "bot", + "type": "InputUser" + }, + { + "name": "file_name", "type": "string" - } - ], - "type": "account.ResolvedBusinessChatLinks" - }, - { - "id": "-649919008", - "method": "account.updatePersonalChannel", - "params": [ + }, { - "name": "channel", - "type": "InputChannel" + "name": "url", + "type": "string" } ], "type": "Bool" }, { - "id": "-142021095", - "method": "stats.getBroadcastRevenueStats", + "id": "1845102114", + "method": "payments.botCancelStarsSubscription", "params": [ { "name": "flags", "type": "#" }, { - "name": "dark", + "name": "restore", "type": "flags.0?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "user_id", + "type": "InputUser" + }, + { + "name": "charge_id", + "type": "string" } ], - "type": "stats.BroadcastRevenueStats" + "type": "Bool" + }, + { + "id": "-1334764157", + "method": "bots.getAdminedBots", + "params": [], + "type": "Vector" }, { - "id": "-1644889427", - "method": "stats.getBroadcastRevenueWithdrawalUrl", + "id": "2005621427", + "method": "bots.updateStarRefProgram", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "flags", + "type": "#" }, { - "name": "password", - "type": "InputCheckPasswordSRP" + "name": "bot", + "type": "InputUser" + }, + { + "name": "commission_permille", + "type": "int" + }, + { + "name": "duration_months", + "type": "flags.0?int" } ], - "type": "stats.BroadcastRevenueWithdrawalUrl" + "type": "StarRefProgram" }, { - "id": "1889078125", - "method": "stats.getBroadcastRevenueTransactions", + "id": "1483318611", + "method": "payments.getConnectedStarRefBots", "params": [ + { + "name": "flags", + "type": "#" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "offset", - "type": "int" + "name": "offset_date", + "type": "flags.2?int" + }, + { + "name": "offset_link", + "type": "flags.2?string" }, { "name": "limit", "type": "int" } ], - "type": "stats.BroadcastRevenueTransactions" + "type": "payments.ConnectedStarRefBots" }, { - "id": "-1696000743", - "method": "channels.restrictSponsoredMessages", + "id": "-1210476304", + "method": "payments.getConnectedStarRefBot", "params": [ { - "name": "channel", - "type": "InputChannel" + "name": "peer", + "type": "InputPeer" }, { - "name": "restricted", - "type": "Bool" + "name": "bot", + "type": "InputUser" } ], - "type": "Updates" + "type": "payments.ConnectedStarRefBots" }, { - "id": "-1176919155", - "method": "account.toggleSponsoredMessages", + "id": "225134839", + "method": "payments.getSuggestedStarRefBots", "params": [ { - "name": "enabled", - "type": "Bool" - } - ], - "type": "Bool" - }, - { - "id": "187268763", - "method": "stories.togglePinnedToTop", - "params": [ + "name": "flags", + "type": "#" + }, + { + "name": "order_by_revenue", + "type": "flags.0?true" + }, + { + "name": "order_by_date", + "type": "flags.1?true" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "id", - "type": "Vector" + "name": "offset", + "type": "string" + }, + { + "name": "limit", + "type": "int" } ], - "type": "Bool" - }, - { - "id": "115172684", - "method": "account.getReactionsNotifySettings", - "params": [], - "type": "ReactionsNotifySettings" + "type": "payments.SuggestedStarRefBots" }, { - "id": "829220168", - "method": "account.setReactionsNotifySettings", + "id": "2127901834", + "method": "payments.connectStarRefBot", "params": [ { - "name": "settings", - "type": "ReactionsNotifySettings" + "name": "peer", + "type": "InputPeer" + }, + { + "name": "bot", + "type": "InputUser" } ], - "type": "ReactionsNotifySettings" + "type": "payments.ConnectedStarRefBots" }, { - "id": "-878841866", - "method": "auth.reportMissingCode", + "id": "-453204829", + "method": "payments.editConnectedStarRefBot", "params": [ { - "name": "phone_number", - "type": "string" + "name": "flags", + "type": "#" }, { - "name": "phone_code_hash", - "type": "string" + "name": "revoked", + "type": "flags.0?true" }, { - "name": "mnc", + "name": "peer", + "type": "InputPeer" + }, + { + "name": "link", "type": "string" } ], - "type": "Bool" + "type": "payments.ConnectedStarRefBots" }, { - "id": "500711669", - "method": "messages.getEmojiStickerGroups", + "id": "699516522", + "method": "messages.searchStickers", "params": [ { - "name": "hash", - "type": "int" - } - ], - "type": "messages.EmojiGroups" - }, - { - "id": "502868356", - "method": "invokeWithGooglePlayIntegrity", - "params": [ + "name": "flags", + "type": "#" + }, { - "name": "nonce", - "type": "string" + "name": "emojis", + "type": "flags.0?true" }, { - "name": "token", + "name": "q", "type": "string" }, { - "name": "query", - "type": "!X" - } - ], - "type": "X" - }, - { - "id": "229528824", - "method": "invokeWithApnsSecret", - "params": [ - { - "name": "nonce", + "name": "emoticon", "type": "string" }, { - "name": "secret", - "type": "string" + "name": "lang_code", + "type": "Vector" }, { - "name": "query", - "type": "!X" - } - ], - "type": "X" - }, - { - "id": "-559805895", - "method": "messages.getAvailableEffects", - "params": [ + "name": "offset", + "type": "int" + }, { - "name": "hash", + "name": "limit", "type": "int" + }, + { + "name": "hash", + "type": "long" } ], - "type": "messages.AvailableEffects" + "type": "messages.FoundStickers" }, { - "id": "-778069893", - "method": "channels.searchPosts", + "id": "2097431739", + "method": "phone.createConferenceCall", "params": [ { - "name": "hashtag", - "type": "string" + "name": "flags", + "type": "#" }, { - "name": "offset_rate", - "type": "int" + "name": "muted", + "type": "flags.0?true" }, { - "name": "offset_peer", - "type": "InputPeer" + "name": "video_stopped", + "type": "flags.2?true" }, { - "name": "offset_id", - "type": "int" + "name": "join", + "type": "flags.3?true" }, { - "name": "limit", + "name": "random_id", "type": "int" - } - ], - "type": "messages.Messages" - }, - { - "id": "92925557", - "method": "messages.editFactCheck", - "params": [ + }, { - "name": "peer", - "type": "InputPeer" + "name": "public_key", + "type": "flags.3?int256" }, { - "name": "msg_id", - "type": "int" + "name": "block", + "type": "flags.3?bytes" }, { - "name": "text", - "type": "TextWithEntities" + "name": "params", + "type": "flags.3?DataJSON" } ], "type": "Updates" }, { - "id": "-774204404", - "method": "messages.deleteFactCheck", + "id": "1517122453", + "method": "messages.reportMessagesDelivery", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "push", + "type": "flags.0?true" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "msg_id", - "type": "int" + "name": "id", + "type": "Vector" } ], - "type": "Updates" + "type": "Bool" }, { - "id": "-1177696786", - "method": "messages.getFactCheck", + "id": "-1953898563", + "method": "bots.setCustomVerification", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "enabled", + "type": "flags.1?true" + }, + { + "name": "bot", + "type": "flags.0?InputUser" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "msg_id", - "type": "Vector" + "name": "custom_description", + "type": "flags.2?string" } ], - "type": "Vector" - }, - { - "id": "-1072773165", - "method": "payments.getStarsTopupOptions", - "params": [], - "type": "Vector" + "type": "Bool" }, { - "id": "273665959", - "method": "payments.getStarsStatus", + "id": "-1667580751", + "method": "payments.getStarGiftUpgradePreview", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "gift_id", + "type": "long" } ], - "type": "payments.StarsStatus" + "type": "payments.StarGiftUpgradePreview" }, { - "id": "1775912279", - "method": "payments.getStarsTransactions", + "id": "-1361648395", + "method": "payments.upgradeStarGift", "params": [ { "name": "flags", "type": "#" }, { - "name": "inbound", + "name": "keep_original_details", "type": "flags.0?true" }, { - "name": "outbound", - "type": "flags.1?true" - }, - { - "name": "ascending", - "type": "flags.2?true" - }, - { - "name": "subscription_id", - "type": "flags.3?string" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "offset", - "type": "string" - }, - { - "name": "limit", - "type": "int" + "name": "stargift", + "type": "InputSavedStarGift" } ], - "type": "payments.StarsStatus" + "type": "Updates" }, { - "id": "2040056084", - "method": "payments.sendStarsForm", + "id": "2132285290", + "method": "payments.transferStarGift", "params": [ { - "name": "form_id", - "type": "long" + "name": "stargift", + "type": "InputSavedStarGift" }, { - "name": "invoice", - "type": "InputInvoice" + "name": "to_id", + "type": "InputPeer" } ], - "type": "payments.PaymentResult" + "type": "Updates" }, { - "id": "632196938", - "method": "payments.refundStarsCharge", + "id": "-1581840363", + "method": "bots.getBotRecommendations", "params": [ { - "name": "user_id", + "name": "bot", "type": "InputUser" - }, + } + ], + "type": "users.Users" + }, + { + "id": "-1583919758", + "method": "payments.getUniqueStarGift", + "params": [ { - "name": "charge_id", + "name": "slug", "type": "string" } ], - "type": "Updates" + "type": "payments.UniqueStarGift" }, { - "id": "-780072697", - "method": "stories.searchPosts", + "id": "779830595", + "method": "account.getCollectibleEmojiStatuses", + "params": [ + { + "name": "hash", + "type": "long" + } + ], + "type": "account.EmojiStatuses" + }, + { + "id": "-1558583959", + "method": "payments.getSavedStarGifts", "params": [ { "name": "flags", "type": "#" }, { - "name": "hashtag", - "type": "flags.0?string" + "name": "exclude_unsaved", + "type": "flags.0?true" }, { - "name": "area", - "type": "flags.1?MediaArea" + "name": "exclude_saved", + "type": "flags.1?true" }, { - "name": "peer", - "type": "flags.2?InputPeer" + "name": "exclude_unlimited", + "type": "flags.2?true" }, { - "name": "offset", - "type": "string" + "name": "exclude_unique", + "type": "flags.4?true" }, { - "name": "limit", - "type": "int" - } - ], - "type": "stories.FoundStories" - }, - { - "id": "-652215594", - "method": "payments.getStarsRevenueStats", - "params": [ + "name": "sort_by_value", + "type": "flags.5?true" + }, { - "name": "flags", - "type": "#" + "name": "exclude_upgradable", + "type": "flags.7?true" }, { - "name": "dark", - "type": "flags.0?true" + "name": "exclude_unupgradable", + "type": "flags.8?true" }, { "name": "peer", "type": "InputPeer" - } - ], - "type": "payments.StarsRevenueStats" - }, - { - "id": "331081907", - "method": "payments.getStarsRevenueWithdrawalUrl", - "params": [ + }, { - "name": "peer", - "type": "InputPeer" + "name": "collection_id", + "type": "flags.6?int" }, { - "name": "stars", - "type": "long" + "name": "offset", + "type": "string" }, { - "name": "password", - "type": "InputCheckPasswordSRP" + "name": "limit", + "type": "int" } ], - "type": "payments.StarsRevenueWithdrawalUrl" + "type": "payments.SavedStarGifts" }, { - "id": "-774377531", - "method": "payments.getStarsRevenueAdsAccountUrl", + "id": "-1269456634", + "method": "payments.getSavedStarGift", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "stargift", + "type": "Vector" } ], - "type": "payments.StarsRevenueAdsAccountUrl" + "type": "payments.SavedStarGifts" }, { - "id": "662973742", - "method": "payments.getStarsTransactionsByID", + "id": "-798059608", + "method": "payments.getStarGiftWithdrawalUrl", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "stargift", + "type": "InputSavedStarGift" }, { - "name": "id", - "type": "Vector" + "name": "password", + "type": "InputCheckPasswordSRP" } ], - "type": "payments.StarsStatus" + "type": "payments.StarGiftWithdrawalUrl" }, { - "id": "-741774392", - "method": "payments.getStarsGiftOptions", + "id": "1626009505", + "method": "payments.toggleChatStarGiftNotifications", "params": [ { "name": "flags", "type": "#" }, { - "name": "user_id", - "type": "flags.0?InputUser" + "name": "enabled", + "type": "flags.0?true" + }, + { + "name": "peer", + "type": "InputPeer" } ], - "type": "Vector" + "type": "Bool" }, { - "id": "-1034878574", - "method": "bots.getPopularAppBots", + "id": "-1380249708", + "method": "invokeWithReCaptcha", "params": [ { - "name": "offset", + "name": "token", "type": "string" }, { - "name": "limit", - "type": "int" + "name": "query", + "type": "!X" } ], - "type": "bots.PopularAppBots" + "type": "X" }, { - "id": "397326170", - "method": "bots.addPreviewMedia", + "id": "431639143", + "method": "account.getPaidMessagesRevenue", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "flags", + "type": "#" }, { - "name": "lang_code", - "type": "string" + "name": "parent_peer", + "type": "flags.0?InputPeer" }, { - "name": "media", - "type": "InputMedia" + "name": "user_id", + "type": "InputUser" } ], - "type": "BotPreviewMedia" + "type": "account.PaidMessagesRevenue" }, { - "id": "-2061148049", - "method": "bots.editPreviewMedia", + "id": "1259483771", + "method": "channels.updatePaidMessagesPrice", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "flags", + "type": "#" }, { - "name": "lang_code", - "type": "string" + "name": "broadcast_messages_allowed", + "type": "flags.0?true" }, { - "name": "media", - "type": "InputMedia" + "name": "channel", + "type": "InputChannel" }, { - "name": "new_media", - "type": "InputMedia" + "name": "send_paid_messages_stars", + "type": "long" } ], - "type": "BotPreviewMedia" + "type": "Updates" }, { - "id": "755054003", - "method": "bots.deletePreviewMedia", + "id": "-660962397", + "method": "users.getRequirementsToContact", "params": [ { - "name": "bot", - "type": "InputUser" - }, - { - "name": "lang_code", - "type": "string" - }, - { - "name": "media", - "type": "Vector" + "name": "id", + "type": "Vector" } ], - "type": "Bool" + "type": "Vector" }, { - "id": "-1238895702", - "method": "bots.reorderPreviewMedias", + "id": "353626032", + "method": "payments.toggleStarGiftsPinnedToTop", "params": [ { - "name": "bot", - "type": "InputUser" - }, - { - "name": "lang_code", - "type": "string" + "name": "peer", + "type": "InputPeer" }, { - "name": "order", - "type": "Vector" + "name": "stargift", + "type": "Vector" } ], "type": "Bool" }, { - "id": "1111143341", - "method": "bots.getPreviewInfo", + "id": "1339842215", + "method": "payments.canPurchaseStore", "params": [ { - "name": "bot", - "type": "InputUser" - }, - { - "name": "lang_code", - "type": "string" + "name": "purpose", + "type": "InputStorePaymentPurpose" } ], - "type": "bots.PreviewInfo" + "type": "Bool" }, - { - "id": "-1566222003", - "method": "bots.getPreviewMedias", + { + "id": "-1228356717", + "method": "contacts.getSponsoredPeers", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "q", + "type": "string" } ], - "type": "Vector" + "type": "contacts.SponsoredPeers" }, { - "id": "-908059013", - "method": "messages.requestMainWebView", + "id": "-1935276763", + "method": "phone.deleteConferenceCallParticipants", "params": [ { "name": "flags", "type": "#" }, { - "name": "compact", - "type": "flags.7?true" + "name": "only_left", + "type": "flags.0?true" }, { - "name": "fullscreen", - "type": "flags.8?true" + "name": "kick", + "type": "flags.1?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "call", + "type": "InputGroupCall" }, { - "name": "bot", - "type": "InputUser" + "name": "ids", + "type": "Vector" }, { - "name": "start_param", - "type": "flags.1?string" - }, + "name": "block", + "type": "bytes" + } + ], + "type": "Updates" + }, + { + "id": "-965732096", + "method": "phone.sendConferenceCallBroadcast", + "params": [ { - "name": "theme_params", - "type": "flags.0?DataJSON" + "name": "call", + "type": "InputGroupCall" }, { - "name": "platform", - "type": "string" + "name": "block", + "type": "bytes" } ], - "type": "WebViewResult" + "type": "Updates" }, { - "id": "52761285", - "method": "payments.getStarsSubscriptions", + "id": "-1124981115", + "method": "phone.inviteConferenceCallParticipant", "params": [ { "name": "flags", "type": "#" }, { - "name": "missing_balance", + "name": "video", "type": "flags.0?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "call", + "type": "InputGroupCall" }, { - "name": "offset", - "type": "string" + "name": "user_id", + "type": "InputUser" } ], - "type": "payments.StarsStatus" + "type": "Updates" }, { - "id": "-948500360", - "method": "payments.changeStarsSubscription", + "id": "1011325297", + "method": "phone.declineConferenceCallInvite", "params": [ { - "name": "flags", - "type": "#" - }, - { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "subscription_id", - "type": "string" - }, - { - "name": "canceled", - "type": "flags.0?Bool" + "name": "msg_id", + "type": "int" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-866391117", - "method": "payments.fulfillStarsSubscription", + "id": "-291534682", + "method": "phone.getGroupCallChainBlocks", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "call", + "type": "InputGroupCall" }, { - "name": "subscription_id", - "type": "string" + "name": "sub_chain_id", + "type": "int" + }, + { + "name": "offset", + "type": "int" + }, + { + "name": "limit", + "type": "int" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "-1646877061", - "method": "messages.sendPaidReaction", + "id": "2053087798", + "method": "payments.getResaleStarGifts", "params": [ { "name": "flags", "type": "#" }, { - "name": "peer", - "type": "InputPeer" + "name": "sort_by_price", + "type": "flags.1?true" }, { - "name": "msg_id", - "type": "int" + "name": "sort_by_num", + "type": "flags.2?true" }, { - "name": "count", - "type": "int" + "name": "attributes_hash", + "type": "flags.0?long" }, { - "name": "random_id", + "name": "gift_id", "type": "long" }, { - "name": "private", - "type": "flags.0?Bool" + "name": "attributes", + "type": "flags.3?Vector" + }, + { + "name": "offset", + "type": "string" + }, + { + "name": "limit", + "type": "int" } ], - "type": "Updates" + "type": "payments.ResaleStarGifts" }, { - "id": "-2070228073", - "method": "messages.togglePaidReactionPrivacy", + "id": "-306287413", + "method": "payments.updateStarGiftPrice", "params": [ { - "name": "peer", - "type": "InputPeer" - }, - { - "name": "msg_id", - "type": "int" + "name": "stargift", + "type": "InputSavedStarGift" }, { - "name": "private", - "type": "Bool" + "name": "resell_amount", + "type": "StarsAmount" } ], - "type": "Bool" - }, - { - "id": "-1122042562", - "method": "payments.getStarsGiveawayOptions", - "params": [], - "type": "Vector" - }, - { - "id": "1193563562", - "method": "messages.getPaidReactionPrivacy", - "params": [], "type": "Updates" }, { - "id": "-1000983152", - "method": "payments.getStarGifts", + "id": "377471137", + "method": "channels.toggleAutotranslation", "params": [ { - "name": "hash", - "type": "int" + "name": "channel", + "type": "InputChannel" + }, + { + "name": "enabled", + "type": "Bool" } ], - "type": "payments.StarGifts" + "type": "Updates" }, { - "id": "1584580577", - "method": "payments.getUserStarGifts", + "id": "1869585558", + "method": "messages.getSavedDialogsByID", "params": [ { - "name": "user_id", - "type": "InputUser" + "name": "flags", + "type": "#" }, { - "name": "offset", - "type": "string" + "name": "parent_peer", + "type": "flags.1?InputPeer" }, { - "name": "limit", - "type": "int" + "name": "ids", + "type": "Vector" } ], - "type": "payments.UserStarGifts" + "type": "messages.SavedDialogs" }, { - "id": "-2018709362", - "method": "payments.saveStarGift", + "id": "-1169540261", + "method": "messages.readSavedHistory", "params": [ { - "name": "flags", - "type": "#" + "name": "parent_peer", + "type": "InputPeer" }, { - "name": "unsave", - "type": "flags.0?true" + "name": "peer", + "type": "InputPeer" }, { - "name": "user_id", - "type": "InputUser" + "name": "max_id", + "type": "int" + } + ], + "type": "Bool" + }, + { + "id": "-320691994", + "method": "channels.getMessageAuthor", + "params": [ + { + "name": "channel", + "type": "InputChannel" }, { - "name": "msg_id", + "name": "id", "type": "int" } ], - "type": "Bool" + "type": "User" }, { - "id": "69328935", - "method": "payments.convertStarGift", + "id": "-740282076", + "method": "messages.toggleTodoCompleted", "params": [ { - "name": "user_id", - "type": "InputUser" + "name": "peer", + "type": "InputPeer" }, { "name": "msg_id", "type": "int" + }, + { + "name": "completed", + "type": "Vector" + }, + { + "name": "incompleted", + "type": "Vector" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "1731909873", - "method": "messages.viewSponsoredMessage", + "id": "564531287", + "method": "messages.appendTodoList", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "random_id", - "type": "bytes" + "name": "msg_id", + "type": "int" + }, + { + "name": "list", + "type": "Vector" } ], - "type": "Bool" + "type": "Updates" }, { - "id": "252261477", - "method": "messages.clickSponsoredMessage", + "id": "-30483850", + "method": "account.toggleNoPaidMessagesException", "params": [ { "name": "flags", "type": "#" }, { - "name": "media", + "name": "refund_charged", "type": "flags.0?true" }, { - "name": "fullscreen", - "type": "flags.1?true" + "name": "require_payment", + "type": "flags.2?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "parent_peer", + "type": "flags.1?InputPeer" }, { - "name": "random_id", - "type": "bytes" + "name": "user_id", + "type": "InputUser" } ], "type": "Bool" }, { - "id": "452189112", - "method": "messages.reportSponsoredMessage", + "id": "-2130229924", + "method": "messages.toggleSuggestedPostApproval", "params": [ + { + "name": "flags", + "type": "#" + }, + { + "name": "reject", + "type": "flags.1?true" + }, { "name": "peer", "type": "InputPeer" }, { - "name": "random_id", - "type": "bytes" + "name": "msg_id", + "type": "int" }, { - "name": "option", - "type": "bytes" + "name": "schedule_date", + "type": "flags.0?int" + }, + { + "name": "reject_comment", + "type": "flags.2?string" } ], - "type": "channels.SponsoredMessageReportResult" + "type": "Updates" }, { - "id": "-1680673735", - "method": "messages.getSponsoredMessages", + "id": "524947079", + "method": "payments.createStarGiftCollection", "params": [ { "name": "peer", "type": "InputPeer" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "stargift", + "type": "Vector" } ], - "type": "messages.SponsoredMessages" + "type": "StarGiftCollection" }, { - "id": "-232816849", - "method": "messages.savePreparedInlineMessage", + "id": "1339932391", + "method": "payments.updateStarGiftCollection", "params": [ { "name": "flags", "type": "#" }, { - "name": "result", - "type": "InputBotInlineResult" + "name": "peer", + "type": "InputPeer" }, { - "name": "user_id", - "type": "InputUser" + "name": "collection_id", + "type": "int" }, { - "name": "peer_types", - "type": "flags.0?Vector" + "name": "title", + "type": "flags.0?string" + }, + { + "name": "delete_stargift", + "type": "flags.1?Vector" + }, + { + "name": "add_stargift", + "type": "flags.2?Vector" + }, + { + "name": "order", + "type": "flags.3?Vector" } ], - "type": "messages.BotPreparedInlineMessage" + "type": "StarGiftCollection" }, { - "id": "-2055291464", - "method": "messages.getPreparedInlineMessage", + "id": "-1020594996", + "method": "payments.reorderStarGiftCollections", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "peer", + "type": "InputPeer" }, { - "name": "id", - "type": "string" + "name": "order", + "type": "Vector" } ], - "type": "messages.PreparedInlineMessage" + "type": "Bool" }, { - "id": "-308334395", - "method": "bots.updateUserEmojiStatus", + "id": "-1386854168", + "method": "payments.deleteStarGiftCollection", "params": [ { - "name": "user_id", - "type": "InputUser" + "name": "peer", + "type": "InputPeer" }, { - "name": "emoji_status", - "type": "EmojiStatus" + "name": "collection_id", + "type": "int" } ], "type": "Bool" }, { - "id": "115237778", - "method": "bots.toggleUserEmojiStatusPermission", + "id": "-1743023651", + "method": "payments.getStarGiftCollections", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "peer", + "type": "InputPeer" }, { - "name": "enabled", - "type": "Bool" + "name": "hash", + "type": "long" } ], - "type": "Bool" + "type": "payments.StarGiftCollections" }, { - "id": "1342666121", - "method": "bots.checkDownloadFileParams", + "id": "-1553754395", + "method": "stories.createAlbum", "params": [ { - "name": "bot", - "type": "InputUser" + "name": "peer", + "type": "InputPeer" }, { - "name": "file_name", + "name": "title", "type": "string" }, { - "name": "url", - "type": "string" + "name": "stories", + "type": "Vector" } ], - "type": "Bool" + "type": "StoryAlbum" }, { - "id": "1845102114", - "method": "payments.botCancelStarsSubscription", + "id": "1582455222", + "method": "stories.updateAlbum", "params": [ { "name": "flags", "type": "#" }, { - "name": "restore", - "type": "flags.0?true" + "name": "peer", + "type": "InputPeer" }, { - "name": "user_id", - "type": "InputUser" + "name": "album_id", + "type": "int" }, { - "name": "charge_id", - "type": "string" - } - ], - "type": "Bool" - }, - { - "id": "-1334764157", - "method": "bots.getAdminedBots", - "params": [], - "type": "Vector" - }, - { - "id": "2005621427", - "method": "bots.updateStarRefProgram", - "params": [ - { - "name": "flags", - "type": "#" + "name": "title", + "type": "flags.0?string" }, { - "name": "bot", - "type": "InputUser" + "name": "delete_stories", + "type": "flags.1?Vector" }, { - "name": "commission_permille", - "type": "int" + "name": "add_stories", + "type": "flags.2?Vector" }, { - "name": "duration_months", - "type": "flags.0?int" + "name": "order", + "type": "flags.3?Vector" } ], - "type": "StarRefProgram" + "type": "StoryAlbum" }, { - "id": "1483318611", - "method": "payments.getConnectedStarRefBots", + "id": "-2060059687", + "method": "stories.reorderAlbums", "params": [ - { - "name": "flags", - "type": "#" - }, { "name": "peer", "type": "InputPeer" }, { - "name": "offset_date", - "type": "flags.2?int" - }, + "name": "order", + "type": "Vector" + } + ], + "type": "Bool" + }, + { + "id": "-1925949744", + "method": "stories.deleteAlbum", + "params": [ { - "name": "offset_link", - "type": "flags.2?string" + "name": "peer", + "type": "InputPeer" }, { - "name": "limit", + "name": "album_id", "type": "int" } ], - "type": "payments.ConnectedStarRefBots" + "type": "Bool" }, { - "id": "-1210476304", - "method": "payments.getConnectedStarRefBot", + "id": "632548039", + "method": "stories.getAlbums", "params": [ { "name": "peer", "type": "InputPeer" }, { - "name": "bot", - "type": "InputUser" + "name": "hash", + "type": "long" } ], - "type": "payments.ConnectedStarRefBots" + "type": "stories.Albums" }, { - "id": "225134839", - "method": "payments.getSuggestedStarRefBots", + "id": "-1400869535", + "method": "stories.getAlbumStories", "params": [ { - "name": "flags", - "type": "#" + "name": "peer", + "type": "InputPeer" }, { - "name": "order_by_revenue", - "type": "flags.0?true" + "name": "album_id", + "type": "int" }, { - "name": "order_by_date", - "type": "flags.1?true" + "name": "offset", + "type": "int" }, { - "name": "peer", - "type": "InputPeer" + "name": "limit", + "type": "int" + } + ], + "type": "stories.Stories" + }, + { + "id": "576090389", + "method": "channels.checkSearchPostsFlood", + "params": [ + { + "name": "flags", + "type": "#" }, { - "name": "offset", + "name": "query", + "type": "flags.0?string" + } + ], + "type": "SearchPostsFlood" + }, + { + "id": "1130737515", + "method": "payments.getUniqueStarGiftValueInfo", + "params": [ + { + "name": "slug", "type": "string" - }, + } + ], + "type": "payments.UniqueStarGiftValueInfo" + }, + { + "id": "-1060835895", + "method": "payments.checkCanSendGift", + "params": [ { - "name": "limit", - "type": "int" + "name": "gift_id", + "type": "long" } ], - "type": "payments.SuggestedStarRefBots" + "type": "payments.CheckCanSendGiftResult" }, { - "id": "2127901834", - "method": "payments.connectStarRefBot", + "id": "1575909552", + "method": "account.setMainProfileTab", "params": [ { - "name": "peer", - "type": "InputPeer" + "name": "tab", + "type": "ProfileTab" + } + ], + "type": "Bool" + }, + { + "id": "897842353", + "method": "channels.setMainProfileTab", + "params": [ + { + "name": "channel", + "type": "InputChannel" }, { - "name": "bot", - "type": "InputUser" + "name": "tab", + "type": "ProfileTab" } ], - "type": "payments.ConnectedStarRefBots" + "type": "Bool" }, { - "id": "-453204829", - "method": "payments.editConnectedStarRefBot", + "id": "-1301859671", + "method": "account.saveMusic", "params": [ { "name": "flags", "type": "#" }, { - "name": "revoked", + "name": "unsave", "type": "flags.0?true" }, { - "name": "peer", - "type": "InputPeer" + "name": "id", + "type": "InputDocument" }, { - "name": "link", - "type": "string" + "name": "after_id", + "type": "flags.1?InputDocument" } ], - "type": "payments.ConnectedStarRefBots" + "type": "Bool" }, { - "id": "699516522", - "method": "messages.searchStickers", + "id": "-526557265", + "method": "account.getSavedMusicIds", "params": [ { - "name": "flags", - "type": "#" - }, + "name": "hash", + "type": "long" + } + ], + "type": "account.SavedMusicIds" + }, + { + "id": "2022539235", + "method": "users.getSavedMusic", + "params": [ { - "name": "emojis", - "type": "flags.0?true" + "name": "id", + "type": "InputUser" }, { - "name": "q", - "type": "string" + "name": "offset", + "type": "int" }, { - "name": "emoticon", - "type": "string" + "name": "limit", + "type": "int" }, { - "name": "lang_code", - "type": "Vector" + "name": "hash", + "type": "long" + } + ], + "type": "users.SavedMusic" + }, + { + "id": "1970513129", + "method": "users.getSavedMusicByID", + "params": [ + { + "name": "id", + "type": "InputUser" }, + { + "name": "documents", + "type": "Vector" + } + ], + "type": "users.SavedMusic" + }, + { + "id": "-25890913", + "method": "account.getUniqueGiftChatThemes", + "params": [ { "name": "offset", "type": "int" @@ -39286,7 +42680,7 @@ "type": "long" } ], - "type": "messages.FoundStickers" + "type": "account.ChatThemes" } ] } diff --git a/src/builder.ts b/src/builder.ts index 6c46d89..6b307a5 100644 --- a/src/builder.ts +++ b/src/builder.ts @@ -957,6 +957,9 @@ export interface BuilderMap { 'account.resetPasswordRequestedWait': (this: any, params: any) => void 'account.resetPasswordOk': (this: any, params: any) => void 'updateBotCommands': (this: any, params: any) => void + 'chatTheme': (this: any, params: any) => void + 'account.chatThemesNotModified': (this: any, params: any) => void + 'account.chatThemes': (this: any, params: any) => void 'messageActionSetChatTheme': (this: any, params: any) => void 'sendMessageChooseStickerAction': (this: any, params: any) => void 'sponsoredMessage': (this: any, params: any) => void @@ -1045,7 +1048,6 @@ export interface BuilderMap { 'inputStorePaymentPremiumSubscription': (this: any, params: any) => void 'inputStorePaymentGiftPremium': (this: any, params: any) => void 'messageActionGiftPremium': (this: any, params: any) => void - 'premiumGiftOption': (this: any, params: any) => void 'inputStickerSetPremiumGifts': (this: any, params: any) => void 'updateReadFeaturedEmojiStickers': (this: any, params: any) => void 'inputPrivacyKeyVoiceMessages': (this: any, params: any) => void @@ -1054,7 +1056,6 @@ export interface BuilderMap { 'inputWebFileAudioAlbumThumbLocation': (this: any, params: any) => void 'emojiStatusEmpty': (this: any, params: any) => void 'emojiStatus': (this: any, params: any) => void - 'emojiStatusUntil': (this: any, params: any) => void 'updateUserEmojiStatus': (this: any, params: any) => void 'updateRecentEmojiStatuses': (this: any, params: any) => void 'account.emojiStatusesNotModified': (this: any, params: any) => void @@ -1324,12 +1325,6 @@ export interface BuilderMap { 'channels.sponsoredMessageReportResultChooseOption': (this: any, params: any) => void 'channels.sponsoredMessageReportResultAdsHidden': (this: any, params: any) => void 'channels.sponsoredMessageReportResultReported': (this: any, params: any) => void - 'stats.broadcastRevenueStats': (this: any, params: any) => void - 'stats.broadcastRevenueWithdrawalUrl': (this: any, params: any) => void - 'broadcastRevenueTransactionProceeds': (this: any, params: any) => void - 'broadcastRevenueTransactionWithdrawal': (this: any, params: any) => void - 'broadcastRevenueTransactionRefund': (this: any, params: any) => void - 'stats.broadcastRevenueTransactions': (this: any, params: any) => void 'webPageAttributeStickerSet': (this: any, params: any) => void 'reactionNotificationsFromContacts': (this: any, params: any) => void 'reactionNotificationsFromAll': (this: any, params: any) => void @@ -1339,8 +1334,6 @@ export interface BuilderMap { 'auth.sentCodeTypeSmsPhrase': (this: any, params: any) => void 'emojiGroupGreeting': (this: any, params: any) => void 'emojiGroupPremium': (this: any, params: any) => void - 'broadcastRevenueBalances': (this: any, params: any) => void - 'updateBroadcastRevenueTransactions': (this: any, params: any) => void 'availableEffect': (this: any, params: any) => void 'messages.availableEffectsNotModified': (this: any, params: any) => void 'messages.availableEffects': (this: any, params: any) => void @@ -1404,8 +1397,6 @@ export interface BuilderMap { 'inputInvoiceStarGift': (this: any, params: any) => void 'payments.paymentFormStarGift': (this: any, params: any) => void 'messageActionStarGift': (this: any, params: any) => void - 'userStarGift': (this: any, params: any) => void - 'payments.userStarGifts': (this: any, params: any) => void 'messageReportOption': (this: any, params: any) => void 'reportResultChooseOption': (this: any, params: any) => void 'reportResultAddComment': (this: any, params: any) => void @@ -1427,6 +1418,114 @@ export interface BuilderMap { 'starsAmount': (this: any, params: any) => void 'messages.foundStickersNotModified': (this: any, params: any) => void 'messages.foundStickers': (this: any, params: any) => void + 'botVerifierSettings': (this: any, params: any) => void + 'botVerification': (this: any, params: any) => void + 'starGiftAttributeModel': (this: any, params: any) => void + 'starGiftAttributePattern': (this: any, params: any) => void + 'starGiftAttributeBackdrop': (this: any, params: any) => void + 'starGiftAttributeOriginalDetails': (this: any, params: any) => void + 'starGiftUnique': (this: any, params: any) => void + 'messageActionStarGiftUnique': (this: any, params: any) => void + 'inputInvoiceStarGiftUpgrade': (this: any, params: any) => void + 'inputInvoiceStarGiftTransfer': (this: any, params: any) => void + 'payments.starGiftUpgradePreview': (this: any, params: any) => void + 'users.users': (this: any, params: any) => void + 'users.usersSlice': (this: any, params: any) => void + 'payments.uniqueStarGift': (this: any, params: any) => void + 'webPageAttributeUniqueStarGift': (this: any, params: any) => void + 'mediaAreaStarGift': (this: any, params: any) => void + 'messages.webPagePreview': (this: any, params: any) => void + 'emojiStatusCollectible': (this: any, params: any) => void + 'inputEmojiStatusCollectible': (this: any, params: any) => void + 'savedStarGift': (this: any, params: any) => void + 'payments.savedStarGifts': (this: any, params: any) => void + 'inputSavedStarGiftUser': (this: any, params: any) => void + 'inputSavedStarGiftChat': (this: any, params: any) => void + 'payments.starGiftWithdrawalUrl': (this: any, params: any) => void + 'paidReactionPrivacyDefault': (this: any, params: any) => void + 'paidReactionPrivacyAnonymous': (this: any, params: any) => void + 'paidReactionPrivacyPeer': (this: any, params: any) => void + 'inputPrivacyKeyNoPaidMessages': (this: any, params: any) => void + 'privacyKeyNoPaidMessages': (this: any, params: any) => void + 'account.paidMessagesRevenue': (this: any, params: any) => void + 'requirementToContactEmpty': (this: any, params: any) => void + 'requirementToContactPremium': (this: any, params: any) => void + 'requirementToContactPaidMessages': (this: any, params: any) => void + 'inputInvoicePremiumGiftStars': (this: any, params: any) => void + 'auth.sentCodePaymentRequired': (this: any, params: any) => void + 'inputStorePaymentAuthCode': (this: any, params: any) => void + 'updateSentPhoneCode': (this: any, params: any) => void + 'businessBotRights': (this: any, params: any) => void + 'messageActionPaidMessagesRefunded': (this: any, params: any) => void + 'messageActionPaidMessagesPrice': (this: any, params: any) => void + 'disallowedGiftsSettings': (this: any, params: any) => void + 'sponsoredPeer': (this: any, params: any) => void + 'contacts.sponsoredPeersEmpty': (this: any, params: any) => void + 'contacts.sponsoredPeers': (this: any, params: any) => void + 'inputInvoiceBusinessBotTransferStars': (this: any, params: any) => void + 'inputGroupCallSlug': (this: any, params: any) => void + 'inputGroupCallInviteMessage': (this: any, params: any) => void + 'updateGroupCallChainBlocks': (this: any, params: any) => void + 'messageActionConferenceCall': (this: any, params: any) => void + 'phoneCallDiscardReasonMigrateConferenceCall': (this: any, params: any) => void + 'inputSavedStarGiftSlug': (this: any, params: any) => void + 'starGiftAttributeIdModel': (this: any, params: any) => void + 'starGiftAttributeIdPattern': (this: any, params: any) => void + 'starGiftAttributeIdBackdrop': (this: any, params: any) => void + 'starGiftAttributeCounter': (this: any, params: any) => void + 'payments.resaleStarGifts': (this: any, params: any) => void + 'inputInvoiceStarGiftResale': (this: any, params: any) => void + 'channelAdminLogEventActionToggleAutotranslation': (this: any, params: any) => void + 'stories.canSendStoryCount': (this: any, params: any) => void + 'pendingSuggestion': (this: any, params: any) => void + 'inputReplyToMonoForum': (this: any, params: any) => void + 'monoForumDialog': (this: any, params: any) => void + 'updateReadMonoForumInbox': (this: any, params: any) => void + 'updateReadMonoForumOutbox': (this: any, params: any) => void + 'todoItem': (this: any, params: any) => void + 'todoList': (this: any, params: any) => void + 'todoCompletion': (this: any, params: any) => void + 'inputMediaTodo': (this: any, params: any) => void + 'messageMediaToDo': (this: any, params: any) => void + 'messageActionTodoCompletions': (this: any, params: any) => void + 'messageActionTodoAppendTasks': (this: any, params: any) => void + 'updateMonoForumNoPaidException': (this: any, params: any) => void + 'suggestedPost': (this: any, params: any) => void + 'messageActionSuggestedPostApproval': (this: any, params: any) => void + 'messageActionSuggestedPostSuccess': (this: any, params: any) => void + 'messageActionSuggestedPostRefund': (this: any, params: any) => void + 'starsTonAmount': (this: any, params: any) => void + 'messageActionGiftTon': (this: any, params: any) => void + 'inputStickerSetTonGifts': (this: any, params: any) => void + 'starsRating': (this: any, params: any) => void + 'starGiftCollection': (this: any, params: any) => void + 'payments.starGiftCollectionsNotModified': (this: any, params: any) => void + 'payments.starGiftCollections': (this: any, params: any) => void + 'storyAlbum': (this: any, params: any) => void + 'stories.albumsNotModified': (this: any, params: any) => void + 'stories.albums': (this: any, params: any) => void + 'searchPostsFlood': (this: any, params: any) => void + 'webPageAttributeStarGiftCollection': (this: any, params: any) => void + 'inputInvoiceStarGiftPrepaidUpgrade': (this: any, params: any) => void + 'payments.uniqueStarGiftValueInfo': (this: any, params: any) => void + 'profileTabPosts': (this: any, params: any) => void + 'profileTabGifts': (this: any, params: any) => void + 'profileTabMedia': (this: any, params: any) => void + 'profileTabFiles': (this: any, params: any) => void + 'profileTabMusic': (this: any, params: any) => void + 'profileTabVoice': (this: any, params: any) => void + 'profileTabLinks': (this: any, params: any) => void + 'profileTabGifs': (this: any, params: any) => void + 'users.savedMusicNotModified': (this: any, params: any) => void + 'users.savedMusic': (this: any, params: any) => void + 'account.savedMusicIdsNotModified': (this: any, params: any) => void + 'account.savedMusicIds': (this: any, params: any) => void + 'payments.checkCanSendGiftResultOk': (this: any, params: any) => void + 'payments.checkCanSendGiftResultFail': (this: any, params: any) => void + 'chatThemeUniqueGift': (this: any, params: any) => void + 'inputChatThemeEmpty': (this: any, params: any) => void + 'inputChatTheme': (this: any, params: any) => void + 'inputChatThemeUniqueGift': (this: any, params: any) => void 'invokeAfterMsg': (this: any, params: any) => void 'invokeAfterMsgs': (this: any, params: any) => void 'auth.sendCode': (this: any, params: any) => void @@ -1864,7 +1963,6 @@ export interface BuilderMap { 'messages.rateTranscribedAudio': (this: any, params: any) => void 'payments.assignAppStoreTransaction': (this: any, params: any) => void 'payments.assignPlayMarketTransaction': (this: any, params: any) => void - 'payments.canPurchasePremium': (this: any, params: any) => void 'help.getPremiumPromo': (this: any, params: any) => void 'messages.getCustomEmojiDocuments': (this: any, params: any) => void 'messages.getEmojiStickers': (this: any, params: any) => void @@ -1997,7 +2095,6 @@ export interface BuilderMap { 'messages.updateSavedReactionTag': (this: any, params: any) => void 'messages.getDefaultTagReactions': (this: any, params: any) => void 'messages.getOutboxReadDate': (this: any, params: any) => void - 'users.getIsPremiumRequiredToContact': (this: any, params: any) => void 'channels.setBoostsToUnblockRestrictions': (this: any, params: any) => void 'channels.setEmojiStickers': (this: any, params: any) => void 'smsjobs.isEligibleToJoin': (this: any, params: any) => void @@ -2039,9 +2136,6 @@ export interface BuilderMap { 'account.getBusinessChatLinks': (this: any, params: any) => void 'account.resolveBusinessChatLink': (this: any, params: any) => void 'account.updatePersonalChannel': (this: any, params: any) => void - 'stats.getBroadcastRevenueStats': (this: any, params: any) => void - 'stats.getBroadcastRevenueWithdrawalUrl': (this: any, params: any) => void - 'stats.getBroadcastRevenueTransactions': (this: any, params: any) => void 'channels.restrictSponsoredMessages': (this: any, params: any) => void 'account.toggleSponsoredMessages': (this: any, params: any) => void 'stories.togglePinnedToTop': (this: any, params: any) => void @@ -2083,7 +2177,6 @@ export interface BuilderMap { 'payments.getStarsGiveawayOptions': (this: any, params: any) => void 'messages.getPaidReactionPrivacy': (this: any, params: any) => void 'payments.getStarGifts': (this: any, params: any) => void - 'payments.getUserStarGifts': (this: any, params: any) => void 'payments.saveStarGift': (this: any, params: any) => void 'payments.convertStarGift': (this: any, params: any) => void 'messages.viewSponsoredMessage': (this: any, params: any) => void @@ -2104,6 +2197,62 @@ export interface BuilderMap { 'payments.connectStarRefBot': (this: any, params: any) => void 'payments.editConnectedStarRefBot': (this: any, params: any) => void 'messages.searchStickers': (this: any, params: any) => void + 'phone.createConferenceCall': (this: any, params: any) => void + 'messages.reportMessagesDelivery': (this: any, params: any) => void + 'bots.setCustomVerification': (this: any, params: any) => void + 'payments.getStarGiftUpgradePreview': (this: any, params: any) => void + 'payments.upgradeStarGift': (this: any, params: any) => void + 'payments.transferStarGift': (this: any, params: any) => void + 'bots.getBotRecommendations': (this: any, params: any) => void + 'payments.getUniqueStarGift': (this: any, params: any) => void + 'account.getCollectibleEmojiStatuses': (this: any, params: any) => void + 'payments.getSavedStarGifts': (this: any, params: any) => void + 'payments.getSavedStarGift': (this: any, params: any) => void + 'payments.getStarGiftWithdrawalUrl': (this: any, params: any) => void + 'payments.toggleChatStarGiftNotifications': (this: any, params: any) => void + 'invokeWithReCaptcha': (this: any, params: any) => void + 'account.getPaidMessagesRevenue': (this: any, params: any) => void + 'channels.updatePaidMessagesPrice': (this: any, params: any) => void + 'users.getRequirementsToContact': (this: any, params: any) => void + 'payments.toggleStarGiftsPinnedToTop': (this: any, params: any) => void + 'payments.canPurchaseStore': (this: any, params: any) => void + 'contacts.getSponsoredPeers': (this: any, params: any) => void + 'phone.deleteConferenceCallParticipants': (this: any, params: any) => void + 'phone.sendConferenceCallBroadcast': (this: any, params: any) => void + 'phone.inviteConferenceCallParticipant': (this: any, params: any) => void + 'phone.declineConferenceCallInvite': (this: any, params: any) => void + 'phone.getGroupCallChainBlocks': (this: any, params: any) => void + 'payments.getResaleStarGifts': (this: any, params: any) => void + 'payments.updateStarGiftPrice': (this: any, params: any) => void + 'channels.toggleAutotranslation': (this: any, params: any) => void + 'messages.getSavedDialogsByID': (this: any, params: any) => void + 'messages.readSavedHistory': (this: any, params: any) => void + 'channels.getMessageAuthor': (this: any, params: any) => void + 'messages.toggleTodoCompleted': (this: any, params: any) => void + 'messages.appendTodoList': (this: any, params: any) => void + 'account.toggleNoPaidMessagesException': (this: any, params: any) => void + 'messages.toggleSuggestedPostApproval': (this: any, params: any) => void + 'payments.createStarGiftCollection': (this: any, params: any) => void + 'payments.updateStarGiftCollection': (this: any, params: any) => void + 'payments.reorderStarGiftCollections': (this: any, params: any) => void + 'payments.deleteStarGiftCollection': (this: any, params: any) => void + 'payments.getStarGiftCollections': (this: any, params: any) => void + 'stories.createAlbum': (this: any, params: any) => void + 'stories.updateAlbum': (this: any, params: any) => void + 'stories.reorderAlbums': (this: any, params: any) => void + 'stories.deleteAlbum': (this: any, params: any) => void + 'stories.getAlbums': (this: any, params: any) => void + 'stories.getAlbumStories': (this: any, params: any) => void + 'channels.checkSearchPostsFlood': (this: any, params: any) => void + 'payments.getUniqueStarGiftValueInfo': (this: any, params: any) => void + 'payments.checkCanSendGift': (this: any, params: any) => void + 'account.setMainProfileTab': (this: any, params: any) => void + 'channels.setMainProfileTab': (this: any, params: any) => void + 'account.saveMusic': (this: any, params: any) => void + 'account.getSavedMusicIds': (this: any, params: any) => void + 'users.getSavedMusic': (this: any, params: any) => void + 'users.getSavedMusicByID': (this: any, params: any) => void + 'account.getUniqueGiftChatThemes': (this: any, params: any) => void } export const builderMap: BuilderMap = { 'mt_vector': function(params) { @@ -2632,10 +2781,10 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.peer_id); }, 'message': function(params) { - this.int32(-1808510398); + this.int32(-1743401272); const flags = (this.has(params.out) << 1) | (this.has(params.mentioned) << 4) | (this.has(params.media_unread) << 5) | (this.has(params.silent) << 13) | (this.has(params.post) << 14) | (this.has(params.from_scheduled) << 18) | (this.has(params.legacy) << 19) | (this.has(params.edit_hide) << 21) | (this.has(params.pinned) << 24) | (this.has(params.noforwards) << 26) | (this.has(params.invert_media) << 27) | (this.has(params.from_id) << 8) | (this.has(params.from_boosts_applied) << 29) | (this.has(params.saved_peer_id) << 28) | (this.has(params.fwd_from) << 2) | (this.has(params.via_bot_id) << 11) | (this.has(params.reply_to) << 3) | (this.has(params.media) << 9) | (this.has(params.reply_markup) << 6) | (this.has(params.entities) << 7) | (this.has(params.views) << 10) | (this.has(params.forwards) << 10) | (this.has(params.replies) << 23) | (this.has(params.edit_date) << 15) | (this.has(params.post_author) << 16) | (this.has(params.grouped_id) << 17) | (this.has(params.reactions) << 20) | (this.has(params.restriction_reason) << 22) | (this.has(params.ttl_period) << 25) | (this.has(params.quick_reply_shortcut_id) << 30); this.int32(flags); - const flags2 = (this.has(params.offline) << 1) | (this.has(params.video_processing_pending) << 4) | (this.has(params.via_business_bot_id) << 0) | (this.has(params.effect) << 2) | (this.has(params.factcheck) << 3); + const flags2 = (this.has(params.offline) << 1) | (this.has(params.video_processing_pending) << 4) | (this.has(params.paid_suggested_post_stars) << 8) | (this.has(params.paid_suggested_post_ton) << 9) | (this.has(params.via_business_bot_id) << 0) | (this.has(params.effect) << 2) | (this.has(params.factcheck) << 3) | (this.has(params.report_delivery_until_date) << 5) | (this.has(params.paid_message_stars) << 6) | (this.has(params.suggested_post) << 7); this.int32(flags2); this.int(params.id); this.flag(this.predicate, params.from_id); @@ -2663,17 +2812,22 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.quick_reply_shortcut_id); this.flag(this.long, params.effect); this.flag(this.predicate, params.factcheck); + this.flag(this.int, params.report_delivery_until_date); + this.flag(this.long, params.paid_message_stars); + this.flag(this.predicate, params.suggested_post); }, 'messageService': function(params) { - this.int32(721967202); - const flags = (this.has(params.out) << 1) | (this.has(params.mentioned) << 4) | (this.has(params.media_unread) << 5) | (this.has(params.silent) << 13) | (this.has(params.post) << 14) | (this.has(params.legacy) << 19) | (this.has(params.from_id) << 8) | (this.has(params.reply_to) << 3) | (this.has(params.ttl_period) << 25); + this.int32(2055212554); + const flags = (this.has(params.out) << 1) | (this.has(params.mentioned) << 4) | (this.has(params.media_unread) << 5) | (this.has(params.reactions_are_possible) << 9) | (this.has(params.silent) << 13) | (this.has(params.post) << 14) | (this.has(params.legacy) << 19) | (this.has(params.from_id) << 8) | (this.has(params.saved_peer_id) << 28) | (this.has(params.reply_to) << 3) | (this.has(params.reactions) << 20) | (this.has(params.ttl_period) << 25); this.int32(flags); this.int(params.id); this.flag(this.predicate, params.from_id); this.predicate(params.peer_id); + this.flag(this.predicate, params.saved_peer_id); this.flag(this.predicate, params.reply_to); this.int(params.date); this.predicate(params.action); + this.flag(this.predicate, params.reactions); this.flag(this.int, params.ttl_period); }, 'messageMediaEmpty': function(params) { @@ -2853,14 +3007,19 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.stories_other_sound); }, 'peerSettings': function(params) { - this.int32(-1395233698); - const flags = (this.has(params.report_spam) << 0) | (this.has(params.add_contact) << 1) | (this.has(params.block_contact) << 2) | (this.has(params.share_contact) << 3) | (this.has(params.need_contacts_exception) << 4) | (this.has(params.report_geo) << 5) | (this.has(params.autoarchived) << 7) | (this.has(params.invite_members) << 8) | (this.has(params.request_chat_broadcast) << 10) | (this.has(params.business_bot_paused) << 11) | (this.has(params.business_bot_can_reply) << 12) | (this.has(params.geo_distance) << 6) | (this.has(params.request_chat_title) << 9) | (this.has(params.request_chat_date) << 9) | (this.has(params.business_bot_id) << 13) | (this.has(params.business_bot_manage_url) << 13); + this.int32(-193510921); + const flags = (this.has(params.report_spam) << 0) | (this.has(params.add_contact) << 1) | (this.has(params.block_contact) << 2) | (this.has(params.share_contact) << 3) | (this.has(params.need_contacts_exception) << 4) | (this.has(params.report_geo) << 5) | (this.has(params.autoarchived) << 7) | (this.has(params.invite_members) << 8) | (this.has(params.request_chat_broadcast) << 10) | (this.has(params.business_bot_paused) << 11) | (this.has(params.business_bot_can_reply) << 12) | (this.has(params.geo_distance) << 6) | (this.has(params.request_chat_title) << 9) | (this.has(params.request_chat_date) << 9) | (this.has(params.business_bot_id) << 13) | (this.has(params.business_bot_manage_url) << 13) | (this.has(params.charge_paid_message_stars) << 14) | (this.has(params.registration_month) << 15) | (this.has(params.phone_country) << 16) | (this.has(params.name_change_date) << 17) | (this.has(params.photo_change_date) << 18); this.int32(flags); this.flag(this.int, params.geo_distance); this.flag(this.string, params.request_chat_title); this.flag(this.int, params.request_chat_date); this.flag(this.long, params.business_bot_id); this.flag(this.string, params.business_bot_manage_url); + this.flag(this.long, params.charge_paid_message_stars); + this.flag(this.string, params.registration_month); + this.flag(this.string, params.phone_country); + this.flag(this.int, params.name_change_date); + this.flag(this.int, params.photo_change_date); }, 'wallPaper': function(params) { this.int32(-1539849235); @@ -2888,10 +3047,10 @@ export const builderMap: BuilderMap = { this.int32(-1041980751); }, 'userFull': function(params) { - this.int32(-1751309450); - const flags = (this.has(params.blocked) << 0) | (this.has(params.phone_calls_available) << 4) | (this.has(params.phone_calls_private) << 5) | (this.has(params.can_pin_message) << 7) | (this.has(params.has_scheduled) << 12) | (this.has(params.video_calls_available) << 13) | (this.has(params.voice_messages_forbidden) << 20) | (this.has(params.translations_disabled) << 23) | (this.has(params.stories_pinned_available) << 26) | (this.has(params.blocked_my_stories_from) << 27) | (this.has(params.wallpaper_overridden) << 28) | (this.has(params.contact_require_premium) << 29) | (this.has(params.read_dates_private) << 30) | (this.has(params.about) << 1) | (this.has(params.personal_photo) << 21) | (this.has(params.profile_photo) << 2) | (this.has(params.fallback_photo) << 22) | (this.has(params.bot_info) << 3) | (this.has(params.pinned_msg_id) << 6) | (this.has(params.folder_id) << 11) | (this.has(params.ttl_period) << 14) | (this.has(params.theme_emoticon) << 15) | (this.has(params.private_forward_name) << 16) | (this.has(params.bot_group_admin_rights) << 17) | (this.has(params.bot_broadcast_admin_rights) << 18) | (this.has(params.premium_gifts) << 19) | (this.has(params.wallpaper) << 24) | (this.has(params.stories) << 25); + this.int32(-982010451); + const flags = (this.has(params.blocked) << 0) | (this.has(params.phone_calls_available) << 4) | (this.has(params.phone_calls_private) << 5) | (this.has(params.can_pin_message) << 7) | (this.has(params.has_scheduled) << 12) | (this.has(params.video_calls_available) << 13) | (this.has(params.voice_messages_forbidden) << 20) | (this.has(params.translations_disabled) << 23) | (this.has(params.stories_pinned_available) << 26) | (this.has(params.blocked_my_stories_from) << 27) | (this.has(params.wallpaper_overridden) << 28) | (this.has(params.contact_require_premium) << 29) | (this.has(params.read_dates_private) << 30) | (this.has(params.about) << 1) | (this.has(params.personal_photo) << 21) | (this.has(params.profile_photo) << 2) | (this.has(params.fallback_photo) << 22) | (this.has(params.bot_info) << 3) | (this.has(params.pinned_msg_id) << 6) | (this.has(params.folder_id) << 11) | (this.has(params.ttl_period) << 14) | (this.has(params.theme) << 15) | (this.has(params.private_forward_name) << 16) | (this.has(params.bot_group_admin_rights) << 17) | (this.has(params.bot_broadcast_admin_rights) << 18) | (this.has(params.wallpaper) << 24) | (this.has(params.stories) << 25); this.int32(flags); - const flags2 = (this.has(params.sponsored_enabled) << 7) | (this.has(params.can_view_revenue) << 9) | (this.has(params.bot_can_manage_emoji_status) << 10) | (this.has(params.business_work_hours) << 0) | (this.has(params.business_location) << 1) | (this.has(params.business_greeting_message) << 2) | (this.has(params.business_away_message) << 3) | (this.has(params.business_intro) << 4) | (this.has(params.birthday) << 5) | (this.has(params.personal_channel_id) << 6) | (this.has(params.personal_channel_message) << 6) | (this.has(params.stargifts_count) << 8) | (this.has(params.starref_program) << 11); + const flags2 = (this.has(params.sponsored_enabled) << 7) | (this.has(params.can_view_revenue) << 9) | (this.has(params.bot_can_manage_emoji_status) << 10) | (this.has(params.display_gifts_button) << 16) | (this.has(params.business_work_hours) << 0) | (this.has(params.business_location) << 1) | (this.has(params.business_greeting_message) << 2) | (this.has(params.business_away_message) << 3) | (this.has(params.business_intro) << 4) | (this.has(params.birthday) << 5) | (this.has(params.personal_channel_id) << 6) | (this.has(params.personal_channel_message) << 6) | (this.has(params.stargifts_count) << 8) | (this.has(params.starref_program) << 11) | (this.has(params.bot_verification) << 12) | (this.has(params.send_paid_messages_stars) << 14) | (this.has(params.disallowed_gifts) << 15) | (this.has(params.stars_rating) << 17) | (this.has(params.stars_my_pending_rating) << 18) | (this.has(params.stars_my_pending_rating_date) << 18) | (this.has(params.main_tab) << 20) | (this.has(params.saved_music) << 21); this.int32(flags2); this.long(params.id); this.flag(this.string, params.about); @@ -2905,11 +3064,10 @@ export const builderMap: BuilderMap = { this.int(params.common_chats_count); this.flag(this.int, params.folder_id); this.flag(this.int, params.ttl_period); - this.flag(this.string, params.theme_emoticon); + this.flag(this.predicate, params.theme); this.flag(this.string, params.private_forward_name); this.flag(this.predicate, params.bot_group_admin_rights); this.flag(this.predicate, params.bot_broadcast_admin_rights); - this.flagVector(this.predicate, params.premium_gifts); this.flag(this.predicate, params.wallpaper); this.flag(this.predicate, params.stories); this.flag(this.predicate, params.business_work_hours); @@ -2922,6 +3080,14 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.personal_channel_message); this.flag(this.int, params.stargifts_count); this.flag(this.predicate, params.starref_program); + this.flag(this.predicate, params.bot_verification); + this.flag(this.long, params.send_paid_messages_stars); + this.flag(this.predicate, params.disallowed_gifts); + this.flag(this.predicate, params.stars_rating); + this.flag(this.predicate, params.stars_my_pending_rating); + this.flag(this.int, params.stars_my_pending_rating_date); + this.flag(this.predicate, params.main_tab); + this.flag(this.predicate, params.saved_music); }, 'contact': function(params) { this.int32(341499403); @@ -2989,12 +3155,13 @@ export const builderMap: BuilderMap = { this.vector(this.predicate, params.users); }, 'messages.messagesSlice': function(params) { - this.int32(978610270); - const flags = (this.has(params.inexact) << 1) | (this.has(params.next_rate) << 0) | (this.has(params.offset_id_offset) << 2); + this.int32(1982539325); + const flags = (this.has(params.inexact) << 1) | (this.has(params.next_rate) << 0) | (this.has(params.offset_id_offset) << 2) | (this.has(params.search_flood) << 3); this.int32(flags); this.int(params.count); this.flag(this.int, params.next_rate); this.flag(this.int, params.offset_id_offset); + this.flag(this.predicate, params.search_flood); this.vector(this.predicate, params.messages); this.vector(this.predicate, params.chats); this.vector(this.predicate, params.users); @@ -3443,30 +3610,36 @@ export const builderMap: BuilderMap = { this.vector(this.predicate, params.dc_options); }, 'inputMediaUploadedDocument': function(params) { - this.int32(1530447553); - const flags = (this.has(params.nosound_video) << 3) | (this.has(params.force_file) << 4) | (this.has(params.spoiler) << 5) | (this.has(params.thumb) << 2) | (this.has(params.stickers) << 0) | (this.has(params.ttl_seconds) << 1); + this.int32(58495792); + const flags = (this.has(params.nosound_video) << 3) | (this.has(params.force_file) << 4) | (this.has(params.spoiler) << 5) | (this.has(params.thumb) << 2) | (this.has(params.stickers) << 0) | (this.has(params.video_cover) << 6) | (this.has(params.video_timestamp) << 7) | (this.has(params.ttl_seconds) << 1); this.int32(flags); this.predicate(params.file); this.flag(this.predicate, params.thumb); this.string(params.mime_type); this.vector(this.predicate, params.attributes); this.flagVector(this.predicate, params.stickers); + this.flag(this.predicate, params.video_cover); + this.flag(this.int, params.video_timestamp); this.flag(this.int, params.ttl_seconds); }, 'inputMediaDocument': function(params) { - this.int32(860303448); - const flags = (this.has(params.spoiler) << 2) | (this.has(params.ttl_seconds) << 0) | (this.has(params.query) << 1); + this.int32(-1468646731); + const flags = (this.has(params.spoiler) << 2) | (this.has(params.video_cover) << 3) | (this.has(params.video_timestamp) << 4) | (this.has(params.ttl_seconds) << 0) | (this.has(params.query) << 1); this.int32(flags); this.predicate(params.id); + this.flag(this.predicate, params.video_cover); + this.flag(this.int, params.video_timestamp); this.flag(this.int, params.ttl_seconds); this.flag(this.string, params.query); }, 'messageMediaDocument': function(params) { - this.int32(-581497899); - const flags = (this.has(params.nopremium) << 3) | (this.has(params.spoiler) << 4) | (this.has(params.video) << 6) | (this.has(params.round) << 7) | (this.has(params.voice) << 8) | (this.has(params.document) << 0) | (this.has(params.alt_documents) << 5) | (this.has(params.ttl_seconds) << 2); + this.int32(1389939929); + const flags = (this.has(params.nopremium) << 3) | (this.has(params.spoiler) << 4) | (this.has(params.video) << 6) | (this.has(params.round) << 7) | (this.has(params.voice) << 8) | (this.has(params.document) << 0) | (this.has(params.alt_documents) << 5) | (this.has(params.video_cover) << 9) | (this.has(params.video_timestamp) << 10) | (this.has(params.ttl_seconds) << 2); this.int32(flags); this.flag(this.predicate, params.document); this.flagVector(this.predicate, params.alt_documents); + this.flag(this.predicate, params.video_cover); + this.flag(this.int, params.video_timestamp); this.flag(this.int, params.ttl_seconds); }, 'inputDocumentEmpty': function(params) { @@ -3892,8 +4065,8 @@ export const builderMap: BuilderMap = { this.predicate(params.chat); }, 'chatInvite': function(params) { - this.int32(-26920803); - const flags = (this.has(params.channel) << 0) | (this.has(params.broadcast) << 1) | (this.has(params.public) << 2) | (this.has(params.megagroup) << 3) | (this.has(params.request_needed) << 6) | (this.has(params.verified) << 7) | (this.has(params.scam) << 8) | (this.has(params.fake) << 9) | (this.has(params.can_refulfill_subscription) << 11) | (this.has(params.about) << 5) | (this.has(params.participants) << 4) | (this.has(params.subscription_pricing) << 10) | (this.has(params.subscription_form_id) << 12); + this.int32(1553807106); + const flags = (this.has(params.channel) << 0) | (this.has(params.broadcast) << 1) | (this.has(params.public) << 2) | (this.has(params.megagroup) << 3) | (this.has(params.request_needed) << 6) | (this.has(params.verified) << 7) | (this.has(params.scam) << 8) | (this.has(params.fake) << 9) | (this.has(params.can_refulfill_subscription) << 11) | (this.has(params.about) << 5) | (this.has(params.participants) << 4) | (this.has(params.subscription_pricing) << 10) | (this.has(params.subscription_form_id) << 12) | (this.has(params.bot_verification) << 13); this.int32(flags); this.string(params.title); this.flag(this.string, params.about); @@ -3903,6 +4076,7 @@ export const builderMap: BuilderMap = { this.int(params.color); this.flag(this.predicate, params.subscription_pricing); this.flag(this.long, params.subscription_form_id); + this.flag(this.predicate, params.bot_verification); }, 'messageActionChatJoinedByLink': function(params) { this.int32(51520707); @@ -3953,10 +4127,10 @@ export const builderMap: BuilderMap = { this.vector(this.predicate, params.documents); }, 'user': function(params) { - this.int32(-2093920310); + this.int32(34280482); const flags = (this.has(params.self) << 10) | (this.has(params.contact) << 11) | (this.has(params.mutual_contact) << 12) | (this.has(params.deleted) << 13) | (this.has(params.bot) << 14) | (this.has(params.bot_chat_history) << 15) | (this.has(params.bot_nochats) << 16) | (this.has(params.verified) << 17) | (this.has(params.restricted) << 18) | (this.has(params.min) << 20) | (this.has(params.bot_inline_geo) << 21) | (this.has(params.support) << 23) | (this.has(params.scam) << 24) | (this.has(params.apply_min_photo) << 25) | (this.has(params.fake) << 26) | (this.has(params.bot_attach_menu) << 27) | (this.has(params.premium) << 28) | (this.has(params.attach_menu_enabled) << 29) | (this.has(params.access_hash) << 0) | (this.has(params.first_name) << 1) | (this.has(params.last_name) << 2) | (this.has(params.username) << 3) | (this.has(params.phone) << 4) | (this.has(params.photo) << 5) | (this.has(params.status) << 6) | (this.has(params.bot_info_version) << 14) | (this.has(params.restriction_reason) << 18) | (this.has(params.bot_inline_placeholder) << 19) | (this.has(params.lang_code) << 22) | (this.has(params.emoji_status) << 30); this.int32(flags); - const flags2 = (this.has(params.bot_can_edit) << 1) | (this.has(params.close_friend) << 2) | (this.has(params.stories_hidden) << 3) | (this.has(params.stories_unavailable) << 4) | (this.has(params.contact_require_premium) << 10) | (this.has(params.bot_business) << 11) | (this.has(params.bot_has_main_app) << 13) | (this.has(params.usernames) << 0) | (this.has(params.stories_max_id) << 5) | (this.has(params.color) << 8) | (this.has(params.profile_color) << 9) | (this.has(params.bot_active_users) << 12); + const flags2 = (this.has(params.bot_can_edit) << 1) | (this.has(params.close_friend) << 2) | (this.has(params.stories_hidden) << 3) | (this.has(params.stories_unavailable) << 4) | (this.has(params.contact_require_premium) << 10) | (this.has(params.bot_business) << 11) | (this.has(params.bot_has_main_app) << 13) | (this.has(params.usernames) << 0) | (this.has(params.stories_max_id) << 5) | (this.has(params.color) << 8) | (this.has(params.profile_color) << 9) | (this.has(params.bot_active_users) << 12) | (this.has(params.bot_verification_icon) << 14) | (this.has(params.send_paid_messages_stars) << 15); this.int32(flags2); this.long(params.id); this.flag(this.long, params.access_hash); @@ -3976,6 +4150,8 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.color); this.flag(this.predicate, params.profile_color); this.flag(this.int, params.bot_active_users); + this.flag(this.long, params.bot_verification_icon); + this.flag(this.long, params.send_paid_messages_stars); }, 'botCommand': function(params) { this.int32(-1032140601); @@ -3983,8 +4159,8 @@ export const builderMap: BuilderMap = { this.string(params.description); }, 'botInfo': function(params) { - this.int32(912290611); - const flags = (this.has(params.has_preview_medias) << 6) | (this.has(params.user_id) << 0) | (this.has(params.description) << 1) | (this.has(params.description_photo) << 4) | (this.has(params.description_document) << 5) | (this.has(params.commands) << 2) | (this.has(params.menu_button) << 3) | (this.has(params.privacy_policy_url) << 7) | (this.has(params.app_settings) << 8); + this.int32(1300890265); + const flags = (this.has(params.has_preview_medias) << 6) | (this.has(params.user_id) << 0) | (this.has(params.description) << 1) | (this.has(params.description_photo) << 4) | (this.has(params.description_document) << 5) | (this.has(params.commands) << 2) | (this.has(params.menu_button) << 3) | (this.has(params.privacy_policy_url) << 7) | (this.has(params.app_settings) << 8) | (this.has(params.verifier_settings) << 9); this.int32(flags); this.flag(this.long, params.user_id); this.flag(this.string, params.description); @@ -3994,6 +4170,7 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.menu_button); this.flag(this.string, params.privacy_policy_url); this.flag(this.predicate, params.app_settings); + this.flag(this.predicate, params.verifier_settings); }, 'keyboardButton': function(params) { this.int32(-1560655744); @@ -4118,10 +4295,10 @@ export const builderMap: BuilderMap = { this.long(params.access_hash); }, 'channel': function(params) { - this.int32(-29067075); + this.int32(-26717355); const flags = (this.has(params.creator) << 0) | (this.has(params.left) << 2) | (this.has(params.broadcast) << 5) | (this.has(params.verified) << 7) | (this.has(params.megagroup) << 8) | (this.has(params.restricted) << 9) | (this.has(params.signatures) << 11) | (this.has(params.min) << 12) | (this.has(params.scam) << 19) | (this.has(params.has_link) << 20) | (this.has(params.has_geo) << 21) | (this.has(params.slowmode_enabled) << 22) | (this.has(params.call_active) << 23) | (this.has(params.call_not_empty) << 24) | (this.has(params.fake) << 25) | (this.has(params.gigagroup) << 26) | (this.has(params.noforwards) << 27) | (this.has(params.join_to_send) << 28) | (this.has(params.join_request) << 29) | (this.has(params.forum) << 30) | (this.has(params.access_hash) << 13) | (this.has(params.username) << 6) | (this.has(params.restriction_reason) << 9) | (this.has(params.admin_rights) << 14) | (this.has(params.banned_rights) << 15) | (this.has(params.default_banned_rights) << 18) | (this.has(params.participants_count) << 17); this.int32(flags); - const flags2 = (this.has(params.stories_hidden) << 1) | (this.has(params.stories_hidden_min) << 2) | (this.has(params.stories_unavailable) << 3) | (this.has(params.signature_profiles) << 12) | (this.has(params.usernames) << 0) | (this.has(params.stories_max_id) << 4) | (this.has(params.color) << 7) | (this.has(params.profile_color) << 8) | (this.has(params.emoji_status) << 9) | (this.has(params.level) << 10) | (this.has(params.subscription_until_date) << 11); + const flags2 = (this.has(params.stories_hidden) << 1) | (this.has(params.stories_hidden_min) << 2) | (this.has(params.stories_unavailable) << 3) | (this.has(params.signature_profiles) << 12) | (this.has(params.autotranslation) << 15) | (this.has(params.broadcast_messages_allowed) << 16) | (this.has(params.monoforum) << 17) | (this.has(params.forum_tabs) << 19) | (this.has(params.usernames) << 0) | (this.has(params.stories_max_id) << 4) | (this.has(params.color) << 7) | (this.has(params.profile_color) << 8) | (this.has(params.emoji_status) << 9) | (this.has(params.level) << 10) | (this.has(params.subscription_until_date) << 11) | (this.has(params.bot_verification_icon) << 13) | (this.has(params.send_paid_messages_stars) << 14) | (this.has(params.linked_monoforum_id) << 18); this.int32(flags2); this.long(params.id); this.flag(this.long, params.access_hash); @@ -4141,6 +4318,9 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.emoji_status); this.flag(this.int, params.level); this.flag(this.int, params.subscription_until_date); + this.flag(this.long, params.bot_verification_icon); + this.flag(this.long, params.send_paid_messages_stars); + this.flag(this.long, params.linked_monoforum_id); }, 'channelForbidden': function(params) { this.int32(399807445); @@ -4158,10 +4338,10 @@ export const builderMap: BuilderMap = { this.vector(this.predicate, params.users); }, 'channelFull': function(params) { - this.int32(-1146407795); + this.int32(-455036259); const flags = (this.has(params.can_view_participants) << 3) | (this.has(params.can_set_username) << 6) | (this.has(params.can_set_stickers) << 7) | (this.has(params.hidden_prehistory) << 10) | (this.has(params.can_set_location) << 16) | (this.has(params.has_scheduled) << 19) | (this.has(params.can_view_stats) << 20) | (this.has(params.blocked) << 22) | (this.has(params.participants_count) << 0) | (this.has(params.admins_count) << 1) | (this.has(params.kicked_count) << 2) | (this.has(params.banned_count) << 2) | (this.has(params.online_count) << 13) | (this.has(params.exported_invite) << 23) | (this.has(params.migrated_from_chat_id) << 4) | (this.has(params.migrated_from_max_id) << 4) | (this.has(params.pinned_msg_id) << 5) | (this.has(params.stickerset) << 8) | (this.has(params.available_min_id) << 9) | (this.has(params.folder_id) << 11) | (this.has(params.linked_chat_id) << 14) | (this.has(params.location) << 15) | (this.has(params.slowmode_seconds) << 17) | (this.has(params.slowmode_next_send_date) << 18) | (this.has(params.stats_dc) << 12) | (this.has(params.call) << 21) | (this.has(params.ttl_period) << 24) | (this.has(params.pending_suggestions) << 25) | (this.has(params.groupcall_default_join_as) << 26) | (this.has(params.theme_emoticon) << 27) | (this.has(params.requests_pending) << 28) | (this.has(params.recent_requesters) << 28) | (this.has(params.default_send_as) << 29) | (this.has(params.available_reactions) << 30); this.int32(flags); - const flags2 = (this.has(params.can_delete_channel) << 0) | (this.has(params.antispam) << 1) | (this.has(params.participants_hidden) << 2) | (this.has(params.translations_disabled) << 3) | (this.has(params.stories_pinned_available) << 5) | (this.has(params.view_forum_as_messages) << 6) | (this.has(params.restricted_sponsored) << 11) | (this.has(params.can_view_revenue) << 12) | (this.has(params.paid_media_allowed) << 14) | (this.has(params.can_view_stars_revenue) << 15) | (this.has(params.paid_reactions_available) << 16) | (this.has(params.reactions_limit) << 13) | (this.has(params.stories) << 4) | (this.has(params.wallpaper) << 7) | (this.has(params.boosts_applied) << 8) | (this.has(params.boosts_unrestrict) << 9) | (this.has(params.emojiset) << 10); + const flags2 = (this.has(params.can_delete_channel) << 0) | (this.has(params.antispam) << 1) | (this.has(params.participants_hidden) << 2) | (this.has(params.translations_disabled) << 3) | (this.has(params.stories_pinned_available) << 5) | (this.has(params.view_forum_as_messages) << 6) | (this.has(params.restricted_sponsored) << 11) | (this.has(params.can_view_revenue) << 12) | (this.has(params.paid_media_allowed) << 14) | (this.has(params.can_view_stars_revenue) << 15) | (this.has(params.paid_reactions_available) << 16) | (this.has(params.stargifts_available) << 19) | (this.has(params.paid_messages_available) << 20) | (this.has(params.reactions_limit) << 13) | (this.has(params.stories) << 4) | (this.has(params.wallpaper) << 7) | (this.has(params.boosts_applied) << 8) | (this.has(params.boosts_unrestrict) << 9) | (this.has(params.emojiset) << 10) | (this.has(params.bot_verification) << 17) | (this.has(params.stargifts_count) << 18) | (this.has(params.send_paid_messages_stars) << 21) | (this.has(params.main_tab) << 22); this.int32(flags2); this.long(params.id); this.string(params.about); @@ -4204,6 +4384,10 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.boosts_applied); this.flag(this.int, params.boosts_unrestrict); this.flag(this.predicate, params.emojiset); + this.flag(this.predicate, params.bot_verification); + this.flag(this.int, params.stargifts_count); + this.flag(this.long, params.send_paid_messages_stars); + this.flag(this.predicate, params.main_tab); }, 'messageRange': function(params) { this.int32(182649427); @@ -4816,11 +5000,12 @@ export const builderMap: BuilderMap = { this.int(params.max_id); }, 'updateDraftMessage': function(params) { - this.int32(457829485); - const flags = (this.has(params.top_msg_id) << 0); + this.int32(-302247650); + const flags = (this.has(params.top_msg_id) << 0) | (this.has(params.saved_peer_id) << 1); this.int32(flags); this.predicate(params.peer); this.flag(this.int, params.top_msg_id); + this.flag(this.predicate, params.saved_peer_id); this.predicate(params.draft); }, 'draftMessageEmpty': function(params) { @@ -4830,8 +5015,8 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.date); }, 'draftMessage': function(params) { - this.int32(761606687); - const flags = (this.has(params.no_webpage) << 1) | (this.has(params.invert_media) << 6) | (this.has(params.reply_to) << 4) | (this.has(params.entities) << 3) | (this.has(params.media) << 5) | (this.has(params.effect) << 7); + this.int32(-1763006997); + const flags = (this.has(params.no_webpage) << 1) | (this.has(params.invert_media) << 6) | (this.has(params.reply_to) << 4) | (this.has(params.entities) << 3) | (this.has(params.media) << 5) | (this.has(params.effect) << 7) | (this.has(params.suggested_post) << 8); this.int32(flags); this.flag(this.predicate, params.reply_to); this.string(params.message); @@ -4839,6 +5024,7 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.media); this.int(params.date); this.flag(this.long, params.effect); + this.flag(this.predicate, params.suggested_post); }, 'messageActionHistoryClear': function(params) { this.int32(-1615153660); @@ -4903,11 +5089,13 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.ttl_seconds); }, 'inputMediaDocumentExternal': function(params) { - this.int32(-78455655); - const flags = (this.has(params.spoiler) << 1) | (this.has(params.ttl_seconds) << 0); + this.int32(2006319353); + const flags = (this.has(params.spoiler) << 1) | (this.has(params.ttl_seconds) << 0) | (this.has(params.video_cover) << 2) | (this.has(params.video_timestamp) << 3); this.int32(flags); this.string(params.url); this.flag(this.int, params.ttl_seconds); + this.flag(this.predicate, params.video_cover); + this.flag(this.int, params.video_timestamp); }, 'stickerSetMultiCovered': function(params) { this.int32(872932635); @@ -5496,7 +5684,7 @@ export const builderMap: BuilderMap = { }, 'phoneCall': function(params) { this.int32(810769141); - const flags = (this.has(params.p2p_allowed) << 5) | (this.has(params.video) << 6) | (this.has(params.custom_parameters) << 7); + const flags = (this.has(params.p2p_allowed) << 5) | (this.has(params.video) << 6) | (this.has(params.conference_supported) << 8) | (this.has(params.custom_parameters) << 7); this.int32(flags); this.long(params.id); this.long(params.access_hash); @@ -5781,11 +5969,12 @@ export const builderMap: BuilderMap = { this.int32(-451831443); }, 'updateChannelReadMessagesContents': function(params) { - this.int32(-366410403); - const flags = (this.has(params.top_msg_id) << 0); + this.int32(636691703); + const flags = (this.has(params.top_msg_id) << 0) | (this.has(params.saved_peer_id) << 1); this.int32(flags); this.long(params.channel_id); this.flag(this.int, params.top_msg_id); + this.flag(this.predicate, params.saved_peer_id); this.vector(this.int, params.messages); }, 'inputMessagesFilterMyMentions': function(params) { @@ -6182,10 +6371,11 @@ export const builderMap: BuilderMap = { this.int32(700340377); }, 'updateDialogUnreadMark': function(params) { - this.int32(-513517117); - const flags = (this.has(params.unread) << 0); + this.int32(-1235684802); + const flags = (this.has(params.unread) << 0) | (this.has(params.saved_peer_id) << 1); this.int32(flags); this.predicate(params.peer); + this.flag(this.predicate, params.saved_peer_id); }, 'messages.dialogsNotModified': function(params) { this.int32(-253500010); @@ -6531,7 +6721,7 @@ export const builderMap: BuilderMap = { }, 'chatAdminRights': function(params) { this.int32(1605510357); - const flags = (this.has(params.change_info) << 0) | (this.has(params.post_messages) << 1) | (this.has(params.edit_messages) << 2) | (this.has(params.delete_messages) << 3) | (this.has(params.ban_users) << 4) | (this.has(params.invite_users) << 5) | (this.has(params.pin_messages) << 7) | (this.has(params.add_admins) << 9) | (this.has(params.anonymous) << 10) | (this.has(params.manage_call) << 11) | (this.has(params.other) << 12) | (this.has(params.manage_topics) << 13) | (this.has(params.post_stories) << 14) | (this.has(params.edit_stories) << 15) | (this.has(params.delete_stories) << 16); + const flags = (this.has(params.change_info) << 0) | (this.has(params.post_messages) << 1) | (this.has(params.edit_messages) << 2) | (this.has(params.delete_messages) << 3) | (this.has(params.ban_users) << 4) | (this.has(params.invite_users) << 5) | (this.has(params.pin_messages) << 7) | (this.has(params.add_admins) << 9) | (this.has(params.anonymous) << 10) | (this.has(params.manage_call) << 11) | (this.has(params.other) << 12) | (this.has(params.manage_topics) << 13) | (this.has(params.post_stories) << 14) | (this.has(params.edit_stories) << 15) | (this.has(params.delete_stories) << 16) | (this.has(params.manage_direct_messages) << 17); this.int32(flags); }, 'chatBannedRights': function(params) { @@ -7066,11 +7256,11 @@ export const builderMap: BuilderMap = { this.int(params.expires); }, 'dialogFilter': function(params) { - this.int32(1605718587); - const flags = (this.has(params.contacts) << 0) | (this.has(params.non_contacts) << 1) | (this.has(params.groups) << 2) | (this.has(params.broadcasts) << 3) | (this.has(params.bots) << 4) | (this.has(params.exclude_muted) << 11) | (this.has(params.exclude_read) << 12) | (this.has(params.exclude_archived) << 13) | (this.has(params.emoticon) << 25) | (this.has(params.color) << 27); + this.int32(-1438177711); + const flags = (this.has(params.contacts) << 0) | (this.has(params.non_contacts) << 1) | (this.has(params.groups) << 2) | (this.has(params.broadcasts) << 3) | (this.has(params.bots) << 4) | (this.has(params.exclude_muted) << 11) | (this.has(params.exclude_read) << 12) | (this.has(params.exclude_archived) << 13) | (this.has(params.title_noanimate) << 28) | (this.has(params.emoticon) << 25) | (this.has(params.color) << 27); this.int32(flags); this.int(params.id); - this.string(params.title); + this.predicate(params.title); this.flag(this.string, params.emoticon); this.flag(this.int, params.color); this.vector(this.predicate, params.pinned_peers); @@ -7169,15 +7359,18 @@ export const builderMap: BuilderMap = { this.int(params.expires); }, 'help.promoData': function(params) { - this.int32(-1942390465); - const flags = (this.has(params.proxy) << 0) | (this.has(params.psa_type) << 1) | (this.has(params.psa_message) << 2); + this.int32(145021050); + const flags = (this.has(params.proxy) << 0) | (this.has(params.peer) << 3) | (this.has(params.psa_type) << 1) | (this.has(params.psa_message) << 2) | (this.has(params.custom_pending_suggestion) << 4); this.int32(flags); this.int(params.expires); - this.predicate(params.peer); - this.vector(this.predicate, params.chats); - this.vector(this.predicate, params.users); + this.flag(this.predicate, params.peer); this.flag(this.string, params.psa_type); this.flag(this.string, params.psa_message); + this.vector(this.string, params.pending_suggestions); + this.vector(this.string, params.dismissed_suggestions); + this.flag(this.predicate, params.custom_pending_suggestion); + this.vector(this.predicate, params.chats); + this.vector(this.predicate, params.users); }, 'videoSize': function(params) { this.int32(-567037804); @@ -7238,9 +7431,11 @@ export const builderMap: BuilderMap = { this.vector(this.predicate, params.users); }, 'globalPrivacySettings': function(params) { - this.int32(1934380235); - const flags = (this.has(params.archive_and_mute_new_noncontact_peers) << 0) | (this.has(params.keep_archived_unmuted) << 1) | (this.has(params.keep_archived_folders) << 2) | (this.has(params.hide_read_marks) << 3) | (this.has(params.new_noncontact_peers_require_premium) << 4); + this.int32(-29248689); + const flags = (this.has(params.archive_and_mute_new_noncontact_peers) << 0) | (this.has(params.keep_archived_unmuted) << 1) | (this.has(params.keep_archived_folders) << 2) | (this.has(params.hide_read_marks) << 3) | (this.has(params.new_noncontact_peers_require_premium) << 4) | (this.has(params.display_gifts_button) << 7) | (this.has(params.noncontact_peers_paid_stars) << 5) | (this.has(params.disallowed_gifts) << 6); this.int32(flags); + this.flag(this.long, params.noncontact_peers_paid_stars); + this.flag(this.predicate, params.disallowed_gifts); }, 'phoneConnectionWebrtc': function(params) { this.int32(1667228533); @@ -7334,8 +7529,8 @@ export const builderMap: BuilderMap = { this.vector(this.predicate, params.users); }, 'messageReplyHeader': function(params) { - this.int32(-1346631205); - const flags = (this.has(params.reply_to_scheduled) << 2) | (this.has(params.forum_topic) << 3) | (this.has(params.quote) << 9) | (this.has(params.reply_to_msg_id) << 4) | (this.has(params.reply_to_peer_id) << 0) | (this.has(params.reply_from) << 5) | (this.has(params.reply_media) << 8) | (this.has(params.reply_to_top_id) << 1) | (this.has(params.quote_text) << 6) | (this.has(params.quote_entities) << 7) | (this.has(params.quote_offset) << 10); + this.int32(1763137035); + const flags = (this.has(params.reply_to_scheduled) << 2) | (this.has(params.forum_topic) << 3) | (this.has(params.quote) << 9) | (this.has(params.reply_to_msg_id) << 4) | (this.has(params.reply_to_peer_id) << 0) | (this.has(params.reply_from) << 5) | (this.has(params.reply_media) << 8) | (this.has(params.reply_to_top_id) << 1) | (this.has(params.quote_text) << 6) | (this.has(params.quote_entities) << 7) | (this.has(params.quote_offset) << 10) | (this.has(params.todo_item_id) << 11); this.int32(flags); this.flag(this.int, params.reply_to_msg_id); this.flag(this.predicate, params.reply_to_peer_id); @@ -7345,6 +7540,7 @@ export const builderMap: BuilderMap = { this.flag(this.string, params.quote_text); this.flagVector(this.predicate, params.quote_entities); this.flag(this.int, params.quote_offset); + this.flag(this.int, params.todo_item_id); }, 'messageReplies': function(params) { this.int32(-2083123262); @@ -7440,8 +7636,8 @@ export const builderMap: BuilderMap = { this.int(params.duration); }, 'groupCall': function(params) { - this.int32(-711498484); - const flags = (this.has(params.join_muted) << 1) | (this.has(params.can_change_join_muted) << 2) | (this.has(params.join_date_asc) << 6) | (this.has(params.schedule_start_subscribed) << 8) | (this.has(params.can_start_video) << 9) | (this.has(params.record_video_active) << 11) | (this.has(params.rtmp_stream) << 12) | (this.has(params.listeners_hidden) << 13) | (this.has(params.title) << 3) | (this.has(params.stream_dc_id) << 4) | (this.has(params.record_start_date) << 5) | (this.has(params.schedule_date) << 7) | (this.has(params.unmuted_video_count) << 10); + this.int32(1429932961); + const flags = (this.has(params.join_muted) << 1) | (this.has(params.can_change_join_muted) << 2) | (this.has(params.join_date_asc) << 6) | (this.has(params.schedule_start_subscribed) << 8) | (this.has(params.can_start_video) << 9) | (this.has(params.record_video_active) << 11) | (this.has(params.rtmp_stream) << 12) | (this.has(params.listeners_hidden) << 13) | (this.has(params.conference) << 14) | (this.has(params.creator) << 15) | (this.has(params.title) << 3) | (this.has(params.stream_dc_id) << 4) | (this.has(params.record_start_date) << 5) | (this.has(params.schedule_date) << 7) | (this.has(params.unmuted_video_count) << 10) | (this.has(params.invite_link) << 16); this.int32(flags); this.long(params.id); this.long(params.access_hash); @@ -7453,6 +7649,7 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.unmuted_video_count); this.int(params.unmuted_video_limit); this.int(params.version); + this.flag(this.string, params.invite_link); }, 'inputGroupCall': function(params) { this.int32(-659913713); @@ -7496,8 +7693,10 @@ export const builderMap: BuilderMap = { this.int(params.version); }, 'updateGroupCall': function(params) { - this.int32(347227392); - this.long(params.chat_id); + this.int32(-1747565759); + const flags = (this.has(params.chat_id) << 0); + this.int32(flags); + this.flag(this.long, params.chat_id); this.predicate(params.call); }, 'phone.groupCall': function(params) { @@ -7816,16 +8015,33 @@ export const builderMap: BuilderMap = { this.long(params.bot_id); this.vector(this.predicate, params.commands); }, - 'messageActionSetChatTheme': function(params) { - this.int32(-1434950843); + 'chatTheme': function(params) { + this.int32(-1008731132); this.string(params.emoticon); }, + 'account.chatThemesNotModified': function(params) { + this.int32(-535699004); + }, + 'account.chatThemes': function(params) { + this.int32(373835863); + const flags = (this.has(params.next_offset) << 0); + this.int32(flags); + this.long(params.hash); + this.vector(this.predicate, params.themes); + this.vector(this.predicate, params.chats); + this.vector(this.predicate, params.users); + this.flag(this.int, params.next_offset); + }, + 'messageActionSetChatTheme': function(params) { + this.int32(-1189364422); + this.predicate(params.theme); + }, 'sendMessageChooseStickerAction': function(params) { this.int32(-1336228175); }, 'sponsoredMessage': function(params) { - this.int32(1301522832); - const flags = (this.has(params.recommended) << 5) | (this.has(params.can_report) << 12) | (this.has(params.entities) << 1) | (this.has(params.photo) << 6) | (this.has(params.media) << 14) | (this.has(params.color) << 13) | (this.has(params.sponsor_info) << 7) | (this.has(params.additional_info) << 8); + this.int32(2109703795); + const flags = (this.has(params.recommended) << 5) | (this.has(params.can_report) << 12) | (this.has(params.entities) << 1) | (this.has(params.photo) << 6) | (this.has(params.media) << 14) | (this.has(params.color) << 13) | (this.has(params.sponsor_info) << 7) | (this.has(params.additional_info) << 8) | (this.has(params.min_display_duration) << 15) | (this.has(params.max_display_duration) << 15); this.int32(flags); this.bytes(params.random_id); this.string(params.url); @@ -7838,12 +8054,16 @@ export const builderMap: BuilderMap = { this.string(params.button_text); this.flag(this.string, params.sponsor_info); this.flag(this.string, params.additional_info); + this.flag(this.int, params.min_display_duration); + this.flag(this.int, params.max_display_duration); }, 'messages.sponsoredMessages': function(params) { - this.int32(-907141753); - const flags = (this.has(params.posts_between) << 0); + this.int32(-2464403); + const flags = (this.has(params.posts_between) << 0) | (this.has(params.start_delay) << 1) | (this.has(params.between_delay) << 2); this.int32(flags); this.flag(this.int, params.posts_between); + this.flag(this.int, params.start_delay); + this.flag(this.int, params.between_delay); this.vector(this.predicate, params.messages); this.vector(this.predicate, params.chats); this.vector(this.predicate, params.users); @@ -7976,12 +8196,13 @@ export const builderMap: BuilderMap = { this.flag(this.bytes, params.future_auth_token); }, 'updateMessageReactions': function(params) { - this.int32(1578843320); - const flags = (this.has(params.top_msg_id) << 0); + this.int32(506035194); + const flags = (this.has(params.top_msg_id) << 0) | (this.has(params.saved_peer_id) << 1); this.int32(flags); this.predicate(params.peer); this.int(params.msg_id); this.flag(this.int, params.top_msg_id); + this.flag(this.predicate, params.saved_peer_id); this.predicate(params.reactions); }, 'reactionCount': function(params) { @@ -8298,16 +8519,6 @@ export const builderMap: BuilderMap = { this.flag(this.long, params.crypto_amount); this.flag(this.predicate, params.message); }, - 'premiumGiftOption': function(params) { - this.int32(1958953753); - const flags = (this.has(params.store_product) << 0); - this.int32(flags); - this.int(params.months); - this.string(params.currency); - this.long(params.amount); - this.string(params.bot_url); - this.flag(this.string, params.store_product); - }, 'inputStickerSetPremiumGifts': function(params) { this.int32(-930399486); }, @@ -8337,13 +8548,11 @@ export const builderMap: BuilderMap = { this.int32(769727150); }, 'emojiStatus': function(params) { - this.int32(-1835310691); - this.long(params.document_id); - }, - 'emojiStatusUntil': function(params) { - this.int32(-97474361); + this.int32(-402717046); + const flags = (this.has(params.until) << 0); + this.int32(flags); this.long(params.document_id); - this.int(params.until); + this.flag(this.int, params.until); }, 'updateUserEmojiStatus': function(params) { this.int32(674706841); @@ -8810,11 +9019,11 @@ export const builderMap: BuilderMap = { this.int(params.date); }, 'dialogFilterChatlist': function(params) { - this.int32(-1612542300); - const flags = (this.has(params.has_my_invites) << 26) | (this.has(params.emoticon) << 25) | (this.has(params.color) << 27); + this.int32(-1772913705); + const flags = (this.has(params.has_my_invites) << 26) | (this.has(params.title_noanimate) << 28) | (this.has(params.emoticon) << 25) | (this.has(params.color) << 27); this.int32(flags); this.int(params.id); - this.string(params.title); + this.predicate(params.title); this.flag(this.string, params.emoticon); this.flag(this.int, params.color); this.vector(this.predicate, params.pinned_peers); @@ -8852,10 +9061,10 @@ export const builderMap: BuilderMap = { this.vector(this.predicate, params.users); }, 'chatlists.chatlistInvite': function(params) { - this.int32(500007837); - const flags = (this.has(params.emoticon) << 0); + this.int32(-250687953); + const flags = (this.has(params.title_noanimate) << 1) | (this.has(params.emoticon) << 0); this.int32(flags); - this.string(params.title); + this.predicate(params.title); this.flag(this.string, params.emoticon); this.vector(this.predicate, params.peers); this.vector(this.predicate, params.chats); @@ -8928,8 +9137,8 @@ export const builderMap: BuilderMap = { this.int(params.expire_date); }, 'storyItem': function(params) { - this.int32(2041735716); - const flags = (this.has(params.pinned) << 5) | (this.has(params.public) << 7) | (this.has(params.close_friends) << 8) | (this.has(params.min) << 9) | (this.has(params.noforwards) << 10) | (this.has(params.edited) << 11) | (this.has(params.contacts) << 12) | (this.has(params.selected_contacts) << 13) | (this.has(params.out) << 16) | (this.has(params.from_id) << 18) | (this.has(params.fwd_from) << 17) | (this.has(params.caption) << 0) | (this.has(params.entities) << 1) | (this.has(params.media_areas) << 14) | (this.has(params.privacy) << 2) | (this.has(params.views) << 3) | (this.has(params.sent_reaction) << 15); + this.int32(-302947087); + const flags = (this.has(params.pinned) << 5) | (this.has(params.public) << 7) | (this.has(params.close_friends) << 8) | (this.has(params.min) << 9) | (this.has(params.noforwards) << 10) | (this.has(params.edited) << 11) | (this.has(params.contacts) << 12) | (this.has(params.selected_contacts) << 13) | (this.has(params.out) << 16) | (this.has(params.from_id) << 18) | (this.has(params.fwd_from) << 17) | (this.has(params.caption) << 0) | (this.has(params.entities) << 1) | (this.has(params.media_areas) << 14) | (this.has(params.privacy) << 2) | (this.has(params.views) << 3) | (this.has(params.sent_reaction) << 15) | (this.has(params.albums) << 19); this.int32(flags); this.int(params.id); this.int(params.date); @@ -8943,6 +9152,7 @@ export const builderMap: BuilderMap = { this.flagVector(this.predicate, params.privacy); this.flag(this.predicate, params.views); this.flag(this.predicate, params.sent_reaction); + this.flagVector(this.int, params.albums); }, 'updateStory': function(params) { this.int32(1974712216); @@ -9015,8 +9225,8 @@ export const builderMap: BuilderMap = { this.vector(this.predicate, params.users); }, 'inputReplyToMessage': function(params) { - this.int32(583071445); - const flags = (this.has(params.top_msg_id) << 0) | (this.has(params.reply_to_peer_id) << 1) | (this.has(params.quote_text) << 2) | (this.has(params.quote_entities) << 3) | (this.has(params.quote_offset) << 4); + this.int32(-2036351472); + const flags = (this.has(params.top_msg_id) << 0) | (this.has(params.reply_to_peer_id) << 1) | (this.has(params.quote_text) << 2) | (this.has(params.quote_entities) << 3) | (this.has(params.quote_offset) << 4) | (this.has(params.monoforum_peer_id) << 5) | (this.has(params.todo_item_id) << 6); this.int32(flags); this.int(params.reply_to_msg_id); this.flag(this.int, params.top_msg_id); @@ -9024,6 +9234,8 @@ export const builderMap: BuilderMap = { this.flag(this.string, params.quote_text); this.flagVector(this.predicate, params.quote_entities); this.flag(this.int, params.quote_offset); + this.flag(this.predicate, params.monoforum_peer_id); + this.flag(this.int, params.todo_item_id); }, 'inputReplyToStory': function(params) { this.int32(1484862010); @@ -9777,11 +9989,12 @@ export const builderMap: BuilderMap = { this.vector(this.int, params.messages); }, 'connectedBot': function(params) { - this.int32(-1123645951); - const flags = (this.has(params.can_reply) << 0); + this.int32(-849058964); + const flags = 0; this.int32(flags); this.long(params.bot_id); this.predicate(params.recipients); + this.predicate(params.rights); }, 'account.connectedBots': function(params) { this.int32(400029819); @@ -9833,13 +10046,14 @@ export const builderMap: BuilderMap = { this.int(params.qts); }, 'botBusinessConnection': function(params) { - this.int32(-1989921868); - const flags = (this.has(params.can_reply) << 0) | (this.has(params.disabled) << 1); + this.int32(-1892371723); + const flags = (this.has(params.disabled) << 1) | (this.has(params.rights) << 2); this.int32(flags); this.string(params.connection_id); this.long(params.user_id); this.int(params.dc_id); this.int(params.date); + this.flag(this.predicate, params.rights); }, 'inputBusinessIntro': function(params) { this.int32(163867085); @@ -10017,44 +10231,6 @@ export const builderMap: BuilderMap = { 'channels.sponsoredMessageReportResultReported': function(params) { this.int32(-1384544183); }, - 'stats.broadcastRevenueStats': function(params) { - this.int32(1409802903); - this.predicate(params.top_hours_graph); - this.predicate(params.revenue_graph); - this.predicate(params.balances); - this.double(params.usd_rate); - }, - 'stats.broadcastRevenueWithdrawalUrl': function(params) { - this.int32(-328886473); - this.string(params.url); - }, - 'broadcastRevenueTransactionProceeds': function(params) { - this.int32(1434332356); - this.long(params.amount); - this.int(params.from_date); - this.int(params.to_date); - }, - 'broadcastRevenueTransactionWithdrawal': function(params) { - this.int32(1515784568); - const flags = (this.has(params.pending) << 0) | (this.has(params.failed) << 2) | (this.has(params.transaction_date) << 1) | (this.has(params.transaction_url) << 1); - this.int32(flags); - this.long(params.amount); - this.int(params.date); - this.string(params.provider); - this.flag(this.int, params.transaction_date); - this.flag(this.string, params.transaction_url); - }, - 'broadcastRevenueTransactionRefund': function(params) { - this.int32(1121127726); - this.long(params.amount); - this.int(params.date); - this.string(params.provider); - }, - 'stats.broadcastRevenueTransactions': function(params) { - this.int32(-2028632986); - this.int(params.count); - this.vector(this.predicate, params.transactions); - }, 'webPageAttributeStickerSet': function(params) { this.int32(1355547603); const flags = (this.has(params.emojis) << 0) | (this.has(params.text_color) << 1); @@ -10105,19 +10281,6 @@ export const builderMap: BuilderMap = { this.string(params.title); this.long(params.icon_emoji_id); }, - 'broadcastRevenueBalances': function(params) { - this.int32(-1006669337); - const flags = (this.has(params.withdrawal_enabled) << 0); - this.int32(flags); - this.long(params.current_balance); - this.long(params.available_balance); - this.long(params.overall_revenue); - }, - 'updateBroadcastRevenueTransactions': function(params) { - this.int32(-539401739); - this.predicate(params.peer); - this.predicate(params.balances); - }, 'availableEffect': function(params) { this.int32(-1815879042); const flags = (this.has(params.premium_required) << 2) | (this.has(params.static_icon_id) << 0) | (this.has(params.effect_animation_id) << 1); @@ -10178,11 +10341,11 @@ export const builderMap: BuilderMap = { this.predicate(params.purpose); }, 'starsTransaction': function(params) { - this.int32(1692387622); - const flags = (this.has(params.refund) << 3) | (this.has(params.pending) << 4) | (this.has(params.failed) << 6) | (this.has(params.gift) << 10) | (this.has(params.reaction) << 11) | (this.has(params.title) << 0) | (this.has(params.description) << 1) | (this.has(params.photo) << 2) | (this.has(params.transaction_date) << 5) | (this.has(params.transaction_url) << 5) | (this.has(params.bot_payload) << 7) | (this.has(params.msg_id) << 8) | (this.has(params.extended_media) << 9) | (this.has(params.subscription_period) << 12) | (this.has(params.giveaway_post_id) << 13) | (this.has(params.stargift) << 14) | (this.has(params.floodskip_number) << 15) | (this.has(params.starref_commission_permille) << 16) | (this.has(params.starref_peer) << 17) | (this.has(params.starref_amount) << 17); + this.int32(325426864); + const flags = (this.has(params.refund) << 3) | (this.has(params.pending) << 4) | (this.has(params.failed) << 6) | (this.has(params.gift) << 10) | (this.has(params.reaction) << 11) | (this.has(params.stargift_upgrade) << 18) | (this.has(params.business_transfer) << 21) | (this.has(params.stargift_resale) << 22) | (this.has(params.posts_search) << 24) | (this.has(params.stargift_prepaid_upgrade) << 25) | (this.has(params.title) << 0) | (this.has(params.description) << 1) | (this.has(params.photo) << 2) | (this.has(params.transaction_date) << 5) | (this.has(params.transaction_url) << 5) | (this.has(params.bot_payload) << 7) | (this.has(params.msg_id) << 8) | (this.has(params.extended_media) << 9) | (this.has(params.subscription_period) << 12) | (this.has(params.giveaway_post_id) << 13) | (this.has(params.stargift) << 14) | (this.has(params.floodskip_number) << 15) | (this.has(params.starref_commission_permille) << 16) | (this.has(params.starref_peer) << 17) | (this.has(params.starref_amount) << 17) | (this.has(params.paid_messages) << 19) | (this.has(params.premium_gift_months) << 20) | (this.has(params.ads_proceeds_from_date) << 23) | (this.has(params.ads_proceeds_to_date) << 23); this.int32(flags); this.string(params.id); - this.predicate(params.stars); + this.predicate(params.amount); this.int(params.date); this.predicate(params.peer); this.flag(this.string, params.title); @@ -10200,6 +10363,10 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.starref_commission_permille); this.flag(this.predicate, params.starref_peer); this.flag(this.predicate, params.starref_amount); + this.flag(this.int, params.paid_messages); + this.flag(this.int, params.premium_gift_months); + this.flag(this.int, params.ads_proceeds_from_date); + this.flag(this.int, params.ads_proceeds_to_date); }, 'payments.starsStatus': function(params) { this.int32(1822222573); @@ -10296,7 +10463,10 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.next_withdrawal_at); }, 'payments.starsRevenueStats': function(params) { - this.int32(-919881925); + this.int32(1814066038); + const flags = (this.has(params.top_hours_graph) << 0); + this.int32(flags); + this.flag(this.predicate, params.top_hours_graph); this.predicate(params.revenue_graph); this.predicate(params.status); this.double(params.usd_rate); @@ -10347,10 +10517,13 @@ export const builderMap: BuilderMap = { this.predicate(params.charge); }, 'inputStorePaymentStarsTopup': function(params) { - this.int32(-572715178); + this.int32(-106780981); + const flags = (this.has(params.spend_purpose_peer) << 0); + this.int32(flags); this.long(params.stars); this.string(params.currency); this.long(params.amount); + this.flag(this.predicate, params.spend_purpose_peer); }, 'inputStorePaymentStarsGift': function(params) { this.int32(494149367); @@ -10482,8 +10655,8 @@ export const builderMap: BuilderMap = { this.int(params.giveaway_msg_id); }, 'updatePaidReactionPrivacy': function(params) { - this.int32(1372224236); - this.Bool(params.private); + this.int32(-1955438642); + this.predicate(params.private); }, 'starsGiveawayOption': function(params) { this.int32(-1798404822); @@ -10517,31 +10690,41 @@ export const builderMap: BuilderMap = { this.string(params.copy_text); }, 'starGift': function(params) { - this.int32(1237678029); - const flags = (this.has(params.limited) << 0) | (this.has(params.sold_out) << 1) | (this.has(params.birthday) << 2) | (this.has(params.availability_remains) << 0) | (this.has(params.availability_total) << 0) | (this.has(params.first_sale_date) << 1) | (this.has(params.last_sale_date) << 1); + this.int32(-2136190013); + const flags = (this.has(params.limited) << 0) | (this.has(params.sold_out) << 1) | (this.has(params.birthday) << 2) | (this.has(params.require_premium) << 7) | (this.has(params.limited_per_user) << 8) | (this.has(params.availability_remains) << 0) | (this.has(params.availability_total) << 0) | (this.has(params.availability_resale) << 4) | (this.has(params.first_sale_date) << 1) | (this.has(params.last_sale_date) << 1) | (this.has(params.upgrade_stars) << 3) | (this.has(params.resell_min_stars) << 4) | (this.has(params.title) << 5) | (this.has(params.released_by) << 6) | (this.has(params.per_user_total) << 8) | (this.has(params.per_user_remains) << 8) | (this.has(params.locked_until_date) << 9); this.int32(flags); this.long(params.id); this.predicate(params.sticker); this.long(params.stars); this.flag(this.int, params.availability_remains); this.flag(this.int, params.availability_total); + this.flag(this.long, params.availability_resale); this.long(params.convert_stars); this.flag(this.int, params.first_sale_date); this.flag(this.int, params.last_sale_date); + this.flag(this.long, params.upgrade_stars); + this.flag(this.long, params.resell_min_stars); + this.flag(this.string, params.title); + this.flag(this.predicate, params.released_by); + this.flag(this.int, params.per_user_total); + this.flag(this.int, params.per_user_remains); + this.flag(this.int, params.locked_until_date); }, 'payments.starGiftsNotModified': function(params) { this.int32(-1551326360); }, 'payments.starGifts': function(params) { - this.int32(-1877571094); + this.int32(785918357); this.int(params.hash); this.vector(this.predicate, params.gifts); + this.vector(this.predicate, params.chats); + this.vector(this.predicate, params.users); }, 'inputInvoiceStarGift': function(params) { - this.int32(634962392); - const flags = (this.has(params.hide_name) << 0) | (this.has(params.message) << 1); + this.int32(-396206446); + const flags = (this.has(params.hide_name) << 0) | (this.has(params.include_upgrade) << 2) | (this.has(params.message) << 1); this.int32(flags); - this.predicate(params.user_id); + this.predicate(params.peer); this.long(params.gift_id); this.flag(this.predicate, params.message); }, @@ -10551,32 +10734,19 @@ export const builderMap: BuilderMap = { this.predicate(params.invoice); }, 'messageActionStarGift': function(params) { - this.int32(139818551); - const flags = (this.has(params.name_hidden) << 0) | (this.has(params.saved) << 2) | (this.has(params.converted) << 3) | (this.has(params.message) << 1) | (this.has(params.convert_stars) << 4); - this.int32(flags); - this.predicate(params.gift); - this.flag(this.predicate, params.message); - this.flag(this.long, params.convert_stars); - }, - 'userStarGift': function(params) { - this.int32(-291202450); - const flags = (this.has(params.name_hidden) << 0) | (this.has(params.unsaved) << 5) | (this.has(params.from_id) << 1) | (this.has(params.message) << 2) | (this.has(params.msg_id) << 3) | (this.has(params.convert_stars) << 4); + this.int32(-229775366); + const flags = (this.has(params.name_hidden) << 0) | (this.has(params.saved) << 2) | (this.has(params.converted) << 3) | (this.has(params.upgraded) << 5) | (this.has(params.refunded) << 9) | (this.has(params.can_upgrade) << 10) | (this.has(params.prepaid_upgrade) << 13) | (this.has(params.upgrade_separate) << 16) | (this.has(params.message) << 1) | (this.has(params.convert_stars) << 4) | (this.has(params.upgrade_msg_id) << 5) | (this.has(params.upgrade_stars) << 8) | (this.has(params.from_id) << 11) | (this.has(params.peer) << 12) | (this.has(params.saved_id) << 12) | (this.has(params.prepaid_upgrade_hash) << 14) | (this.has(params.gift_msg_id) << 15); this.int32(flags); - this.flag(this.long, params.from_id); - this.int(params.date); this.predicate(params.gift); this.flag(this.predicate, params.message); - this.flag(this.int, params.msg_id); this.flag(this.long, params.convert_stars); - }, - 'payments.userStarGifts': function(params) { - this.int32(1801827607); - const flags = (this.has(params.next_offset) << 0); - this.int32(flags); - this.int(params.count); - this.vector(this.predicate, params.gifts); - this.flag(this.string, params.next_offset); - this.vector(this.predicate, params.users); + this.flag(this.int, params.upgrade_msg_id); + this.flag(this.long, params.upgrade_stars); + this.flag(this.predicate, params.from_id); + this.flag(this.predicate, params.peer); + this.flag(this.long, params.saved_id); + this.flag(this.string, params.prepaid_upgrade_hash); + this.flag(this.int, params.gift_msg_id); }, 'messageReportOption': function(params) { this.int32(2030298073); @@ -10697,135 +10867,766 @@ export const builderMap: BuilderMap = { this.long(params.hash); this.vector(this.predicate, params.stickers); }, - 'invokeAfterMsg': function(params) { - this.int32(-878758099); - this.long(params.msg_id); - this.predicate(params.query); + 'botVerifierSettings': function(params) { + this.int32(-1328716265); + const flags = (this.has(params.can_modify_custom_description) << 1) | (this.has(params.custom_description) << 0); + this.int32(flags); + this.long(params.icon); + this.string(params.company); + this.flag(this.string, params.custom_description); }, - 'invokeAfterMsgs': function(params) { - this.int32(1036301552); - this.vector(this.long, params.msg_ids); - this.predicate(params.query); + 'botVerification': function(params) { + this.int32(-113453988); + this.long(params.bot_id); + this.long(params.icon); + this.string(params.description); }, - 'auth.sendCode': function(params) { - this.int32(-1502141361); - this.string(params.phone_number); - this.int(params.api_id); - this.string(params.api_hash); - this.predicate(params.settings); + 'starGiftAttributeModel': function(params) { + this.int32(970559507); + this.string(params.name); + this.predicate(params.document); + this.int(params.rarity_permille); }, - 'auth.signUp': function(params) { - this.int32(-1429752041); - const flags = (this.has(params.no_joined_notifications) << 0); - this.int32(flags); - this.string(params.phone_number); - this.string(params.phone_code_hash); - this.string(params.first_name); - this.string(params.last_name); + 'starGiftAttributePattern': function(params) { + this.int32(330104601); + this.string(params.name); + this.predicate(params.document); + this.int(params.rarity_permille); }, - 'auth.signIn': function(params) { - this.int32(-1923962543); - const flags = (this.has(params.phone_code) << 0) | (this.has(params.email_verification) << 1); + 'starGiftAttributeBackdrop': function(params) { + this.int32(-650279524); + this.string(params.name); + this.int(params.backdrop_id); + this.int(params.center_color); + this.int(params.edge_color); + this.int(params.pattern_color); + this.int(params.text_color); + this.int(params.rarity_permille); + }, + 'starGiftAttributeOriginalDetails': function(params) { + this.int32(-524291476); + const flags = (this.has(params.sender_id) << 0) | (this.has(params.message) << 1); + this.int32(flags); + this.flag(this.predicate, params.sender_id); + this.predicate(params.recipient_id); + this.int(params.date); + this.flag(this.predicate, params.message); + }, + 'starGiftUnique': function(params) { + this.int32(468707429); + const flags = (this.has(params.require_premium) << 6) | (this.has(params.resale_ton_only) << 7) | (this.has(params.theme_available) << 9) | (this.has(params.owner_id) << 0) | (this.has(params.owner_name) << 1) | (this.has(params.owner_address) << 2) | (this.has(params.gift_address) << 3) | (this.has(params.resell_amount) << 4) | (this.has(params.released_by) << 5) | (this.has(params.value_amount) << 8) | (this.has(params.value_currency) << 8) | (this.has(params.theme_peer) << 10); this.int32(flags); - this.string(params.phone_number); - this.string(params.phone_code_hash); - this.flag(this.string, params.phone_code); - this.flag(this.predicate, params.email_verification); + this.long(params.id); + this.long(params.gift_id); + this.string(params.title); + this.string(params.slug); + this.int(params.num); + this.flag(this.predicate, params.owner_id); + this.flag(this.string, params.owner_name); + this.flag(this.string, params.owner_address); + this.vector(this.predicate, params.attributes); + this.int(params.availability_issued); + this.int(params.availability_total); + this.flag(this.string, params.gift_address); + this.flagVector(this.predicate, params.resell_amount); + this.flag(this.predicate, params.released_by); + this.flag(this.long, params.value_amount); + this.flag(this.string, params.value_currency); + this.flag(this.predicate, params.theme_peer); + }, + 'messageActionStarGiftUnique': function(params) { + this.int32(888627955); + const flags = (this.has(params.upgrade) << 0) | (this.has(params.transferred) << 1) | (this.has(params.saved) << 2) | (this.has(params.refunded) << 5) | (this.has(params.prepaid_upgrade) << 11) | (this.has(params.can_export_at) << 3) | (this.has(params.transfer_stars) << 4) | (this.has(params.from_id) << 6) | (this.has(params.peer) << 7) | (this.has(params.saved_id) << 7) | (this.has(params.resale_amount) << 8) | (this.has(params.can_transfer_at) << 9) | (this.has(params.can_resell_at) << 10); + this.int32(flags); + this.predicate(params.gift); + this.flag(this.int, params.can_export_at); + this.flag(this.long, params.transfer_stars); + this.flag(this.predicate, params.from_id); + this.flag(this.predicate, params.peer); + this.flag(this.long, params.saved_id); + this.flag(this.predicate, params.resale_amount); + this.flag(this.int, params.can_transfer_at); + this.flag(this.int, params.can_resell_at); }, - 'auth.logOut': function(params) { - this.int32(1047706137); + 'inputInvoiceStarGiftUpgrade': function(params) { + this.int32(1300335965); + const flags = (this.has(params.keep_original_details) << 0); + this.int32(flags); + this.predicate(params.stargift); }, - 'auth.resetAuthorizations': function(params) { - this.int32(-1616179942); + 'inputInvoiceStarGiftTransfer': function(params) { + this.int32(1247763417); + this.predicate(params.stargift); + this.predicate(params.to_id); }, - 'auth.exportAuthorization': function(params) { - this.int32(-440401971); - this.int(params.dc_id); + 'payments.starGiftUpgradePreview': function(params) { + this.int32(377215243); + this.vector(this.predicate, params.sample_attributes); }, - 'auth.importAuthorization': function(params) { - this.int32(-1518699091); - this.long(params.id); - this.bytes(params.bytes); + 'users.users': function(params) { + this.int32(1658259128); + this.vector(this.predicate, params.users); }, - 'auth.bindTempAuthKey': function(params) { - this.int32(-841733627); - this.long(params.perm_auth_key_id); - this.long(params.nonce); - this.int(params.expires_at); - this.bytes(params.encrypted_message); + 'users.usersSlice': function(params) { + this.int32(828000628); + this.int(params.count); + this.vector(this.predicate, params.users); }, - 'account.registerDevice': function(params) { - this.int32(-326762118); - const flags = (this.has(params.no_muted) << 0); - this.int32(flags); - this.int(params.token_type); - this.string(params.token); - this.Bool(params.app_sandbox); - this.bytes(params.secret); - this.vector(this.long, params.other_uids); + 'payments.uniqueStarGift': function(params) { + this.int32(1097619176); + this.predicate(params.gift); + this.vector(this.predicate, params.chats); + this.vector(this.predicate, params.users); }, - 'account.unregisterDevice': function(params) { - this.int32(1779249670); - this.int(params.token_type); - this.string(params.token); - this.vector(this.long, params.other_uids); + 'webPageAttributeUniqueStarGift': function(params) { + this.int32(-814781000); + this.predicate(params.gift); }, - 'account.updateNotifySettings': function(params) { - this.int32(-2067899501); - this.predicate(params.peer); - this.predicate(params.settings); + 'mediaAreaStarGift': function(params) { + this.int32(1468491885); + this.predicate(params.coordinates); + this.string(params.slug); }, - 'account.getNotifySettings': function(params) { - this.int32(313765169); - this.predicate(params.peer); + 'messages.webPagePreview': function(params) { + this.int32(-1936029524); + this.predicate(params.media); + this.vector(this.predicate, params.chats); + this.vector(this.predicate, params.users); }, - 'account.resetNotifySettings': function(params) { - this.int32(-612493497); + 'emojiStatusCollectible': function(params) { + this.int32(1904500795); + const flags = (this.has(params.until) << 0); + this.int32(flags); + this.long(params.collectible_id); + this.long(params.document_id); + this.string(params.title); + this.string(params.slug); + this.long(params.pattern_document_id); + this.int(params.center_color); + this.int(params.edge_color); + this.int(params.pattern_color); + this.int(params.text_color); + this.flag(this.int, params.until); }, - 'account.updateProfile': function(params) { - this.int32(2018596725); - const flags = (this.has(params.first_name) << 0) | (this.has(params.last_name) << 1) | (this.has(params.about) << 2); + 'inputEmojiStatusCollectible': function(params) { + this.int32(118758847); + const flags = (this.has(params.until) << 0); this.int32(flags); - this.flag(this.string, params.first_name); - this.flag(this.string, params.last_name); - this.flag(this.string, params.about); + this.long(params.collectible_id); + this.flag(this.int, params.until); }, - 'account.updateStatus': function(params) { - this.int32(1713919532); - this.Bool(params.offline); + 'savedStarGift': function(params) { + this.int32(430552434); + const flags = (this.has(params.name_hidden) << 0) | (this.has(params.unsaved) << 5) | (this.has(params.refunded) << 9) | (this.has(params.can_upgrade) << 10) | (this.has(params.pinned_to_top) << 12) | (this.has(params.upgrade_separate) << 17) | (this.has(params.from_id) << 1) | (this.has(params.message) << 2) | (this.has(params.msg_id) << 3) | (this.has(params.saved_id) << 11) | (this.has(params.convert_stars) << 4) | (this.has(params.upgrade_stars) << 6) | (this.has(params.can_export_at) << 7) | (this.has(params.transfer_stars) << 8) | (this.has(params.can_transfer_at) << 13) | (this.has(params.can_resell_at) << 14) | (this.has(params.collection_id) << 15) | (this.has(params.prepaid_upgrade_hash) << 16); + this.int32(flags); + this.flag(this.predicate, params.from_id); + this.int(params.date); + this.predicate(params.gift); + this.flag(this.predicate, params.message); + this.flag(this.int, params.msg_id); + this.flag(this.long, params.saved_id); + this.flag(this.long, params.convert_stars); + this.flag(this.long, params.upgrade_stars); + this.flag(this.int, params.can_export_at); + this.flag(this.long, params.transfer_stars); + this.flag(this.int, params.can_transfer_at); + this.flag(this.int, params.can_resell_at); + this.flagVector(this.int, params.collection_id); + this.flag(this.string, params.prepaid_upgrade_hash); + }, + 'payments.savedStarGifts': function(params) { + this.int32(-1779201615); + const flags = (this.has(params.chat_notifications_enabled) << 1) | (this.has(params.next_offset) << 0); + this.int32(flags); + this.int(params.count); + this.flag(this.Bool, params.chat_notifications_enabled); + this.vector(this.predicate, params.gifts); + this.flag(this.string, params.next_offset); + this.vector(this.predicate, params.chats); + this.vector(this.predicate, params.users); }, - 'account.getWallPapers': function(params) { - this.int32(127302966); - this.long(params.hash); + 'inputSavedStarGiftUser': function(params) { + this.int32(1764202389); + this.int(params.msg_id); }, - 'account.reportPeer': function(params) { - this.int32(-977650298); + 'inputSavedStarGiftChat': function(params) { + this.int32(-251549057); this.predicate(params.peer); - this.predicate(params.reason); - this.string(params.message); + this.long(params.saved_id); }, - 'users.getUsers': function(params) { - this.int32(227648840); - this.vector(this.predicate, params.id); + 'payments.starGiftWithdrawalUrl': function(params) { + this.int32(-2069218660); + this.string(params.url); }, - 'users.getFullUser': function(params) { - this.int32(-1240508136); - this.predicate(params.id); + 'paidReactionPrivacyDefault': function(params) { + this.int32(543872158); }, - 'contacts.getContactIDs': function(params) { - this.int32(2061264541); - this.long(params.hash); + 'paidReactionPrivacyAnonymous': function(params) { + this.int32(520887001); }, - 'contacts.getStatuses': function(params) { - this.int32(-995929106); + 'paidReactionPrivacyPeer': function(params) { + this.int32(-596837136); + this.predicate(params.peer); }, - 'contacts.getContacts': function(params) { - this.int32(1574346258); - this.long(params.hash); + 'inputPrivacyKeyNoPaidMessages': function(params) { + this.int32(-1111124044); }, - 'contacts.importContacts': function(params) { - this.int32(746589157); - this.vector(this.predicate, params.contacts); + 'privacyKeyNoPaidMessages': function(params) { + this.int32(399722706); + }, + 'account.paidMessagesRevenue': function(params) { + this.int32(504403720); + this.long(params.stars_amount); + }, + 'requirementToContactEmpty': function(params) { + this.int32(84580409); + }, + 'requirementToContactPremium': function(params) { + this.int32(-444472087); + }, + 'requirementToContactPaidMessages': function(params) { + this.int32(-1258914157); + this.long(params.stars_amount); + }, + 'inputInvoicePremiumGiftStars': function(params) { + this.int32(-625298705); + const flags = (this.has(params.message) << 0); + this.int32(flags); + this.predicate(params.user_id); + this.int(params.months); + this.flag(this.predicate, params.message); + }, + 'auth.sentCodePaymentRequired': function(params) { + this.int32(-677184263); + this.string(params.store_product); + this.string(params.phone_code_hash); + this.string(params.support_email_address); + this.string(params.support_email_subject); + }, + 'inputStorePaymentAuthCode': function(params) { + this.int32(-1682807955); + const flags = (this.has(params.restore) << 0); + this.int32(flags); + this.string(params.phone_number); + this.string(params.phone_code_hash); + this.string(params.currency); + this.long(params.amount); + }, + 'updateSentPhoneCode': function(params) { + this.int32(1347068303); + this.predicate(params.sent_code); + }, + 'businessBotRights': function(params) { + this.int32(-1604170505); + const flags = (this.has(params.reply) << 0) | (this.has(params.read_messages) << 1) | (this.has(params.delete_sent_messages) << 2) | (this.has(params.delete_received_messages) << 3) | (this.has(params.edit_name) << 4) | (this.has(params.edit_bio) << 5) | (this.has(params.edit_profile_photo) << 6) | (this.has(params.edit_username) << 7) | (this.has(params.view_gifts) << 8) | (this.has(params.sell_gifts) << 9) | (this.has(params.change_gift_settings) << 10) | (this.has(params.transfer_and_upgrade_gifts) << 11) | (this.has(params.transfer_stars) << 12) | (this.has(params.manage_stories) << 13); + this.int32(flags); + }, + 'messageActionPaidMessagesRefunded': function(params) { + this.int32(-1407246387); + this.int(params.count); + this.long(params.stars); + }, + 'messageActionPaidMessagesPrice': function(params) { + this.int32(-2068281992); + const flags = (this.has(params.broadcast_messages_allowed) << 0); + this.int32(flags); + this.long(params.stars); + }, + 'disallowedGiftsSettings': function(params) { + this.int32(1911715524); + const flags = (this.has(params.disallow_unlimited_stargifts) << 0) | (this.has(params.disallow_limited_stargifts) << 1) | (this.has(params.disallow_unique_stargifts) << 2) | (this.has(params.disallow_premium_gifts) << 3); + this.int32(flags); + }, + 'sponsoredPeer': function(params) { + this.int32(-963180333); + const flags = (this.has(params.sponsor_info) << 0) | (this.has(params.additional_info) << 1); + this.int32(flags); + this.bytes(params.random_id); + this.predicate(params.peer); + this.flag(this.string, params.sponsor_info); + this.flag(this.string, params.additional_info); + }, + 'contacts.sponsoredPeersEmpty': function(params) { + this.int32(-365775695); + }, + 'contacts.sponsoredPeers': function(params) { + this.int32(-352114556); + this.vector(this.predicate, params.peers); + this.vector(this.predicate, params.chats); + this.vector(this.predicate, params.users); + }, + 'inputInvoiceBusinessBotTransferStars': function(params) { + this.int32(-191267262); + this.predicate(params.bot); + this.long(params.stars); + }, + 'inputGroupCallSlug': function(params) { + this.int32(-33127873); + this.string(params.slug); + }, + 'inputGroupCallInviteMessage': function(params) { + this.int32(-1945083841); + this.int(params.msg_id); + }, + 'updateGroupCallChainBlocks': function(params) { + this.int32(-1535694705); + this.predicate(params.call); + this.int(params.sub_chain_id); + this.vector(this.bytes, params.blocks); + this.int(params.next_offset); + }, + 'messageActionConferenceCall': function(params) { + this.int32(805187450); + const flags = (this.has(params.missed) << 0) | (this.has(params.active) << 1) | (this.has(params.video) << 4) | (this.has(params.duration) << 2) | (this.has(params.other_participants) << 3); + this.int32(flags); + this.long(params.call_id); + this.flag(this.int, params.duration); + this.flagVector(this.predicate, params.other_participants); + }, + 'phoneCallDiscardReasonMigrateConferenceCall': function(params) { + this.int32(-1615072777); + this.string(params.slug); + }, + 'inputSavedStarGiftSlug': function(params) { + this.int32(545636920); + this.string(params.slug); + }, + 'starGiftAttributeIdModel': function(params) { + this.int32(1219145276); + this.long(params.document_id); + }, + 'starGiftAttributeIdPattern': function(params) { + this.int32(1242965043); + this.long(params.document_id); + }, + 'starGiftAttributeIdBackdrop': function(params) { + this.int32(520210263); + this.int(params.backdrop_id); + }, + 'starGiftAttributeCounter': function(params) { + this.int32(783398488); + this.predicate(params.attribute); + this.int(params.count); + }, + 'payments.resaleStarGifts': function(params) { + this.int32(-1803939105); + const flags = (this.has(params.next_offset) << 0) | (this.has(params.attributes) << 1) | (this.has(params.attributes_hash) << 1) | (this.has(params.counters) << 2); + this.int32(flags); + this.int(params.count); + this.vector(this.predicate, params.gifts); + this.flag(this.string, params.next_offset); + this.flagVector(this.predicate, params.attributes); + this.flag(this.long, params.attributes_hash); + this.vector(this.predicate, params.chats); + this.flagVector(this.predicate, params.counters); + this.vector(this.predicate, params.users); + }, + 'inputInvoiceStarGiftResale': function(params) { + this.int32(-1012968668); + const flags = (this.has(params.ton) << 0); + this.int32(flags); + this.string(params.slug); + this.predicate(params.to_id); + }, + 'channelAdminLogEventActionToggleAutotranslation': function(params) { + this.int32(-988285058); + this.Bool(params.new_value); + }, + 'stories.canSendStoryCount': function(params) { + this.int32(-1014513586); + this.int(params.count_remains); + }, + 'pendingSuggestion': function(params) { + this.int32(-404214254); + this.string(params.suggestion); + this.predicate(params.title); + this.predicate(params.description); + this.string(params.url); + }, + 'inputReplyToMonoForum': function(params) { + this.int32(1775660101); + this.predicate(params.monoforum_peer_id); + }, + 'monoForumDialog': function(params) { + this.int32(1681948327); + const flags = (this.has(params.unread_mark) << 3) | (this.has(params.nopaid_messages_exception) << 4) | (this.has(params.draft) << 1); + this.int32(flags); + this.predicate(params.peer); + this.int(params.top_message); + this.int(params.read_inbox_max_id); + this.int(params.read_outbox_max_id); + this.int(params.unread_count); + this.int(params.unread_reactions_count); + this.flag(this.predicate, params.draft); + }, + 'updateReadMonoForumInbox': function(params) { + this.int32(2008081266); + this.long(params.channel_id); + this.predicate(params.saved_peer_id); + this.int(params.read_max_id); + }, + 'updateReadMonoForumOutbox': function(params) { + this.int32(-1532521610); + this.long(params.channel_id); + this.predicate(params.saved_peer_id); + this.int(params.read_max_id); + }, + 'todoItem': function(params) { + this.int32(-878074577); + this.int(params.id); + this.predicate(params.title); + }, + 'todoList': function(params) { + this.int32(1236871718); + const flags = (this.has(params.others_can_append) << 0) | (this.has(params.others_can_complete) << 1); + this.int32(flags); + this.predicate(params.title); + this.vector(this.predicate, params.list); + }, + 'todoCompletion': function(params) { + this.int32(1287725239); + this.int(params.id); + this.long(params.completed_by); + this.int(params.date); + }, + 'inputMediaTodo': function(params) { + this.int32(-1614454818); + this.predicate(params.todo); + }, + 'messageMediaToDo': function(params) { + this.int32(-1974226924); + const flags = (this.has(params.completions) << 0); + this.int32(flags); + this.predicate(params.todo); + this.flagVector(this.predicate, params.completions); + }, + 'messageActionTodoCompletions': function(params) { + this.int32(-864265079); + this.vector(this.int, params.completed); + this.vector(this.int, params.incompleted); + }, + 'messageActionTodoAppendTasks': function(params) { + this.int32(-940721021); + this.vector(this.predicate, params.list); + }, + 'updateMonoForumNoPaidException': function(params) { + this.int32(-1618924792); + const flags = (this.has(params.exception) << 0); + this.int32(flags); + this.long(params.channel_id); + this.predicate(params.saved_peer_id); + }, + 'suggestedPost': function(params) { + this.int32(244201445); + const flags = (this.has(params.accepted) << 1) | (this.has(params.rejected) << 2) | (this.has(params.price) << 3) | (this.has(params.schedule_date) << 0); + this.int32(flags); + this.flag(this.predicate, params.price); + this.flag(this.int, params.schedule_date); + }, + 'messageActionSuggestedPostApproval': function(params) { + this.int32(-293988970); + const flags = (this.has(params.rejected) << 0) | (this.has(params.balance_too_low) << 1) | (this.has(params.reject_comment) << 2) | (this.has(params.schedule_date) << 3) | (this.has(params.price) << 4); + this.int32(flags); + this.flag(this.string, params.reject_comment); + this.flag(this.int, params.schedule_date); + this.flag(this.predicate, params.price); + }, + 'messageActionSuggestedPostSuccess': function(params) { + this.int32(-1780625559); + this.predicate(params.price); + }, + 'messageActionSuggestedPostRefund': function(params) { + this.int32(1777932024); + const flags = (this.has(params.payer_initiated) << 0); + this.int32(flags); + }, + 'starsTonAmount': function(params) { + this.int32(1957618656); + this.long(params.amount); + }, + 'messageActionGiftTon': function(params) { + this.int32(-1465661799); + const flags = (this.has(params.transaction_id) << 0); + this.int32(flags); + this.string(params.currency); + this.long(params.amount); + this.string(params.crypto_currency); + this.long(params.crypto_amount); + this.flag(this.string, params.transaction_id); + }, + 'inputStickerSetTonGifts': function(params) { + this.int32(485912992); + }, + 'starsRating': function(params) { + this.int32(453922567); + const flags = (this.has(params.next_level_stars) << 0); + this.int32(flags); + this.int(params.level); + this.long(params.current_level_stars); + this.long(params.stars); + this.flag(this.long, params.next_level_stars); + }, + 'starGiftCollection': function(params) { + this.int32(-1653926992); + const flags = (this.has(params.icon) << 0); + this.int32(flags); + this.int(params.collection_id); + this.string(params.title); + this.flag(this.predicate, params.icon); + this.int(params.gifts_count); + this.long(params.hash); + }, + 'payments.starGiftCollectionsNotModified': function(params) { + this.int32(-1598402793); + }, + 'payments.starGiftCollections': function(params) { + this.int32(-1977011469); + this.vector(this.predicate, params.collections); + }, + 'storyAlbum': function(params) { + this.int32(-1826262950); + const flags = (this.has(params.icon_photo) << 0) | (this.has(params.icon_video) << 1); + this.int32(flags); + this.int(params.album_id); + this.string(params.title); + this.flag(this.predicate, params.icon_photo); + this.flag(this.predicate, params.icon_video); + }, + 'stories.albumsNotModified': function(params) { + this.int32(1448008427); + }, + 'stories.albums': function(params) { + this.int32(-1013417414); + this.long(params.hash); + this.vector(this.predicate, params.albums); + }, + 'searchPostsFlood': function(params) { + this.int32(1040931690); + const flags = (this.has(params.query_is_free) << 0) | (this.has(params.wait_till) << 1); + this.int32(flags); + this.int(params.total_daily); + this.int(params.remains); + this.flag(this.int, params.wait_till); + this.long(params.stars_amount); + }, + 'webPageAttributeStarGiftCollection': function(params) { + this.int32(835375875); + this.vector(this.predicate, params.icons); + }, + 'inputInvoiceStarGiftPrepaidUpgrade': function(params) { + this.int32(-1710536520); + this.predicate(params.peer); + this.string(params.hash); + }, + 'payments.uniqueStarGiftValueInfo': function(params) { + this.int32(1362093126); + const flags = (this.has(params.last_sale_on_fragment) << 1) | (this.has(params.value_is_average) << 6) | (this.has(params.last_sale_date) << 0) | (this.has(params.last_sale_price) << 0) | (this.has(params.floor_price) << 2) | (this.has(params.average_price) << 3) | (this.has(params.listed_count) << 4) | (this.has(params.fragment_listed_count) << 5) | (this.has(params.fragment_listed_url) << 5); + this.int32(flags); + this.string(params.currency); + this.long(params.value); + this.int(params.initial_sale_date); + this.long(params.initial_sale_stars); + this.long(params.initial_sale_price); + this.flag(this.int, params.last_sale_date); + this.flag(this.long, params.last_sale_price); + this.flag(this.long, params.floor_price); + this.flag(this.long, params.average_price); + this.flag(this.int, params.listed_count); + this.flag(this.int, params.fragment_listed_count); + this.flag(this.string, params.fragment_listed_url); + }, + 'profileTabPosts': function(params) { + this.int32(-1181952362); + }, + 'profileTabGifts': function(params) { + this.int32(1296815210); + }, + 'profileTabMedia': function(params) { + this.int32(1925597525); + }, + 'profileTabFiles': function(params) { + this.int32(-1422681088); + }, + 'profileTabMusic': function(params) { + this.int32(-1624780178); + }, + 'profileTabVoice': function(params) { + this.int32(-461960914); + }, + 'profileTabLinks': function(params) { + this.int32(-748329831); + }, + 'profileTabGifs': function(params) { + this.int32(-1564412267); + }, + 'users.savedMusicNotModified': function(params) { + this.int32(-477656412); + this.int(params.count); + }, + 'users.savedMusic': function(params) { + this.int32(883094167); + this.int(params.count); + this.vector(this.predicate, params.documents); + }, + 'account.savedMusicIdsNotModified': function(params) { + this.int32(1338514798); + }, + 'account.savedMusicIds': function(params) { + this.int32(-1718786506); + this.vector(this.long, params.ids); + }, + 'payments.checkCanSendGiftResultOk': function(params) { + this.int32(927967149); + }, + 'payments.checkCanSendGiftResultFail': function(params) { + this.int32(-706379148); + this.predicate(params.reason); + }, + 'chatThemeUniqueGift': function(params) { + this.int32(878246344); + this.predicate(params.gift); + this.vector(this.predicate, params.theme_settings); + }, + 'inputChatThemeEmpty': function(params) { + this.int32(-2094627709); + }, + 'inputChatTheme': function(params) { + this.int32(-918689444); + this.string(params.emoticon); + }, + 'inputChatThemeUniqueGift': function(params) { + this.int32(-2014978076); + this.string(params.slug); + }, + 'invokeAfterMsg': function(params) { + this.int32(-878758099); + this.long(params.msg_id); + this.predicate(params.query); + }, + 'invokeAfterMsgs': function(params) { + this.int32(1036301552); + this.vector(this.long, params.msg_ids); + this.predicate(params.query); + }, + 'auth.sendCode': function(params) { + this.int32(-1502141361); + this.string(params.phone_number); + this.int(params.api_id); + this.string(params.api_hash); + this.predicate(params.settings); + }, + 'auth.signUp': function(params) { + this.int32(-1429752041); + const flags = (this.has(params.no_joined_notifications) << 0); + this.int32(flags); + this.string(params.phone_number); + this.string(params.phone_code_hash); + this.string(params.first_name); + this.string(params.last_name); + }, + 'auth.signIn': function(params) { + this.int32(-1923962543); + const flags = (this.has(params.phone_code) << 0) | (this.has(params.email_verification) << 1); + this.int32(flags); + this.string(params.phone_number); + this.string(params.phone_code_hash); + this.flag(this.string, params.phone_code); + this.flag(this.predicate, params.email_verification); + }, + 'auth.logOut': function(params) { + this.int32(1047706137); + }, + 'auth.resetAuthorizations': function(params) { + this.int32(-1616179942); + }, + 'auth.exportAuthorization': function(params) { + this.int32(-440401971); + this.int(params.dc_id); + }, + 'auth.importAuthorization': function(params) { + this.int32(-1518699091); + this.long(params.id); + this.bytes(params.bytes); + }, + 'auth.bindTempAuthKey': function(params) { + this.int32(-841733627); + this.long(params.perm_auth_key_id); + this.long(params.nonce); + this.int(params.expires_at); + this.bytes(params.encrypted_message); + }, + 'account.registerDevice': function(params) { + this.int32(-326762118); + const flags = (this.has(params.no_muted) << 0); + this.int32(flags); + this.int(params.token_type); + this.string(params.token); + this.Bool(params.app_sandbox); + this.bytes(params.secret); + this.vector(this.long, params.other_uids); + }, + 'account.unregisterDevice': function(params) { + this.int32(1779249670); + this.int(params.token_type); + this.string(params.token); + this.vector(this.long, params.other_uids); + }, + 'account.updateNotifySettings': function(params) { + this.int32(-2067899501); + this.predicate(params.peer); + this.predicate(params.settings); + }, + 'account.getNotifySettings': function(params) { + this.int32(313765169); + this.predicate(params.peer); + }, + 'account.resetNotifySettings': function(params) { + this.int32(-612493497); + }, + 'account.updateProfile': function(params) { + this.int32(2018596725); + const flags = (this.has(params.first_name) << 0) | (this.has(params.last_name) << 1) | (this.has(params.about) << 2); + this.int32(flags); + this.flag(this.string, params.first_name); + this.flag(this.string, params.last_name); + this.flag(this.string, params.about); + }, + 'account.updateStatus': function(params) { + this.int32(1713919532); + this.Bool(params.offline); + }, + 'account.getWallPapers': function(params) { + this.int32(127302966); + this.long(params.hash); + }, + 'account.reportPeer': function(params) { + this.int32(-977650298); + this.predicate(params.peer); + this.predicate(params.reason); + this.string(params.message); + }, + 'users.getUsers': function(params) { + this.int32(227648840); + this.vector(this.predicate, params.id); + }, + 'users.getFullUser': function(params) { + this.int32(-1240508136); + this.predicate(params.id); + }, + 'contacts.getContactIDs': function(params) { + this.int32(2061264541); + this.long(params.hash); + }, + 'contacts.getStatuses': function(params) { + this.int32(-995929106); + }, + 'contacts.getContacts': function(params) { + this.int32(1574346258); + this.long(params.hash); + }, + 'contacts.importContacts': function(params) { + this.int32(746589157); + this.vector(this.predicate, params.contacts); }, 'contacts.deleteContacts': function(params) { this.int32(157945344); @@ -10933,8 +11734,8 @@ export const builderMap: BuilderMap = { this.predicate(params.action); }, 'messages.sendMessage': function(params) { - this.int32(-1740662971); - const flags = (this.has(params.no_webpage) << 1) | (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.clear_draft) << 7) | (this.has(params.noforwards) << 14) | (this.has(params.update_stickersets_order) << 15) | (this.has(params.invert_media) << 16) | (this.has(params.allow_paid_floodskip) << 19) | (this.has(params.reply_to) << 0) | (this.has(params.reply_markup) << 2) | (this.has(params.entities) << 3) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17) | (this.has(params.effect) << 18); + this.int32(-33170278); + const flags = (this.has(params.no_webpage) << 1) | (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.clear_draft) << 7) | (this.has(params.noforwards) << 14) | (this.has(params.update_stickersets_order) << 15) | (this.has(params.invert_media) << 16) | (this.has(params.allow_paid_floodskip) << 19) | (this.has(params.reply_to) << 0) | (this.has(params.reply_markup) << 2) | (this.has(params.entities) << 3) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17) | (this.has(params.effect) << 18) | (this.has(params.allow_paid_stars) << 21) | (this.has(params.suggested_post) << 22); this.int32(flags); this.predicate(params.peer); this.flag(this.predicate, params.reply_to); @@ -10946,10 +11747,12 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.send_as); this.flag(this.predicate, params.quick_reply_shortcut); this.flag(this.long, params.effect); + this.flag(this.long, params.allow_paid_stars); + this.flag(this.predicate, params.suggested_post); }, 'messages.sendMedia': function(params) { - this.int32(2018673486); - const flags = (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.clear_draft) << 7) | (this.has(params.noforwards) << 14) | (this.has(params.update_stickersets_order) << 15) | (this.has(params.invert_media) << 16) | (this.has(params.allow_paid_floodskip) << 19) | (this.has(params.reply_to) << 0) | (this.has(params.reply_markup) << 2) | (this.has(params.entities) << 3) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17) | (this.has(params.effect) << 18); + this.int32(-1403659839); + const flags = (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.clear_draft) << 7) | (this.has(params.noforwards) << 14) | (this.has(params.update_stickersets_order) << 15) | (this.has(params.invert_media) << 16) | (this.has(params.allow_paid_floodskip) << 19) | (this.has(params.reply_to) << 0) | (this.has(params.reply_markup) << 2) | (this.has(params.entities) << 3) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17) | (this.has(params.effect) << 18) | (this.has(params.allow_paid_stars) << 21) | (this.has(params.suggested_post) << 22); this.int32(flags); this.predicate(params.peer); this.flag(this.predicate, params.reply_to); @@ -10962,19 +11765,25 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.send_as); this.flag(this.predicate, params.quick_reply_shortcut); this.flag(this.long, params.effect); + this.flag(this.long, params.allow_paid_stars); + this.flag(this.predicate, params.suggested_post); }, 'messages.forwardMessages': function(params) { - this.int32(-721186296); - const flags = (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.with_my_score) << 8) | (this.has(params.drop_author) << 11) | (this.has(params.drop_media_captions) << 12) | (this.has(params.noforwards) << 14) | (this.has(params.allow_paid_floodskip) << 19) | (this.has(params.top_msg_id) << 9) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17); + this.int32(-1752618806); + const flags = (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.with_my_score) << 8) | (this.has(params.drop_author) << 11) | (this.has(params.drop_media_captions) << 12) | (this.has(params.noforwards) << 14) | (this.has(params.allow_paid_floodskip) << 19) | (this.has(params.top_msg_id) << 9) | (this.has(params.reply_to) << 22) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17) | (this.has(params.video_timestamp) << 20) | (this.has(params.allow_paid_stars) << 21) | (this.has(params.suggested_post) << 23); this.int32(flags); this.predicate(params.from_peer); this.vector(this.int, params.id); this.vector(this.long, params.random_id); this.predicate(params.to_peer); this.flag(this.int, params.top_msg_id); + this.flag(this.predicate, params.reply_to); this.flag(this.int, params.schedule_date); this.flag(this.predicate, params.send_as); this.flag(this.predicate, params.quick_reply_shortcut); + this.flag(this.int, params.video_timestamp); + this.flag(this.long, params.allow_paid_stars); + this.flag(this.predicate, params.suggested_post); }, 'messages.reportSpam': function(params) { this.int32(-820669733); @@ -11272,7 +12081,7 @@ export const builderMap: BuilderMap = { this.string(params.bot_auth_token); }, 'messages.getWebPagePreview': function(params) { - this.int32(-1956073268); + this.int32(1460498287); const flags = (this.has(params.entities) << 3); this.int32(flags); this.string(params.message); @@ -11532,8 +12341,8 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.switch_webview); }, 'messages.sendInlineBotResult': function(params) { - this.int32(1052698730); - const flags = (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.clear_draft) << 7) | (this.has(params.hide_via) << 11) | (this.has(params.reply_to) << 0) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17); + this.int32(-1060145594); + const flags = (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.clear_draft) << 7) | (this.has(params.hide_via) << 11) | (this.has(params.reply_to) << 0) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17) | (this.has(params.allow_paid_stars) << 21); this.int32(flags); this.predicate(params.peer); this.flag(this.predicate, params.reply_to); @@ -11543,6 +12352,7 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.schedule_date); this.flag(this.predicate, params.send_as); this.flag(this.predicate, params.quick_reply_shortcut); + this.flag(this.long, params.allow_paid_stars); }, 'channels.exportMessageLink': function(params) { this.int32(-432034325); @@ -11634,8 +12444,8 @@ export const builderMap: BuilderMap = { this.vector(this.predicate, params.peers); }, 'messages.saveDraft': function(params) { - this.int32(-747452978); - const flags = (this.has(params.no_webpage) << 1) | (this.has(params.invert_media) << 6) | (this.has(params.reply_to) << 4) | (this.has(params.entities) << 3) | (this.has(params.media) << 5) | (this.has(params.effect) << 7); + this.int32(1420701838); + const flags = (this.has(params.no_webpage) << 1) | (this.has(params.invert_media) << 6) | (this.has(params.reply_to) << 4) | (this.has(params.entities) << 3) | (this.has(params.media) << 5) | (this.has(params.effect) << 7) | (this.has(params.suggested_post) << 8); this.int32(flags); this.flag(this.predicate, params.reply_to); this.predicate(params.peer); @@ -11643,6 +12453,7 @@ export const builderMap: BuilderMap = { this.flagVector(this.predicate, params.entities); this.flag(this.predicate, params.media); this.flag(this.long, params.effect); + this.flag(this.predicate, params.suggested_post); }, 'messages.getAllDrafts': function(params) { this.int32(1782549861); @@ -12054,8 +12865,8 @@ export const builderMap: BuilderMap = { this.long(params.hash); }, 'messages.sendMultiMedia': function(params) { - this.int32(934757205); - const flags = (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.clear_draft) << 7) | (this.has(params.noforwards) << 14) | (this.has(params.update_stickersets_order) << 15) | (this.has(params.invert_media) << 16) | (this.has(params.allow_paid_floodskip) << 19) | (this.has(params.reply_to) << 0) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17) | (this.has(params.effect) << 18); + this.int32(469278068); + const flags = (this.has(params.silent) << 5) | (this.has(params.background) << 6) | (this.has(params.clear_draft) << 7) | (this.has(params.noforwards) << 14) | (this.has(params.update_stickersets_order) << 15) | (this.has(params.invert_media) << 16) | (this.has(params.allow_paid_floodskip) << 19) | (this.has(params.reply_to) << 0) | (this.has(params.schedule_date) << 10) | (this.has(params.send_as) << 13) | (this.has(params.quick_reply_shortcut) << 17) | (this.has(params.effect) << 18) | (this.has(params.allow_paid_stars) << 21); this.int32(flags); this.predicate(params.peer); this.flag(this.predicate, params.reply_to); @@ -12064,6 +12875,7 @@ export const builderMap: BuilderMap = { this.flag(this.predicate, params.send_as); this.flag(this.predicate, params.quick_reply_shortcut); this.flag(this.long, params.effect); + this.flag(this.long, params.allow_paid_stars); }, 'messages.uploadEncryptedFile': function(params) { this.int32(1347929239); @@ -12191,13 +13003,17 @@ export const builderMap: BuilderMap = { this.predicate(params.query); }, 'messages.markDialogUnread': function(params) { - this.int32(-1031349873); - const flags = (this.has(params.unread) << 0); + this.int32(-1940912392); + const flags = (this.has(params.unread) << 0) | (this.has(params.parent_peer) << 1); this.int32(flags); + this.flag(this.predicate, params.parent_peer); this.predicate(params.peer); }, 'messages.getDialogUnreadMarks': function(params) { - this.int32(585256482); + this.int32(555754018); + const flags = (this.has(params.parent_peer) << 0); + this.int32(flags); + this.flag(this.predicate, params.parent_peer); }, 'contacts.toggleTopPeers': function(params) { this.int32(-2062238246); @@ -12673,11 +13489,12 @@ export const builderMap: BuilderMap = { this.int(params.msg_id); }, 'messages.unpinAllMessages': function(params) { - this.int32(-299714136); - const flags = (this.has(params.top_msg_id) << 0); + this.int32(103667527); + const flags = (this.has(params.top_msg_id) << 0) | (this.has(params.saved_peer_id) << 1); this.int32(flags); this.predicate(params.peer); this.flag(this.int, params.top_msg_id); + this.flag(this.predicate, params.saved_peer_id); }, 'phone.createGroupCall': function(params) { this.int32(1221445336); @@ -12689,12 +13506,14 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.schedule_date); }, 'phone.joinGroupCall': function(params) { - this.int32(-1322057861); - const flags = (this.has(params.muted) << 0) | (this.has(params.video_stopped) << 2) | (this.has(params.invite_hash) << 1); + this.int32(-1883951017); + const flags = (this.has(params.muted) << 0) | (this.has(params.video_stopped) << 2) | (this.has(params.invite_hash) << 1) | (this.has(params.public_key) << 3) | (this.has(params.block) << 3); this.int32(flags); this.predicate(params.call); this.predicate(params.join_as); this.flag(this.string, params.invite_hash); + this.flag(this.int256, params.public_key); + this.flag(this.bytes, params.block); this.predicate(params.params); }, 'phone.leaveGroupCall': function(params) { @@ -12930,9 +13749,9 @@ export const builderMap: BuilderMap = { this.long(params.hash); }, 'messages.setChatTheme': function(params) { - this.int32(-432283329); + this.int32(135398089); this.predicate(params.peer); - this.string(params.emoticon); + this.predicate(params.theme); }, 'messages.getMessageReadParticipants': function(params) { this.int32(834782287); @@ -12984,7 +13803,9 @@ export const builderMap: BuilderMap = { this.predicate(params.send_as); }, 'channels.getSendAs': function(params) { - this.int32(231174382); + this.int32(-410672065); + const flags = (this.has(params.for_paid_reactions) << 0); + this.int32(flags); this.predicate(params.peer); }, 'account.setAuthorizationTTL': function(params) { @@ -13054,11 +13875,12 @@ export const builderMap: BuilderMap = { this.string(params.to_lang); }, 'messages.getUnreadReactions': function(params) { - this.int32(841173339); - const flags = (this.has(params.top_msg_id) << 0); + this.int32(-1115713364); + const flags = (this.has(params.top_msg_id) << 0) | (this.has(params.saved_peer_id) << 1); this.int32(flags); this.predicate(params.peer); this.flag(this.int, params.top_msg_id); + this.flag(this.predicate, params.saved_peer_id); this.int(params.offset_id); this.int(params.add_offset); this.int(params.limit); @@ -13066,11 +13888,12 @@ export const builderMap: BuilderMap = { this.int(params.min_id); }, 'messages.readReactions': function(params) { - this.int32(1420459918); - const flags = (this.has(params.top_msg_id) << 0); + this.int32(-1631301741); + const flags = (this.has(params.top_msg_id) << 0) | (this.has(params.saved_peer_id) << 1); this.int32(flags); this.predicate(params.peer); this.flag(this.int, params.top_msg_id); + this.flag(this.predicate, params.saved_peer_id); }, 'contacts.resolvePhone': function(params) { this.int32(-1963375804); @@ -13224,10 +14047,6 @@ export const builderMap: BuilderMap = { this.predicate(params.receipt); this.predicate(params.purpose); }, - 'payments.canPurchasePremium': function(params) { - this.int32(-1614700874); - this.predicate(params.purpose); - }, 'help.getPremiumPromo': function(params) { this.int32(-1206152236); }, @@ -13313,9 +14132,10 @@ export const builderMap: BuilderMap = { this.predicate(params.channel); }, 'channels.toggleForum': function(params) { - this.int32(-1540781271); + this.int32(1073174324); this.predicate(params.channel); this.Bool(params.enabled); + this.Bool(params.tabs); }, 'channels.createForumTopic': function(params) { this.int32(-200539612); @@ -13612,12 +14432,12 @@ export const builderMap: BuilderMap = { this.vector(this.long, params.id); }, 'stories.canSendStory': function(params) { - this.int32(-941629475); + this.int32(820732912); this.predicate(params.peer); }, 'stories.sendStory': function(params) { - this.int32(-454661813); - const flags = (this.has(params.pinned) << 2) | (this.has(params.noforwards) << 4) | (this.has(params.fwd_modified) << 7) | (this.has(params.media_areas) << 5) | (this.has(params.caption) << 0) | (this.has(params.entities) << 1) | (this.has(params.period) << 3) | (this.has(params.fwd_from_id) << 6) | (this.has(params.fwd_from_story) << 6); + this.int32(1937752812); + const flags = (this.has(params.pinned) << 2) | (this.has(params.noforwards) << 4) | (this.has(params.fwd_modified) << 7) | (this.has(params.media_areas) << 5) | (this.has(params.caption) << 0) | (this.has(params.entities) << 1) | (this.has(params.period) << 3) | (this.has(params.fwd_from_id) << 6) | (this.has(params.fwd_from_story) << 6) | (this.has(params.albums) << 8); this.int32(flags); this.predicate(params.peer); this.predicate(params.media); @@ -13629,6 +14449,7 @@ export const builderMap: BuilderMap = { this.flag(this.int, params.period); this.flag(this.predicate, params.fwd_from_id); this.flag(this.int, params.fwd_from_story); + this.flagVector(this.int, params.albums); }, 'stories.editStory': function(params) { this.int32(-1249658298); @@ -13905,9 +14726,10 @@ export const builderMap: BuilderMap = { this.long(params.hash); }, 'messages.getSavedDialogs': function(params) { - this.int32(1401016858); - const flags = (this.has(params.exclude_pinned) << 0); + this.int32(512883865); + const flags = (this.has(params.exclude_pinned) << 0) | (this.has(params.parent_peer) << 1); this.int32(flags); + this.flag(this.predicate, params.parent_peer); this.int(params.offset_date); this.int(params.offset_id); this.predicate(params.offset_peer); @@ -13915,7 +14737,10 @@ export const builderMap: BuilderMap = { this.long(params.hash); }, 'messages.getSavedHistory': function(params) { - this.int32(1033519437); + this.int32(-1718964215); + const flags = (this.has(params.parent_peer) << 0); + this.int32(flags); + this.flag(this.predicate, params.parent_peer); this.predicate(params.peer); this.int(params.offset_id); this.int(params.offset_date); @@ -13926,9 +14751,10 @@ export const builderMap: BuilderMap = { this.long(params.hash); }, 'messages.deleteSavedHistory': function(params) { - this.int32(1855459371); - const flags = (this.has(params.min_date) << 2) | (this.has(params.max_date) << 3); + this.int32(1304758367); + const flags = (this.has(params.parent_peer) << 0) | (this.has(params.min_date) << 2) | (this.has(params.max_date) << 3); this.int32(flags); + this.flag(this.predicate, params.parent_peer); this.predicate(params.peer); this.int(params.max_id); this.flag(this.int, params.min_date); @@ -13972,10 +14798,6 @@ export const builderMap: BuilderMap = { this.predicate(params.peer); this.int(params.msg_id); }, - 'users.getIsPremiumRequiredToContact': function(params) { - this.int32(-1507677680); - this.vector(this.predicate, params.id); - }, 'channels.setBoostsToUnblockRestrictions': function(params) { this.int32(-1388733202); this.predicate(params.channel); @@ -14085,9 +14907,10 @@ export const builderMap: BuilderMap = { this.vector(this.int, params.id); }, 'account.updateConnectedBot': function(params) { - this.int32(1138250269); - const flags = (this.has(params.can_reply) << 0) | (this.has(params.deleted) << 1); + this.int32(1721797758); + const flags = (this.has(params.deleted) << 1) | (this.has(params.rights) << 0); this.int32(flags); + this.flag(this.predicate, params.rights); this.predicate(params.bot); this.predicate(params.recipients); }, @@ -14169,23 +14992,6 @@ export const builderMap: BuilderMap = { this.int32(-649919008); this.predicate(params.channel); }, - 'stats.getBroadcastRevenueStats': function(params) { - this.int32(-142021095); - const flags = (this.has(params.dark) << 0); - this.int32(flags); - this.predicate(params.peer); - }, - 'stats.getBroadcastRevenueWithdrawalUrl': function(params) { - this.int32(-1644889427); - this.predicate(params.peer); - this.predicate(params.password); - }, - 'stats.getBroadcastRevenueTransactions': function(params) { - this.int32(1889078125); - this.predicate(params.peer); - this.int(params.offset); - this.int(params.limit); - }, 'channels.restrictSponsoredMessages': function(params) { this.int32(-1696000743); this.predicate(params.channel); @@ -14234,12 +15040,16 @@ export const builderMap: BuilderMap = { this.int(params.hash); }, 'channels.searchPosts': function(params) { - this.int32(-778069893); - this.string(params.hashtag); + this.int32(-221973939); + const flags = (this.has(params.hashtag) << 0) | (this.has(params.query) << 1) | (this.has(params.allow_paid_stars) << 2); + this.int32(flags); + this.flag(this.string, params.hashtag); + this.flag(this.string, params.query); this.int(params.offset_rate); this.predicate(params.offset_peer); this.int(params.offset_id); this.int(params.limit); + this.flag(this.long, params.allow_paid_stars); }, 'messages.editFactCheck': function(params) { this.int32(92925557); @@ -14261,12 +15071,14 @@ export const builderMap: BuilderMap = { this.int32(-1072773165); }, 'payments.getStarsStatus': function(params) { - this.int32(273665959); + this.int32(1319744447); + const flags = (this.has(params.ton) << 0); + this.int32(flags); this.predicate(params.peer); }, 'payments.getStarsTransactions': function(params) { this.int32(1775912279); - const flags = (this.has(params.inbound) << 0) | (this.has(params.outbound) << 1) | (this.has(params.ascending) << 2) | (this.has(params.subscription_id) << 3); + const flags = (this.has(params.inbound) << 0) | (this.has(params.outbound) << 1) | (this.has(params.ascending) << 2) | (this.has(params.ton) << 4) | (this.has(params.subscription_id) << 3); this.int32(flags); this.flag(this.string, params.subscription_id); this.predicate(params.peer); @@ -14295,14 +15107,16 @@ export const builderMap: BuilderMap = { }, 'payments.getStarsRevenueStats': function(params) { this.int32(-652215594); - const flags = (this.has(params.dark) << 0); + const flags = (this.has(params.dark) << 0) | (this.has(params.ton) << 1); this.int32(flags); this.predicate(params.peer); }, 'payments.getStarsRevenueWithdrawalUrl': function(params) { - this.int32(331081907); + this.int32(607378578); + const flags = (this.has(params.ton) << 0) | (this.has(params.amount) << 1); + this.int32(flags); this.predicate(params.peer); - this.long(params.stars); + this.flag(this.long, params.amount); this.predicate(params.password); }, 'payments.getStarsRevenueAdsAccountUrl': function(params) { @@ -14310,7 +15124,9 @@ export const builderMap: BuilderMap = { this.predicate(params.peer); }, 'payments.getStarsTransactionsByID': function(params) { - this.int32(662973742); + this.int32(768218808); + const flags = (this.has(params.ton) << 0); + this.int32(flags); this.predicate(params.peer); this.vector(this.predicate, params.id); }, @@ -14390,20 +15206,20 @@ export const builderMap: BuilderMap = { this.string(params.subscription_id); }, 'messages.sendPaidReaction': function(params) { - this.int32(-1646877061); + this.int32(1488702288); const flags = (this.has(params.private) << 0); this.int32(flags); this.predicate(params.peer); this.int(params.msg_id); this.int(params.count); this.long(params.random_id); - this.flag(this.Bool, params.private); + this.flag(this.predicate, params.private); }, 'messages.togglePaidReactionPrivacy': function(params) { - this.int32(-2070228073); + this.int32(1129874869); this.predicate(params.peer); this.int(params.msg_id); - this.Bool(params.private); + this.predicate(params.private); }, 'payments.getStarsGiveawayOptions': function(params) { this.int32(-1122042562); @@ -14415,45 +15231,37 @@ export const builderMap: BuilderMap = { this.int32(-1000983152); this.int(params.hash); }, - 'payments.getUserStarGifts': function(params) { - this.int32(1584580577); - this.predicate(params.user_id); - this.string(params.offset); - this.int(params.limit); - }, 'payments.saveStarGift': function(params) { - this.int32(-2018709362); + this.int32(707422588); const flags = (this.has(params.unsave) << 0); this.int32(flags); - this.predicate(params.user_id); - this.int(params.msg_id); + this.predicate(params.stargift); }, 'payments.convertStarGift': function(params) { - this.int32(69328935); - this.predicate(params.user_id); - this.int(params.msg_id); + this.int32(1958676331); + this.predicate(params.stargift); }, 'messages.viewSponsoredMessage': function(params) { - this.int32(1731909873); - this.predicate(params.peer); + this.int32(647902787); this.bytes(params.random_id); }, 'messages.clickSponsoredMessage': function(params) { - this.int32(252261477); + this.int32(-2110454402); const flags = (this.has(params.media) << 0) | (this.has(params.fullscreen) << 1); this.int32(flags); - this.predicate(params.peer); this.bytes(params.random_id); }, 'messages.reportSponsoredMessage': function(params) { - this.int32(452189112); - this.predicate(params.peer); + this.int32(315355332); this.bytes(params.random_id); this.bytes(params.option); }, 'messages.getSponsoredMessages': function(params) { - this.int32(-1680673735); + this.int32(1030547536); + const flags = (this.has(params.msg_id) << 0); + this.int32(flags); this.predicate(params.peer); + this.flag(this.int, params.msg_id); }, 'messages.savePreparedInlineMessage': function(params) { this.int32(-232816849); @@ -14547,4 +15355,336 @@ export const builderMap: BuilderMap = { this.int(params.limit); this.long(params.hash); }, + 'phone.createConferenceCall': function(params) { + this.int32(2097431739); + const flags = (this.has(params.muted) << 0) | (this.has(params.video_stopped) << 2) | (this.has(params.join) << 3) | (this.has(params.public_key) << 3) | (this.has(params.block) << 3) | (this.has(params.params) << 3); + this.int32(flags); + this.int(params.random_id); + this.flag(this.int256, params.public_key); + this.flag(this.bytes, params.block); + this.flag(this.predicate, params.params); + }, + 'messages.reportMessagesDelivery': function(params) { + this.int32(1517122453); + const flags = (this.has(params.push) << 0); + this.int32(flags); + this.predicate(params.peer); + this.vector(this.int, params.id); + }, + 'bots.setCustomVerification': function(params) { + this.int32(-1953898563); + const flags = (this.has(params.enabled) << 1) | (this.has(params.bot) << 0) | (this.has(params.custom_description) << 2); + this.int32(flags); + this.flag(this.predicate, params.bot); + this.predicate(params.peer); + this.flag(this.string, params.custom_description); + }, + 'payments.getStarGiftUpgradePreview': function(params) { + this.int32(-1667580751); + this.long(params.gift_id); + }, + 'payments.upgradeStarGift': function(params) { + this.int32(-1361648395); + const flags = (this.has(params.keep_original_details) << 0); + this.int32(flags); + this.predicate(params.stargift); + }, + 'payments.transferStarGift': function(params) { + this.int32(2132285290); + this.predicate(params.stargift); + this.predicate(params.to_id); + }, + 'bots.getBotRecommendations': function(params) { + this.int32(-1581840363); + this.predicate(params.bot); + }, + 'payments.getUniqueStarGift': function(params) { + this.int32(-1583919758); + this.string(params.slug); + }, + 'account.getCollectibleEmojiStatuses': function(params) { + this.int32(779830595); + this.long(params.hash); + }, + 'payments.getSavedStarGifts': function(params) { + this.int32(-1558583959); + const flags = (this.has(params.exclude_unsaved) << 0) | (this.has(params.exclude_saved) << 1) | (this.has(params.exclude_unlimited) << 2) | (this.has(params.exclude_unique) << 4) | (this.has(params.sort_by_value) << 5) | (this.has(params.exclude_upgradable) << 7) | (this.has(params.exclude_unupgradable) << 8) | (this.has(params.collection_id) << 6); + this.int32(flags); + this.predicate(params.peer); + this.flag(this.int, params.collection_id); + this.string(params.offset); + this.int(params.limit); + }, + 'payments.getSavedStarGift': function(params) { + this.int32(-1269456634); + this.vector(this.predicate, params.stargift); + }, + 'payments.getStarGiftWithdrawalUrl': function(params) { + this.int32(-798059608); + this.predicate(params.stargift); + this.predicate(params.password); + }, + 'payments.toggleChatStarGiftNotifications': function(params) { + this.int32(1626009505); + const flags = (this.has(params.enabled) << 0); + this.int32(flags); + this.predicate(params.peer); + }, + 'invokeWithReCaptcha': function(params) { + this.int32(-1380249708); + this.string(params.token); + this.predicate(params.query); + }, + 'account.getPaidMessagesRevenue': function(params) { + this.int32(431639143); + const flags = (this.has(params.parent_peer) << 0); + this.int32(flags); + this.flag(this.predicate, params.parent_peer); + this.predicate(params.user_id); + }, + 'channels.updatePaidMessagesPrice': function(params) { + this.int32(1259483771); + const flags = (this.has(params.broadcast_messages_allowed) << 0); + this.int32(flags); + this.predicate(params.channel); + this.long(params.send_paid_messages_stars); + }, + 'users.getRequirementsToContact': function(params) { + this.int32(-660962397); + this.vector(this.predicate, params.id); + }, + 'payments.toggleStarGiftsPinnedToTop': function(params) { + this.int32(353626032); + this.predicate(params.peer); + this.vector(this.predicate, params.stargift); + }, + 'payments.canPurchaseStore': function(params) { + this.int32(1339842215); + this.predicate(params.purpose); + }, + 'contacts.getSponsoredPeers': function(params) { + this.int32(-1228356717); + this.string(params.q); + }, + 'phone.deleteConferenceCallParticipants': function(params) { + this.int32(-1935276763); + const flags = (this.has(params.only_left) << 0) | (this.has(params.kick) << 1); + this.int32(flags); + this.predicate(params.call); + this.vector(this.long, params.ids); + this.bytes(params.block); + }, + 'phone.sendConferenceCallBroadcast': function(params) { + this.int32(-965732096); + this.predicate(params.call); + this.bytes(params.block); + }, + 'phone.inviteConferenceCallParticipant': function(params) { + this.int32(-1124981115); + const flags = (this.has(params.video) << 0); + this.int32(flags); + this.predicate(params.call); + this.predicate(params.user_id); + }, + 'phone.declineConferenceCallInvite': function(params) { + this.int32(1011325297); + this.int(params.msg_id); + }, + 'phone.getGroupCallChainBlocks': function(params) { + this.int32(-291534682); + this.predicate(params.call); + this.int(params.sub_chain_id); + this.int(params.offset); + this.int(params.limit); + }, + 'payments.getResaleStarGifts': function(params) { + this.int32(2053087798); + const flags = (this.has(params.sort_by_price) << 1) | (this.has(params.sort_by_num) << 2) | (this.has(params.attributes_hash) << 0) | (this.has(params.attributes) << 3); + this.int32(flags); + this.flag(this.long, params.attributes_hash); + this.long(params.gift_id); + this.flagVector(this.predicate, params.attributes); + this.string(params.offset); + this.int(params.limit); + }, + 'payments.updateStarGiftPrice': function(params) { + this.int32(-306287413); + this.predicate(params.stargift); + this.predicate(params.resell_amount); + }, + 'channels.toggleAutotranslation': function(params) { + this.int32(377471137); + this.predicate(params.channel); + this.Bool(params.enabled); + }, + 'messages.getSavedDialogsByID': function(params) { + this.int32(1869585558); + const flags = (this.has(params.parent_peer) << 1); + this.int32(flags); + this.flag(this.predicate, params.parent_peer); + this.vector(this.predicate, params.ids); + }, + 'messages.readSavedHistory': function(params) { + this.int32(-1169540261); + this.predicate(params.parent_peer); + this.predicate(params.peer); + this.int(params.max_id); + }, + 'channels.getMessageAuthor': function(params) { + this.int32(-320691994); + this.predicate(params.channel); + this.int(params.id); + }, + 'messages.toggleTodoCompleted': function(params) { + this.int32(-740282076); + this.predicate(params.peer); + this.int(params.msg_id); + this.vector(this.int, params.completed); + this.vector(this.int, params.incompleted); + }, + 'messages.appendTodoList': function(params) { + this.int32(564531287); + this.predicate(params.peer); + this.int(params.msg_id); + this.vector(this.predicate, params.list); + }, + 'account.toggleNoPaidMessagesException': function(params) { + this.int32(-30483850); + const flags = (this.has(params.refund_charged) << 0) | (this.has(params.require_payment) << 2) | (this.has(params.parent_peer) << 1); + this.int32(flags); + this.flag(this.predicate, params.parent_peer); + this.predicate(params.user_id); + }, + 'messages.toggleSuggestedPostApproval': function(params) { + this.int32(-2130229924); + const flags = (this.has(params.reject) << 1) | (this.has(params.schedule_date) << 0) | (this.has(params.reject_comment) << 2); + this.int32(flags); + this.predicate(params.peer); + this.int(params.msg_id); + this.flag(this.int, params.schedule_date); + this.flag(this.string, params.reject_comment); + }, + 'payments.createStarGiftCollection': function(params) { + this.int32(524947079); + this.predicate(params.peer); + this.string(params.title); + this.vector(this.predicate, params.stargift); + }, + 'payments.updateStarGiftCollection': function(params) { + this.int32(1339932391); + const flags = (this.has(params.title) << 0) | (this.has(params.delete_stargift) << 1) | (this.has(params.add_stargift) << 2) | (this.has(params.order) << 3); + this.int32(flags); + this.predicate(params.peer); + this.int(params.collection_id); + this.flag(this.string, params.title); + this.flagVector(this.predicate, params.delete_stargift); + this.flagVector(this.predicate, params.add_stargift); + this.flagVector(this.predicate, params.order); + }, + 'payments.reorderStarGiftCollections': function(params) { + this.int32(-1020594996); + this.predicate(params.peer); + this.vector(this.int, params.order); + }, + 'payments.deleteStarGiftCollection': function(params) { + this.int32(-1386854168); + this.predicate(params.peer); + this.int(params.collection_id); + }, + 'payments.getStarGiftCollections': function(params) { + this.int32(-1743023651); + this.predicate(params.peer); + this.long(params.hash); + }, + 'stories.createAlbum': function(params) { + this.int32(-1553754395); + this.predicate(params.peer); + this.string(params.title); + this.vector(this.int, params.stories); + }, + 'stories.updateAlbum': function(params) { + this.int32(1582455222); + const flags = (this.has(params.title) << 0) | (this.has(params.delete_stories) << 1) | (this.has(params.add_stories) << 2) | (this.has(params.order) << 3); + this.int32(flags); + this.predicate(params.peer); + this.int(params.album_id); + this.flag(this.string, params.title); + this.flagVector(this.int, params.delete_stories); + this.flagVector(this.int, params.add_stories); + this.flagVector(this.int, params.order); + }, + 'stories.reorderAlbums': function(params) { + this.int32(-2060059687); + this.predicate(params.peer); + this.vector(this.int, params.order); + }, + 'stories.deleteAlbum': function(params) { + this.int32(-1925949744); + this.predicate(params.peer); + this.int(params.album_id); + }, + 'stories.getAlbums': function(params) { + this.int32(632548039); + this.predicate(params.peer); + this.long(params.hash); + }, + 'stories.getAlbumStories': function(params) { + this.int32(-1400869535); + this.predicate(params.peer); + this.int(params.album_id); + this.int(params.offset); + this.int(params.limit); + }, + 'channels.checkSearchPostsFlood': function(params) { + this.int32(576090389); + const flags = (this.has(params.query) << 0); + this.int32(flags); + this.flag(this.string, params.query); + }, + 'payments.getUniqueStarGiftValueInfo': function(params) { + this.int32(1130737515); + this.string(params.slug); + }, + 'payments.checkCanSendGift': function(params) { + this.int32(-1060835895); + this.long(params.gift_id); + }, + 'account.setMainProfileTab': function(params) { + this.int32(1575909552); + this.predicate(params.tab); + }, + 'channels.setMainProfileTab': function(params) { + this.int32(897842353); + this.predicate(params.channel); + this.predicate(params.tab); + }, + 'account.saveMusic': function(params) { + this.int32(-1301859671); + const flags = (this.has(params.unsave) << 0) | (this.has(params.after_id) << 1); + this.int32(flags); + this.predicate(params.id); + this.flag(this.predicate, params.after_id); + }, + 'account.getSavedMusicIds': function(params) { + this.int32(-526557265); + this.long(params.hash); + }, + 'users.getSavedMusic': function(params) { + this.int32(2022539235); + this.predicate(params.id); + this.int(params.offset); + this.int(params.limit); + this.long(params.hash); + }, + 'users.getSavedMusicByID': function(params) { + this.int32(1970513129); + this.predicate(params.id); + this.vector(this.predicate, params.documents); + }, + 'account.getUniqueGiftChatThemes': function(params) { + this.int32(-25890913); + this.int(params.offset); + this.int(params.limit); + this.long(params.hash); + }, }; \ No newline at end of file diff --git a/src/common.test.ts b/src/common.test.ts index 19035c4..52d69a6 100644 --- a/src/common.test.ts +++ b/src/common.test.ts @@ -1,7 +1,16 @@ import test from "node:test" import assert from "node:assert" import bigInt from "big-integer" -import { bigIntToBytes, bytesIsEqual, bytesToHex, concatBytes, getRandomInt, hexToBytesRaw, intsToLong, xorBytes } from "./common.js"; +import { + bigIntToBytes, + bytesIsEqual, + bytesToHex, + concatBytes, + getRandomInt, + hexToBytesRaw, + intsToLong, + xorBytes +} from "./common.js"; test.describe('bytesIsEqual', function () { test.it('return false if the length is different', function () { @@ -58,7 +67,7 @@ test.describe('hexToBytesRaw', function () { }); test.it('return correct result', function () { - result.forEach(function(value, index) { + result.forEach(function (value, index) { assert.equal(value, expectedResult[index]) }) }); @@ -90,7 +99,12 @@ test.describe('xorBytes', function () { test.describe('concatBytes', function () { const expectedResult = new Uint8Array([1, 2, 3, 4]); - const result = concatBytes([1], [2], [3], [4]); + const result = concatBytes( + new Uint8Array([1]), + new Uint8Array([2]), + new Uint8Array([3]), + new Uint8Array([4]) + ); test.it('return Uint8Array', function () { assert.ok(result instanceof Uint8Array); diff --git a/src/common.ts b/src/common.ts index a8ceecb..82b4f0f 100644 --- a/src/common.ts +++ b/src/common.ts @@ -57,7 +57,7 @@ export function xorBytes(bytes1: Uint8Array | ByteSource, bytes2: Uint8Array | B return bytes; } -export function concatBytes(...arrays: ArrayLike[]) { +export function concatBytes(...arrays: Uint8Array[]) { let length = 0; for (let bytes of arrays) { @@ -111,7 +111,7 @@ export function PBKDF2(password: string | Uint8Array, salt: crypto.BinaryLike, i return crypto.pbkdf2Sync(password, salt, iterations, 64, "sha512") } -export function SHA1(data: ArrayBuffer): Uint8Array { +export function SHA1(data: Uint8Array | ArrayBuffer): Uint8Array { const hash = crypto.createHash("sha1"); hash.update(new Uint8Array(data)); @@ -119,7 +119,7 @@ export function SHA1(data: ArrayBuffer): Uint8Array { return new Uint8Array(hash.digest()); } -export function SHA256(data: ArrayBuffer): Uint8Array { +export function SHA256(data: Uint8Array): Uint8Array { const hash = crypto.createHash("sha256"); hash.update(new Uint8Array(data)); diff --git a/src/config.ts b/src/config.ts index a35c518..41ebfaa 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,6 +1,6 @@ import type { DC } from "./types.js"; -export const LAYER = 195; +export const LAYER = 214; export const TEST_DC_LIST: DC[] = [ { @@ -26,12 +26,12 @@ export const TEST_DC_LIST: DC[] = [ export const PRODUCTION_DC_LIST: DC[] = [ { id: 1, - ip: "149.154.175.57", + ip: "149.154.175.50", port: 443, }, { id: 2, - ip: "149.154.167.50", + ip: "149.154.167.51", port: 443, }, { @@ -46,7 +46,7 @@ export const PRODUCTION_DC_LIST: DC[] = [ }, { id: 5, - ip: "91.108.56.186", + ip: "149.154.171.5", port: 443, }, ]; diff --git a/src/layer.ts b/src/layer.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/mtptoto-types.ts b/src/mtptoto-types.ts index c6089bf..074fc78 100644 --- a/src/mtptoto-types.ts +++ b/src/mtptoto-types.ts @@ -6,7 +6,7 @@ export type InputPeer = $InputPeerEmpty | $InputPeerSelf | $InputPeerChat | $Inp export type InputUser = $InputUserEmpty | $InputUserSelf | $InputUser | $InputUserFromMessage; export type InputContact = $InputPhoneContact; export type InputFile = $InputFile | $InputFileBig | $InputFileStoryDocument; -export type InputMedia = $InputMediaEmpty | $InputMediaUploadedPhoto | $InputMediaPhoto | $InputMediaGeoPoint | $InputMediaContact | $InputMediaUploadedDocument | $InputMediaDocument | $InputMediaVenue | $InputMediaPhotoExternal | $InputMediaDocumentExternal | $InputMediaGame | $InputMediaInvoice | $InputMediaGeoLive | $InputMediaPoll | $InputMediaDice | $InputMediaStory | $InputMediaWebPage | $InputMediaPaidMedia; +export type InputMedia = $InputMediaEmpty | $InputMediaUploadedPhoto | $InputMediaPhoto | $InputMediaGeoPoint | $InputMediaContact | $InputMediaUploadedDocument | $InputMediaDocument | $InputMediaVenue | $InputMediaPhotoExternal | $InputMediaDocumentExternal | $InputMediaGame | $InputMediaInvoice | $InputMediaGeoLive | $InputMediaPoll | $InputMediaDice | $InputMediaStory | $InputMediaWebPage | $InputMediaPaidMedia | $InputMediaTodo; export type InputChatPhoto = $InputChatPhotoEmpty | $InputChatUploadedPhoto | $InputChatPhoto; export type InputGeoPoint = $InputGeoPointEmpty | $InputGeoPoint; export type InputPhoto = $InputPhotoEmpty | $InputPhoto; @@ -22,13 +22,13 @@ export type ChatParticipant = $ChatParticipant | $ChatParticipantCreator | $Chat export type ChatParticipants = $ChatParticipantsForbidden | $ChatParticipants; export type ChatPhoto = $ChatPhotoEmpty | $ChatPhoto; export type Message = $MessageEmpty | $Message | $MessageService; -export type MessageMedia = $MessageMediaEmpty | $MessageMediaPhoto | $MessageMediaGeo | $MessageMediaContact | $MessageMediaUnsupported | $MessageMediaDocument | $MessageMediaWebPage | $MessageMediaVenue | $MessageMediaGame | $MessageMediaInvoice | $MessageMediaGeoLive | $MessageMediaPoll | $MessageMediaDice | $MessageMediaStory | $MessageMediaGiveaway | $MessageMediaGiveawayResults | $MessageMediaPaidMedia; -export type MessageAction = $MessageActionEmpty | $MessageActionChatCreate | $MessageActionChatEditTitle | $MessageActionChatEditPhoto | $MessageActionChatDeletePhoto | $MessageActionChatAddUser | $MessageActionChatDeleteUser | $MessageActionChatJoinedByLink | $MessageActionChannelCreate | $MessageActionChatMigrateTo | $MessageActionChannelMigrateFrom | $MessageActionPinMessage | $MessageActionHistoryClear | $MessageActionGameScore | $MessageActionPaymentSentMe | $MessageActionPaymentSent | $MessageActionPhoneCall | $MessageActionScreenshotTaken | $MessageActionCustomAction | $MessageActionBotAllowed | $MessageActionSecureValuesSentMe | $MessageActionSecureValuesSent | $MessageActionContactSignUp | $MessageActionGeoProximityReached | $MessageActionGroupCall | $MessageActionInviteToGroupCall | $MessageActionSetMessagesTTL | $MessageActionGroupCallScheduled | $MessageActionSetChatTheme | $MessageActionChatJoinedByRequest | $MessageActionWebViewDataSentMe | $MessageActionWebViewDataSent | $MessageActionGiftPremium | $MessageActionTopicCreate | $MessageActionTopicEdit | $MessageActionSuggestProfilePhoto | $MessageActionRequestedPeer | $MessageActionSetChatWallPaper | $MessageActionGiftCode | $MessageActionGiveawayLaunch | $MessageActionGiveawayResults | $MessageActionBoostApply | $MessageActionRequestedPeerSentMe | $MessageActionPaymentRefunded | $MessageActionGiftStars | $MessageActionPrizeStars | $MessageActionStarGift; +export type MessageMedia = $MessageMediaEmpty | $MessageMediaPhoto | $MessageMediaGeo | $MessageMediaContact | $MessageMediaUnsupported | $MessageMediaDocument | $MessageMediaWebPage | $MessageMediaVenue | $MessageMediaGame | $MessageMediaInvoice | $MessageMediaGeoLive | $MessageMediaPoll | $MessageMediaDice | $MessageMediaStory | $MessageMediaGiveaway | $MessageMediaGiveawayResults | $MessageMediaPaidMedia | $MessageMediaToDo; +export type MessageAction = $MessageActionEmpty | $MessageActionChatCreate | $MessageActionChatEditTitle | $MessageActionChatEditPhoto | $MessageActionChatDeletePhoto | $MessageActionChatAddUser | $MessageActionChatDeleteUser | $MessageActionChatJoinedByLink | $MessageActionChannelCreate | $MessageActionChatMigrateTo | $MessageActionChannelMigrateFrom | $MessageActionPinMessage | $MessageActionHistoryClear | $MessageActionGameScore | $MessageActionPaymentSentMe | $MessageActionPaymentSent | $MessageActionPhoneCall | $MessageActionScreenshotTaken | $MessageActionCustomAction | $MessageActionBotAllowed | $MessageActionSecureValuesSentMe | $MessageActionSecureValuesSent | $MessageActionContactSignUp | $MessageActionGeoProximityReached | $MessageActionGroupCall | $MessageActionInviteToGroupCall | $MessageActionSetMessagesTTL | $MessageActionGroupCallScheduled | $MessageActionSetChatTheme | $MessageActionChatJoinedByRequest | $MessageActionWebViewDataSentMe | $MessageActionWebViewDataSent | $MessageActionGiftPremium | $MessageActionTopicCreate | $MessageActionTopicEdit | $MessageActionSuggestProfilePhoto | $MessageActionRequestedPeer | $MessageActionSetChatWallPaper | $MessageActionGiftCode | $MessageActionGiveawayLaunch | $MessageActionGiveawayResults | $MessageActionBoostApply | $MessageActionRequestedPeerSentMe | $MessageActionPaymentRefunded | $MessageActionGiftStars | $MessageActionPrizeStars | $MessageActionStarGift | $MessageActionStarGiftUnique | $MessageActionPaidMessagesRefunded | $MessageActionPaidMessagesPrice | $MessageActionConferenceCall | $MessageActionTodoCompletions | $MessageActionTodoAppendTasks | $MessageActionSuggestedPostApproval | $MessageActionSuggestedPostSuccess | $MessageActionSuggestedPostRefund | $MessageActionGiftTon; export type Dialog = $Dialog | $DialogFolder; export type Photo = $PhotoEmpty | $Photo; export type PhotoSize = $PhotoSizeEmpty | $PhotoSize | $PhotoCachedSize | $PhotoStrippedSize | $PhotoSizeProgressive | $PhotoPathSize; export type GeoPoint = $GeoPointEmpty | $GeoPoint; -export type Auth$SentCode = $Auth$SentCode | $Auth$SentCodeSuccess; +export type Auth$SentCode = $Auth$SentCode | $Auth$SentCodeSuccess | $Auth$SentCodePaymentRequired; export type Auth$Authorization = $Auth$Authorization | $Auth$AuthorizationSignUpRequired; export type Auth$ExportedAuthorization = $Auth$ExportedAuthorization; export type InputNotifyPeer = $InputNotifyPeer | $InputNotifyUsers | $InputNotifyChats | $InputNotifyBroadcasts | $InputNotifyForumTopic; @@ -50,7 +50,7 @@ export type Messages$Chats = $Messages$Chats | $Messages$ChatsSlice; export type Messages$ChatFull = $Messages$ChatFull; export type Messages$AffectedHistory = $Messages$AffectedHistory; export type MessagesFilter = $InputMessagesFilterEmpty | $InputMessagesFilterPhotos | $InputMessagesFilterVideo | $InputMessagesFilterPhotoVideo | $InputMessagesFilterDocument | $InputMessagesFilterUrl | $InputMessagesFilterGif | $InputMessagesFilterVoice | $InputMessagesFilterMusic | $InputMessagesFilterChatPhotos | $InputMessagesFilterPhoneCalls | $InputMessagesFilterRoundVoice | $InputMessagesFilterRoundVideo | $InputMessagesFilterMyMentions | $InputMessagesFilterGeo | $InputMessagesFilterContacts | $InputMessagesFilterPinned; -export type Update = $UpdateNewMessage | $UpdateMessageID | $UpdateDeleteMessages | $UpdateUserTyping | $UpdateChatUserTyping | $UpdateChatParticipants | $UpdateUserStatus | $UpdateUserName | $UpdateNewAuthorization | $UpdateNewEncryptedMessage | $UpdateEncryptedChatTyping | $UpdateEncryption | $UpdateEncryptedMessagesRead | $UpdateChatParticipantAdd | $UpdateChatParticipantDelete | $UpdateDcOptions | $UpdateNotifySettings | $UpdateServiceNotification | $UpdatePrivacy | $UpdateUserPhone | $UpdateReadHistoryInbox | $UpdateReadHistoryOutbox | $UpdateWebPage | $UpdateReadMessagesContents | $UpdateChannelTooLong | $UpdateChannel | $UpdateNewChannelMessage | $UpdateReadChannelInbox | $UpdateDeleteChannelMessages | $UpdateChannelMessageViews | $UpdateChatParticipantAdmin | $UpdateNewStickerSet | $UpdateStickerSetsOrder | $UpdateStickerSets | $UpdateSavedGifs | $UpdateBotInlineQuery | $UpdateBotInlineSend | $UpdateEditChannelMessage | $UpdateBotCallbackQuery | $UpdateEditMessage | $UpdateInlineBotCallbackQuery | $UpdateReadChannelOutbox | $UpdateDraftMessage | $UpdateReadFeaturedStickers | $UpdateRecentStickers | $UpdateConfig | $UpdatePtsChanged | $UpdateChannelWebPage | $UpdateDialogPinned | $UpdatePinnedDialogs | $UpdateBotWebhookJSON | $UpdateBotWebhookJSONQuery | $UpdateBotShippingQuery | $UpdateBotPrecheckoutQuery | $UpdatePhoneCall | $UpdateLangPackTooLong | $UpdateLangPack | $UpdateFavedStickers | $UpdateChannelReadMessagesContents | $UpdateContactsReset | $UpdateChannelAvailableMessages | $UpdateDialogUnreadMark | $UpdateMessagePoll | $UpdateChatDefaultBannedRights | $UpdateFolderPeers | $UpdatePeerSettings | $UpdatePeerLocated | $UpdateNewScheduledMessage | $UpdateDeleteScheduledMessages | $UpdateTheme | $UpdateGeoLiveViewed | $UpdateLoginToken | $UpdateMessagePollVote | $UpdateDialogFilter | $UpdateDialogFilterOrder | $UpdateDialogFilters | $UpdatePhoneCallSignalingData | $UpdateChannelMessageForwards | $UpdateReadChannelDiscussionInbox | $UpdateReadChannelDiscussionOutbox | $UpdatePeerBlocked | $UpdateChannelUserTyping | $UpdatePinnedMessages | $UpdatePinnedChannelMessages | $UpdateChat | $UpdateGroupCallParticipants | $UpdateGroupCall | $UpdatePeerHistoryTTL | $UpdateChatParticipant | $UpdateChannelParticipant | $UpdateBotStopped | $UpdateGroupCallConnection | $UpdateBotCommands | $UpdatePendingJoinRequests | $UpdateBotChatInviteRequester | $UpdateMessageReactions | $UpdateAttachMenuBots | $UpdateWebViewResultSent | $UpdateBotMenuButton | $UpdateSavedRingtones | $UpdateTranscribedAudio | $UpdateReadFeaturedEmojiStickers | $UpdateUserEmojiStatus | $UpdateRecentEmojiStatuses | $UpdateRecentReactions | $UpdateMoveStickerSetToTop | $UpdateMessageExtendedMedia | $UpdateChannelPinnedTopic | $UpdateChannelPinnedTopics | $UpdateUser | $UpdateAutoSaveSettings | $UpdateStory | $UpdateReadStories | $UpdateStoryID | $UpdateStoriesStealthMode | $UpdateSentStoryReaction | $UpdateBotChatBoost | $UpdateChannelViewForumAsMessages | $UpdatePeerWallpaper | $UpdateBotMessageReaction | $UpdateBotMessageReactions | $UpdateSavedDialogPinned | $UpdatePinnedSavedDialogs | $UpdateSavedReactionTags | $UpdateSmsJob | $UpdateQuickReplies | $UpdateNewQuickReply | $UpdateDeleteQuickReply | $UpdateQuickReplyMessage | $UpdateDeleteQuickReplyMessages | $UpdateBotBusinessConnect | $UpdateBotNewBusinessMessage | $UpdateBotEditBusinessMessage | $UpdateBotDeleteBusinessMessage | $UpdateNewStoryReaction | $UpdateBroadcastRevenueTransactions | $UpdateStarsBalance | $UpdateBusinessBotCallbackQuery | $UpdateStarsRevenueStatus | $UpdateBotPurchasedPaidMedia | $UpdatePaidReactionPrivacy; +export type Update = $UpdateNewMessage | $UpdateMessageID | $UpdateDeleteMessages | $UpdateUserTyping | $UpdateChatUserTyping | $UpdateChatParticipants | $UpdateUserStatus | $UpdateUserName | $UpdateNewAuthorization | $UpdateNewEncryptedMessage | $UpdateEncryptedChatTyping | $UpdateEncryption | $UpdateEncryptedMessagesRead | $UpdateChatParticipantAdd | $UpdateChatParticipantDelete | $UpdateDcOptions | $UpdateNotifySettings | $UpdateServiceNotification | $UpdatePrivacy | $UpdateUserPhone | $UpdateReadHistoryInbox | $UpdateReadHistoryOutbox | $UpdateWebPage | $UpdateReadMessagesContents | $UpdateChannelTooLong | $UpdateChannel | $UpdateNewChannelMessage | $UpdateReadChannelInbox | $UpdateDeleteChannelMessages | $UpdateChannelMessageViews | $UpdateChatParticipantAdmin | $UpdateNewStickerSet | $UpdateStickerSetsOrder | $UpdateStickerSets | $UpdateSavedGifs | $UpdateBotInlineQuery | $UpdateBotInlineSend | $UpdateEditChannelMessage | $UpdateBotCallbackQuery | $UpdateEditMessage | $UpdateInlineBotCallbackQuery | $UpdateReadChannelOutbox | $UpdateDraftMessage | $UpdateReadFeaturedStickers | $UpdateRecentStickers | $UpdateConfig | $UpdatePtsChanged | $UpdateChannelWebPage | $UpdateDialogPinned | $UpdatePinnedDialogs | $UpdateBotWebhookJSON | $UpdateBotWebhookJSONQuery | $UpdateBotShippingQuery | $UpdateBotPrecheckoutQuery | $UpdatePhoneCall | $UpdateLangPackTooLong | $UpdateLangPack | $UpdateFavedStickers | $UpdateChannelReadMessagesContents | $UpdateContactsReset | $UpdateChannelAvailableMessages | $UpdateDialogUnreadMark | $UpdateMessagePoll | $UpdateChatDefaultBannedRights | $UpdateFolderPeers | $UpdatePeerSettings | $UpdatePeerLocated | $UpdateNewScheduledMessage | $UpdateDeleteScheduledMessages | $UpdateTheme | $UpdateGeoLiveViewed | $UpdateLoginToken | $UpdateMessagePollVote | $UpdateDialogFilter | $UpdateDialogFilterOrder | $UpdateDialogFilters | $UpdatePhoneCallSignalingData | $UpdateChannelMessageForwards | $UpdateReadChannelDiscussionInbox | $UpdateReadChannelDiscussionOutbox | $UpdatePeerBlocked | $UpdateChannelUserTyping | $UpdatePinnedMessages | $UpdatePinnedChannelMessages | $UpdateChat | $UpdateGroupCallParticipants | $UpdateGroupCall | $UpdatePeerHistoryTTL | $UpdateChatParticipant | $UpdateChannelParticipant | $UpdateBotStopped | $UpdateGroupCallConnection | $UpdateBotCommands | $UpdatePendingJoinRequests | $UpdateBotChatInviteRequester | $UpdateMessageReactions | $UpdateAttachMenuBots | $UpdateWebViewResultSent | $UpdateBotMenuButton | $UpdateSavedRingtones | $UpdateTranscribedAudio | $UpdateReadFeaturedEmojiStickers | $UpdateUserEmojiStatus | $UpdateRecentEmojiStatuses | $UpdateRecentReactions | $UpdateMoveStickerSetToTop | $UpdateMessageExtendedMedia | $UpdateChannelPinnedTopic | $UpdateChannelPinnedTopics | $UpdateUser | $UpdateAutoSaveSettings | $UpdateStory | $UpdateReadStories | $UpdateStoryID | $UpdateStoriesStealthMode | $UpdateSentStoryReaction | $UpdateBotChatBoost | $UpdateChannelViewForumAsMessages | $UpdatePeerWallpaper | $UpdateBotMessageReaction | $UpdateBotMessageReactions | $UpdateSavedDialogPinned | $UpdatePinnedSavedDialogs | $UpdateSavedReactionTags | $UpdateSmsJob | $UpdateQuickReplies | $UpdateNewQuickReply | $UpdateDeleteQuickReply | $UpdateQuickReplyMessage | $UpdateDeleteQuickReplyMessages | $UpdateBotBusinessConnect | $UpdateBotNewBusinessMessage | $UpdateBotEditBusinessMessage | $UpdateBotDeleteBusinessMessage | $UpdateNewStoryReaction | $UpdateStarsBalance | $UpdateBusinessBotCallbackQuery | $UpdateStarsRevenueStatus | $UpdateBotPurchasedPaidMedia | $UpdatePaidReactionPrivacy | $UpdateSentPhoneCode | $UpdateGroupCallChainBlocks | $UpdateReadMonoForumInbox | $UpdateReadMonoForumOutbox | $UpdateMonoForumNoPaidException; export type Updates$State = $Updates$State; export type Updates$Difference = $Updates$DifferenceEmpty | $Updates$Difference | $Updates$DifferenceSlice | $Updates$DifferenceTooLong; export type Updates = $UpdatesTooLong | $UpdateShortMessage | $UpdateShortChatMessage | $UpdateShort | $UpdatesCombined | $Updates | $UpdateShortSentMessage; @@ -75,8 +75,8 @@ export type Help$Support = $Help$Support; export type NotifyPeer = $NotifyPeer | $NotifyUsers | $NotifyChats | $NotifyBroadcasts | $NotifyForumTopic; export type SendMessageAction = $SendMessageTypingAction | $SendMessageCancelAction | $SendMessageRecordVideoAction | $SendMessageUploadVideoAction | $SendMessageRecordAudioAction | $SendMessageUploadAudioAction | $SendMessageUploadPhotoAction | $SendMessageUploadDocumentAction | $SendMessageGeoLocationAction | $SendMessageChooseContactAction | $SendMessageGamePlayAction | $SendMessageRecordRoundAction | $SendMessageUploadRoundAction | $SpeakingInGroupCallAction | $SendMessageHistoryImportAction | $SendMessageChooseStickerAction | $SendMessageEmojiInteraction | $SendMessageEmojiInteractionSeen; export type Contacts$Found = $Contacts$Found; -export type InputPrivacyKey = $InputPrivacyKeyStatusTimestamp | $InputPrivacyKeyChatInvite | $InputPrivacyKeyPhoneCall | $InputPrivacyKeyPhoneP2P | $InputPrivacyKeyForwards | $InputPrivacyKeyProfilePhoto | $InputPrivacyKeyPhoneNumber | $InputPrivacyKeyAddedByPhone | $InputPrivacyKeyVoiceMessages | $InputPrivacyKeyAbout | $InputPrivacyKeyBirthday | $InputPrivacyKeyStarGiftsAutoSave; -export type PrivacyKey = $PrivacyKeyStatusTimestamp | $PrivacyKeyChatInvite | $PrivacyKeyPhoneCall | $PrivacyKeyPhoneP2P | $PrivacyKeyForwards | $PrivacyKeyProfilePhoto | $PrivacyKeyPhoneNumber | $PrivacyKeyAddedByPhone | $PrivacyKeyVoiceMessages | $PrivacyKeyAbout | $PrivacyKeyBirthday | $PrivacyKeyStarGiftsAutoSave; +export type InputPrivacyKey = $InputPrivacyKeyStatusTimestamp | $InputPrivacyKeyChatInvite | $InputPrivacyKeyPhoneCall | $InputPrivacyKeyPhoneP2P | $InputPrivacyKeyForwards | $InputPrivacyKeyProfilePhoto | $InputPrivacyKeyPhoneNumber | $InputPrivacyKeyAddedByPhone | $InputPrivacyKeyVoiceMessages | $InputPrivacyKeyAbout | $InputPrivacyKeyBirthday | $InputPrivacyKeyStarGiftsAutoSave | $InputPrivacyKeyNoPaidMessages; +export type PrivacyKey = $PrivacyKeyStatusTimestamp | $PrivacyKeyChatInvite | $PrivacyKeyPhoneCall | $PrivacyKeyPhoneP2P | $PrivacyKeyForwards | $PrivacyKeyProfilePhoto | $PrivacyKeyPhoneNumber | $PrivacyKeyAddedByPhone | $PrivacyKeyVoiceMessages | $PrivacyKeyAbout | $PrivacyKeyBirthday | $PrivacyKeyStarGiftsAutoSave | $PrivacyKeyNoPaidMessages; export type InputPrivacyRule = $InputPrivacyValueAllowContacts | $InputPrivacyValueAllowAll | $InputPrivacyValueAllowUsers | $InputPrivacyValueDisallowContacts | $InputPrivacyValueDisallowAll | $InputPrivacyValueDisallowUsers | $InputPrivacyValueAllowChatParticipants | $InputPrivacyValueDisallowChatParticipants | $InputPrivacyValueAllowCloseFriends | $InputPrivacyValueAllowPremium | $InputPrivacyValueAllowBots | $InputPrivacyValueDisallowBots; export type PrivacyRule = $PrivacyValueAllowContacts | $PrivacyValueAllowAll | $PrivacyValueAllowUsers | $PrivacyValueDisallowContacts | $PrivacyValueDisallowAll | $PrivacyValueDisallowUsers | $PrivacyValueAllowChatParticipants | $PrivacyValueDisallowChatParticipants | $PrivacyValueAllowCloseFriends | $PrivacyValueAllowPremium | $PrivacyValueAllowBots | $PrivacyValueDisallowBots; export type Account$PrivacyRules = $Account$PrivacyRules; @@ -96,7 +96,7 @@ export type Auth$PasswordRecovery = $Auth$PasswordRecovery; export type ReceivedNotifyMessage = $ReceivedNotifyMessage; export type ExportedChatInvite = $ChatInviteExported | $ChatInvitePublicJoinRequests; export type ChatInvite = $ChatInviteAlready | $ChatInvite | $ChatInvitePeek; -export type InputStickerSet = $InputStickerSetEmpty | $InputStickerSetID | $InputStickerSetShortName | $InputStickerSetAnimatedEmoji | $InputStickerSetDice | $InputStickerSetAnimatedEmojiAnimations | $InputStickerSetPremiumGifts | $InputStickerSetEmojiGenericAnimations | $InputStickerSetEmojiDefaultStatuses | $InputStickerSetEmojiDefaultTopicIcons | $InputStickerSetEmojiChannelDefaultStatuses; +export type InputStickerSet = $InputStickerSetEmpty | $InputStickerSetID | $InputStickerSetShortName | $InputStickerSetAnimatedEmoji | $InputStickerSetDice | $InputStickerSetAnimatedEmojiAnimations | $InputStickerSetPremiumGifts | $InputStickerSetEmojiGenericAnimations | $InputStickerSetEmojiDefaultStatuses | $InputStickerSetEmojiDefaultTopicIcons | $InputStickerSetEmojiChannelDefaultStatuses | $InputStickerSetTonGifts; export type StickerSet = $StickerSet; export type Messages$StickerSet = $Messages$StickerSet | $Messages$StickerSetNotModified; export type BotCommand = $BotCommand; @@ -148,7 +148,7 @@ export type HighScore = $HighScore; export type Messages$HighScores = $Messages$HighScores; export type RichText = $TextEmpty | $TextPlain | $TextBold | $TextItalic | $TextUnderline | $TextStrike | $TextFixed | $TextUrl | $TextEmail | $TextConcat | $TextSubscript | $TextSuperscript | $TextMarked | $TextPhone | $TextImage | $TextAnchor; export type PageBlock = $PageBlockUnsupported | $PageBlockTitle | $PageBlockSubtitle | $PageBlockAuthorDate | $PageBlockHeader | $PageBlockSubheader | $PageBlockParagraph | $PageBlockPreformatted | $PageBlockFooter | $PageBlockDivider | $PageBlockAnchor | $PageBlockList | $PageBlockBlockquote | $PageBlockPullquote | $PageBlockPhoto | $PageBlockVideo | $PageBlockCover | $PageBlockEmbed | $PageBlockEmbedPost | $PageBlockCollage | $PageBlockSlideshow | $PageBlockChannel | $PageBlockAudio | $PageBlockKicker | $PageBlockTable | $PageBlockOrderedList | $PageBlockDetails | $PageBlockRelatedArticles | $PageBlockMap; -export type PhoneCallDiscardReason = $PhoneCallDiscardReasonMissed | $PhoneCallDiscardReasonDisconnect | $PhoneCallDiscardReasonHangup | $PhoneCallDiscardReasonBusy; +export type PhoneCallDiscardReason = $PhoneCallDiscardReasonMissed | $PhoneCallDiscardReasonDisconnect | $PhoneCallDiscardReasonHangup | $PhoneCallDiscardReasonBusy | $PhoneCallDiscardReasonMigrateConferenceCall; export type DataJSON = $DataJSON; export type LabeledPrice = $LabeledPrice; export type Invoice = $Invoice; @@ -180,7 +180,7 @@ export type CdnConfig = $CdnConfig; export type LangPackString = $LangPackString | $LangPackStringPluralized | $LangPackStringDeleted; export type LangPackDifference = $LangPackDifference; export type LangPackLanguage = $LangPackLanguage; -export type ChannelAdminLogEventAction = $ChannelAdminLogEventActionChangeTitle | $ChannelAdminLogEventActionChangeAbout | $ChannelAdminLogEventActionChangeUsername | $ChannelAdminLogEventActionChangePhoto | $ChannelAdminLogEventActionToggleInvites | $ChannelAdminLogEventActionToggleSignatures | $ChannelAdminLogEventActionUpdatePinned | $ChannelAdminLogEventActionEditMessage | $ChannelAdminLogEventActionDeleteMessage | $ChannelAdminLogEventActionParticipantJoin | $ChannelAdminLogEventActionParticipantLeave | $ChannelAdminLogEventActionParticipantInvite | $ChannelAdminLogEventActionParticipantToggleBan | $ChannelAdminLogEventActionParticipantToggleAdmin | $ChannelAdminLogEventActionChangeStickerSet | $ChannelAdminLogEventActionTogglePreHistoryHidden | $ChannelAdminLogEventActionDefaultBannedRights | $ChannelAdminLogEventActionStopPoll | $ChannelAdminLogEventActionChangeLinkedChat | $ChannelAdminLogEventActionChangeLocation | $ChannelAdminLogEventActionToggleSlowMode | $ChannelAdminLogEventActionStartGroupCall | $ChannelAdminLogEventActionDiscardGroupCall | $ChannelAdminLogEventActionParticipantMute | $ChannelAdminLogEventActionParticipantUnmute | $ChannelAdminLogEventActionToggleGroupCallSetting | $ChannelAdminLogEventActionParticipantJoinByInvite | $ChannelAdminLogEventActionExportedInviteDelete | $ChannelAdminLogEventActionExportedInviteRevoke | $ChannelAdminLogEventActionExportedInviteEdit | $ChannelAdminLogEventActionParticipantVolume | $ChannelAdminLogEventActionChangeHistoryTTL | $ChannelAdminLogEventActionParticipantJoinByRequest | $ChannelAdminLogEventActionToggleNoForwards | $ChannelAdminLogEventActionSendMessage | $ChannelAdminLogEventActionChangeAvailableReactions | $ChannelAdminLogEventActionChangeUsernames | $ChannelAdminLogEventActionToggleForum | $ChannelAdminLogEventActionCreateTopic | $ChannelAdminLogEventActionEditTopic | $ChannelAdminLogEventActionDeleteTopic | $ChannelAdminLogEventActionPinTopic | $ChannelAdminLogEventActionToggleAntiSpam | $ChannelAdminLogEventActionChangePeerColor | $ChannelAdminLogEventActionChangeProfilePeerColor | $ChannelAdminLogEventActionChangeWallpaper | $ChannelAdminLogEventActionChangeEmojiStatus | $ChannelAdminLogEventActionChangeEmojiStickerSet | $ChannelAdminLogEventActionToggleSignatureProfiles | $ChannelAdminLogEventActionParticipantSubExtend; +export type ChannelAdminLogEventAction = $ChannelAdminLogEventActionChangeTitle | $ChannelAdminLogEventActionChangeAbout | $ChannelAdminLogEventActionChangeUsername | $ChannelAdminLogEventActionChangePhoto | $ChannelAdminLogEventActionToggleInvites | $ChannelAdminLogEventActionToggleSignatures | $ChannelAdminLogEventActionUpdatePinned | $ChannelAdminLogEventActionEditMessage | $ChannelAdminLogEventActionDeleteMessage | $ChannelAdminLogEventActionParticipantJoin | $ChannelAdminLogEventActionParticipantLeave | $ChannelAdminLogEventActionParticipantInvite | $ChannelAdminLogEventActionParticipantToggleBan | $ChannelAdminLogEventActionParticipantToggleAdmin | $ChannelAdminLogEventActionChangeStickerSet | $ChannelAdminLogEventActionTogglePreHistoryHidden | $ChannelAdminLogEventActionDefaultBannedRights | $ChannelAdminLogEventActionStopPoll | $ChannelAdminLogEventActionChangeLinkedChat | $ChannelAdminLogEventActionChangeLocation | $ChannelAdminLogEventActionToggleSlowMode | $ChannelAdminLogEventActionStartGroupCall | $ChannelAdminLogEventActionDiscardGroupCall | $ChannelAdminLogEventActionParticipantMute | $ChannelAdminLogEventActionParticipantUnmute | $ChannelAdminLogEventActionToggleGroupCallSetting | $ChannelAdminLogEventActionParticipantJoinByInvite | $ChannelAdminLogEventActionExportedInviteDelete | $ChannelAdminLogEventActionExportedInviteRevoke | $ChannelAdminLogEventActionExportedInviteEdit | $ChannelAdminLogEventActionParticipantVolume | $ChannelAdminLogEventActionChangeHistoryTTL | $ChannelAdminLogEventActionParticipantJoinByRequest | $ChannelAdminLogEventActionToggleNoForwards | $ChannelAdminLogEventActionSendMessage | $ChannelAdminLogEventActionChangeAvailableReactions | $ChannelAdminLogEventActionChangeUsernames | $ChannelAdminLogEventActionToggleForum | $ChannelAdminLogEventActionCreateTopic | $ChannelAdminLogEventActionEditTopic | $ChannelAdminLogEventActionDeleteTopic | $ChannelAdminLogEventActionPinTopic | $ChannelAdminLogEventActionToggleAntiSpam | $ChannelAdminLogEventActionChangePeerColor | $ChannelAdminLogEventActionChangeProfilePeerColor | $ChannelAdminLogEventActionChangeWallpaper | $ChannelAdminLogEventActionChangeEmojiStatus | $ChannelAdminLogEventActionChangeEmojiStickerSet | $ChannelAdminLogEventActionToggleSignatureProfiles | $ChannelAdminLogEventActionParticipantSubExtend | $ChannelAdminLogEventActionToggleAutotranslation; export type ChannelAdminLogEvent = $ChannelAdminLogEvent; export type Channels$AdminLogResults = $Channels$AdminLogResults; export type ChannelAdminLogEventsFilter = $ChannelAdminLogEventsFilter; @@ -266,7 +266,7 @@ export type Messages$InactiveChats = $Messages$InactiveChats; export type BaseTheme = $BaseThemeClassic | $BaseThemeDay | $BaseThemeNight | $BaseThemeTinted | $BaseThemeArctic; export type InputThemeSettings = $InputThemeSettings; export type ThemeSettings = $ThemeSettings; -export type WebPageAttribute = $WebPageAttributeTheme | $WebPageAttributeStory | $WebPageAttributeStickerSet; +export type WebPageAttribute = $WebPageAttributeTheme | $WebPageAttributeStory | $WebPageAttributeStickerSet | $WebPageAttributeUniqueStarGift | $WebPageAttributeStarGiftCollection; export type Messages$VotesList = $Messages$VotesList; export type BankCardOpenUrl = $BankCardOpenUrl; export type Payments$BankCardData = $Payments$BankCardData; @@ -295,7 +295,7 @@ export type MessageReplies = $MessageReplies; export type PeerBlocked = $PeerBlocked; export type Stats$MessageStats = $Stats$MessageStats; export type GroupCall = $GroupCallDiscarded | $GroupCall; -export type InputGroupCall = $InputGroupCall; +export type InputGroupCall = $InputGroupCall | $InputGroupCallSlug | $InputGroupCallInviteMessage; export type GroupCallParticipant = $GroupCallParticipant; export type Phone$GroupCall = $Phone$GroupCall; export type Phone$GroupParticipants = $Phone$GroupParticipants; @@ -317,6 +317,8 @@ export type GroupCallParticipantVideo = $GroupCallParticipantVideo; export type Stickers$SuggestedShortName = $Stickers$SuggestedShortName; export type BotCommandScope = $BotCommandScopeDefault | $BotCommandScopeUsers | $BotCommandScopeChats | $BotCommandScopeChatAdmins | $BotCommandScopePeer | $BotCommandScopePeerAdmins | $BotCommandScopePeerUser; export type Account$ResetPasswordResult = $Account$ResetPasswordFailedWait | $Account$ResetPasswordRequestedWait | $Account$ResetPasswordOk; +export type ChatTheme = $ChatTheme | $ChatThemeUniqueGift; +export type Account$ChatThemes = $Account$ChatThemesNotModified | $Account$ChatThemes; export type SponsoredMessage = $SponsoredMessage; export type Messages$SponsoredMessages = $Messages$SponsoredMessages | $Messages$SponsoredMessagesEmpty; export type SearchResultsCalendarPeriod = $SearchResultsCalendarPeriod; @@ -348,14 +350,13 @@ export type Account$SavedRingtones = $Account$SavedRingtonesNotModified | $Accou export type NotificationSound = $NotificationSoundDefault | $NotificationSoundNone | $NotificationSoundLocal | $NotificationSoundRingtone; export type Account$SavedRingtone = $Account$SavedRingtone | $Account$SavedRingtoneConverted; export type AttachMenuPeerType = $AttachMenuPeerTypeSameBotPM | $AttachMenuPeerTypeBotPM | $AttachMenuPeerTypePM | $AttachMenuPeerTypeChat | $AttachMenuPeerTypeBroadcast; -export type InputInvoice = $InputInvoiceMessage | $InputInvoiceSlug | $InputInvoicePremiumGiftCode | $InputInvoiceStars | $InputInvoiceChatInviteSubscription | $InputInvoiceStarGift; +export type InputInvoice = $InputInvoiceMessage | $InputInvoiceSlug | $InputInvoicePremiumGiftCode | $InputInvoiceStars | $InputInvoiceChatInviteSubscription | $InputInvoiceStarGift | $InputInvoiceStarGiftUpgrade | $InputInvoiceStarGiftTransfer | $InputInvoicePremiumGiftStars | $InputInvoiceBusinessBotTransferStars | $InputInvoiceStarGiftResale | $InputInvoiceStarGiftPrepaidUpgrade; export type Payments$ExportedInvoice = $Payments$ExportedInvoice; export type Messages$TranscribedAudio = $Messages$TranscribedAudio; export type Help$PremiumPromo = $Help$PremiumPromo; -export type InputStorePaymentPurpose = $InputStorePaymentPremiumSubscription | $InputStorePaymentGiftPremium | $InputStorePaymentPremiumGiftCode | $InputStorePaymentPremiumGiveaway | $InputStorePaymentStarsTopup | $InputStorePaymentStarsGift | $InputStorePaymentStarsGiveaway; -export type PremiumGiftOption = $PremiumGiftOption; +export type InputStorePaymentPurpose = $InputStorePaymentPremiumSubscription | $InputStorePaymentGiftPremium | $InputStorePaymentPremiumGiftCode | $InputStorePaymentPremiumGiveaway | $InputStorePaymentStarsTopup | $InputStorePaymentStarsGift | $InputStorePaymentStarsGiveaway | $InputStorePaymentAuthCode; export type PaymentFormMethod = $PaymentFormMethod; -export type EmojiStatus = $EmojiStatusEmpty | $EmojiStatus | $EmojiStatusUntil; +export type EmojiStatus = $EmojiStatusEmpty | $EmojiStatus | $EmojiStatusCollectible | $InputEmojiStatusCollectible; export type Account$EmojiStatuses = $Account$EmojiStatusesNotModified | $Account$EmojiStatuses; export type Reaction = $ReactionEmpty | $ReactionEmoji | $ReactionCustomEmoji | $ReactionPaid; export type ChatReactions = $ChatReactionsNone | $ChatReactionsAll | $ChatReactionsSome; @@ -402,11 +403,11 @@ export type Stories$Stories = $Stories$Stories; export type StoryView = $StoryView | $StoryViewPublicForward | $StoryViewPublicRepost; export type Stories$StoryViewsList = $Stories$StoryViewsList; export type Stories$StoryViews = $Stories$StoryViews; -export type InputReplyTo = $InputReplyToMessage | $InputReplyToStory; +export type InputReplyTo = $InputReplyToMessage | $InputReplyToStory | $InputReplyToMonoForum; export type ExportedStoryLink = $ExportedStoryLink; export type StoriesStealthMode = $StoriesStealthMode; export type MediaAreaCoordinates = $MediaAreaCoordinates; -export type MediaArea = $MediaAreaVenue | $InputMediaAreaVenue | $MediaAreaGeoPoint | $MediaAreaSuggestedReaction | $MediaAreaChannelPost | $InputMediaAreaChannelPost | $MediaAreaUrl | $MediaAreaWeather; +export type MediaArea = $MediaAreaVenue | $InputMediaAreaVenue | $MediaAreaGeoPoint | $MediaAreaSuggestedReaction | $MediaAreaChannelPost | $InputMediaAreaChannelPost | $MediaAreaUrl | $MediaAreaWeather | $MediaAreaStarGift; export type PeerStories = $PeerStories; export type Stories$PeerStories = $Stories$PeerStories; export type Messages$WebPage = $Messages$WebPage; @@ -430,7 +431,7 @@ export type Help$PeerColorOption = $Help$PeerColorOption; export type Help$PeerColors = $Help$PeerColorsNotModified | $Help$PeerColors; export type StoryReaction = $StoryReaction | $StoryReactionPublicForward | $StoryReactionPublicRepost; export type Stories$StoryReactionsList = $Stories$StoryReactionsList; -export type SavedDialog = $SavedDialog; +export type SavedDialog = $SavedDialog | $MonoForumDialog; export type Messages$SavedDialogs = $Messages$SavedDialogs | $Messages$SavedDialogsSlice | $Messages$SavedDialogsNotModified; export type SavedReactionTag = $SavedReactionTag; export type Messages$SavedReactionTags = $Messages$SavedReactionTagsNotModified | $Messages$SavedReactionTags; @@ -476,13 +477,8 @@ export type Account$ResolvedBusinessChatLinks = $Account$ResolvedBusinessChatLin export type RequestedPeer = $RequestedPeerUser | $RequestedPeerChat | $RequestedPeerChannel; export type SponsoredMessageReportOption = $SponsoredMessageReportOption; export type Channels$SponsoredMessageReportResult = $Channels$SponsoredMessageReportResultChooseOption | $Channels$SponsoredMessageReportResultAdsHidden | $Channels$SponsoredMessageReportResultReported; -export type Stats$BroadcastRevenueStats = $Stats$BroadcastRevenueStats; -export type Stats$BroadcastRevenueWithdrawalUrl = $Stats$BroadcastRevenueWithdrawalUrl; -export type BroadcastRevenueTransaction = $BroadcastRevenueTransactionProceeds | $BroadcastRevenueTransactionWithdrawal | $BroadcastRevenueTransactionRefund; -export type Stats$BroadcastRevenueTransactions = $Stats$BroadcastRevenueTransactions; export type ReactionNotificationsFrom = $ReactionNotificationsFromContacts | $ReactionNotificationsFromAll; export type ReactionsNotifySettings = $ReactionsNotifySettings; -export type BroadcastRevenueBalances = $BroadcastRevenueBalances; export type AvailableEffect = $AvailableEffect; export type Messages$AvailableEffects = $Messages$AvailableEffectsNotModified | $Messages$AvailableEffects; export type FactCheck = $FactCheck; @@ -507,10 +503,8 @@ export type StarsSubscription = $StarsSubscription; export type MessageReactor = $MessageReactor; export type StarsGiveawayOption = $StarsGiveawayOption; export type StarsGiveawayWinnersOption = $StarsGiveawayWinnersOption; -export type StarGift = $StarGift; +export type StarGift = $StarGift | $StarGiftUnique; export type Payments$StarGifts = $Payments$StarGiftsNotModified | $Payments$StarGifts; -export type UserStarGift = $UserStarGift; -export type Payments$UserStarGifts = $Payments$UserStarGifts; export type MessageReportOption = $MessageReportOption; export type ReportResult = $ReportResultChooseOption | $ReportResultAddComment | $ReportResultReported; export type Messages$BotPreparedInlineMessage = $Messages$BotPreparedInlineMessage; @@ -520,8 +514,47 @@ export type StarRefProgram = $StarRefProgram; export type ConnectedBotStarRef = $ConnectedBotStarRef; export type Payments$ConnectedStarRefBots = $Payments$ConnectedStarRefBots; export type Payments$SuggestedStarRefBots = $Payments$SuggestedStarRefBots; -export type StarsAmount = $StarsAmount; +export type StarsAmount = $StarsAmount | $StarsTonAmount; export type Messages$FoundStickers = $Messages$FoundStickersNotModified | $Messages$FoundStickers; +export type BotVerifierSettings = $BotVerifierSettings; +export type BotVerification = $BotVerification; +export type StarGiftAttribute = $StarGiftAttributeModel | $StarGiftAttributePattern | $StarGiftAttributeBackdrop | $StarGiftAttributeOriginalDetails; +export type Payments$StarGiftUpgradePreview = $Payments$StarGiftUpgradePreview; +export type Users$Users = $Users$Users | $Users$UsersSlice; +export type Payments$UniqueStarGift = $Payments$UniqueStarGift; +export type Messages$WebPagePreview = $Messages$WebPagePreview; +export type SavedStarGift = $SavedStarGift; +export type Payments$SavedStarGifts = $Payments$SavedStarGifts; +export type InputSavedStarGift = $InputSavedStarGiftUser | $InputSavedStarGiftChat | $InputSavedStarGiftSlug; +export type Payments$StarGiftWithdrawalUrl = $Payments$StarGiftWithdrawalUrl; +export type PaidReactionPrivacy = $PaidReactionPrivacyDefault | $PaidReactionPrivacyAnonymous | $PaidReactionPrivacyPeer; +export type Account$PaidMessagesRevenue = $Account$PaidMessagesRevenue; +export type RequirementToContact = $RequirementToContactEmpty | $RequirementToContactPremium | $RequirementToContactPaidMessages; +export type BusinessBotRights = $BusinessBotRights; +export type DisallowedGiftsSettings = $DisallowedGiftsSettings; +export type SponsoredPeer = $SponsoredPeer; +export type Contacts$SponsoredPeers = $Contacts$SponsoredPeersEmpty | $Contacts$SponsoredPeers; +export type StarGiftAttributeId = $StarGiftAttributeIdModel | $StarGiftAttributeIdPattern | $StarGiftAttributeIdBackdrop; +export type StarGiftAttributeCounter = $StarGiftAttributeCounter; +export type Payments$ResaleStarGifts = $Payments$ResaleStarGifts; +export type Stories$CanSendStoryCount = $Stories$CanSendStoryCount; +export type PendingSuggestion = $PendingSuggestion; +export type TodoItem = $TodoItem; +export type TodoList = $TodoList; +export type TodoCompletion = $TodoCompletion; +export type SuggestedPost = $SuggestedPost; +export type StarsRating = $StarsRating; +export type StarGiftCollection = $StarGiftCollection; +export type Payments$StarGiftCollections = $Payments$StarGiftCollectionsNotModified | $Payments$StarGiftCollections; +export type StoryAlbum = $StoryAlbum; +export type Stories$Albums = $Stories$AlbumsNotModified | $Stories$Albums; +export type SearchPostsFlood = $SearchPostsFlood; +export type Payments$UniqueStarGiftValueInfo = $Payments$UniqueStarGiftValueInfo; +export type ProfileTab = $ProfileTabPosts | $ProfileTabGifts | $ProfileTabMedia | $ProfileTabFiles | $ProfileTabMusic | $ProfileTabVoice | $ProfileTabLinks | $ProfileTabGifs; +export type Users$SavedMusic = $Users$SavedMusicNotModified | $Users$SavedMusic; +export type Account$SavedMusicIds = $Account$SavedMusicIdsNotModified | $Account$SavedMusicIds; +export type Payments$CheckCanSendGiftResult = $Payments$CheckCanSendGiftResultOk | $Payments$CheckCanSendGiftResultFail; +export type InputChatTheme = $InputChatThemeEmpty | $InputChatTheme | $InputChatThemeUniqueGift; export interface $BoolFalse { _: "boolFalse"; } @@ -861,6 +894,8 @@ export interface $Message { flags2?: Number; offline?: boolean; video_processing_pending?: boolean; + paid_suggested_post_stars?: boolean; + paid_suggested_post_ton?: boolean; id: number; from_id?: Peer; from_boosts_applied?: number; @@ -887,6 +922,9 @@ export interface $Message { quick_reply_shortcut_id?: number; effect?: string; factcheck?: FactCheck; + report_delivery_until_date?: number; + paid_message_stars?: string; + suggested_post?: SuggestedPost; } export interface $MessageService { @@ -895,15 +933,18 @@ export interface $MessageService { out?: boolean; mentioned?: boolean; media_unread?: boolean; + reactions_are_possible?: boolean; silent?: boolean; post?: boolean; legacy?: boolean; id: number; from_id?: Peer; peer_id: Peer; + saved_peer_id?: Peer; reply_to?: MessageReplyHeader; date: number; action: MessageAction; + reactions?: MessageReactions; ttl_period?: number; } @@ -1128,6 +1169,11 @@ export interface $PeerSettings { request_chat_date?: number; business_bot_id?: string; business_bot_manage_url?: string; + charge_paid_message_stars?: string; + registration_month?: string; + phone_country?: string; + name_change_date?: number; + photo_change_date?: number; } export interface $WallPaper { @@ -1184,6 +1230,7 @@ export interface $UserFull { sponsored_enabled?: boolean; can_view_revenue?: boolean; bot_can_manage_emoji_status?: boolean; + display_gifts_button?: boolean; id: string; about?: string; settings: PeerSettings; @@ -1196,11 +1243,10 @@ export interface $UserFull { common_chats_count: number; folder_id?: number; ttl_period?: number; - theme_emoticon?: string; + theme?: ChatTheme; private_forward_name?: string; bot_group_admin_rights?: ChatAdminRights; bot_broadcast_admin_rights?: ChatAdminRights; - premium_gifts?: PremiumGiftOption[]; wallpaper?: WallPaper; stories?: PeerStories; business_work_hours?: BusinessWorkHours; @@ -1213,6 +1259,14 @@ export interface $UserFull { personal_channel_message?: number; stargifts_count?: number; starref_program?: StarRefProgram; + bot_verification?: BotVerification; + send_paid_messages_stars?: string; + disallowed_gifts?: DisallowedGiftsSettings; + stars_rating?: StarsRating; + stars_my_pending_rating?: StarsRating; + stars_my_pending_rating_date?: number; + main_tab?: ProfileTab; + saved_music?: Document; } export interface $Contact { @@ -1298,6 +1352,7 @@ export interface $Messages$MessagesSlice { count: number; next_rate?: number; offset_id_offset?: number; + search_flood?: SearchPostsFlood; messages: Message[]; chats: Chat[]; users: User[]; @@ -1837,6 +1892,8 @@ export interface $InputMediaUploadedDocument { mime_type: string; attributes: DocumentAttribute[]; stickers?: InputDocument[]; + video_cover?: InputPhoto; + video_timestamp?: number; ttl_seconds?: number; } @@ -1845,6 +1902,8 @@ export interface $InputMediaDocument { flags?: Number; spoiler?: boolean; id: InputDocument; + video_cover?: InputPhoto; + video_timestamp?: number; ttl_seconds?: number; query?: string; } @@ -1859,6 +1918,8 @@ export interface $MessageMediaDocument { voice?: boolean; document?: Document; alt_documents?: Document[]; + video_cover?: Photo; + video_timestamp?: number; ttl_seconds?: number; } @@ -2387,6 +2448,7 @@ export interface $ChatInvite { color: number; subscription_pricing?: StarsSubscriptionPricing; subscription_form_id?: string; + bot_verification?: BotVerification; } export interface $MessageActionChatJoinedByLink { @@ -2496,6 +2558,8 @@ export interface $User { color?: PeerColor; profile_color?: PeerColor; bot_active_users?: number; + bot_verification_icon?: string; + send_paid_messages_stars?: string; } export interface $BotCommand { @@ -2516,6 +2580,7 @@ export interface $BotInfo { menu_button?: BotMenuButton; privacy_policy_url?: string; app_settings?: BotAppSettings; + verifier_settings?: BotVerifierSettings; } export interface $KeyboardButton { @@ -2695,6 +2760,10 @@ export interface $Channel { stories_hidden_min?: boolean; stories_unavailable?: boolean; signature_profiles?: boolean; + autotranslation?: boolean; + broadcast_messages_allowed?: boolean; + monoforum?: boolean; + forum_tabs?: boolean; id: string; access_hash?: string; title: string; @@ -2713,6 +2782,9 @@ export interface $Channel { emoji_status?: EmojiStatus; level?: number; subscription_until_date?: number; + bot_verification_icon?: string; + send_paid_messages_stars?: string; + linked_monoforum_id?: string; } export interface $ChannelForbidden { @@ -2756,6 +2828,8 @@ export interface $ChannelFull { paid_media_allowed?: boolean; can_view_stars_revenue?: boolean; paid_reactions_available?: boolean; + stargifts_available?: boolean; + paid_messages_available?: boolean; id: string; about: string; participants_count?: number; @@ -2797,6 +2871,10 @@ export interface $ChannelFull { boosts_applied?: number; boosts_unrestrict?: number; emojiset?: StickerSet; + bot_verification?: BotVerification; + stargifts_count?: number; + send_paid_messages_stars?: string; + main_tab?: ProfileTab; } export interface $MessageRange { @@ -3498,6 +3576,7 @@ export interface $UpdateDraftMessage { flags?: Number; peer: Peer; top_msg_id?: number; + saved_peer_id?: Peer; draft: DraftMessage; } @@ -3518,6 +3597,7 @@ export interface $DraftMessage { media?: InputMedia; date: number; effect?: string; + suggested_post?: SuggestedPost; } export interface $MessageActionHistoryClear { @@ -3602,6 +3682,8 @@ export interface $InputMediaDocumentExternal { spoiler?: boolean; url: string; ttl_seconds?: number; + video_cover?: InputPhoto; + video_timestamp?: number; } export interface $StickerSetMultiCovered { @@ -4293,6 +4375,7 @@ export interface $PhoneCall { flags?: Number; p2p_allowed?: boolean; video?: boolean; + conference_supported?: boolean; id: string; access_hash: string; date: number; @@ -4655,6 +4738,7 @@ export interface $UpdateChannelReadMessagesContents { flags?: Number; channel_id: string; top_msg_id?: number; + saved_peer_id?: Peer; messages: number[]; } @@ -5129,6 +5213,7 @@ export interface $UpdateDialogUnreadMark { flags?: Number; unread?: boolean; peer: DialogPeer; + saved_peer_id?: Peer; } export interface $Messages$DialogsNotModified { @@ -5567,6 +5652,7 @@ export interface $ChatAdminRights { post_stories?: boolean; edit_stories?: boolean; delete_stories?: boolean; + manage_direct_messages?: boolean; } export interface $ChatBannedRights { @@ -6240,8 +6326,9 @@ export interface $DialogFilter { exclude_muted?: boolean; exclude_read?: boolean; exclude_archived?: boolean; + title_noanimate?: boolean; id: number; - title: string; + title: TextWithEntities; emoticon?: string; color?: number; pinned_peers: InputPeer[]; @@ -6358,11 +6445,14 @@ export interface $Help$PromoData { flags?: Number; proxy?: boolean; expires: number; - peer: Peer; - chats: Chat[]; - users: User[]; + peer?: Peer; psa_type?: string; psa_message?: string; + pending_suggestions: string[]; + dismissed_suggestions: string[]; + custom_pending_suggestion?: PendingSuggestion; + chats: Chat[]; + users: User[]; } export interface $VideoSize { @@ -6437,6 +6527,9 @@ export interface $GlobalPrivacySettings { keep_archived_folders?: boolean; hide_read_marks?: boolean; new_noncontact_peers_require_premium?: boolean; + display_gifts_button?: boolean; + noncontact_peers_paid_stars?: string; + disallowed_gifts?: DisallowedGiftsSettings; } export interface $PhoneConnectionWebrtc { @@ -6553,6 +6646,7 @@ export interface $MessageReplyHeader { quote_text?: string; quote_entities?: MessageEntity[]; quote_offset?: number; + todo_item_id?: number; } export interface $MessageReplies { @@ -6673,6 +6767,8 @@ export interface $GroupCall { record_video_active?: boolean; rtmp_stream?: boolean; listeners_hidden?: boolean; + conference?: boolean; + creator?: boolean; id: string; access_hash: string; participants_count: number; @@ -6683,6 +6779,7 @@ export interface $GroupCall { unmuted_video_count?: number; unmuted_video_limit: number; version: number; + invite_link?: string; } export interface $InputGroupCall { @@ -6742,7 +6839,8 @@ export interface $UpdateGroupCallParticipants { export interface $UpdateGroupCall { _: "updateGroupCall"; - chat_id: string; + flags?: Number; + chat_id?: string; call: GroupCall; } @@ -7118,9 +7216,28 @@ export interface $UpdateBotCommands { commands: BotCommand[]; } +export interface $ChatTheme { + _: "chatTheme"; + emoticon: string; +} + +export interface $Account$ChatThemesNotModified { + _: "account.chatThemesNotModified"; +} + +export interface $Account$ChatThemes { + _: "account.chatThemes"; + flags?: Number; + hash: string; + themes: ChatTheme[]; + chats: Chat[]; + users: User[]; + next_offset?: number; +} + export interface $MessageActionSetChatTheme { _: "messageActionSetChatTheme"; - emoticon: string; + theme: ChatTheme; } export interface $SendMessageChooseStickerAction { @@ -7143,12 +7260,16 @@ export interface $SponsoredMessage { button_text: string; sponsor_info?: string; additional_info?: string; + min_display_duration?: number; + max_display_duration?: number; } export interface $Messages$SponsoredMessages { _: "messages.sponsoredMessages"; flags?: Number; posts_between?: number; + start_delay?: number; + between_delay?: number; messages: SponsoredMessage[]; chats: Chat[]; users: User[]; @@ -7309,6 +7430,7 @@ export interface $UpdateMessageReactions { peer: Peer; msg_id: number; top_msg_id?: number; + saved_peer_id?: Peer; reactions: MessageReactions; } @@ -7694,16 +7816,6 @@ export interface $MessageActionGiftPremium { message?: TextWithEntities; } -export interface $PremiumGiftOption { - _: "premiumGiftOption"; - flags?: Number; - months: number; - currency: string; - amount: string; - bot_url: string; - store_product?: string; -} - export interface $InputStickerSetPremiumGifts { _: "inputStickerSetPremiumGifts"; } @@ -7741,13 +7853,9 @@ export interface $EmojiStatusEmpty { export interface $EmojiStatus { _: "emojiStatus"; + flags?: Number; document_id: string; -} - -export interface $EmojiStatusUntil { - _: "emojiStatusUntil"; - document_id: string; - until: number; + until?: number; } export interface $UpdateUserEmojiStatus { @@ -8310,8 +8418,9 @@ export interface $DialogFilterChatlist { _: "dialogFilterChatlist"; flags?: Number; has_my_invites?: boolean; + title_noanimate?: boolean; id: number; - title: string; + title: TextWithEntities; emoticon?: string; color?: number; pinned_peers: InputPeer[]; @@ -8356,7 +8465,8 @@ export interface $Chatlists$ChatlistInviteAlready { export interface $Chatlists$ChatlistInvite { _: "chatlists.chatlistInvite"; flags?: Number; - title: string; + title_noanimate?: boolean; + title: TextWithEntities; emoticon?: string; peers: Peer[]; chats: Chat[]; @@ -8466,6 +8576,7 @@ export interface $StoryItem { privacy?: PrivacyRule[]; views?: StoryViews; sent_reaction?: Reaction; + albums?: number[]; } export interface $UpdateStory { @@ -8555,6 +8666,8 @@ export interface $InputReplyToMessage { quote_text?: string; quote_entities?: MessageEntity[]; quote_offset?: number; + monoforum_peer_id?: InputPeer; + todo_item_id?: number; } export interface $InputReplyToStory { @@ -9436,9 +9549,9 @@ export interface $UpdateDeleteQuickReplyMessages { export interface $ConnectedBot { _: "connectedBot"; flags?: Number; - can_reply?: boolean; bot_id: string; recipients: BusinessBotRecipients; + rights: BusinessBotRights; } export interface $Account$ConnectedBots { @@ -9497,12 +9610,12 @@ export interface $UpdateBotDeleteBusinessMessage { export interface $BotBusinessConnection { _: "botBusinessConnection"; flags?: Number; - can_reply?: boolean; disabled?: boolean; connection_id: string; user_id: string; dc_id: number; date: number; + rights?: BusinessBotRights; } export interface $InputBusinessIntro { @@ -9713,51 +9826,6 @@ export interface $Channels$SponsoredMessageReportResultReported { _: "channels.sponsoredMessageReportResultReported"; } -export interface $Stats$BroadcastRevenueStats { - _: "stats.broadcastRevenueStats"; - top_hours_graph: StatsGraph; - revenue_graph: StatsGraph; - balances: BroadcastRevenueBalances; - usd_rate: number; -} - -export interface $Stats$BroadcastRevenueWithdrawalUrl { - _: "stats.broadcastRevenueWithdrawalUrl"; - url: string; -} - -export interface $BroadcastRevenueTransactionProceeds { - _: "broadcastRevenueTransactionProceeds"; - amount: string; - from_date: number; - to_date: number; -} - -export interface $BroadcastRevenueTransactionWithdrawal { - _: "broadcastRevenueTransactionWithdrawal"; - flags?: Number; - pending?: boolean; - failed?: boolean; - amount: string; - date: number; - provider: string; - transaction_date?: number; - transaction_url?: string; -} - -export interface $BroadcastRevenueTransactionRefund { - _: "broadcastRevenueTransactionRefund"; - amount: string; - date: number; - provider: string; -} - -export interface $Stats$BroadcastRevenueTransactions { - _: "stats.broadcastRevenueTransactions"; - count: number; - transactions: BroadcastRevenueTransaction[]; -} - export interface $WebPageAttributeStickerSet { _: "webPageAttributeStickerSet"; flags?: Number; @@ -9815,21 +9883,6 @@ export interface $EmojiGroupPremium { icon_emoji_id: string; } -export interface $BroadcastRevenueBalances { - _: "broadcastRevenueBalances"; - flags?: Number; - withdrawal_enabled?: boolean; - current_balance: string; - available_balance: string; - overall_revenue: string; -} - -export interface $UpdateBroadcastRevenueTransactions { - _: "updateBroadcastRevenueTransactions"; - peer: Peer; - balances: BroadcastRevenueBalances; -} - export interface $AvailableEffect { _: "availableEffect"; flags?: Number; @@ -9909,8 +9962,13 @@ export interface $StarsTransaction { failed?: boolean; gift?: boolean; reaction?: boolean; + stargift_upgrade?: boolean; + business_transfer?: boolean; + stargift_resale?: boolean; + posts_search?: boolean; + stargift_prepaid_upgrade?: boolean; id: string; - stars: StarsAmount; + amount: StarsAmount; date: number; peer: StarsTransactionPeer; title?: string; @@ -9928,6 +9986,10 @@ export interface $StarsTransaction { starref_commission_permille?: number; starref_peer?: Peer; starref_amount?: StarsAmount; + paid_messages?: number; + premium_gift_months?: number; + ads_proceeds_from_date?: number; + ads_proceeds_to_date?: number; } export interface $Payments$StarsStatus { @@ -10030,6 +10092,8 @@ export interface $StarsRevenueStatus { export interface $Payments$StarsRevenueStats { _: "payments.starsRevenueStats"; + flags?: Number; + top_hours_graph?: StatsGraph; revenue_graph: StatsGraph; status: StarsRevenueStatus; usd_rate: number; @@ -10088,9 +10152,11 @@ export interface $MessageActionPaymentRefunded { export interface $InputStorePaymentStarsTopup { _: "inputStorePaymentStarsTopup"; + flags?: Number; stars: string; currency: string; amount: string; + spend_purpose_peer?: InputPeer; } export interface $InputStorePaymentStarsGift { @@ -10247,7 +10313,7 @@ export interface $MessageActionPrizeStars { export interface $UpdatePaidReactionPrivacy { _: "updatePaidReactionPrivacy"; - private: boolean; + private: PaidReactionPrivacy; } export interface $StarsGiveawayOption { @@ -10292,14 +10358,24 @@ export interface $StarGift { limited?: boolean; sold_out?: boolean; birthday?: boolean; + require_premium?: boolean; + limited_per_user?: boolean; id: string; sticker: Document; stars: string; availability_remains?: number; availability_total?: number; + availability_resale?: string; convert_stars: string; first_sale_date?: number; last_sale_date?: number; + upgrade_stars?: string; + resell_min_stars?: string; + title?: string; + released_by?: Peer; + per_user_total?: number; + per_user_remains?: number; + locked_until_date?: number; } export interface $Payments$StarGiftsNotModified { @@ -10310,13 +10386,16 @@ export interface $Payments$StarGifts { _: "payments.starGifts"; hash: number; gifts: StarGift[]; + chats: Chat[]; + users: User[]; } export interface $InputInvoiceStarGift { _: "inputInvoiceStarGift"; flags?: Number; hide_name?: boolean; - user_id: InputUser; + include_upgrade?: boolean; + peer: InputPeer; gift_id: string; message?: TextWithEntities; } @@ -10333,31 +10412,21 @@ export interface $MessageActionStarGift { name_hidden?: boolean; saved?: boolean; converted?: boolean; + upgraded?: boolean; + refunded?: boolean; + can_upgrade?: boolean; + prepaid_upgrade?: boolean; + upgrade_separate?: boolean; gift: StarGift; message?: TextWithEntities; convert_stars?: string; -} - -export interface $UserStarGift { - _: "userStarGift"; - flags?: Number; - name_hidden?: boolean; - unsaved?: boolean; - from_id?: string; - date: number; - gift: StarGift; - message?: TextWithEntities; - msg_id?: number; - convert_stars?: string; -} - -export interface $Payments$UserStarGifts { - _: "payments.userStarGifts"; - flags?: Number; - count: number; - gifts: UserStarGift[]; - next_offset?: string; - users: User[]; + upgrade_msg_id?: number; + upgrade_stars?: string; + from_id?: Peer; + peer?: Peer; + saved_id?: string; + prepaid_upgrade_hash?: string; + gift_msg_id?: number; } export interface $MessageReportOption { @@ -10495,155 +10564,916 @@ export interface $Messages$FoundStickers { stickers: Document[]; } -export interface Methods { - 'invokeAfterMsg': { - params: { - msg_id: string; - query: unknown; - } - response: unknown - } - 'invokeAfterMsgs': { - params: { - msg_ids: string[]; - query: unknown; - } - response: unknown - } - 'auth.sendCode': { - params: { - phone_number: string; - api_id: number; - api_hash: string; - settings: CodeSettings; - } - response: Auth$SentCode - } - 'auth.signUp': { - params: { - flags?: Number; - no_joined_notifications?: boolean; - phone_number: string; - phone_code_hash: string; - first_name: string; - last_name: string; - } - response: Auth$Authorization - } - 'auth.signIn': { - params: { - flags?: Number; - phone_number: string; - phone_code_hash: string; - phone_code?: string; - email_verification?: EmailVerification; - } - response: Auth$Authorization - } - 'auth.logOut': { - params: { - } - response: Auth$LoggedOut - } - 'auth.resetAuthorizations': { - params: { - } - response: boolean - } - 'auth.exportAuthorization': { - params: { - dc_id: number; - } - response: Auth$ExportedAuthorization - } - 'auth.importAuthorization': { - params: { - id: string; - bytes: Uint8Array; - } - response: Auth$Authorization - } - 'auth.bindTempAuthKey': { - params: { - perm_auth_key_id: string; - nonce: string; - expires_at: number; - encrypted_message: Uint8Array; - } - response: boolean - } - 'account.registerDevice': { - params: { - flags?: Number; - no_muted?: boolean; - token_type: number; - token: string; - app_sandbox: boolean; - secret: Uint8Array; - other_uids: string[]; - } - response: boolean - } - 'account.unregisterDevice': { - params: { - token_type: number; - token: string; - other_uids: string[]; - } - response: boolean - } - 'account.updateNotifySettings': { - params: { - peer: InputNotifyPeer; - settings: InputPeerNotifySettings; - } - response: boolean - } - 'account.getNotifySettings': { - params: { - peer: InputNotifyPeer; - } - response: PeerNotifySettings - } - 'account.resetNotifySettings': { - params: { - } - response: boolean - } - 'account.updateProfile': { - params: { - flags?: Number; - first_name?: string; - last_name?: string; - about?: string; - } - response: User - } - 'account.updateStatus': { - params: { - offline: boolean; - } - response: boolean - } - 'account.getWallPapers': { - params: { - hash: string; - } - response: Account$WallPapers - } - 'account.reportPeer': { - params: { - peer: InputPeer; - reason: ReportReason; - message: string; - } - response: boolean - } - 'users.getUsers': { - params: { - id: InputUser[]; - } - response: User[] +export interface $BotVerifierSettings { + _: "botVerifierSettings"; + flags?: Number; + can_modify_custom_description?: boolean; + icon: string; + company: string; + custom_description?: string; +} + +export interface $BotVerification { + _: "botVerification"; + bot_id: string; + icon: string; + description: string; +} + +export interface $StarGiftAttributeModel { + _: "starGiftAttributeModel"; + name: string; + document: Document; + rarity_permille: number; +} + +export interface $StarGiftAttributePattern { + _: "starGiftAttributePattern"; + name: string; + document: Document; + rarity_permille: number; +} + +export interface $StarGiftAttributeBackdrop { + _: "starGiftAttributeBackdrop"; + name: string; + backdrop_id: number; + center_color: number; + edge_color: number; + pattern_color: number; + text_color: number; + rarity_permille: number; +} + +export interface $StarGiftAttributeOriginalDetails { + _: "starGiftAttributeOriginalDetails"; + flags?: Number; + sender_id?: Peer; + recipient_id: Peer; + date: number; + message?: TextWithEntities; +} + +export interface $StarGiftUnique { + _: "starGiftUnique"; + flags?: Number; + require_premium?: boolean; + resale_ton_only?: boolean; + theme_available?: boolean; + id: string; + gift_id: string; + title: string; + slug: string; + num: number; + owner_id?: Peer; + owner_name?: string; + owner_address?: string; + attributes: StarGiftAttribute[]; + availability_issued: number; + availability_total: number; + gift_address?: string; + resell_amount?: StarsAmount[]; + released_by?: Peer; + value_amount?: string; + value_currency?: string; + theme_peer?: Peer; +} + +export interface $MessageActionStarGiftUnique { + _: "messageActionStarGiftUnique"; + flags?: Number; + upgrade?: boolean; + transferred?: boolean; + saved?: boolean; + refunded?: boolean; + prepaid_upgrade?: boolean; + gift: StarGift; + can_export_at?: number; + transfer_stars?: string; + from_id?: Peer; + peer?: Peer; + saved_id?: string; + resale_amount?: StarsAmount; + can_transfer_at?: number; + can_resell_at?: number; +} + +export interface $InputInvoiceStarGiftUpgrade { + _: "inputInvoiceStarGiftUpgrade"; + flags?: Number; + keep_original_details?: boolean; + stargift: InputSavedStarGift; +} + +export interface $InputInvoiceStarGiftTransfer { + _: "inputInvoiceStarGiftTransfer"; + stargift: InputSavedStarGift; + to_id: InputPeer; +} + +export interface $Payments$StarGiftUpgradePreview { + _: "payments.starGiftUpgradePreview"; + sample_attributes: StarGiftAttribute[]; +} + +export interface $Users$Users { + _: "users.users"; + users: User[]; +} + +export interface $Users$UsersSlice { + _: "users.usersSlice"; + count: number; + users: User[]; +} + +export interface $Payments$UniqueStarGift { + _: "payments.uniqueStarGift"; + gift: StarGift; + chats: Chat[]; + users: User[]; +} + +export interface $WebPageAttributeUniqueStarGift { + _: "webPageAttributeUniqueStarGift"; + gift: StarGift; +} + +export interface $MediaAreaStarGift { + _: "mediaAreaStarGift"; + coordinates: MediaAreaCoordinates; + slug: string; +} + +export interface $Messages$WebPagePreview { + _: "messages.webPagePreview"; + media: MessageMedia; + chats: Chat[]; + users: User[]; +} + +export interface $EmojiStatusCollectible { + _: "emojiStatusCollectible"; + flags?: Number; + collectible_id: string; + document_id: string; + title: string; + slug: string; + pattern_document_id: string; + center_color: number; + edge_color: number; + pattern_color: number; + text_color: number; + until?: number; +} + +export interface $InputEmojiStatusCollectible { + _: "inputEmojiStatusCollectible"; + flags?: Number; + collectible_id: string; + until?: number; +} + +export interface $SavedStarGift { + _: "savedStarGift"; + flags?: Number; + name_hidden?: boolean; + unsaved?: boolean; + refunded?: boolean; + can_upgrade?: boolean; + pinned_to_top?: boolean; + upgrade_separate?: boolean; + from_id?: Peer; + date: number; + gift: StarGift; + message?: TextWithEntities; + msg_id?: number; + saved_id?: string; + convert_stars?: string; + upgrade_stars?: string; + can_export_at?: number; + transfer_stars?: string; + can_transfer_at?: number; + can_resell_at?: number; + collection_id?: number[]; + prepaid_upgrade_hash?: string; +} + +export interface $Payments$SavedStarGifts { + _: "payments.savedStarGifts"; + flags?: Number; + count: number; + chat_notifications_enabled?: boolean; + gifts: SavedStarGift[]; + next_offset?: string; + chats: Chat[]; + users: User[]; +} + +export interface $InputSavedStarGiftUser { + _: "inputSavedStarGiftUser"; + msg_id: number; +} + +export interface $InputSavedStarGiftChat { + _: "inputSavedStarGiftChat"; + peer: InputPeer; + saved_id: string; +} + +export interface $Payments$StarGiftWithdrawalUrl { + _: "payments.starGiftWithdrawalUrl"; + url: string; +} + +export interface $PaidReactionPrivacyDefault { + _: "paidReactionPrivacyDefault"; +} + +export interface $PaidReactionPrivacyAnonymous { + _: "paidReactionPrivacyAnonymous"; +} + +export interface $PaidReactionPrivacyPeer { + _: "paidReactionPrivacyPeer"; + peer: InputPeer; +} + +export interface $InputPrivacyKeyNoPaidMessages { + _: "inputPrivacyKeyNoPaidMessages"; +} + +export interface $PrivacyKeyNoPaidMessages { + _: "privacyKeyNoPaidMessages"; +} + +export interface $Account$PaidMessagesRevenue { + _: "account.paidMessagesRevenue"; + stars_amount: string; +} + +export interface $RequirementToContactEmpty { + _: "requirementToContactEmpty"; +} + +export interface $RequirementToContactPremium { + _: "requirementToContactPremium"; +} + +export interface $RequirementToContactPaidMessages { + _: "requirementToContactPaidMessages"; + stars_amount: string; +} + +export interface $InputInvoicePremiumGiftStars { + _: "inputInvoicePremiumGiftStars"; + flags?: Number; + user_id: InputUser; + months: number; + message?: TextWithEntities; +} + +export interface $Auth$SentCodePaymentRequired { + _: "auth.sentCodePaymentRequired"; + store_product: string; + phone_code_hash: string; + support_email_address: string; + support_email_subject: string; +} + +export interface $InputStorePaymentAuthCode { + _: "inputStorePaymentAuthCode"; + flags?: Number; + restore?: boolean; + phone_number: string; + phone_code_hash: string; + currency: string; + amount: string; +} + +export interface $UpdateSentPhoneCode { + _: "updateSentPhoneCode"; + sent_code: Auth$SentCode; +} + +export interface $BusinessBotRights { + _: "businessBotRights"; + flags?: Number; + reply?: boolean; + read_messages?: boolean; + delete_sent_messages?: boolean; + delete_received_messages?: boolean; + edit_name?: boolean; + edit_bio?: boolean; + edit_profile_photo?: boolean; + edit_username?: boolean; + view_gifts?: boolean; + sell_gifts?: boolean; + change_gift_settings?: boolean; + transfer_and_upgrade_gifts?: boolean; + transfer_stars?: boolean; + manage_stories?: boolean; +} + +export interface $MessageActionPaidMessagesRefunded { + _: "messageActionPaidMessagesRefunded"; + count: number; + stars: string; +} + +export interface $MessageActionPaidMessagesPrice { + _: "messageActionPaidMessagesPrice"; + flags?: Number; + broadcast_messages_allowed?: boolean; + stars: string; +} + +export interface $DisallowedGiftsSettings { + _: "disallowedGiftsSettings"; + flags?: Number; + disallow_unlimited_stargifts?: boolean; + disallow_limited_stargifts?: boolean; + disallow_unique_stargifts?: boolean; + disallow_premium_gifts?: boolean; +} + +export interface $SponsoredPeer { + _: "sponsoredPeer"; + flags?: Number; + random_id: Uint8Array; + peer: Peer; + sponsor_info?: string; + additional_info?: string; +} + +export interface $Contacts$SponsoredPeersEmpty { + _: "contacts.sponsoredPeersEmpty"; +} + +export interface $Contacts$SponsoredPeers { + _: "contacts.sponsoredPeers"; + peers: SponsoredPeer[]; + chats: Chat[]; + users: User[]; +} + +export interface $InputInvoiceBusinessBotTransferStars { + _: "inputInvoiceBusinessBotTransferStars"; + bot: InputUser; + stars: string; +} + +export interface $InputGroupCallSlug { + _: "inputGroupCallSlug"; + slug: string; +} + +export interface $InputGroupCallInviteMessage { + _: "inputGroupCallInviteMessage"; + msg_id: number; +} + +export interface $UpdateGroupCallChainBlocks { + _: "updateGroupCallChainBlocks"; + call: InputGroupCall; + sub_chain_id: number; + blocks: Uint8Array[]; + next_offset: number; +} + +export interface $MessageActionConferenceCall { + _: "messageActionConferenceCall"; + flags?: Number; + missed?: boolean; + active?: boolean; + video?: boolean; + call_id: string; + duration?: number; + other_participants?: Peer[]; +} + +export interface $PhoneCallDiscardReasonMigrateConferenceCall { + _: "phoneCallDiscardReasonMigrateConferenceCall"; + slug: string; +} + +export interface $InputSavedStarGiftSlug { + _: "inputSavedStarGiftSlug"; + slug: string; +} + +export interface $StarGiftAttributeIdModel { + _: "starGiftAttributeIdModel"; + document_id: string; +} + +export interface $StarGiftAttributeIdPattern { + _: "starGiftAttributeIdPattern"; + document_id: string; +} + +export interface $StarGiftAttributeIdBackdrop { + _: "starGiftAttributeIdBackdrop"; + backdrop_id: number; +} + +export interface $StarGiftAttributeCounter { + _: "starGiftAttributeCounter"; + attribute: StarGiftAttributeId; + count: number; +} + +export interface $Payments$ResaleStarGifts { + _: "payments.resaleStarGifts"; + flags?: Number; + count: number; + gifts: StarGift[]; + next_offset?: string; + attributes?: StarGiftAttribute[]; + attributes_hash?: string; + chats: Chat[]; + counters?: StarGiftAttributeCounter[]; + users: User[]; +} + +export interface $InputInvoiceStarGiftResale { + _: "inputInvoiceStarGiftResale"; + flags?: Number; + ton?: boolean; + slug: string; + to_id: InputPeer; +} + +export interface $ChannelAdminLogEventActionToggleAutotranslation { + _: "channelAdminLogEventActionToggleAutotranslation"; + new_value: boolean; +} + +export interface $Stories$CanSendStoryCount { + _: "stories.canSendStoryCount"; + count_remains: number; +} + +export interface $PendingSuggestion { + _: "pendingSuggestion"; + suggestion: string; + title: TextWithEntities; + description: TextWithEntities; + url: string; +} + +export interface $InputReplyToMonoForum { + _: "inputReplyToMonoForum"; + monoforum_peer_id: InputPeer; +} + +export interface $MonoForumDialog { + _: "monoForumDialog"; + flags?: Number; + unread_mark?: boolean; + nopaid_messages_exception?: boolean; + peer: Peer; + top_message: number; + read_inbox_max_id: number; + read_outbox_max_id: number; + unread_count: number; + unread_reactions_count: number; + draft?: DraftMessage; +} + +export interface $UpdateReadMonoForumInbox { + _: "updateReadMonoForumInbox"; + channel_id: string; + saved_peer_id: Peer; + read_max_id: number; +} + +export interface $UpdateReadMonoForumOutbox { + _: "updateReadMonoForumOutbox"; + channel_id: string; + saved_peer_id: Peer; + read_max_id: number; +} + +export interface $TodoItem { + _: "todoItem"; + id: number; + title: TextWithEntities; +} + +export interface $TodoList { + _: "todoList"; + flags?: Number; + others_can_append?: boolean; + others_can_complete?: boolean; + title: TextWithEntities; + list: TodoItem[]; +} + +export interface $TodoCompletion { + _: "todoCompletion"; + id: number; + completed_by: string; + date: number; +} + +export interface $InputMediaTodo { + _: "inputMediaTodo"; + todo: TodoList; +} + +export interface $MessageMediaToDo { + _: "messageMediaToDo"; + flags?: Number; + todo: TodoList; + completions?: TodoCompletion[]; +} + +export interface $MessageActionTodoCompletions { + _: "messageActionTodoCompletions"; + completed: number[]; + incompleted: number[]; +} + +export interface $MessageActionTodoAppendTasks { + _: "messageActionTodoAppendTasks"; + list: TodoItem[]; +} + +export interface $UpdateMonoForumNoPaidException { + _: "updateMonoForumNoPaidException"; + flags?: Number; + exception?: boolean; + channel_id: string; + saved_peer_id: Peer; +} + +export interface $SuggestedPost { + _: "suggestedPost"; + flags?: Number; + accepted?: boolean; + rejected?: boolean; + price?: StarsAmount; + schedule_date?: number; +} + +export interface $MessageActionSuggestedPostApproval { + _: "messageActionSuggestedPostApproval"; + flags?: Number; + rejected?: boolean; + balance_too_low?: boolean; + reject_comment?: string; + schedule_date?: number; + price?: StarsAmount; +} + +export interface $MessageActionSuggestedPostSuccess { + _: "messageActionSuggestedPostSuccess"; + price: StarsAmount; +} + +export interface $MessageActionSuggestedPostRefund { + _: "messageActionSuggestedPostRefund"; + flags?: Number; + payer_initiated?: boolean; +} + +export interface $StarsTonAmount { + _: "starsTonAmount"; + amount: string; +} + +export interface $MessageActionGiftTon { + _: "messageActionGiftTon"; + flags?: Number; + currency: string; + amount: string; + crypto_currency: string; + crypto_amount: string; + transaction_id?: string; +} + +export interface $InputStickerSetTonGifts { + _: "inputStickerSetTonGifts"; +} + +export interface $StarsRating { + _: "starsRating"; + flags?: Number; + level: number; + current_level_stars: string; + stars: string; + next_level_stars?: string; +} + +export interface $StarGiftCollection { + _: "starGiftCollection"; + flags?: Number; + collection_id: number; + title: string; + icon?: Document; + gifts_count: number; + hash: string; +} + +export interface $Payments$StarGiftCollectionsNotModified { + _: "payments.starGiftCollectionsNotModified"; +} + +export interface $Payments$StarGiftCollections { + _: "payments.starGiftCollections"; + collections: StarGiftCollection[]; +} + +export interface $StoryAlbum { + _: "storyAlbum"; + flags?: Number; + album_id: number; + title: string; + icon_photo?: Photo; + icon_video?: Document; +} + +export interface $Stories$AlbumsNotModified { + _: "stories.albumsNotModified"; +} + +export interface $Stories$Albums { + _: "stories.albums"; + hash: string; + albums: StoryAlbum[]; +} + +export interface $SearchPostsFlood { + _: "searchPostsFlood"; + flags?: Number; + query_is_free?: boolean; + total_daily: number; + remains: number; + wait_till?: number; + stars_amount: string; +} + +export interface $WebPageAttributeStarGiftCollection { + _: "webPageAttributeStarGiftCollection"; + icons: Document[]; +} + +export interface $InputInvoiceStarGiftPrepaidUpgrade { + _: "inputInvoiceStarGiftPrepaidUpgrade"; + peer: InputPeer; + hash: string; +} + +export interface $Payments$UniqueStarGiftValueInfo { + _: "payments.uniqueStarGiftValueInfo"; + flags?: Number; + last_sale_on_fragment?: boolean; + value_is_average?: boolean; + currency: string; + value: string; + initial_sale_date: number; + initial_sale_stars: string; + initial_sale_price: string; + last_sale_date?: number; + last_sale_price?: string; + floor_price?: string; + average_price?: string; + listed_count?: number; + fragment_listed_count?: number; + fragment_listed_url?: string; +} + +export interface $ProfileTabPosts { + _: "profileTabPosts"; +} + +export interface $ProfileTabGifts { + _: "profileTabGifts"; +} + +export interface $ProfileTabMedia { + _: "profileTabMedia"; +} + +export interface $ProfileTabFiles { + _: "profileTabFiles"; +} + +export interface $ProfileTabMusic { + _: "profileTabMusic"; +} + +export interface $ProfileTabVoice { + _: "profileTabVoice"; +} + +export interface $ProfileTabLinks { + _: "profileTabLinks"; +} + +export interface $ProfileTabGifs { + _: "profileTabGifs"; +} + +export interface $Users$SavedMusicNotModified { + _: "users.savedMusicNotModified"; + count: number; +} + +export interface $Users$SavedMusic { + _: "users.savedMusic"; + count: number; + documents: Document[]; +} + +export interface $Account$SavedMusicIdsNotModified { + _: "account.savedMusicIdsNotModified"; +} + +export interface $Account$SavedMusicIds { + _: "account.savedMusicIds"; + ids: string[]; +} + +export interface $Payments$CheckCanSendGiftResultOk { + _: "payments.checkCanSendGiftResultOk"; +} + +export interface $Payments$CheckCanSendGiftResultFail { + _: "payments.checkCanSendGiftResultFail"; + reason: TextWithEntities; +} + +export interface $ChatThemeUniqueGift { + _: "chatThemeUniqueGift"; + gift: StarGift; + theme_settings: ThemeSettings[]; +} + +export interface $InputChatThemeEmpty { + _: "inputChatThemeEmpty"; +} + +export interface $InputChatTheme { + _: "inputChatTheme"; + emoticon: string; +} + +export interface $InputChatThemeUniqueGift { + _: "inputChatThemeUniqueGift"; + slug: string; +} + +export interface Methods { + 'invokeAfterMsg': { + params: { + msg_id: string; + query: unknown; + } + response: unknown + } + 'invokeAfterMsgs': { + params: { + msg_ids: string[]; + query: unknown; + } + response: unknown + } + 'auth.sendCode': { + params: { + phone_number: string; + api_id: number; + api_hash: string; + settings: CodeSettings; + } + response: Auth$SentCode + } + 'auth.signUp': { + params: { + flags?: Number; + no_joined_notifications?: boolean; + phone_number: string; + phone_code_hash: string; + first_name: string; + last_name: string; + } + response: Auth$Authorization + } + 'auth.signIn': { + params: { + flags?: Number; + phone_number: string; + phone_code_hash: string; + phone_code?: string; + email_verification?: EmailVerification; + } + response: Auth$Authorization + } + 'auth.logOut': { + params: { + } + response: Auth$LoggedOut + } + 'auth.resetAuthorizations': { + params: { + } + response: boolean + } + 'auth.exportAuthorization': { + params: { + dc_id: number; + } + response: Auth$ExportedAuthorization + } + 'auth.importAuthorization': { + params: { + id: string; + bytes: Uint8Array; + } + response: Auth$Authorization + } + 'auth.bindTempAuthKey': { + params: { + perm_auth_key_id: string; + nonce: string; + expires_at: number; + encrypted_message: Uint8Array; + } + response: boolean + } + 'account.registerDevice': { + params: { + flags?: Number; + no_muted?: boolean; + token_type: number; + token: string; + app_sandbox: boolean; + secret: Uint8Array; + other_uids: string[]; + } + response: boolean + } + 'account.unregisterDevice': { + params: { + token_type: number; + token: string; + other_uids: string[]; + } + response: boolean + } + 'account.updateNotifySettings': { + params: { + peer: InputNotifyPeer; + settings: InputPeerNotifySettings; + } + response: boolean + } + 'account.getNotifySettings': { + params: { + peer: InputNotifyPeer; + } + response: PeerNotifySettings + } + 'account.resetNotifySettings': { + params: { + } + response: boolean + } + 'account.updateProfile': { + params: { + flags?: Number; + first_name?: string; + last_name?: string; + about?: string; + } + response: User + } + 'account.updateStatus': { + params: { + offline: boolean; + } + response: boolean + } + 'account.getWallPapers': { + params: { + hash: string; + } + response: Account$WallPapers + } + 'account.reportPeer': { + params: { + peer: InputPeer; + reason: ReportReason; + message: string; + } + response: boolean + } + 'users.getUsers': { + params: { + id: InputUser[]; + } + response: User[] } 'users.getFullUser': { params: { @@ -10827,6 +11657,8 @@ export interface Methods { send_as?: InputPeer; quick_reply_shortcut?: InputQuickReplyShortcut; effect?: string; + allow_paid_stars?: string; + suggested_post?: SuggestedPost; } response: Updates } @@ -10851,6 +11683,8 @@ export interface Methods { send_as?: InputPeer; quick_reply_shortcut?: InputQuickReplyShortcut; effect?: string; + allow_paid_stars?: string; + suggested_post?: SuggestedPost; } response: Updates } @@ -10869,9 +11703,13 @@ export interface Methods { random_id: string[]; to_peer: InputPeer; top_msg_id?: number; + reply_to?: InputReplyTo; schedule_date?: number; send_as?: InputPeer; quick_reply_shortcut?: InputQuickReplyShortcut; + video_timestamp?: number; + allow_paid_stars?: string; + suggested_post?: SuggestedPost; } response: Updates } @@ -11278,7 +12116,7 @@ export interface Methods { message: string; entities?: MessageEntity[]; } - response: MessageMedia + response: Messages$WebPagePreview } 'account.getAuthorizations': { params: { @@ -11644,6 +12482,7 @@ export interface Methods { schedule_date?: number; send_as?: InputPeer; quick_reply_shortcut?: InputQuickReplyShortcut; + allow_paid_stars?: string; } response: Updates } @@ -11782,6 +12621,7 @@ export interface Methods { entities?: MessageEntity[]; media?: InputMedia; effect?: string; + suggested_post?: SuggestedPost; } response: boolean } @@ -12352,6 +13192,7 @@ export interface Methods { send_as?: InputPeer; quick_reply_shortcut?: InputQuickReplyShortcut; effect?: string; + allow_paid_stars?: string; } response: Updates } @@ -12543,12 +13384,15 @@ export interface Methods { params: { flags?: Number; unread?: boolean; + parent_peer?: InputPeer; peer: InputDialogPeer; } response: boolean } 'messages.getDialogUnreadMarks': { params: { + flags?: Number; + parent_peer?: InputPeer; } response: DialogPeer[] } @@ -13174,2562 +14018,2990 @@ export interface Methods { } response: boolean } - 'contacts.blockFromReplies': { + 'contacts.blockFromReplies': { + params: { + flags?: Number; + delete_message?: boolean; + delete_history?: boolean; + report_spam?: boolean; + msg_id: number; + } + response: Updates + } + 'stats.getMessagePublicForwards': { + params: { + channel: InputChannel; + msg_id: number; + offset: string; + limit: number; + } + response: Stats$PublicForwards + } + 'stats.getMessageStats': { + params: { + flags?: Number; + dark?: boolean; + channel: InputChannel; + msg_id: number; + } + response: Stats$MessageStats + } + 'messages.unpinAllMessages': { + params: { + flags?: Number; + peer: InputPeer; + top_msg_id?: number; + saved_peer_id?: InputPeer; + } + response: Messages$AffectedHistory + } + 'phone.createGroupCall': { + params: { + flags?: Number; + rtmp_stream?: boolean; + peer: InputPeer; + random_id: number; + title?: string; + schedule_date?: number; + } + response: Updates + } + 'phone.joinGroupCall': { + params: { + flags?: Number; + muted?: boolean; + video_stopped?: boolean; + call: InputGroupCall; + join_as: InputPeer; + invite_hash?: string; + public_key?: number; + block?: Uint8Array; + params: DataJSON; + } + response: Updates + } + 'phone.leaveGroupCall': { + params: { + call: InputGroupCall; + source: number; + } + response: Updates + } + 'phone.inviteToGroupCall': { + params: { + call: InputGroupCall; + users: InputUser[]; + } + response: Updates + } + 'phone.discardGroupCall': { + params: { + call: InputGroupCall; + } + response: Updates + } + 'phone.toggleGroupCallSettings': { + params: { + flags?: Number; + reset_invite_hash?: boolean; + call: InputGroupCall; + join_muted?: boolean; + } + response: Updates + } + 'phone.getGroupCall': { + params: { + call: InputGroupCall; + limit: number; + } + response: Phone$GroupCall + } + 'phone.getGroupParticipants': { + params: { + call: InputGroupCall; + ids: InputPeer[]; + sources: number[]; + offset: string; + limit: number; + } + response: Phone$GroupParticipants + } + 'phone.checkGroupCall': { + params: { + call: InputGroupCall; + sources: number[]; + } + response: Number[] + } + 'messages.deleteChat': { + params: { + chat_id: string; + } + response: boolean + } + 'messages.deletePhoneCallHistory': { + params: { + flags?: Number; + revoke?: boolean; + } + response: Messages$AffectedFoundMessages + } + 'messages.checkHistoryImport': { + params: { + import_head: string; + } + response: Messages$HistoryImportParsed + } + 'messages.initHistoryImport': { + params: { + peer: InputPeer; + file: InputFile; + media_count: number; + } + response: Messages$HistoryImport + } + 'messages.uploadImportedMedia': { + params: { + peer: InputPeer; + import_id: string; + file_name: string; + media: InputMedia; + } + response: MessageMedia + } + 'messages.startHistoryImport': { + params: { + peer: InputPeer; + import_id: string; + } + response: boolean + } + 'messages.getExportedChatInvites': { + params: { + flags?: Number; + revoked?: boolean; + peer: InputPeer; + admin_id: InputUser; + offset_date?: number; + offset_link?: string; + limit: number; + } + response: Messages$ExportedChatInvites + } + 'messages.getExportedChatInvite': { + params: { + peer: InputPeer; + link: string; + } + response: Messages$ExportedChatInvite + } + 'messages.editExportedChatInvite': { + params: { + flags?: Number; + revoked?: boolean; + peer: InputPeer; + link: string; + expire_date?: number; + usage_limit?: number; + request_needed?: boolean; + title?: string; + } + response: Messages$ExportedChatInvite + } + 'messages.deleteRevokedExportedChatInvites': { + params: { + peer: InputPeer; + admin_id: InputUser; + } + response: boolean + } + 'messages.deleteExportedChatInvite': { + params: { + peer: InputPeer; + link: string; + } + response: boolean + } + 'messages.getAdminsWithInvites': { + params: { + peer: InputPeer; + } + response: Messages$ChatAdminsWithInvites + } + 'messages.getChatInviteImporters': { + params: { + flags?: Number; + requested?: boolean; + subscription_expired?: boolean; + peer: InputPeer; + link?: string; + q?: string; + offset_date: number; + offset_user: InputUser; + limit: number; + } + response: Messages$ChatInviteImporters + } + 'messages.setHistoryTTL': { params: { - flags?: Number; - delete_message?: boolean; - delete_history?: boolean; - report_spam?: boolean; - msg_id: number; + peer: InputPeer; + period: number; } response: Updates } - 'stats.getMessagePublicForwards': { + 'account.reportProfilePhoto': { params: { - channel: InputChannel; - msg_id: number; - offset: string; - limit: number; + peer: InputPeer; + photo_id: InputPhoto; + reason: ReportReason; + message: string; } - response: Stats$PublicForwards + response: boolean } - 'stats.getMessageStats': { + 'channels.convertToGigagroup': { params: { - flags?: Number; - dark?: boolean; channel: InputChannel; - msg_id: number; } - response: Stats$MessageStats + response: Updates } - 'messages.unpinAllMessages': { + 'messages.checkHistoryImportPeer': { params: { - flags?: Number; peer: InputPeer; - top_msg_id?: number; } - response: Messages$AffectedHistory + response: Messages$CheckedHistoryImportPeer } - 'phone.createGroupCall': { + 'phone.toggleGroupCallRecord': { params: { flags?: Number; - rtmp_stream?: boolean; - peer: InputPeer; - random_id: number; + start?: boolean; + video?: boolean; + call: InputGroupCall; title?: string; - schedule_date?: number; + video_portrait?: boolean; } response: Updates } - 'phone.joinGroupCall': { + 'phone.editGroupCallParticipant': { params: { flags?: Number; + call: InputGroupCall; + participant: InputPeer; muted?: boolean; + volume?: number; + raise_hand?: boolean; video_stopped?: boolean; - call: InputGroupCall; - join_as: InputPeer; - invite_hash?: string; - params: DataJSON; + video_paused?: boolean; + presentation_paused?: boolean; } response: Updates } - 'phone.leaveGroupCall': { + 'phone.editGroupCallTitle': { params: { call: InputGroupCall; - source: number; + title: string; } response: Updates } - 'phone.inviteToGroupCall': { + 'phone.getGroupCallJoinAs': { + params: { + peer: InputPeer; + } + response: Phone$JoinAsPeers + } + 'phone.exportGroupCallInvite': { params: { + flags?: Number; + can_self_unmute?: boolean; call: InputGroupCall; - users: InputUser[]; } - response: Updates + response: Phone$ExportedGroupCallInvite } - 'phone.discardGroupCall': { + 'phone.toggleGroupCallStartSubscription': { params: { call: InputGroupCall; + subscribed: boolean; } response: Updates } - 'phone.toggleGroupCallSettings': { + 'phone.startScheduledGroupCall': { params: { - flags?: Number; - reset_invite_hash?: boolean; call: InputGroupCall; - join_muted?: boolean; } response: Updates } - 'phone.getGroupCall': { + 'phone.saveDefaultGroupCallJoinAs': { params: { - call: InputGroupCall; - limit: number; + peer: InputPeer; + join_as: InputPeer; } - response: Phone$GroupCall + response: boolean } - 'phone.getGroupParticipants': { + 'phone.joinGroupCallPresentation': { params: { call: InputGroupCall; - ids: InputPeer[]; - sources: number[]; - offset: string; - limit: number; + params: DataJSON; } - response: Phone$GroupParticipants + response: Updates } - 'phone.checkGroupCall': { + 'phone.leaveGroupCallPresentation': { params: { call: InputGroupCall; - sources: number[]; } - response: Number[] + response: Updates } - 'messages.deleteChat': { + 'stickers.checkShortName': { params: { - chat_id: string; + short_name: string; } response: boolean } - 'messages.deletePhoneCallHistory': { + 'stickers.suggestShortName': { params: { - flags?: Number; - revoke?: boolean; + title: string; } - response: Messages$AffectedFoundMessages + response: Stickers$SuggestedShortName } - 'messages.checkHistoryImport': { + 'bots.resetBotCommands': { params: { - import_head: string; + scope: BotCommandScope; + lang_code: string; } - response: Messages$HistoryImportParsed + response: boolean } - 'messages.initHistoryImport': { + 'bots.getBotCommands': { + params: { + scope: BotCommandScope; + lang_code: string; + } + response: BotCommand[] + } + 'account.resetPassword': { + params: { + } + response: Account$ResetPasswordResult + } + 'account.declinePasswordReset': { + params: { + } + response: boolean + } + 'auth.checkRecoveryPassword': { + params: { + code: string; + } + response: boolean + } + 'account.getChatThemes': { + params: { + hash: string; + } + response: Account$Themes + } + 'messages.setChatTheme': { params: { peer: InputPeer; - file: InputFile; - media_count: number; + theme: InputChatTheme; } - response: Messages$HistoryImport + response: Updates } - 'messages.uploadImportedMedia': { + 'messages.getMessageReadParticipants': { params: { peer: InputPeer; - import_id: string; - file_name: string; - media: InputMedia; + msg_id: number; } - response: MessageMedia + response: ReadParticipantDate[] } - 'messages.startHistoryImport': { + 'messages.getSearchResultsCalendar': { params: { + flags?: Number; peer: InputPeer; - import_id: string; + saved_peer_id?: InputPeer; + filter: MessagesFilter; + offset_id: number; + offset_date: number; } - response: boolean + response: Messages$SearchResultsCalendar } - 'messages.getExportedChatInvites': { + 'messages.getSearchResultsPositions': { params: { flags?: Number; - revoked?: boolean; peer: InputPeer; - admin_id: InputUser; - offset_date?: number; - offset_link?: string; + saved_peer_id?: InputPeer; + filter: MessagesFilter; + offset_id: number; limit: number; } - response: Messages$ExportedChatInvites + response: Messages$SearchResultsPositions } - 'messages.getExportedChatInvite': { + 'messages.hideChatJoinRequest': { params: { + flags?: Number; + approved?: boolean; peer: InputPeer; - link: string; + user_id: InputUser; } - response: Messages$ExportedChatInvite + response: Updates } - 'messages.editExportedChatInvite': { + 'messages.hideAllChatJoinRequests': { params: { flags?: Number; - revoked?: boolean; + approved?: boolean; peer: InputPeer; - link: string; - expire_date?: number; - usage_limit?: number; - request_needed?: boolean; - title?: string; + link?: string; } - response: Messages$ExportedChatInvite + response: Updates } - 'messages.deleteRevokedExportedChatInvites': { + 'messages.toggleNoForwards': { params: { peer: InputPeer; - admin_id: InputUser; + enabled: boolean; + } + response: Updates + } + 'messages.saveDefaultSendAs': { + params: { + peer: InputPeer; + send_as: InputPeer; } response: boolean } - 'messages.deleteExportedChatInvite': { + 'channels.getSendAs': { params: { + flags?: Number; + for_paid_reactions?: boolean; peer: InputPeer; - link: string; + } + response: Channels$SendAsPeers + } + 'account.setAuthorizationTTL': { + params: { + authorization_ttl_days: number; } response: boolean } - 'messages.getAdminsWithInvites': { + 'account.changeAuthorizationSettings': { + params: { + flags?: Number; + confirmed?: boolean; + hash: string; + encrypted_requests_disabled?: boolean; + call_requests_disabled?: boolean; + } + response: boolean + } + 'channels.deleteParticipantHistory': { + params: { + channel: InputChannel; + participant: InputPeer; + } + response: Messages$AffectedHistory + } + 'messages.sendReaction': { + params: { + flags?: Number; + big?: boolean; + add_to_recent?: boolean; + peer: InputPeer; + msg_id: number; + reaction?: Reaction[]; + } + response: Updates + } + 'messages.getMessagesReactions': { params: { peer: InputPeer; + id: number[]; } - response: Messages$ChatAdminsWithInvites + response: Updates } - 'messages.getChatInviteImporters': { + 'messages.getMessageReactionsList': { params: { flags?: Number; - requested?: boolean; - subscription_expired?: boolean; peer: InputPeer; - link?: string; - q?: string; - offset_date: number; - offset_user: InputUser; + id: number; + reaction?: Reaction; + offset?: string; limit: number; } - response: Messages$ChatInviteImporters + response: Messages$MessageReactionsList } - 'messages.setHistoryTTL': { + 'messages.setChatAvailableReactions': { params: { + flags?: Number; peer: InputPeer; - period: number; + available_reactions: ChatReactions; + reactions_limit?: number; + paid_enabled?: boolean; } response: Updates } - 'account.reportProfilePhoto': { + 'messages.getAvailableReactions': { params: { - peer: InputPeer; - photo_id: InputPhoto; - reason: ReportReason; - message: string; + hash: number; + } + response: Messages$AvailableReactions + } + 'messages.setDefaultReaction': { + params: { + reaction: Reaction; } response: boolean } - 'channels.convertToGigagroup': { + 'messages.translateText': { params: { - channel: InputChannel; + flags?: Number; + peer?: InputPeer; + id?: number[]; + text?: TextWithEntities[]; + to_lang: string; } - response: Updates + response: Messages$TranslatedText } - 'messages.checkHistoryImportPeer': { + 'messages.getUnreadReactions': { params: { + flags?: Number; peer: InputPeer; + top_msg_id?: number; + saved_peer_id?: InputPeer; + offset_id: number; + add_offset: number; + limit: number; + max_id: number; + min_id: number; } - response: Messages$CheckedHistoryImportPeer + response: Messages$Messages } - 'phone.toggleGroupCallRecord': { + 'messages.readReactions': { params: { flags?: Number; - start?: boolean; - video?: boolean; - call: InputGroupCall; - title?: string; - video_portrait?: boolean; + peer: InputPeer; + top_msg_id?: number; + saved_peer_id?: InputPeer; } - response: Updates + response: Messages$AffectedHistory } - 'phone.editGroupCallParticipant': { + 'contacts.resolvePhone': { params: { - flags?: Number; - call: InputGroupCall; - participant: InputPeer; - muted?: boolean; - volume?: number; - raise_hand?: boolean; - video_stopped?: boolean; - video_paused?: boolean; - presentation_paused?: boolean; + phone: string; } - response: Updates + response: Contacts$ResolvedPeer } - 'phone.editGroupCallTitle': { + 'phone.getGroupCallStreamChannels': { params: { call: InputGroupCall; - title: string; } - response: Updates + response: Phone$GroupCallStreamChannels } - 'phone.getGroupCallJoinAs': { + 'phone.getGroupCallStreamRtmpUrl': { params: { peer: InputPeer; + revoke: boolean; } - response: Phone$JoinAsPeers + response: Phone$GroupCallStreamRtmpUrl } - 'phone.exportGroupCallInvite': { + 'messages.searchSentMedia': { params: { - flags?: Number; - can_self_unmute?: boolean; - call: InputGroupCall; + q: string; + filter: MessagesFilter; + limit: number; } - response: Phone$ExportedGroupCallInvite + response: Messages$Messages } - 'phone.toggleGroupCallStartSubscription': { + 'messages.getAttachMenuBots': { params: { - call: InputGroupCall; - subscribed: boolean; + hash: string; } - response: Updates + response: AttachMenuBots } - 'phone.startScheduledGroupCall': { + 'messages.getAttachMenuBot': { params: { - call: InputGroupCall; + bot: InputUser; } - response: Updates + response: AttachMenuBotsBot } - 'phone.saveDefaultGroupCallJoinAs': { + 'messages.toggleBotInAttachMenu': { params: { - peer: InputPeer; - join_as: InputPeer; + flags?: Number; + write_allowed?: boolean; + bot: InputUser; + enabled: boolean; } response: boolean } - 'phone.joinGroupCallPresentation': { + 'messages.requestWebView': { params: { - call: InputGroupCall; - params: DataJSON; + flags?: Number; + from_bot_menu?: boolean; + silent?: boolean; + compact?: boolean; + fullscreen?: boolean; + peer: InputPeer; + bot: InputUser; + url?: string; + start_param?: string; + theme_params?: DataJSON; + platform: string; + reply_to?: InputReplyTo; + send_as?: InputPeer; } - response: Updates + response: WebViewResult } - 'phone.leaveGroupCallPresentation': { + 'messages.prolongWebView': { params: { - call: InputGroupCall; + flags?: Number; + silent?: boolean; + peer: InputPeer; + bot: InputUser; + query_id: string; + reply_to?: InputReplyTo; + send_as?: InputPeer; } - response: Updates + response: boolean } - 'stickers.checkShortName': { + 'messages.requestSimpleWebView': { params: { - short_name: string; + flags?: Number; + from_switch_webview?: boolean; + from_side_menu?: boolean; + compact?: boolean; + fullscreen?: boolean; + bot: InputUser; + url?: string; + start_param?: string; + theme_params?: DataJSON; + platform: string; } - response: boolean + response: WebViewResult } - 'stickers.suggestShortName': { + 'messages.sendWebViewResultMessage': { params: { - title: string; + bot_query_id: string; + result: InputBotInlineResult; } - response: Stickers$SuggestedShortName + response: WebViewMessageSent } - 'bots.resetBotCommands': { + 'messages.sendWebViewData': { params: { - scope: BotCommandScope; - lang_code: string; + bot: InputUser; + random_id: string; + button_text: string; + data: string; } - response: boolean + response: Updates } - 'bots.getBotCommands': { + 'bots.setBotMenuButton': { params: { - scope: BotCommandScope; - lang_code: string; + user_id: InputUser; + button: BotMenuButton; } - response: BotCommand[] + response: boolean } - 'account.resetPassword': { + 'bots.getBotMenuButton': { params: { + user_id: InputUser; } - response: Account$ResetPasswordResult + response: BotMenuButton } - 'account.declinePasswordReset': { + 'account.getSavedRingtones': { params: { + hash: string; } - response: boolean + response: Account$SavedRingtones } - 'auth.checkRecoveryPassword': { + 'account.saveRingtone': { params: { - code: string; + id: InputDocument; + unsave: boolean; } - response: boolean + response: Account$SavedRingtone } - 'account.getChatThemes': { + 'account.uploadRingtone': { params: { - hash: string; + file: InputFile; + file_name: string; + mime_type: string; } - response: Account$Themes + response: Document } - 'messages.setChatTheme': { + 'bots.setBotBroadcastDefaultAdminRights': { params: { - peer: InputPeer; - emoticon: string; + admin_rights: ChatAdminRights; } - response: Updates + response: boolean } - 'messages.getMessageReadParticipants': { + 'bots.setBotGroupDefaultAdminRights': { params: { - peer: InputPeer; - msg_id: number; + admin_rights: ChatAdminRights; } - response: ReadParticipantDate[] + response: boolean } - 'messages.getSearchResultsCalendar': { + 'phone.saveCallLog': { params: { - flags?: Number; - peer: InputPeer; - saved_peer_id?: InputPeer; - filter: MessagesFilter; - offset_id: number; - offset_date: number; + peer: InputPhoneCall; + file: InputFile; } - response: Messages$SearchResultsCalendar + response: boolean } - 'messages.getSearchResultsPositions': { + 'channels.toggleJoinToSend': { params: { - flags?: Number; - peer: InputPeer; - saved_peer_id?: InputPeer; - filter: MessagesFilter; - offset_id: number; - limit: number; + channel: InputChannel; + enabled: boolean; } - response: Messages$SearchResultsPositions + response: Updates } - 'messages.hideChatJoinRequest': { + 'channels.toggleJoinRequest': { params: { - flags?: Number; - approved?: boolean; - peer: InputPeer; - user_id: InputUser; + channel: InputChannel; + enabled: boolean; } response: Updates } - 'messages.hideAllChatJoinRequests': { + 'payments.exportInvoice': { params: { - flags?: Number; - approved?: boolean; - peer: InputPeer; - link?: string; + invoice_media: InputMedia; } - response: Updates + response: Payments$ExportedInvoice } - 'messages.toggleNoForwards': { + 'messages.transcribeAudio': { params: { peer: InputPeer; - enabled: boolean; + msg_id: number; } - response: Updates + response: Messages$TranscribedAudio } - 'messages.saveDefaultSendAs': { + 'messages.rateTranscribedAudio': { params: { peer: InputPeer; - send_as: InputPeer; + msg_id: number; + transcription_id: string; + good: boolean; } response: boolean } - 'channels.getSendAs': { + 'payments.assignAppStoreTransaction': { params: { - peer: InputPeer; + receipt: Uint8Array; + purpose: InputStorePaymentPurpose; } - response: Channels$SendAsPeers + response: Updates } - 'account.setAuthorizationTTL': { + 'payments.assignPlayMarketTransaction': { params: { - authorization_ttl_days: number; + receipt: DataJSON; + purpose: InputStorePaymentPurpose; } - response: boolean + response: Updates } - 'account.changeAuthorizationSettings': { + 'help.getPremiumPromo': { params: { - flags?: Number; - confirmed?: boolean; - hash: string; - encrypted_requests_disabled?: boolean; - call_requests_disabled?: boolean; } - response: boolean + response: Help$PremiumPromo } - 'channels.deleteParticipantHistory': { + 'messages.getCustomEmojiDocuments': { params: { - channel: InputChannel; - participant: InputPeer; + document_id: string[]; } - response: Messages$AffectedHistory + response: Document[] } - 'messages.sendReaction': { + 'messages.getEmojiStickers': { params: { - flags?: Number; - big?: boolean; - add_to_recent?: boolean; - peer: InputPeer; - msg_id: number; - reaction?: Reaction[]; + hash: string; } - response: Updates + response: Messages$AllStickers } - 'messages.getMessagesReactions': { + 'messages.getFeaturedEmojiStickers': { params: { - peer: InputPeer; - id: number[]; + hash: string; } - response: Updates + response: Messages$FeaturedStickers } - 'messages.getMessageReactionsList': { + 'account.updateEmojiStatus': { params: { - flags?: Number; - peer: InputPeer; - id: number; - reaction?: Reaction; - offset?: string; - limit: number; + emoji_status: EmojiStatus; } - response: Messages$MessageReactionsList + response: boolean } - 'messages.setChatAvailableReactions': { + 'account.getDefaultEmojiStatuses': { params: { - flags?: Number; - peer: InputPeer; - available_reactions: ChatReactions; - reactions_limit?: number; - paid_enabled?: boolean; + hash: string; } - response: Updates + response: Account$EmojiStatuses } - 'messages.getAvailableReactions': { + 'account.getRecentEmojiStatuses': { params: { - hash: number; + hash: string; } - response: Messages$AvailableReactions + response: Account$EmojiStatuses } - 'messages.setDefaultReaction': { + 'account.clearRecentEmojiStatuses': { params: { - reaction: Reaction; } response: boolean } - 'messages.translateText': { + 'messages.reportReaction': { params: { - flags?: Number; - peer?: InputPeer; - id?: number[]; - text?: TextWithEntities[]; - to_lang: string; + peer: InputPeer; + id: number; + reaction_peer: InputPeer; } - response: Messages$TranslatedText + response: boolean } - 'messages.getUnreadReactions': { + 'messages.getTopReactions': { params: { - flags?: Number; - peer: InputPeer; - top_msg_id?: number; - offset_id: number; - add_offset: number; limit: number; - max_id: number; - min_id: number; + hash: string; } - response: Messages$Messages + response: Messages$Reactions } - 'messages.readReactions': { + 'messages.getRecentReactions': { + params: { + limit: number; + hash: string; + } + response: Messages$Reactions + } + 'messages.clearRecentReactions': { + params: { + } + response: boolean + } + 'messages.getExtendedMedia': { params: { - flags?: Number; peer: InputPeer; - top_msg_id?: number; + id: number[]; } - response: Messages$AffectedHistory + response: Updates } - 'contacts.resolvePhone': { + 'auth.importWebTokenAuthorization': { params: { - phone: string; + api_id: number; + api_hash: string; + web_auth_token: string; } - response: Contacts$ResolvedPeer + response: Auth$Authorization } - 'phone.getGroupCallStreamChannels': { + 'account.reorderUsernames': { params: { - call: InputGroupCall; + order: string[]; } - response: Phone$GroupCallStreamChannels + response: boolean } - 'phone.getGroupCallStreamRtmpUrl': { + 'account.toggleUsername': { params: { - peer: InputPeer; - revoke: boolean; + username: string; + active: boolean; } - response: Phone$GroupCallStreamRtmpUrl + response: boolean } - 'messages.searchSentMedia': { + 'channels.reorderUsernames': { params: { - q: string; - filter: MessagesFilter; - limit: number; + channel: InputChannel; + order: string[]; } - response: Messages$Messages + response: boolean } - 'messages.getAttachMenuBots': { + 'channels.toggleUsername': { params: { - hash: string; + channel: InputChannel; + username: string; + active: boolean; } - response: AttachMenuBots + response: boolean } - 'messages.getAttachMenuBot': { + 'channels.deactivateAllUsernames': { params: { - bot: InputUser; + channel: InputChannel; } - response: AttachMenuBotsBot + response: boolean } - 'messages.toggleBotInAttachMenu': { + 'channels.toggleForum': { params: { - flags?: Number; - write_allowed?: boolean; - bot: InputUser; + channel: InputChannel; enabled: boolean; + tabs: boolean; } - response: boolean + response: Updates } - 'messages.requestWebView': { + 'channels.createForumTopic': { params: { flags?: Number; - from_bot_menu?: boolean; - silent?: boolean; - compact?: boolean; - fullscreen?: boolean; - peer: InputPeer; - bot: InputUser; - url?: string; - start_param?: string; - theme_params?: DataJSON; - platform: string; - reply_to?: InputReplyTo; + channel: InputChannel; + title: string; + icon_color?: number; + icon_emoji_id?: string; + random_id: string; send_as?: InputPeer; } - response: WebViewResult + response: Updates } - 'messages.prolongWebView': { + 'channels.getForumTopics': { params: { flags?: Number; - silent?: boolean; - peer: InputPeer; - bot: InputUser; - query_id: string; - reply_to?: InputReplyTo; - send_as?: InputPeer; + channel: InputChannel; + q?: string; + offset_date: number; + offset_id: number; + offset_topic: number; + limit: number; } - response: boolean + response: Messages$ForumTopics } - 'messages.requestSimpleWebView': { + 'channels.getForumTopicsByID': { params: { - flags?: Number; - from_switch_webview?: boolean; - from_side_menu?: boolean; - compact?: boolean; - fullscreen?: boolean; - bot: InputUser; - url?: string; - start_param?: string; - theme_params?: DataJSON; - platform: string; + channel: InputChannel; + topics: number[]; } - response: WebViewResult + response: Messages$ForumTopics } - 'messages.sendWebViewResultMessage': { + 'channels.editForumTopic': { params: { - bot_query_id: string; - result: InputBotInlineResult; + flags?: Number; + channel: InputChannel; + topic_id: number; + title?: string; + icon_emoji_id?: string; + closed?: boolean; + hidden?: boolean; } - response: WebViewMessageSent + response: Updates } - 'messages.sendWebViewData': { + 'channels.updatePinnedForumTopic': { params: { - bot: InputUser; - random_id: string; - button_text: string; - data: string; + channel: InputChannel; + topic_id: number; + pinned: boolean; } response: Updates } - 'bots.setBotMenuButton': { + 'channels.deleteTopicHistory': { params: { - user_id: InputUser; - button: BotMenuButton; + channel: InputChannel; + top_msg_id: number; } - response: boolean + response: Messages$AffectedHistory } - 'bots.getBotMenuButton': { + 'channels.reorderPinnedForumTopics': { params: { - user_id: InputUser; + flags?: Number; + force?: boolean; + channel: InputChannel; + order: number[]; } - response: BotMenuButton + response: Updates } - 'account.getSavedRingtones': { + 'channels.toggleAntiSpam': { params: { - hash: string; + channel: InputChannel; + enabled: boolean; } - response: Account$SavedRingtones + response: Updates } - 'account.saveRingtone': { + 'channels.reportAntiSpamFalsePositive': { params: { - id: InputDocument; - unsave: boolean; + channel: InputChannel; + msg_id: number; } - response: Account$SavedRingtone + response: boolean } - 'account.uploadRingtone': { + 'messages.setDefaultHistoryTTL': { params: { - file: InputFile; - file_name: string; - mime_type: string; + period: number; } - response: Document + response: boolean } - 'bots.setBotBroadcastDefaultAdminRights': { + 'messages.getDefaultHistoryTTL': { params: { - admin_rights: ChatAdminRights; } - response: boolean + response: DefaultHistoryTTL } - 'bots.setBotGroupDefaultAdminRights': { + 'contacts.exportContactToken': { params: { - admin_rights: ChatAdminRights; } - response: boolean + response: ExportedContactToken } - 'phone.saveCallLog': { + 'contacts.importContactToken': { params: { - peer: InputPhoneCall; - file: InputFile; + token: string; } - response: boolean + response: User } - 'channels.toggleJoinToSend': { + 'photos.uploadContactProfilePhoto': { + params: { + flags?: Number; + suggest?: boolean; + save?: boolean; + user_id: InputUser; + file?: InputFile; + video?: InputFile; + video_start_ts?: number; + video_emoji_markup?: VideoSize; + } + response: Photos$Photo + } + 'channels.toggleParticipantsHidden': { params: { channel: InputChannel; enabled: boolean; } response: Updates } - 'channels.toggleJoinRequest': { + 'messages.sendBotRequestedPeer': { params: { - channel: InputChannel; - enabled: boolean; + peer: InputPeer; + msg_id: number; + button_id: number; + requested_peers: InputPeer[]; } response: Updates } - 'payments.exportInvoice': { + 'account.getDefaultProfilePhotoEmojis': { params: { - invoice_media: InputMedia; + hash: string; } - response: Payments$ExportedInvoice + response: EmojiList } - 'messages.transcribeAudio': { + 'account.getDefaultGroupPhotoEmojis': { params: { - peer: InputPeer; - msg_id: number; + hash: string; } - response: Messages$TranscribedAudio + response: EmojiList } - 'messages.rateTranscribedAudio': { + 'auth.requestFirebaseSms': { params: { - peer: InputPeer; - msg_id: number; - transcription_id: string; - good: boolean; + flags?: Number; + phone_number: string; + phone_code_hash: string; + safety_net_token?: string; + play_integrity_token?: string; + ios_push_secret?: string; } response: boolean } - 'payments.assignAppStoreTransaction': { + 'messages.getEmojiGroups': { params: { - receipt: Uint8Array; - purpose: InputStorePaymentPurpose; + hash: number; } - response: Updates + response: Messages$EmojiGroups } - 'payments.assignPlayMarketTransaction': { + 'messages.getEmojiStatusGroups': { params: { - receipt: DataJSON; - purpose: InputStorePaymentPurpose; + hash: number; } - response: Updates + response: Messages$EmojiGroups } - 'payments.canPurchasePremium': { + 'messages.getEmojiProfilePhotoGroups': { params: { - purpose: InputStorePaymentPurpose; + hash: number; } - response: boolean + response: Messages$EmojiGroups } - 'help.getPremiumPromo': { + 'messages.searchCustomEmoji': { params: { + emoticon: string; + hash: string; } - response: Help$PremiumPromo + response: EmojiList } - 'messages.getCustomEmojiDocuments': { + 'messages.togglePeerTranslations': { params: { - document_id: string[]; + flags?: Number; + disabled?: boolean; + peer: InputPeer; } - response: Document[] + response: boolean } - 'messages.getEmojiStickers': { + 'account.getAutoSaveSettings': { params: { - hash: string; } - response: Messages$AllStickers + response: Account$AutoSaveSettings } - 'messages.getFeaturedEmojiStickers': { + 'account.saveAutoSaveSettings': { params: { - hash: string; + flags?: Number; + users?: boolean; + chats?: boolean; + broadcasts?: boolean; + peer?: InputPeer; + settings: AutoSaveSettings; } - response: Messages$FeaturedStickers + response: boolean } - 'account.updateEmojiStatus': { + 'account.deleteAutoSaveExceptions': { params: { - emoji_status: EmojiStatus; } response: boolean } - 'account.getDefaultEmojiStatuses': { + 'stickers.changeSticker': { params: { - hash: string; + flags?: Number; + sticker: InputDocument; + emoji?: string; + mask_coords?: MaskCoords; + keywords?: string; } - response: Account$EmojiStatuses + response: Messages$StickerSet } - 'account.getRecentEmojiStatuses': { + 'stickers.renameStickerSet': { params: { - hash: string; + stickerset: InputStickerSet; + title: string; } - response: Account$EmojiStatuses + response: Messages$StickerSet } - 'account.clearRecentEmojiStatuses': { + 'stickers.deleteStickerSet': { params: { + stickerset: InputStickerSet; } response: boolean } - 'messages.reportReaction': { + 'messages.getBotApp': { + params: { + app: InputBotApp; + hash: string; + } + response: Messages$BotApp + } + 'messages.requestAppWebView': { params: { + flags?: Number; + write_allowed?: boolean; + compact?: boolean; + fullscreen?: boolean; peer: InputPeer; - id: number; - reaction_peer: InputPeer; + app: InputBotApp; + start_param?: string; + theme_params?: DataJSON; + platform: string; + } + response: WebViewResult + } + 'bots.setBotInfo': { + params: { + flags?: Number; + bot?: InputUser; + lang_code: string; + name?: string; + about?: string; + description?: string; } response: boolean } - 'messages.getTopReactions': { + 'bots.getBotInfo': { params: { - limit: number; - hash: string; + flags?: Number; + bot?: InputUser; + lang_code: string; } - response: Messages$Reactions + response: Bots$BotInfo } - 'messages.getRecentReactions': { + 'auth.resetLoginEmail': { params: { - limit: number; - hash: string; + phone_number: string; + phone_code_hash: string; } - response: Messages$Reactions + response: Auth$SentCode + } + 'chatlists.exportChatlistInvite': { + params: { + chatlist: InputChatlist; + title: string; + peers: InputPeer[]; + } + response: Chatlists$ExportedChatlistInvite } - 'messages.clearRecentReactions': { + 'chatlists.deleteExportedInvite': { params: { + chatlist: InputChatlist; + slug: string; } response: boolean } - 'messages.getExtendedMedia': { + 'chatlists.editExportedInvite': { params: { - peer: InputPeer; - id: number[]; + flags?: Number; + chatlist: InputChatlist; + slug: string; + title?: string; + peers?: InputPeer[]; } - response: Updates + response: ExportedChatlistInvite } - 'auth.importWebTokenAuthorization': { + 'chatlists.getExportedInvites': { params: { - api_id: number; - api_hash: string; - web_auth_token: string; + chatlist: InputChatlist; } - response: Auth$Authorization + response: Chatlists$ExportedInvites } - 'account.reorderUsernames': { + 'chatlists.checkChatlistInvite': { params: { - order: string[]; + slug: string; } - response: boolean + response: Chatlists$ChatlistInvite } - 'account.toggleUsername': { + 'chatlists.joinChatlistInvite': { params: { - username: string; - active: boolean; + slug: string; + peers: InputPeer[]; } - response: boolean + response: Updates } - 'channels.reorderUsernames': { + 'chatlists.getChatlistUpdates': { params: { - channel: InputChannel; - order: string[]; + chatlist: InputChatlist; } - response: boolean + response: Chatlists$ChatlistUpdates } - 'channels.toggleUsername': { + 'chatlists.joinChatlistUpdates': { params: { - channel: InputChannel; - username: string; - active: boolean; + chatlist: InputChatlist; + peers: InputPeer[]; } - response: boolean + response: Updates } - 'channels.deactivateAllUsernames': { + 'chatlists.hideChatlistUpdates': { params: { - channel: InputChannel; + chatlist: InputChatlist; } response: boolean } - 'channels.toggleForum': { + 'chatlists.getLeaveChatlistSuggestions': { params: { - channel: InputChannel; - enabled: boolean; + chatlist: InputChatlist; } - response: Updates + response: Peer[] } - 'channels.createForumTopic': { + 'chatlists.leaveChatlist': { params: { - flags?: Number; - channel: InputChannel; - title: string; - icon_color?: number; - icon_emoji_id?: string; - random_id: string; - send_as?: InputPeer; + chatlist: InputChatlist; + peers: InputPeer[]; } response: Updates } - 'channels.getForumTopics': { + 'bots.reorderUsernames': { params: { - flags?: Number; - channel: InputChannel; - q?: string; - offset_date: number; - offset_id: number; - offset_topic: number; - limit: number; + bot: InputUser; + order: string[]; } - response: Messages$ForumTopics + response: boolean } - 'channels.getForumTopicsByID': { + 'bots.toggleUsername': { params: { - channel: InputChannel; - topics: number[]; + bot: InputUser; + username: string; + active: boolean; } - response: Messages$ForumTopics + response: boolean } - 'channels.editForumTopic': { + 'messages.setChatWallPaper': { params: { flags?: Number; - channel: InputChannel; - topic_id: number; - title?: string; - icon_emoji_id?: string; - closed?: boolean; - hidden?: boolean; + for_both?: boolean; + revert?: boolean; + peer: InputPeer; + wallpaper?: InputWallPaper; + settings?: WallPaperSettings; + id?: number; } response: Updates } - 'channels.updatePinnedForumTopic': { + 'account.invalidateSignInCodes': { params: { - channel: InputChannel; - topic_id: number; - pinned: boolean; + codes: string[]; } - response: Updates + response: boolean } - 'channels.deleteTopicHistory': { + 'contacts.editCloseFriends': { params: { - channel: InputChannel; - top_msg_id: number; + id: string[]; } - response: Messages$AffectedHistory + response: boolean } - 'channels.reorderPinnedForumTopics': { + 'stories.canSendStory': { params: { - flags?: Number; - force?: boolean; - channel: InputChannel; - order: number[]; + peer: InputPeer; } - response: Updates + response: Stories$CanSendStoryCount } - 'channels.toggleAntiSpam': { + 'stories.sendStory': { params: { - channel: InputChannel; - enabled: boolean; + flags?: Number; + pinned?: boolean; + noforwards?: boolean; + fwd_modified?: boolean; + peer: InputPeer; + media: InputMedia; + media_areas?: MediaArea[]; + caption?: string; + entities?: MessageEntity[]; + privacy_rules: InputPrivacyRule[]; + random_id: string; + period?: number; + fwd_from_id?: InputPeer; + fwd_from_story?: number; + albums?: number[]; } response: Updates } - 'channels.reportAntiSpamFalsePositive': { + 'stories.editStory': { params: { - channel: InputChannel; - msg_id: number; + flags?: Number; + peer: InputPeer; + id: number; + media?: InputMedia; + media_areas?: MediaArea[]; + caption?: string; + entities?: MessageEntity[]; + privacy_rules?: InputPrivacyRule[]; } - response: boolean + response: Updates } - 'messages.setDefaultHistoryTTL': { + 'stories.deleteStories': { params: { - period: number; + peer: InputPeer; + id: number[]; } - response: boolean + response: Number[] } - 'messages.getDefaultHistoryTTL': { + 'stories.togglePinned': { params: { + peer: InputPeer; + id: number[]; + pinned: boolean; } - response: DefaultHistoryTTL + response: Number[] } - 'contacts.exportContactToken': { + 'stories.getAllStories': { params: { + flags?: Number; + next?: boolean; + hidden?: boolean; + state?: string; } - response: ExportedContactToken + response: Stories$AllStories } - 'contacts.importContactToken': { + 'stories.getPinnedStories': { params: { - token: string; + peer: InputPeer; + offset_id: number; + limit: number; } - response: User + response: Stories$Stories } - 'photos.uploadContactProfilePhoto': { + 'stories.getStoriesArchive': { params: { - flags?: Number; - suggest?: boolean; - save?: boolean; - user_id: InputUser; - file?: InputFile; - video?: InputFile; - video_start_ts?: number; - video_emoji_markup?: VideoSize; + peer: InputPeer; + offset_id: number; + limit: number; } - response: Photos$Photo + response: Stories$Stories } - 'channels.toggleParticipantsHidden': { + 'stories.getStoriesByID': { params: { - channel: InputChannel; - enabled: boolean; + peer: InputPeer; + id: number[]; } - response: Updates + response: Stories$Stories } - 'messages.sendBotRequestedPeer': { + 'stories.toggleAllStoriesHidden': { params: { - peer: InputPeer; - msg_id: number; - button_id: number; - requested_peers: InputPeer[]; + hidden: boolean; } - response: Updates + response: boolean } - 'account.getDefaultProfilePhotoEmojis': { + 'stories.readStories': { params: { - hash: string; + peer: InputPeer; + max_id: number; } - response: EmojiList + response: Number[] } - 'account.getDefaultGroupPhotoEmojis': { + 'stories.incrementStoryViews': { params: { - hash: string; + peer: InputPeer; + id: number[]; } - response: EmojiList + response: boolean } - 'auth.requestFirebaseSms': { + 'stories.getStoryViewsList': { params: { flags?: Number; - phone_number: string; - phone_code_hash: string; - safety_net_token?: string; - play_integrity_token?: string; - ios_push_secret?: string; + just_contacts?: boolean; + reactions_first?: boolean; + forwards_first?: boolean; + peer: InputPeer; + q?: string; + id: number; + offset: string; + limit: number; } - response: boolean + response: Stories$StoryViewsList } - 'messages.getEmojiGroups': { + 'stories.getStoriesViews': { params: { - hash: number; + peer: InputPeer; + id: number[]; } - response: Messages$EmojiGroups + response: Stories$StoryViews } - 'messages.getEmojiStatusGroups': { + 'stories.exportStoryLink': { params: { - hash: number; + peer: InputPeer; + id: number; } - response: Messages$EmojiGroups + response: ExportedStoryLink } - 'messages.getEmojiProfilePhotoGroups': { + 'stories.report': { params: { - hash: number; + peer: InputPeer; + id: number[]; + option: Uint8Array; + message: string; } - response: Messages$EmojiGroups + response: ReportResult } - 'messages.searchCustomEmoji': { + 'stories.activateStealthMode': { params: { - emoticon: string; - hash: string; + flags?: Number; + past?: boolean; + future?: boolean; } - response: EmojiList + response: Updates } - 'messages.togglePeerTranslations': { + 'contacts.setBlocked': { params: { flags?: Number; - disabled?: boolean; - peer: InputPeer; + my_stories_from?: boolean; + id: InputPeer[]; + limit: number; } response: boolean } - 'account.getAutoSaveSettings': { + 'stories.sendReaction': { params: { + flags?: Number; + add_to_recent?: boolean; + peer: InputPeer; + story_id: number; + reaction: Reaction; } - response: Account$AutoSaveSettings + response: Updates } - 'account.saveAutoSaveSettings': { + 'bots.canSendMessage': { params: { - flags?: Number; - users?: boolean; - chats?: boolean; - broadcasts?: boolean; - peer?: InputPeer; - settings: AutoSaveSettings; + bot: InputUser; } response: boolean } - 'account.deleteAutoSaveExceptions': { + 'bots.allowSendMessage': { params: { + bot: InputUser; } - response: boolean + response: Updates } - 'stickers.changeSticker': { + 'bots.invokeWebViewCustomMethod': { params: { - flags?: Number; - sticker: InputDocument; - emoji?: string; - mask_coords?: MaskCoords; - keywords?: string; + bot: InputUser; + custom_method: string; + params: DataJSON; } - response: Messages$StickerSet + response: DataJSON } - 'stickers.renameStickerSet': { + 'stories.getPeerStories': { params: { - stickerset: InputStickerSet; - title: string; + peer: InputPeer; } - response: Messages$StickerSet + response: Stories$PeerStories } - 'stickers.deleteStickerSet': { + 'stories.getAllReadPeerStories': { params: { - stickerset: InputStickerSet; } - response: boolean + response: Updates } - 'messages.getBotApp': { + 'stories.getPeerMaxIDs': { params: { - app: InputBotApp; - hash: string; + id: InputPeer[]; } - response: Messages$BotApp + response: Number[] } - 'messages.requestAppWebView': { + 'stories.getChatsToSend': { params: { - flags?: Number; - write_allowed?: boolean; - compact?: boolean; - fullscreen?: boolean; - peer: InputPeer; - app: InputBotApp; - start_param?: string; - theme_params?: DataJSON; - platform: string; } - response: WebViewResult + response: Messages$Chats } - 'bots.setBotInfo': { + 'stories.togglePeerStoriesHidden': { params: { - flags?: Number; - bot?: InputUser; - lang_code: string; - name?: string; - about?: string; - description?: string; + peer: InputPeer; + hidden: boolean; } response: boolean } - 'bots.getBotInfo': { + 'payments.getPremiumGiftCodeOptions': { params: { flags?: Number; - bot?: InputUser; - lang_code: string; + boost_peer?: InputPeer; } - response: Bots$BotInfo + response: PremiumGiftCodeOption[] } - 'auth.resetLoginEmail': { + 'payments.checkGiftCode': { params: { - phone_number: string; - phone_code_hash: string; + slug: string; } - response: Auth$SentCode + response: Payments$CheckedGiftCode } - 'chatlists.exportChatlistInvite': { + 'payments.applyGiftCode': { params: { - chatlist: InputChatlist; - title: string; - peers: InputPeer[]; + slug: string; } - response: Chatlists$ExportedChatlistInvite + response: Updates } - 'chatlists.deleteExportedInvite': { + 'payments.getGiveawayInfo': { params: { - chatlist: InputChatlist; - slug: string; + peer: InputPeer; + msg_id: number; } - response: boolean + response: Payments$GiveawayInfo } - 'chatlists.editExportedInvite': { + 'payments.launchPrepaidGiveaway': { params: { - flags?: Number; - chatlist: InputChatlist; - slug: string; - title?: string; - peers?: InputPeer[]; + peer: InputPeer; + giveaway_id: string; + purpose: InputStorePaymentPurpose; } - response: ExportedChatlistInvite + response: Updates } - 'chatlists.getExportedInvites': { + 'account.updateColor': { params: { - chatlist: InputChatlist; + flags?: Number; + for_profile?: boolean; + color?: number; + background_emoji_id?: string; } - response: Chatlists$ExportedInvites + response: boolean } - 'chatlists.checkChatlistInvite': { + 'channels.updateColor': { params: { - slug: string; + flags?: Number; + for_profile?: boolean; + channel: InputChannel; + color?: number; + background_emoji_id?: string; } - response: Chatlists$ChatlistInvite + response: Updates } - 'chatlists.joinChatlistInvite': { + 'account.getDefaultBackgroundEmojis': { params: { - slug: string; - peers: InputPeer[]; + hash: string; } - response: Updates + response: EmojiList } - 'chatlists.getChatlistUpdates': { + 'premium.getBoostsList': { params: { - chatlist: InputChatlist; + flags?: Number; + gifts?: boolean; + peer: InputPeer; + offset: string; + limit: number; } - response: Chatlists$ChatlistUpdates + response: Premium$BoostsList } - 'chatlists.joinChatlistUpdates': { + 'premium.getMyBoosts': { params: { - chatlist: InputChatlist; - peers: InputPeer[]; } - response: Updates + response: Premium$MyBoosts } - 'chatlists.hideChatlistUpdates': { + 'premium.applyBoost': { params: { - chatlist: InputChatlist; + flags?: Number; + slots?: number[]; + peer: InputPeer; } - response: boolean + response: Premium$MyBoosts } - 'chatlists.getLeaveChatlistSuggestions': { + 'premium.getBoostsStatus': { params: { - chatlist: InputChatlist; + peer: InputPeer; } - response: Peer[] + response: Premium$BoostsStatus } - 'chatlists.leaveChatlist': { + 'premium.getUserBoosts': { params: { - chatlist: InputChatlist; - peers: InputPeer[]; + peer: InputPeer; + user_id: InputUser; } - response: Updates + response: Premium$BoostsList } - 'bots.reorderUsernames': { + 'channels.toggleViewForumAsMessages': { params: { - bot: InputUser; - order: string[]; + channel: InputChannel; + enabled: boolean; } - response: boolean + response: Updates } - 'bots.toggleUsername': { + 'messages.searchEmojiStickerSets': { params: { - bot: InputUser; - username: string; - active: boolean; + flags?: Number; + exclude_featured?: boolean; + q: string; + hash: string; } - response: boolean + response: Messages$FoundStickerSets } - 'messages.setChatWallPaper': { + 'channels.getChannelRecommendations': { params: { flags?: Number; - for_both?: boolean; - revert?: boolean; - peer: InputPeer; - wallpaper?: InputWallPaper; - settings?: WallPaperSettings; - id?: number; + channel?: InputChannel; } - response: Updates + response: Messages$Chats } - 'account.invalidateSignInCodes': { + 'stats.getStoryStats': { params: { - codes: string[]; + flags?: Number; + dark?: boolean; + peer: InputPeer; + id: number; } - response: boolean + response: Stats$StoryStats } - 'contacts.editCloseFriends': { + 'stats.getStoryPublicForwards': { params: { - id: string[]; + peer: InputPeer; + id: number; + offset: string; + limit: number; } - response: boolean + response: Stats$PublicForwards } - 'stories.canSendStory': { + 'help.getPeerColors': { params: { - peer: InputPeer; + hash: number; } - response: boolean + response: Help$PeerColors } - 'stories.sendStory': { + 'help.getPeerProfileColors': { params: { - flags?: Number; - pinned?: boolean; - noforwards?: boolean; - fwd_modified?: boolean; - peer: InputPeer; - media: InputMedia; - media_areas?: MediaArea[]; - caption?: string; - entities?: MessageEntity[]; - privacy_rules: InputPrivacyRule[]; - random_id: string; - period?: number; - fwd_from_id?: InputPeer; - fwd_from_story?: number; + hash: number; } - response: Updates + response: Help$PeerColors } - 'stories.editStory': { + 'stories.getStoryReactionsList': { params: { flags?: Number; + forwards_first?: boolean; peer: InputPeer; id: number; - media?: InputMedia; - media_areas?: MediaArea[]; - caption?: string; - entities?: MessageEntity[]; - privacy_rules?: InputPrivacyRule[]; + reaction?: Reaction; + offset?: string; + limit: number; } - response: Updates + response: Stories$StoryReactionsList } - 'stories.deleteStories': { + 'channels.updateEmojiStatus': { params: { - peer: InputPeer; - id: number[]; + channel: InputChannel; + emoji_status: EmojiStatus; } - response: Number[] + response: Updates } - 'stories.togglePinned': { + 'account.getChannelDefaultEmojiStatuses': { params: { - peer: InputPeer; - id: number[]; - pinned: boolean; + hash: string; } - response: Number[] + response: Account$EmojiStatuses } - 'stories.getAllStories': { + 'account.getChannelRestrictedStatusEmojis': { params: { - flags?: Number; - next?: boolean; - hidden?: boolean; - state?: string; + hash: string; } - response: Stories$AllStories + response: EmojiList } - 'stories.getPinnedStories': { + 'messages.getSavedDialogs': { params: { - peer: InputPeer; + flags?: Number; + exclude_pinned?: boolean; + parent_peer?: InputPeer; + offset_date: number; offset_id: number; + offset_peer: InputPeer; limit: number; + hash: string; } - response: Stories$Stories + response: Messages$SavedDialogs } - 'stories.getStoriesArchive': { + 'messages.getSavedHistory': { params: { + flags?: Number; + parent_peer?: InputPeer; peer: InputPeer; offset_id: number; + offset_date: number; + add_offset: number; limit: number; + max_id: number; + min_id: number; + hash: string; } - response: Stories$Stories + response: Messages$Messages } - 'stories.getStoriesByID': { + 'messages.deleteSavedHistory': { params: { + flags?: Number; + parent_peer?: InputPeer; peer: InputPeer; - id: number[]; + max_id: number; + min_date?: number; + max_date?: number; } - response: Stories$Stories + response: Messages$AffectedHistory } - 'stories.toggleAllStoriesHidden': { + 'messages.getPinnedSavedDialogs': { params: { - hidden: boolean; } - response: boolean + response: Messages$SavedDialogs } - 'stories.readStories': { + 'messages.toggleSavedDialogPin': { params: { - peer: InputPeer; - max_id: number; + flags?: Number; + pinned?: boolean; + peer: InputDialogPeer; } - response: Number[] + response: boolean } - 'stories.incrementStoryViews': { + 'messages.reorderPinnedSavedDialogs': { params: { - peer: InputPeer; - id: number[]; + flags?: Number; + force?: boolean; + order: InputDialogPeer[]; } response: boolean } - 'stories.getStoryViewsList': { + 'messages.getSavedReactionTags': { params: { flags?: Number; - just_contacts?: boolean; - reactions_first?: boolean; - forwards_first?: boolean; - peer: InputPeer; - q?: string; - id: number; - offset: string; - limit: number; + peer?: InputPeer; + hash: string; } - response: Stories$StoryViewsList + response: Messages$SavedReactionTags } - 'stories.getStoriesViews': { + 'messages.updateSavedReactionTag': { params: { - peer: InputPeer; - id: number[]; + flags?: Number; + reaction: Reaction; + title?: string; } - response: Stories$StoryViews + response: boolean } - 'stories.exportStoryLink': { + 'messages.getDefaultTagReactions': { params: { - peer: InputPeer; - id: number; + hash: string; } - response: ExportedStoryLink + response: Messages$Reactions } - 'stories.report': { + 'messages.getOutboxReadDate': { params: { peer: InputPeer; - id: number[]; - option: Uint8Array; - message: string; + msg_id: number; } - response: ReportResult + response: OutboxReadDate } - 'stories.activateStealthMode': { + 'channels.setBoostsToUnblockRestrictions': { params: { - flags?: Number; - past?: boolean; - future?: boolean; + channel: InputChannel; + boosts: number; } response: Updates } - 'contacts.setBlocked': { + 'channels.setEmojiStickers': { params: { - flags?: Number; - my_stories_from?: boolean; - id: InputPeer[]; - limit: number; + channel: InputChannel; + stickerset: InputStickerSet; } response: boolean } - 'stories.sendReaction': { + 'smsjobs.isEligibleToJoin': { params: { - flags?: Number; - add_to_recent?: boolean; - peer: InputPeer; - story_id: number; - reaction: Reaction; } - response: Updates + response: Smsjobs$EligibilityToJoin } - 'bots.canSendMessage': { + 'smsjobs.join': { params: { - bot: InputUser; } response: boolean } - 'bots.allowSendMessage': { + 'smsjobs.leave': { params: { - bot: InputUser; } - response: Updates + response: boolean } - 'bots.invokeWebViewCustomMethod': { + 'smsjobs.updateSettings': { params: { - bot: InputUser; - custom_method: string; - params: DataJSON; + flags?: Number; + allow_international?: boolean; } - response: DataJSON + response: boolean } - 'stories.getPeerStories': { + 'smsjobs.getStatus': { params: { - peer: InputPeer; } - response: Stories$PeerStories + response: Smsjobs$Status } - 'stories.getAllReadPeerStories': { + 'smsjobs.getSmsJob': { params: { + job_id: string; } - response: Updates + response: SmsJob } - 'stories.getPeerMaxIDs': { + 'smsjobs.finishJob': { params: { - id: InputPeer[]; + flags?: Number; + job_id: string; + error?: string; } - response: Number[] + response: boolean } - 'stories.getChatsToSend': { + 'help.getTimezonesList': { params: { + hash: number; } - response: Messages$Chats + response: Help$TimezonesList } - 'stories.togglePeerStoriesHidden': { + 'account.updateBusinessWorkHours': { params: { - peer: InputPeer; - hidden: boolean; + flags?: Number; + business_work_hours?: BusinessWorkHours; } response: boolean } - 'payments.getPremiumGiftCodeOptions': { + 'account.updateBusinessLocation': { params: { flags?: Number; - boost_peer?: InputPeer; + geo_point?: InputGeoPoint; + address?: string; } - response: PremiumGiftCodeOption[] + response: boolean } - 'payments.checkGiftCode': { + 'account.updateBusinessGreetingMessage': { params: { - slug: string; + flags?: Number; + message?: InputBusinessGreetingMessage; + } + response: boolean + } + 'account.updateBusinessAwayMessage': { + params: { + flags?: Number; + message?: InputBusinessAwayMessage; } - response: Payments$CheckedGiftCode + response: boolean } - 'payments.applyGiftCode': { + 'messages.getQuickReplies': { params: { - slug: string; + hash: string; } - response: Updates + response: Messages$QuickReplies } - 'payments.getGiveawayInfo': { + 'messages.reorderQuickReplies': { params: { - peer: InputPeer; - msg_id: number; + order: number[]; } - response: Payments$GiveawayInfo + response: boolean } - 'payments.launchPrepaidGiveaway': { + 'messages.checkQuickReplyShortcut': { params: { - peer: InputPeer; - giveaway_id: string; - purpose: InputStorePaymentPurpose; + shortcut: string; } - response: Updates + response: boolean } - 'account.updateColor': { + 'messages.editQuickReplyShortcut': { params: { - flags?: Number; - for_profile?: boolean; - color?: number; - background_emoji_id?: string; + shortcut_id: number; + shortcut: string; } response: boolean } - 'channels.updateColor': { + 'messages.deleteQuickReplyShortcut': { params: { - flags?: Number; - for_profile?: boolean; - channel: InputChannel; - color?: number; - background_emoji_id?: string; + shortcut_id: number; } - response: Updates + response: boolean } - 'account.getDefaultBackgroundEmojis': { + 'messages.getQuickReplyMessages': { params: { + flags?: Number; + shortcut_id: number; + id?: number[]; hash: string; } - response: EmojiList + response: Messages$Messages } - 'premium.getBoostsList': { + 'messages.sendQuickReplyMessages': { params: { - flags?: Number; - gifts?: boolean; peer: InputPeer; - offset: string; - limit: number; + shortcut_id: number; + id: number[]; + random_id: string[]; } - response: Premium$BoostsList + response: Updates } - 'premium.getMyBoosts': { + 'messages.deleteQuickReplyMessages': { params: { + shortcut_id: number; + id: number[]; } - response: Premium$MyBoosts + response: Updates } - 'premium.applyBoost': { + 'account.updateConnectedBot': { params: { flags?: Number; - slots?: number[]; - peer: InputPeer; - } - response: Premium$MyBoosts - } - 'premium.getBoostsStatus': { - params: { - peer: InputPeer; + deleted?: boolean; + rights?: BusinessBotRights; + bot: InputUser; + recipients: InputBusinessBotRecipients; } - response: Premium$BoostsStatus + response: Updates } - 'premium.getUserBoosts': { + 'account.getConnectedBots': { params: { - peer: InputPeer; - user_id: InputUser; } - response: Premium$BoostsList + response: Account$ConnectedBots } - 'channels.toggleViewForumAsMessages': { + 'messages.toggleDialogFilterTags': { params: { - channel: InputChannel; enabled: boolean; } - response: Updates + response: boolean } - 'messages.searchEmojiStickerSets': { + 'invokeWithBusinessConnection': { params: { - flags?: Number; - exclude_featured?: boolean; - q: string; - hash: string; + connection_id: string; + query: unknown; } - response: Messages$FoundStickerSets + response: unknown } - 'channels.getChannelRecommendations': { + 'account.getBotBusinessConnection': { params: { - flags?: Number; - channel?: InputChannel; + connection_id: string; } - response: Messages$Chats + response: Updates } - 'stats.getStoryStats': { + 'account.updateBusinessIntro': { params: { flags?: Number; - dark?: boolean; - peer: InputPeer; - id: number; + intro?: InputBusinessIntro; } - response: Stats$StoryStats + response: boolean } - 'stats.getStoryPublicForwards': { + 'stickers.replaceSticker': { params: { - peer: InputPeer; - id: number; - offset: string; - limit: number; + sticker: InputDocument; + new_sticker: InputStickerSetItem; } - response: Stats$PublicForwards + response: Messages$StickerSet } - 'help.getPeerColors': { + 'messages.getMyStickers': { params: { - hash: number; + offset_id: string; + limit: number; } - response: Help$PeerColors + response: Messages$MyStickers } - 'help.getPeerProfileColors': { + 'fragment.getCollectibleInfo': { params: { - hash: number; + collectible: InputCollectible; } - response: Help$PeerColors + response: Fragment$CollectibleInfo } - 'stories.getStoryReactionsList': { + 'account.toggleConnectedBotPaused': { params: { - flags?: Number; - forwards_first?: boolean; peer: InputPeer; - id: number; - reaction?: Reaction; - offset?: string; - limit: number; + paused: boolean; } - response: Stories$StoryReactionsList + response: boolean } - 'channels.updateEmojiStatus': { + 'account.disablePeerConnectedBot': { params: { - channel: InputChannel; - emoji_status: EmojiStatus; + peer: InputPeer; } - response: Updates + response: boolean } - 'account.getChannelDefaultEmojiStatuses': { + 'account.updateBirthday': { params: { - hash: string; + flags?: Number; + birthday?: Birthday; } - response: Account$EmojiStatuses + response: boolean } - 'account.getChannelRestrictedStatusEmojis': { + 'contacts.getBirthdays': { params: { - hash: string; } - response: EmojiList + response: Contacts$ContactBirthdays } - 'messages.getSavedDialogs': { + 'account.createBusinessChatLink': { params: { - flags?: Number; - exclude_pinned?: boolean; - offset_date: number; - offset_id: number; - offset_peer: InputPeer; - limit: number; - hash: string; + link: InputBusinessChatLink; } - response: Messages$SavedDialogs + response: BusinessChatLink } - 'messages.getSavedHistory': { + 'account.editBusinessChatLink': { params: { - peer: InputPeer; - offset_id: number; - offset_date: number; - add_offset: number; - limit: number; - max_id: number; - min_id: number; - hash: string; + slug: string; + link: InputBusinessChatLink; } - response: Messages$Messages + response: BusinessChatLink } - 'messages.deleteSavedHistory': { + 'account.deleteBusinessChatLink': { params: { - flags?: Number; - peer: InputPeer; - max_id: number; - min_date?: number; - max_date?: number; + slug: string; } - response: Messages$AffectedHistory + response: boolean } - 'messages.getPinnedSavedDialogs': { + 'account.getBusinessChatLinks': { params: { } - response: Messages$SavedDialogs + response: Account$BusinessChatLinks } - 'messages.toggleSavedDialogPin': { + 'account.resolveBusinessChatLink': { params: { - flags?: Number; - pinned?: boolean; - peer: InputDialogPeer; + slug: string; } - response: boolean + response: Account$ResolvedBusinessChatLinks } - 'messages.reorderPinnedSavedDialogs': { + 'account.updatePersonalChannel': { params: { - flags?: Number; - force?: boolean; - order: InputDialogPeer[]; + channel: InputChannel; } response: boolean } - 'messages.getSavedReactionTags': { + 'channels.restrictSponsoredMessages': { params: { - flags?: Number; - peer?: InputPeer; - hash: string; + channel: InputChannel; + restricted: boolean; } - response: Messages$SavedReactionTags + response: Updates } - 'messages.updateSavedReactionTag': { + 'account.toggleSponsoredMessages': { params: { - flags?: Number; - reaction: Reaction; - title?: string; + enabled: boolean; } response: boolean } - 'messages.getDefaultTagReactions': { + 'stories.togglePinnedToTop': { params: { - hash: string; + peer: InputPeer; + id: number[]; } - response: Messages$Reactions + response: boolean } - 'messages.getOutboxReadDate': { + 'account.getReactionsNotifySettings': { params: { - peer: InputPeer; - msg_id: number; } - response: OutboxReadDate + response: ReactionsNotifySettings } - 'users.getIsPremiumRequiredToContact': { + 'account.setReactionsNotifySettings': { params: { - id: InputUser[]; + settings: ReactionsNotifySettings; } - response: Boolean[] + response: ReactionsNotifySettings } - 'channels.setBoostsToUnblockRestrictions': { + 'auth.reportMissingCode': { params: { - channel: InputChannel; - boosts: number; + phone_number: string; + phone_code_hash: string; + mnc: string; } - response: Updates + response: boolean } - 'channels.setEmojiStickers': { + 'messages.getEmojiStickerGroups': { params: { - channel: InputChannel; - stickerset: InputStickerSet; + hash: number; } - response: boolean + response: Messages$EmojiGroups } - 'smsjobs.isEligibleToJoin': { + 'invokeWithGooglePlayIntegrity': { params: { + nonce: string; + token: string; + query: unknown; } - response: Smsjobs$EligibilityToJoin + response: unknown } - 'smsjobs.join': { + 'invokeWithApnsSecret': { params: { + nonce: string; + secret: string; + query: unknown; } - response: boolean + response: unknown } - 'smsjobs.leave': { + 'messages.getAvailableEffects': { params: { + hash: number; } - response: boolean + response: Messages$AvailableEffects } - 'smsjobs.updateSettings': { + 'channels.searchPosts': { params: { flags?: Number; - allow_international?: boolean; + hashtag?: string; + query?: string; + offset_rate: number; + offset_peer: InputPeer; + offset_id: number; + limit: number; + allow_paid_stars?: string; } - response: boolean + response: Messages$Messages } - 'smsjobs.getStatus': { + 'messages.editFactCheck': { params: { + peer: InputPeer; + msg_id: number; + text: TextWithEntities; } - response: Smsjobs$Status + response: Updates } - 'smsjobs.getSmsJob': { + 'messages.deleteFactCheck': { params: { - job_id: string; + peer: InputPeer; + msg_id: number; } - response: SmsJob + response: Updates } - 'smsjobs.finishJob': { + 'messages.getFactCheck': { params: { - flags?: Number; - job_id: string; - error?: string; + peer: InputPeer; + msg_id: number[]; } - response: boolean + response: FactCheck[] } - 'help.getTimezonesList': { + 'payments.getStarsTopupOptions': { params: { - hash: number; } - response: Help$TimezonesList + response: StarsTopupOption[] } - 'account.updateBusinessWorkHours': { + 'payments.getStarsStatus': { params: { flags?: Number; - business_work_hours?: BusinessWorkHours; + ton?: boolean; + peer: InputPeer; } - response: boolean + response: Payments$StarsStatus } - 'account.updateBusinessLocation': { + 'payments.getStarsTransactions': { params: { flags?: Number; - geo_point?: InputGeoPoint; - address?: string; + inbound?: boolean; + outbound?: boolean; + ascending?: boolean; + ton?: boolean; + subscription_id?: string; + peer: InputPeer; + offset: string; + limit: number; } - response: boolean + response: Payments$StarsStatus } - 'account.updateBusinessGreetingMessage': { + 'payments.sendStarsForm': { params: { - flags?: Number; - message?: InputBusinessGreetingMessage; + form_id: string; + invoice: InputInvoice; } - response: boolean + response: Payments$PaymentResult } - 'account.updateBusinessAwayMessage': { + 'payments.refundStarsCharge': { params: { - flags?: Number; - message?: InputBusinessAwayMessage; + user_id: InputUser; + charge_id: string; } - response: boolean + response: Updates } - 'messages.getQuickReplies': { + 'stories.searchPosts': { params: { - hash: string; + flags?: Number; + hashtag?: string; + area?: MediaArea; + peer?: InputPeer; + offset: string; + limit: number; } - response: Messages$QuickReplies + response: Stories$FoundStories } - 'messages.reorderQuickReplies': { + 'payments.getStarsRevenueStats': { params: { - order: number[]; + flags?: Number; + dark?: boolean; + ton?: boolean; + peer: InputPeer; } - response: boolean + response: Payments$StarsRevenueStats } - 'messages.checkQuickReplyShortcut': { + 'payments.getStarsRevenueWithdrawalUrl': { params: { - shortcut: string; + flags?: Number; + ton?: boolean; + peer: InputPeer; + amount?: string; + password: InputCheckPasswordSRP; } - response: boolean + response: Payments$StarsRevenueWithdrawalUrl } - 'messages.editQuickReplyShortcut': { + 'payments.getStarsRevenueAdsAccountUrl': { params: { - shortcut_id: number; - shortcut: string; + peer: InputPeer; } - response: boolean + response: Payments$StarsRevenueAdsAccountUrl } - 'messages.deleteQuickReplyShortcut': { + 'payments.getStarsTransactionsByID': { params: { - shortcut_id: number; + flags?: Number; + ton?: boolean; + peer: InputPeer; + id: InputStarsTransaction[]; } - response: boolean + response: Payments$StarsStatus } - 'messages.getQuickReplyMessages': { + 'payments.getStarsGiftOptions': { params: { flags?: Number; - shortcut_id: number; - id?: number[]; - hash: string; + user_id?: InputUser; } - response: Messages$Messages + response: StarsGiftOption[] } - 'messages.sendQuickReplyMessages': { + 'bots.getPopularAppBots': { params: { - peer: InputPeer; - shortcut_id: number; - id: number[]; - random_id: string[]; + offset: string; + limit: number; } - response: Updates + response: Bots$PopularAppBots } - 'messages.deleteQuickReplyMessages': { + 'bots.addPreviewMedia': { params: { - shortcut_id: number; - id: number[]; + bot: InputUser; + lang_code: string; + media: InputMedia; } - response: Updates + response: BotPreviewMedia } - 'account.updateConnectedBot': { + 'bots.editPreviewMedia': { params: { - flags?: Number; - can_reply?: boolean; - deleted?: boolean; bot: InputUser; - recipients: InputBusinessBotRecipients; + lang_code: string; + media: InputMedia; + new_media: InputMedia; } - response: Updates + response: BotPreviewMedia } - 'account.getConnectedBots': { + 'bots.deletePreviewMedia': { params: { + bot: InputUser; + lang_code: string; + media: InputMedia[]; } - response: Account$ConnectedBots + response: boolean } - 'messages.toggleDialogFilterTags': { + 'bots.reorderPreviewMedias': { params: { - enabled: boolean; + bot: InputUser; + lang_code: string; + order: InputMedia[]; } response: boolean } - 'invokeWithBusinessConnection': { + 'bots.getPreviewInfo': { params: { - connection_id: string; - query: unknown; + bot: InputUser; + lang_code: string; } - response: unknown + response: Bots$PreviewInfo } - 'account.getBotBusinessConnection': { + 'bots.getPreviewMedias': { params: { - connection_id: string; + bot: InputUser; } - response: Updates + response: BotPreviewMedia[] } - 'account.updateBusinessIntro': { + 'messages.requestMainWebView': { params: { flags?: Number; - intro?: InputBusinessIntro; + compact?: boolean; + fullscreen?: boolean; + peer: InputPeer; + bot: InputUser; + start_param?: string; + theme_params?: DataJSON; + platform: string; } - response: boolean + response: WebViewResult } - 'stickers.replaceSticker': { + 'payments.getStarsSubscriptions': { params: { - sticker: InputDocument; - new_sticker: InputStickerSetItem; + flags?: Number; + missing_balance?: boolean; + peer: InputPeer; + offset: string; } - response: Messages$StickerSet + response: Payments$StarsStatus } - 'messages.getMyStickers': { + 'payments.changeStarsSubscription': { params: { - offset_id: string; - limit: number; + flags?: Number; + peer: InputPeer; + subscription_id: string; + canceled?: boolean; } - response: Messages$MyStickers + response: boolean } - 'fragment.getCollectibleInfo': { + 'payments.fulfillStarsSubscription': { params: { - collectible: InputCollectible; + peer: InputPeer; + subscription_id: string; } - response: Fragment$CollectibleInfo + response: boolean } - 'account.toggleConnectedBotPaused': { + 'messages.sendPaidReaction': { params: { + flags?: Number; peer: InputPeer; - paused: boolean; + msg_id: number; + count: number; + random_id: string; + private?: PaidReactionPrivacy; } - response: boolean + response: Updates } - 'account.disablePeerConnectedBot': { + 'messages.togglePaidReactionPrivacy': { params: { peer: InputPeer; + msg_id: number; + private: PaidReactionPrivacy; } response: boolean } - 'account.updateBirthday': { + 'payments.getStarsGiveawayOptions': { params: { - flags?: Number; - birthday?: Birthday; } - response: boolean + response: StarsGiveawayOption[] } - 'contacts.getBirthdays': { + 'messages.getPaidReactionPrivacy': { params: { } - response: Contacts$ContactBirthdays + response: Updates } - 'account.createBusinessChatLink': { + 'payments.getStarGifts': { params: { - link: InputBusinessChatLink; + hash: number; } - response: BusinessChatLink + response: Payments$StarGifts } - 'account.editBusinessChatLink': { + 'payments.saveStarGift': { params: { - slug: string; - link: InputBusinessChatLink; + flags?: Number; + unsave?: boolean; + stargift: InputSavedStarGift; } - response: BusinessChatLink + response: boolean } - 'account.deleteBusinessChatLink': { + 'payments.convertStarGift': { params: { - slug: string; + stargift: InputSavedStarGift; } response: boolean } - 'account.getBusinessChatLinks': { + 'messages.viewSponsoredMessage': { params: { + random_id: Uint8Array; } - response: Account$BusinessChatLinks + response: boolean } - 'account.resolveBusinessChatLink': { + 'messages.clickSponsoredMessage': { params: { - slug: string; + flags?: Number; + media?: boolean; + fullscreen?: boolean; + random_id: Uint8Array; } - response: Account$ResolvedBusinessChatLinks + response: boolean } - 'account.updatePersonalChannel': { + 'messages.reportSponsoredMessage': { params: { - channel: InputChannel; + random_id: Uint8Array; + option: Uint8Array; } - response: boolean + response: Channels$SponsoredMessageReportResult } - 'stats.getBroadcastRevenueStats': { + 'messages.getSponsoredMessages': { params: { flags?: Number; - dark?: boolean; peer: InputPeer; + msg_id?: number; } - response: Stats$BroadcastRevenueStats + response: Messages$SponsoredMessages } - 'stats.getBroadcastRevenueWithdrawalUrl': { + 'messages.savePreparedInlineMessage': { params: { - peer: InputPeer; - password: InputCheckPasswordSRP; + flags?: Number; + result: InputBotInlineResult; + user_id: InputUser; + peer_types?: InlineQueryPeerType[]; } - response: Stats$BroadcastRevenueWithdrawalUrl + response: Messages$BotPreparedInlineMessage } - 'stats.getBroadcastRevenueTransactions': { + 'messages.getPreparedInlineMessage': { params: { - peer: InputPeer; - offset: number; - limit: number; + bot: InputUser; + id: string; } - response: Stats$BroadcastRevenueTransactions + response: Messages$PreparedInlineMessage } - 'channels.restrictSponsoredMessages': { + 'bots.updateUserEmojiStatus': { params: { - channel: InputChannel; - restricted: boolean; + user_id: InputUser; + emoji_status: EmojiStatus; } - response: Updates + response: boolean } - 'account.toggleSponsoredMessages': { + 'bots.toggleUserEmojiStatusPermission': { params: { + bot: InputUser; enabled: boolean; } response: boolean } - 'stories.togglePinnedToTop': { + 'bots.checkDownloadFileParams': { params: { - peer: InputPeer; - id: number[]; + bot: InputUser; + file_name: string; + url: string; } response: boolean } - 'account.getReactionsNotifySettings': { + 'payments.botCancelStarsSubscription': { params: { + flags?: Number; + restore?: boolean; + user_id: InputUser; + charge_id: string; } - response: ReactionsNotifySettings + response: boolean } - 'account.setReactionsNotifySettings': { + 'bots.getAdminedBots': { params: { - settings: ReactionsNotifySettings; } - response: ReactionsNotifySettings + response: User[] } - 'auth.reportMissingCode': { + 'bots.updateStarRefProgram': { params: { - phone_number: string; - phone_code_hash: string; - mnc: string; + flags?: Number; + bot: InputUser; + commission_permille: number; + duration_months?: number; } - response: boolean + response: StarRefProgram } - 'messages.getEmojiStickerGroups': { + 'payments.getConnectedStarRefBots': { params: { - hash: number; + flags?: Number; + peer: InputPeer; + offset_date?: number; + offset_link?: string; + limit: number; } - response: Messages$EmojiGroups + response: Payments$ConnectedStarRefBots } - 'invokeWithGooglePlayIntegrity': { + 'payments.getConnectedStarRefBot': { params: { - nonce: string; - token: string; - query: unknown; + peer: InputPeer; + bot: InputUser; } - response: unknown + response: Payments$ConnectedStarRefBots } - 'invokeWithApnsSecret': { + 'payments.getSuggestedStarRefBots': { params: { - nonce: string; - secret: string; - query: unknown; + flags?: Number; + order_by_revenue?: boolean; + order_by_date?: boolean; + peer: InputPeer; + offset: string; + limit: number; } - response: unknown + response: Payments$SuggestedStarRefBots } - 'messages.getAvailableEffects': { + 'payments.connectStarRefBot': { params: { - hash: number; + peer: InputPeer; + bot: InputUser; } - response: Messages$AvailableEffects + response: Payments$ConnectedStarRefBots } - 'channels.searchPosts': { + 'payments.editConnectedStarRefBot': { params: { - hashtag: string; - offset_rate: number; - offset_peer: InputPeer; - offset_id: number; + flags?: Number; + revoked?: boolean; + peer: InputPeer; + link: string; + } + response: Payments$ConnectedStarRefBots + } + 'messages.searchStickers': { + params: { + flags?: Number; + emojis?: boolean; + q: string; + emoticon: string; + lang_code: string[]; + offset: number; limit: number; + hash: string; } - response: Messages$Messages + response: Messages$FoundStickers } - 'messages.editFactCheck': { + 'phone.createConferenceCall': { params: { - peer: InputPeer; - msg_id: number; - text: TextWithEntities; + flags?: Number; + muted?: boolean; + video_stopped?: boolean; + join?: boolean; + random_id: number; + public_key?: number; + block?: Uint8Array; + params?: DataJSON; } response: Updates } - 'messages.deleteFactCheck': { + 'messages.reportMessagesDelivery': { params: { + flags?: Number; + push?: boolean; peer: InputPeer; - msg_id: number; + id: number[]; } - response: Updates + response: boolean } - 'messages.getFactCheck': { + 'bots.setCustomVerification': { params: { + flags?: Number; + enabled?: boolean; + bot?: InputUser; peer: InputPeer; - msg_id: number[]; + custom_description?: string; } - response: FactCheck[] + response: boolean } - 'payments.getStarsTopupOptions': { + 'payments.getStarGiftUpgradePreview': { params: { + gift_id: string; } - response: StarsTopupOption[] + response: Payments$StarGiftUpgradePreview } - 'payments.getStarsStatus': { + 'payments.upgradeStarGift': { params: { - peer: InputPeer; + flags?: Number; + keep_original_details?: boolean; + stargift: InputSavedStarGift; } - response: Payments$StarsStatus + response: Updates } - 'payments.getStarsTransactions': { + 'payments.transferStarGift': { params: { - flags?: Number; - inbound?: boolean; - outbound?: boolean; - ascending?: boolean; - subscription_id?: string; - peer: InputPeer; - offset: string; - limit: number; + stargift: InputSavedStarGift; + to_id: InputPeer; } - response: Payments$StarsStatus + response: Updates } - 'payments.sendStarsForm': { + 'bots.getBotRecommendations': { params: { - form_id: string; - invoice: InputInvoice; + bot: InputUser; } - response: Payments$PaymentResult + response: Users$Users } - 'payments.refundStarsCharge': { + 'payments.getUniqueStarGift': { params: { - user_id: InputUser; - charge_id: string; + slug: string; } - response: Updates + response: Payments$UniqueStarGift } - 'stories.searchPosts': { + 'account.getCollectibleEmojiStatuses': { + params: { + hash: string; + } + response: Account$EmojiStatuses + } + 'payments.getSavedStarGifts': { params: { flags?: Number; - hashtag?: string; - area?: MediaArea; - peer?: InputPeer; + exclude_unsaved?: boolean; + exclude_saved?: boolean; + exclude_unlimited?: boolean; + exclude_unique?: boolean; + sort_by_value?: boolean; + exclude_upgradable?: boolean; + exclude_unupgradable?: boolean; + peer: InputPeer; + collection_id?: number; offset: string; limit: number; } - response: Stories$FoundStories + response: Payments$SavedStarGifts } - 'payments.getStarsRevenueStats': { + 'payments.getSavedStarGift': { params: { - flags?: Number; - dark?: boolean; - peer: InputPeer; + stargift: InputSavedStarGift[]; } - response: Payments$StarsRevenueStats + response: Payments$SavedStarGifts } - 'payments.getStarsRevenueWithdrawalUrl': { + 'payments.getStarGiftWithdrawalUrl': { params: { - peer: InputPeer; - stars: string; + stargift: InputSavedStarGift; password: InputCheckPasswordSRP; } - response: Payments$StarsRevenueWithdrawalUrl + response: Payments$StarGiftWithdrawalUrl } - 'payments.getStarsRevenueAdsAccountUrl': { + 'payments.toggleChatStarGiftNotifications': { params: { + flags?: Number; + enabled?: boolean; peer: InputPeer; } - response: Payments$StarsRevenueAdsAccountUrl + response: boolean } - 'payments.getStarsTransactionsByID': { + 'invokeWithReCaptcha': { params: { - peer: InputPeer; - id: InputStarsTransaction[]; + token: string; + query: unknown; } - response: Payments$StarsStatus + response: unknown } - 'payments.getStarsGiftOptions': { + 'account.getPaidMessagesRevenue': { params: { flags?: Number; - user_id?: InputUser; + parent_peer?: InputPeer; + user_id: InputUser; } - response: StarsGiftOption[] + response: Account$PaidMessagesRevenue } - 'bots.getPopularAppBots': { + 'channels.updatePaidMessagesPrice': { params: { - offset: string; - limit: number; + flags?: Number; + broadcast_messages_allowed?: boolean; + channel: InputChannel; + send_paid_messages_stars: string; } - response: Bots$PopularAppBots + response: Updates } - 'bots.addPreviewMedia': { + 'users.getRequirementsToContact': { params: { - bot: InputUser; - lang_code: string; - media: InputMedia; + id: InputUser[]; } - response: BotPreviewMedia + response: RequirementToContact[] } - 'bots.editPreviewMedia': { + 'payments.toggleStarGiftsPinnedToTop': { params: { - bot: InputUser; - lang_code: string; - media: InputMedia; - new_media: InputMedia; + peer: InputPeer; + stargift: InputSavedStarGift[]; } - response: BotPreviewMedia + response: boolean } - 'bots.deletePreviewMedia': { + 'payments.canPurchaseStore': { params: { - bot: InputUser; - lang_code: string; - media: InputMedia[]; + purpose: InputStorePaymentPurpose; } response: boolean } - 'bots.reorderPreviewMedias': { + 'contacts.getSponsoredPeers': { params: { - bot: InputUser; - lang_code: string; - order: InputMedia[]; + q: string; } - response: boolean + response: Contacts$SponsoredPeers } - 'bots.getPreviewInfo': { + 'phone.deleteConferenceCallParticipants': { params: { - bot: InputUser; - lang_code: string; + flags?: Number; + only_left?: boolean; + kick?: boolean; + call: InputGroupCall; + ids: string[]; + block: Uint8Array; } - response: Bots$PreviewInfo + response: Updates } - 'bots.getPreviewMedias': { + 'phone.sendConferenceCallBroadcast': { params: { - bot: InputUser; + call: InputGroupCall; + block: Uint8Array; } - response: BotPreviewMedia[] + response: Updates } - 'messages.requestMainWebView': { + 'phone.inviteConferenceCallParticipant': { params: { flags?: Number; - compact?: boolean; - fullscreen?: boolean; - peer: InputPeer; - bot: InputUser; - start_param?: string; - theme_params?: DataJSON; - platform: string; + video?: boolean; + call: InputGroupCall; + user_id: InputUser; } - response: WebViewResult + response: Updates } - 'payments.getStarsSubscriptions': { + 'phone.declineConferenceCallInvite': { + params: { + msg_id: number; + } + response: Updates + } + 'phone.getGroupCallChainBlocks': { + params: { + call: InputGroupCall; + sub_chain_id: number; + offset: number; + limit: number; + } + response: Updates + } + 'payments.getResaleStarGifts': { params: { flags?: Number; - missing_balance?: boolean; - peer: InputPeer; + sort_by_price?: boolean; + sort_by_num?: boolean; + attributes_hash?: string; + gift_id: string; + attributes?: StarGiftAttributeId[]; offset: string; + limit: number; } - response: Payments$StarsStatus + response: Payments$ResaleStarGifts } - 'payments.changeStarsSubscription': { + 'payments.updateStarGiftPrice': { params: { - flags?: Number; - peer: InputPeer; - subscription_id: string; - canceled?: boolean; + stargift: InputSavedStarGift; + resell_amount: StarsAmount; } - response: boolean + response: Updates } - 'payments.fulfillStarsSubscription': { + 'channels.toggleAutotranslation': { params: { - peer: InputPeer; - subscription_id: string; + channel: InputChannel; + enabled: boolean; } - response: boolean + response: Updates } - 'messages.sendPaidReaction': { + 'messages.getSavedDialogsByID': { params: { flags?: Number; - peer: InputPeer; - msg_id: number; - count: number; - random_id: string; - private?: boolean; + parent_peer?: InputPeer; + ids: InputPeer[]; } - response: Updates + response: Messages$SavedDialogs } - 'messages.togglePaidReactionPrivacy': { + 'messages.readSavedHistory': { params: { + parent_peer: InputPeer; peer: InputPeer; - msg_id: number; - private: boolean; + max_id: number; } response: boolean } - 'payments.getStarsGiveawayOptions': { + 'channels.getMessageAuthor': { params: { + channel: InputChannel; + id: number; } - response: StarsGiveawayOption[] + response: User } - 'messages.getPaidReactionPrivacy': { + 'messages.toggleTodoCompleted': { params: { + peer: InputPeer; + msg_id: number; + completed: number[]; + incompleted: number[]; } response: Updates } - 'payments.getStarGifts': { + 'messages.appendTodoList': { params: { - hash: number; + peer: InputPeer; + msg_id: number; + list: TodoItem[]; } - response: Payments$StarGifts + response: Updates } - 'payments.getUserStarGifts': { + 'account.toggleNoPaidMessagesException': { params: { + flags?: Number; + refund_charged?: boolean; + require_payment?: boolean; + parent_peer?: InputPeer; user_id: InputUser; - offset: string; - limit: number; } - response: Payments$UserStarGifts + response: boolean } - 'payments.saveStarGift': { + 'messages.toggleSuggestedPostApproval': { params: { flags?: Number; - unsave?: boolean; - user_id: InputUser; + reject?: boolean; + peer: InputPeer; msg_id: number; + schedule_date?: number; + reject_comment?: string; } - response: boolean + response: Updates } - 'payments.convertStarGift': { + 'payments.createStarGiftCollection': { params: { - user_id: InputUser; - msg_id: number; + peer: InputPeer; + title: string; + stargift: InputSavedStarGift[]; } - response: boolean + response: StarGiftCollection } - 'messages.viewSponsoredMessage': { + 'payments.updateStarGiftCollection': { params: { + flags?: Number; peer: InputPeer; - random_id: Uint8Array; + collection_id: number; + title?: string; + delete_stargift?: InputSavedStarGift[]; + add_stargift?: InputSavedStarGift[]; + order?: InputSavedStarGift[]; + } + response: StarGiftCollection + } + 'payments.reorderStarGiftCollections': { + params: { + peer: InputPeer; + order: number[]; } response: boolean } - 'messages.clickSponsoredMessage': { + 'payments.deleteStarGiftCollection': { params: { - flags?: Number; - media?: boolean; - fullscreen?: boolean; peer: InputPeer; - random_id: Uint8Array; + collection_id: number; } response: boolean } - 'messages.reportSponsoredMessage': { + 'payments.getStarGiftCollections': { params: { peer: InputPeer; - random_id: Uint8Array; - option: Uint8Array; + hash: string; } - response: Channels$SponsoredMessageReportResult + response: Payments$StarGiftCollections } - 'messages.getSponsoredMessages': { + 'stories.createAlbum': { params: { peer: InputPeer; + title: string; + stories: number[]; } - response: Messages$SponsoredMessages + response: StoryAlbum } - 'messages.savePreparedInlineMessage': { + 'stories.updateAlbum': { params: { flags?: Number; - result: InputBotInlineResult; - user_id: InputUser; - peer_types?: InlineQueryPeerType[]; + peer: InputPeer; + album_id: number; + title?: string; + delete_stories?: number[]; + add_stories?: number[]; + order?: number[]; } - response: Messages$BotPreparedInlineMessage + response: StoryAlbum } - 'messages.getPreparedInlineMessage': { + 'stories.reorderAlbums': { params: { - bot: InputUser; - id: string; + peer: InputPeer; + order: number[]; } - response: Messages$PreparedInlineMessage + response: boolean } - 'bots.updateUserEmojiStatus': { + 'stories.deleteAlbum': { params: { - user_id: InputUser; - emoji_status: EmojiStatus; + peer: InputPeer; + album_id: number; } response: boolean } - 'bots.toggleUserEmojiStatusPermission': { + 'stories.getAlbums': { params: { - bot: InputUser; - enabled: boolean; + peer: InputPeer; + hash: string; } - response: boolean + response: Stories$Albums } - 'bots.checkDownloadFileParams': { + 'stories.getAlbumStories': { params: { - bot: InputUser; - file_name: string; - url: string; + peer: InputPeer; + album_id: number; + offset: number; + limit: number; } - response: boolean + response: Stories$Stories } - 'payments.botCancelStarsSubscription': { + 'channels.checkSearchPostsFlood': { params: { flags?: Number; - restore?: boolean; - user_id: InputUser; - charge_id: string; + query?: string; } - response: boolean + response: SearchPostsFlood } - 'bots.getAdminedBots': { + 'payments.getUniqueStarGiftValueInfo': { params: { + slug: string; } - response: User[] + response: Payments$UniqueStarGiftValueInfo } - 'bots.updateStarRefProgram': { + 'payments.checkCanSendGift': { params: { - flags?: Number; - bot: InputUser; - commission_permille: number; - duration_months?: number; + gift_id: string; } - response: StarRefProgram + response: Payments$CheckCanSendGiftResult } - 'payments.getConnectedStarRefBots': { + 'account.setMainProfileTab': { params: { - flags?: Number; - peer: InputPeer; - offset_date?: number; - offset_link?: string; - limit: number; + tab: ProfileTab; } - response: Payments$ConnectedStarRefBots + response: boolean } - 'payments.getConnectedStarRefBot': { + 'channels.setMainProfileTab': { params: { - peer: InputPeer; - bot: InputUser; + channel: InputChannel; + tab: ProfileTab; } - response: Payments$ConnectedStarRefBots + response: boolean } - 'payments.getSuggestedStarRefBots': { + 'account.saveMusic': { params: { flags?: Number; - order_by_revenue?: boolean; - order_by_date?: boolean; - peer: InputPeer; - offset: string; - limit: number; + unsave?: boolean; + id: InputDocument; + after_id?: InputDocument; } - response: Payments$SuggestedStarRefBots + response: boolean } - 'payments.connectStarRefBot': { + 'account.getSavedMusicIds': { params: { - peer: InputPeer; - bot: InputUser; + hash: string; } - response: Payments$ConnectedStarRefBots + response: Account$SavedMusicIds } - 'payments.editConnectedStarRefBot': { + 'users.getSavedMusic': { params: { - flags?: Number; - revoked?: boolean; - peer: InputPeer; - link: string; + id: InputUser; + offset: number; + limit: number; + hash: string; } - response: Payments$ConnectedStarRefBots + response: Users$SavedMusic } - 'messages.searchStickers': { + 'users.getSavedMusicByID': { + params: { + id: InputUser; + documents: InputDocument[]; + } + response: Users$SavedMusic + } + 'account.getUniqueGiftChatThemes': { params: { - flags?: Number; - emojis?: boolean; - q: string; - emoticon: string; - lang_code: string[]; offset: number; limit: number; hash: string; } - response: Messages$FoundStickers + response: Account$ChatThemes } } \ No newline at end of file diff --git a/src/parser.ts b/src/parser.ts index 11cd71f..c8b0b2a 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -567,7 +567,7 @@ result.id = this.int(); if (result.flags & 1) result.peer_id = this.predicate(); return result; }], - [2486456898, function() { + [2551566024, function() { const result: any = { _: 'message' }; result.flags = this.int(); result.out = !!(result.flags & 2); @@ -584,6 +584,8 @@ result.invert_media = !!(result.flags & 134217728); result.flags2 = this.int(); result.offline = !!(result.flags2 & 2); result.video_processing_pending = !!(result.flags2 & 16); +result.paid_suggested_post_stars = !!(result.flags2 & 256); +result.paid_suggested_post_ton = !!(result.flags2 & 512); result.id = this.int(); if (result.flags & 256) result.from_id = this.predicate(); if (result.flags & 536870912) result.from_boosts_applied = this.int(); @@ -610,23 +612,29 @@ if (result.flags & 33554432) result.ttl_period = this.int(); if (result.flags & 1073741824) result.quick_reply_shortcut_id = this.int(); if (result.flags2 & 4) result.effect = this.long(); if (result.flags2 & 8) result.factcheck = this.predicate(); +if (result.flags2 & 32) result.report_delivery_until_date = this.int(); +if (result.flags2 & 64) result.paid_message_stars = this.long(); +if (result.flags2 & 128) result.suggested_post = this.predicate(); return result; }], - [721967202, function() { + [2055212554, function() { const result: any = { _: 'messageService' }; result.flags = this.int(); result.out = !!(result.flags & 2); result.mentioned = !!(result.flags & 16); result.media_unread = !!(result.flags & 32); +result.reactions_are_possible = !!(result.flags & 512); result.silent = !!(result.flags & 8192); result.post = !!(result.flags & 16384); result.legacy = !!(result.flags & 524288); result.id = this.int(); if (result.flags & 256) result.from_id = this.predicate(); result.peer_id = this.predicate(); +if (result.flags & 268435456) result.saved_peer_id = this.predicate(); if (result.flags & 8) result.reply_to = this.predicate(); result.date = this.int(); result.action = this.predicate(); +if (result.flags & 1048576) result.reactions = this.predicate(); if (result.flags & 33554432) result.ttl_period = this.int(); return result; }], @@ -832,7 +840,7 @@ if (result.flags & 512) result.stories_android_sound = this.predicate(); if (result.flags & 1024) result.stories_other_sound = this.predicate(); return result; }], - [2899733598, function() { + [4101456375, function() { const result: any = { _: 'peerSettings' }; result.flags = this.int(); result.report_spam = !!(result.flags & 1); @@ -851,6 +859,11 @@ if (result.flags & 512) result.request_chat_title = this.string(); if (result.flags & 512) result.request_chat_date = this.int(); if (result.flags & 8192) result.business_bot_id = this.long(); if (result.flags & 8192) result.business_bot_manage_url = this.string(); +if (result.flags & 16384) result.charge_paid_message_stars = this.long(); +if (result.flags & 32768) result.registration_month = this.string(); +if (result.flags & 65536) result.phone_country = this.string(); +if (result.flags & 131072) result.name_change_date = this.int(); +if (result.flags & 262144) result.photo_change_date = this.int(); return result; }], [2755118061, function() { @@ -887,7 +900,7 @@ return result; const result: any = { _: 'inputReportReasonOther' }; return result; }], - [2543657846, function() { + [3312956845, function() { const result: any = { _: 'userFull' }; result.flags = this.int(); result.blocked = !!(result.flags & 1); @@ -907,6 +920,7 @@ result.flags2 = this.int(); result.sponsored_enabled = !!(result.flags2 & 128); result.can_view_revenue = !!(result.flags2 & 512); result.bot_can_manage_emoji_status = !!(result.flags2 & 1024); +result.display_gifts_button = !!(result.flags2 & 65536); result.id = this.long(); if (result.flags & 2) result.about = this.string(); result.settings = this.predicate(); @@ -919,11 +933,10 @@ if (result.flags & 64) result.pinned_msg_id = this.int(); result.common_chats_count = this.int(); if (result.flags & 2048) result.folder_id = this.int(); if (result.flags & 16384) result.ttl_period = this.int(); -if (result.flags & 32768) result.theme_emoticon = this.string(); +if (result.flags & 32768) result.theme = this.predicate(); if (result.flags & 65536) result.private_forward_name = this.string(); if (result.flags & 131072) result.bot_group_admin_rights = this.predicate(); if (result.flags & 262144) result.bot_broadcast_admin_rights = this.predicate(); -if (result.flags & 524288) result.premium_gifts = this.vector(this.predicate); if (result.flags & 16777216) result.wallpaper = this.predicate(); if (result.flags & 33554432) result.stories = this.predicate(); if (result.flags2 & 1) result.business_work_hours = this.predicate(); @@ -936,6 +949,14 @@ if (result.flags2 & 64) result.personal_channel_id = this.long(); if (result.flags2 & 64) result.personal_channel_message = this.int(); if (result.flags2 & 256) result.stargifts_count = this.int(); if (result.flags2 & 2048) result.starref_program = this.predicate(); +if (result.flags2 & 4096) result.bot_verification = this.predicate(); +if (result.flags2 & 16384) result.send_paid_messages_stars = this.long(); +if (result.flags2 & 32768) result.disallowed_gifts = this.predicate(); +if (result.flags2 & 131072) result.stars_rating = this.predicate(); +if (result.flags2 & 262144) result.stars_my_pending_rating = this.predicate(); +if (result.flags2 & 262144) result.stars_my_pending_rating_date = this.int(); +if (result.flags2 & 1048576) result.main_tab = this.predicate(); +if (result.flags2 & 2097152) result.saved_music = this.predicate(); return result; }], [341499403, function() { @@ -1014,13 +1035,14 @@ result.chats = this.vector(this.predicate, false); result.users = this.vector(this.predicate, false); return result; }], - [978610270, function() { + [1982539325, function() { const result: any = { _: 'messages.messagesSlice' }; result.flags = this.int(); result.inexact = !!(result.flags & 2); result.count = this.int(); if (result.flags & 1) result.next_rate = this.int(); if (result.flags & 4) result.offset_id_offset = this.int(); +if (result.flags & 8) result.search_flood = this.predicate(); result.messages = this.vector(this.predicate, false); result.chats = this.vector(this.predicate, false); result.users = this.vector(this.predicate, false); @@ -1549,7 +1571,7 @@ const result: any = { _: 'updateDcOptions' }; result.dc_options = this.vector(this.predicate, false); return result; }], - [1530447553, function() { + [58495792, function() { const result: any = { _: 'inputMediaUploadedDocument' }; result.flags = this.int(); result.nosound_video = !!(result.flags & 8); @@ -1560,19 +1582,23 @@ if (result.flags & 4) result.thumb = this.predicate(); result.mime_type = this.string(); result.attributes = this.vector(this.predicate, false); if (result.flags & 1) result.stickers = this.vector(this.predicate); +if (result.flags & 64) result.video_cover = this.predicate(); +if (result.flags & 128) result.video_timestamp = this.int(); if (result.flags & 2) result.ttl_seconds = this.int(); return result; }], - [860303448, function() { + [2826320565, function() { const result: any = { _: 'inputMediaDocument' }; result.flags = this.int(); result.spoiler = !!(result.flags & 4); result.id = this.predicate(); +if (result.flags & 8) result.video_cover = this.predicate(); +if (result.flags & 16) result.video_timestamp = this.int(); if (result.flags & 1) result.ttl_seconds = this.int(); if (result.flags & 2) result.query = this.string(); return result; }], - [3713469397, function() { + [1389939929, function() { const result: any = { _: 'messageMediaDocument' }; result.flags = this.int(); result.nopremium = !!(result.flags & 8); @@ -1582,6 +1608,8 @@ result.round = !!(result.flags & 128); result.voice = !!(result.flags & 256); if (result.flags & 1) result.document = this.predicate(); if (result.flags & 32) result.alt_documents = this.vector(this.predicate); +if (result.flags & 512) result.video_cover = this.predicate(); +if (result.flags & 1024) result.video_timestamp = this.int(); if (result.flags & 4) result.ttl_seconds = this.int(); return result; }], @@ -2090,7 +2118,7 @@ const result: any = { _: 'chatInviteAlready' }; result.chat = this.predicate(); return result; }], - [4268046493, function() { + [1553807106, function() { const result: any = { _: 'chatInvite' }; result.flags = this.int(); result.channel = !!(result.flags & 1); @@ -2110,6 +2138,7 @@ if (result.flags & 16) result.participants = this.vector(this.predicate); result.color = this.int(); if (result.flags & 1024) result.subscription_pricing = this.predicate(); if (result.flags & 4096) result.subscription_form_id = this.long(); +if (result.flags & 8192) result.bot_verification = this.predicate(); return result; }], [51520707, function() { @@ -2172,7 +2201,7 @@ result.keywords = this.vector(this.predicate, false); result.documents = this.vector(this.predicate, false); return result; }], - [2201046986, function() { + [34280482, function() { const result: any = { _: 'user' }; result.flags = this.int(); result.self = !!(result.flags & 1024); @@ -2219,6 +2248,8 @@ if (result.flags2 & 32) result.stories_max_id = this.int(); if (result.flags2 & 256) result.color = this.predicate(); if (result.flags2 & 512) result.profile_color = this.predicate(); if (result.flags2 & 4096) result.bot_active_users = this.int(); +if (result.flags2 & 16384) result.bot_verification_icon = this.long(); +if (result.flags2 & 32768) result.send_paid_messages_stars = this.long(); return result; }], [3262826695, function() { @@ -2227,7 +2258,7 @@ result.command = this.string(); result.description = this.string(); return result; }], - [912290611, function() { + [1300890265, function() { const result: any = { _: 'botInfo' }; result.flags = this.int(); result.has_preview_medias = !!(result.flags & 64); @@ -2239,6 +2270,7 @@ if (result.flags & 4) result.commands = this.vector(this.predicate); if (result.flags & 8) result.menu_button = this.predicate(); if (result.flags & 128) result.privacy_policy_url = this.string(); if (result.flags & 256) result.app_settings = this.predicate(); +if (result.flags & 512) result.verifier_settings = this.predicate(); return result; }], [2734311552, function() { @@ -2390,7 +2422,7 @@ result.channel_id = this.long(); result.access_hash = this.long(); return result; }], - [4265900221, function() { + [4268249941, function() { const result: any = { _: 'channel' }; result.flags = this.int(); result.creator = !!(result.flags & 1); @@ -2418,6 +2450,10 @@ result.stories_hidden = !!(result.flags2 & 2); result.stories_hidden_min = !!(result.flags2 & 4); result.stories_unavailable = !!(result.flags2 & 8); result.signature_profiles = !!(result.flags2 & 4096); +result.autotranslation = !!(result.flags2 & 32768); +result.broadcast_messages_allowed = !!(result.flags2 & 65536); +result.monoforum = !!(result.flags2 & 131072); +result.forum_tabs = !!(result.flags2 & 524288); result.id = this.long(); if (result.flags & 8192) result.access_hash = this.long(); result.title = this.string(); @@ -2436,6 +2472,9 @@ if (result.flags2 & 256) result.profile_color = this.predicate(); if (result.flags2 & 512) result.emoji_status = this.predicate(); if (result.flags2 & 1024) result.level = this.int(); if (result.flags2 & 2048) result.subscription_until_date = this.int(); +if (result.flags2 & 8192) result.bot_verification_icon = this.long(); +if (result.flags2 & 16384) result.send_paid_messages_stars = this.long(); +if (result.flags2 & 262144) result.linked_monoforum_id = this.long(); return result; }], [399807445, function() { @@ -2456,7 +2495,7 @@ result.chats = this.vector(this.predicate, false); result.users = this.vector(this.predicate, false); return result; }], - [3148559501, function() { + [3839931037, function() { const result: any = { _: 'channelFull' }; result.flags = this.int(); result.can_view_participants = !!(result.flags & 8); @@ -2479,6 +2518,8 @@ result.can_view_revenue = !!(result.flags2 & 4096); result.paid_media_allowed = !!(result.flags2 & 16384); result.can_view_stars_revenue = !!(result.flags2 & 32768); result.paid_reactions_available = !!(result.flags2 & 65536); +result.stargifts_available = !!(result.flags2 & 524288); +result.paid_messages_available = !!(result.flags2 & 1048576); result.id = this.long(); result.about = this.string(); if (result.flags & 1) result.participants_count = this.int(); @@ -2520,6 +2561,10 @@ if (result.flags2 & 128) result.wallpaper = this.predicate(); if (result.flags2 & 256) result.boosts_applied = this.int(); if (result.flags2 & 512) result.boosts_unrestrict = this.int(); if (result.flags2 & 1024) result.emojiset = this.predicate(); +if (result.flags2 & 131072) result.bot_verification = this.predicate(); +if (result.flags2 & 262144) result.stargifts_count = this.int(); +if (result.flags2 & 2097152) result.send_paid_messages_stars = this.long(); +if (result.flags2 & 4194304) result.main_tab = this.predicate(); return result; }], [182649427, function() { @@ -3216,11 +3261,12 @@ result.channel_id = this.long(); result.max_id = this.int(); return result; }], - [457829485, function() { + [3992719646, function() { const result: any = { _: 'updateDraftMessage' }; result.flags = this.int(); result.peer = this.predicate(); if (result.flags & 1) result.top_msg_id = this.int(); +if (result.flags & 2) result.saved_peer_id = this.predicate(); result.draft = this.predicate(); return result; }], @@ -3230,7 +3276,7 @@ result.flags = this.int(); if (result.flags & 1) result.date = this.int(); return result; }], - [761606687, function() { + [2531960299, function() { const result: any = { _: 'draftMessage' }; result.flags = this.int(); result.no_webpage = !!(result.flags & 2); @@ -3241,6 +3287,7 @@ if (result.flags & 8) result.entities = this.vector(this.predicate); if (result.flags & 32) result.media = this.predicate(); result.date = this.int(); if (result.flags & 128) result.effect = this.long(); +if (result.flags & 256) result.suggested_post = this.predicate(); return result; }], [2679813636, function() { @@ -3319,12 +3366,14 @@ result.url = this.string(); if (result.flags & 1) result.ttl_seconds = this.int(); return result; }], - [4216511641, function() { + [2006319353, function() { const result: any = { _: 'inputMediaDocumentExternal' }; result.flags = this.int(); result.spoiler = !!(result.flags & 2); result.url = this.string(); if (result.flags & 1) result.ttl_seconds = this.int(); +if (result.flags & 4) result.video_cover = this.predicate(); +if (result.flags & 8) result.video_timestamp = this.int(); return result; }], [872932635, function() { @@ -4016,6 +4065,7 @@ const result: any = { _: 'phoneCall' }; result.flags = this.int(); result.p2p_allowed = !!(result.flags & 32); result.video = !!(result.flags & 64); +result.conference_supported = !!(result.flags & 256); result.id = this.long(); result.access_hash = this.long(); result.date = this.int(); @@ -4373,11 +4423,12 @@ return result; const result: any = { _: 'updateFavedStickers' }; return result; }], - [3928556893, function() { + [636691703, function() { const result: any = { _: 'updateChannelReadMessagesContents' }; result.flags = this.int(); result.channel_id = this.long(); if (result.flags & 1) result.top_msg_id = this.int(); +if (result.flags & 2) result.saved_peer_id = this.predicate(); result.messages = this.vector(this.int, false); return result; }], @@ -4847,11 +4898,12 @@ return result; const result: any = { _: 'inputTakeoutFileLocation' }; return result; }], - [3781450179, function() { + [3059282494, function() { const result: any = { _: 'updateDialogUnreadMark' }; result.flags = this.int(); result.unread = !!(result.flags & 1); result.peer = this.predicate(); +if (result.flags & 2) result.saved_peer_id = this.predicate(); return result; }], [4041467286, function() { @@ -5290,6 +5342,7 @@ result.manage_topics = !!(result.flags & 8192); result.post_stories = !!(result.flags & 16384); result.edit_stories = !!(result.flags & 32768); result.delete_stories = !!(result.flags & 65536); +result.manage_direct_messages = !!(result.flags & 131072); return result; }], [2668758040, function() { @@ -5952,7 +6005,7 @@ const result: any = { _: 'peerSelfLocated' }; result.expires = this.int(); return result; }], - [1605718587, function() { + [2856789585, function() { const result: any = { _: 'dialogFilter' }; result.flags = this.int(); result.contacts = !!(result.flags & 1); @@ -5963,8 +6016,9 @@ result.bots = !!(result.flags & 16); result.exclude_muted = !!(result.flags & 2048); result.exclude_read = !!(result.flags & 4096); result.exclude_archived = !!(result.flags & 8192); +result.title_noanimate = !!(result.flags & 268435456); result.id = this.int(); -result.title = this.string(); +result.title = this.predicate(); if (result.flags & 33554432) result.emoticon = this.string(); if (result.flags & 134217728) result.color = this.int(); result.pinned_peers = this.vector(this.predicate, false); @@ -6076,16 +6130,19 @@ const result: any = { _: 'help.promoDataEmpty' }; result.expires = this.int(); return result; }], - [2352576831, function() { + [145021050, function() { const result: any = { _: 'help.promoData' }; result.flags = this.int(); result.proxy = !!(result.flags & 1); result.expires = this.int(); -result.peer = this.predicate(); -result.chats = this.vector(this.predicate, false); -result.users = this.vector(this.predicate, false); +if (result.flags & 8) result.peer = this.predicate(); if (result.flags & 2) result.psa_type = this.string(); if (result.flags & 4) result.psa_message = this.string(); +result.pending_suggestions = this.vector(this.string, false); +result.dismissed_suggestions = this.vector(this.string, false); +if (result.flags & 16) result.custom_pending_suggestion = this.predicate(); +result.chats = this.vector(this.predicate, false); +result.users = this.vector(this.predicate, false); return result; }], [3727929492, function() { @@ -6152,7 +6209,7 @@ result.top_inviters = this.vector(this.predicate, false); result.users = this.vector(this.predicate, false); return result; }], - [1934380235, function() { + [4265718607, function() { const result: any = { _: 'globalPrivacySettings' }; result.flags = this.int(); result.archive_and_mute_new_noncontact_peers = !!(result.flags & 1); @@ -6160,6 +6217,9 @@ result.keep_archived_unmuted = !!(result.flags & 2); result.keep_archived_folders = !!(result.flags & 4); result.hide_read_marks = !!(result.flags & 8); result.new_noncontact_peers_require_premium = !!(result.flags & 16); +result.display_gifts_button = !!(result.flags & 128); +if (result.flags & 32) result.noncontact_peers_paid_stars = this.long(); +if (result.flags & 64) result.disallowed_gifts = this.predicate(); return result; }], [1667228533, function() { @@ -6262,7 +6322,7 @@ result.chats = this.vector(this.predicate, false); result.users = this.vector(this.predicate, false); return result; }], - [2948336091, function() { + [1763137035, function() { const result: any = { _: 'messageReplyHeader' }; result.flags = this.int(); result.reply_to_scheduled = !!(result.flags & 4); @@ -6276,6 +6336,7 @@ if (result.flags & 2) result.reply_to_top_id = this.int(); if (result.flags & 64) result.quote_text = this.string(); if (result.flags & 128) result.quote_entities = this.vector(this.predicate); if (result.flags & 1024) result.quote_offset = this.int(); +if (result.flags & 2048) result.todo_item_id = this.int(); return result; }], [2211844034, function() { @@ -6385,7 +6446,7 @@ result.access_hash = this.long(); result.duration = this.int(); return result; }], - [3583468812, function() { + [1429932961, function() { const result: any = { _: 'groupCall' }; result.flags = this.int(); result.join_muted = !!(result.flags & 2); @@ -6396,6 +6457,8 @@ result.can_start_video = !!(result.flags & 512); result.record_video_active = !!(result.flags & 2048); result.rtmp_stream = !!(result.flags & 4096); result.listeners_hidden = !!(result.flags & 8192); +result.conference = !!(result.flags & 16384); +result.creator = !!(result.flags & 32768); result.id = this.long(); result.access_hash = this.long(); result.participants_count = this.int(); @@ -6406,6 +6469,7 @@ if (result.flags & 128) result.schedule_date = this.int(); if (result.flags & 1024) result.unmuted_video_count = this.int(); result.unmuted_video_limit = this.int(); result.version = this.int(); +if (result.flags & 65536) result.invite_link = this.string(); return result; }], [3635053583, function() { @@ -6463,9 +6527,10 @@ result.participants = this.vector(this.predicate, false); result.version = this.int(); return result; }], - [347227392, function() { + [2547401537, function() { const result: any = { _: 'updateGroupCall' }; -result.chat_id = this.long(); +result.flags = this.int(); +if (result.flags & 1) result.chat_id = this.long(); result.call = this.predicate(); return result; }], @@ -6841,16 +6906,35 @@ result.bot_id = this.long(); result.commands = this.vector(this.predicate, false); return result; }], - [2860016453, function() { -const result: any = { _: 'messageActionSetChatTheme' }; + [3286236164, function() { +const result: any = { _: 'chatTheme' }; result.emoticon = this.string(); +return result; + }], + [3759268292, function() { +const result: any = { _: 'account.chatThemesNotModified' }; +return result; + }], + [373835863, function() { +const result: any = { _: 'account.chatThemes' }; +result.flags = this.int(); +result.hash = this.long(); +result.themes = this.vector(this.predicate, false); +result.chats = this.vector(this.predicate, false); +result.users = this.vector(this.predicate, false); +if (result.flags & 1) result.next_offset = this.int(); +return result; + }], + [3105602874, function() { +const result: any = { _: 'messageActionSetChatTheme' }; +result.theme = this.predicate(); return result; }], [2958739121, function() { const result: any = { _: 'sendMessageChooseStickerAction' }; return result; }], - [1301522832, function() { + [2109703795, function() { const result: any = { _: 'sponsoredMessage' }; result.flags = this.int(); result.recommended = !!(result.flags & 32); @@ -6866,12 +6950,16 @@ if (result.flags & 8192) result.color = this.predicate(); result.button_text = this.string(); if (result.flags & 128) result.sponsor_info = this.string(); if (result.flags & 256) result.additional_info = this.string(); +if (result.flags & 32768) result.min_display_duration = this.int(); +if (result.flags & 32768) result.max_display_duration = this.int(); return result; }], - [3387825543, function() { + [4292502893, function() { const result: any = { _: 'messages.sponsoredMessages' }; result.flags = this.int(); if (result.flags & 1) result.posts_between = this.int(); +if (result.flags & 2) result.start_delay = this.int(); +if (result.flags & 4) result.between_delay = this.int(); result.messages = this.vector(this.predicate, false); result.chats = this.vector(this.predicate, false); result.users = this.vector(this.predicate, false); @@ -7026,12 +7114,13 @@ result.flags = this.int(); if (result.flags & 1) result.future_auth_token = this.bytes(); return result; }], - [1578843320, function() { + [506035194, function() { const result: any = { _: 'updateMessageReactions' }; result.flags = this.int(); result.peer = this.predicate(); result.msg_id = this.int(); if (result.flags & 1) result.top_msg_id = this.int(); +if (result.flags & 2) result.saved_peer_id = this.predicate(); result.reactions = this.predicate(); return result; }], @@ -7415,16 +7504,6 @@ result.months = this.int(); if (result.flags & 1) result.crypto_currency = this.string(); if (result.flags & 1) result.crypto_amount = this.long(); if (result.flags & 2) result.message = this.predicate(); -return result; - }], - [1958953753, function() { -const result: any = { _: 'premiumGiftOption' }; -result.flags = this.int(); -result.months = this.int(); -result.currency = this.string(); -result.amount = this.long(); -result.bot_url = this.string(); -if (result.flags & 1) result.store_product = this.string(); return result; }], [3364567810, function() { @@ -7462,15 +7541,11 @@ return result; const result: any = { _: 'emojiStatusEmpty' }; return result; }], - [2459656605, function() { + [3892250250, function() { const result: any = { _: 'emojiStatus' }; +result.flags = this.int(); result.document_id = this.long(); -return result; - }], - [4197492935, function() { -const result: any = { _: 'emojiStatusUntil' }; -result.document_id = this.long(); -result.until = this.int(); +if (result.flags & 1) result.until = this.int(); return result; }], [674706841, function() { @@ -8029,12 +8104,13 @@ result.user_id = this.long(); result.date = this.int(); return result; }], - [2682424996, function() { + [2522053591, function() { const result: any = { _: 'dialogFilterChatlist' }; result.flags = this.int(); result.has_my_invites = !!(result.flags & 67108864); +result.title_noanimate = !!(result.flags & 268435456); result.id = this.int(); -result.title = this.string(); +result.title = this.predicate(); if (result.flags & 33554432) result.emoticon = this.string(); if (result.flags & 134217728) result.color = this.int(); result.pinned_peers = this.vector(this.predicate, false); @@ -8076,10 +8152,11 @@ result.chats = this.vector(this.predicate, false); result.users = this.vector(this.predicate, false); return result; }], - [500007837, function() { + [4044279343, function() { const result: any = { _: 'chatlists.chatlistInvite' }; result.flags = this.int(); -result.title = this.string(); +result.title_noanimate = !!(result.flags & 2); +result.title = this.predicate(); if (result.flags & 1) result.emoticon = this.string(); result.peers = this.vector(this.predicate, false); result.chats = this.vector(this.predicate, false); @@ -8165,7 +8242,7 @@ result.date = this.int(); result.expire_date = this.int(); return result; }], - [2041735716, function() { + [3992020209, function() { const result: any = { _: 'storyItem' }; result.flags = this.int(); result.pinned = !!(result.flags & 32); @@ -8189,6 +8266,7 @@ if (result.flags & 16384) result.media_areas = this.vector(this.predicate); if (result.flags & 4) result.privacy = this.vector(this.predicate); if (result.flags & 8) result.views = this.predicate(); if (result.flags & 32768) result.sent_reaction = this.predicate(); +if (result.flags & 524288) result.albums = this.vector(this.int); return result; }], [1974712216, function() { @@ -8269,7 +8347,7 @@ result.views = this.vector(this.predicate, false); result.users = this.vector(this.predicate, false); return result; }], - [583071445, function() { + [2258615824, function() { const result: any = { _: 'inputReplyToMessage' }; result.flags = this.int(); result.reply_to_msg_id = this.int(); @@ -8278,6 +8356,8 @@ if (result.flags & 2) result.reply_to_peer_id = this.predicate(); if (result.flags & 4) result.quote_text = this.string(); if (result.flags & 8) result.quote_entities = this.vector(this.predicate); if (result.flags & 16) result.quote_offset = this.int(); +if (result.flags & 32) result.monoforum_peer_id = this.predicate(); +if (result.flags & 64) result.todo_item_id = this.int(); return result; }], [1484862010, function() { @@ -9156,12 +9236,12 @@ result.shortcut_id = this.int(); result.messages = this.vector(this.int, false); return result; }], - [3171321345, function() { + [3445908332, function() { const result: any = { _: 'connectedBot' }; result.flags = this.int(); -result.can_reply = !!(result.flags & 1); result.bot_id = this.long(); result.recipients = this.predicate(); +result.rights = this.predicate(); return result; }], [400029819, function() { @@ -9217,15 +9297,15 @@ result.messages = this.vector(this.int, false); result.qts = this.int(); return result; }], - [2305045428, function() { + [2402595573, function() { const result: any = { _: 'botBusinessConnection' }; result.flags = this.int(); -result.can_reply = !!(result.flags & 1); result.disabled = !!(result.flags & 2); result.connection_id = this.string(); result.user_id = this.long(); result.dc_id = this.int(); result.date = this.int(); +if (result.flags & 4) result.rights = this.predicate(); return result; }], [163867085, function() { @@ -9434,51 +9514,6 @@ return result; }], [2910423113, function() { const result: any = { _: 'channels.sponsoredMessageReportResultReported' }; -return result; - }], - [1409802903, function() { -const result: any = { _: 'stats.broadcastRevenueStats' }; -result.top_hours_graph = this.predicate(); -result.revenue_graph = this.predicate(); -result.balances = this.predicate(); -result.usd_rate = this.double(); -return result; - }], - [3966080823, function() { -const result: any = { _: 'stats.broadcastRevenueWithdrawalUrl' }; -result.url = this.string(); -return result; - }], - [1434332356, function() { -const result: any = { _: 'broadcastRevenueTransactionProceeds' }; -result.amount = this.long(); -result.from_date = this.int(); -result.to_date = this.int(); -return result; - }], - [1515784568, function() { -const result: any = { _: 'broadcastRevenueTransactionWithdrawal' }; -result.flags = this.int(); -result.pending = !!(result.flags & 1); -result.failed = !!(result.flags & 4); -result.amount = this.long(); -result.date = this.int(); -result.provider = this.string(); -if (result.flags & 2) result.transaction_date = this.int(); -if (result.flags & 2) result.transaction_url = this.string(); -return result; - }], - [1121127726, function() { -const result: any = { _: 'broadcastRevenueTransactionRefund' }; -result.amount = this.long(); -result.date = this.int(); -result.provider = this.string(); -return result; - }], - [2266334310, function() { -const result: any = { _: 'stats.broadcastRevenueTransactions' }; -result.count = this.int(); -result.transactions = this.vector(this.predicate, false); return result; }], [1355547603, function() { @@ -9536,21 +9571,6 @@ return result; const result: any = { _: 'emojiGroupPremium' }; result.title = this.string(); result.icon_emoji_id = this.long(); -return result; - }], - [3288297959, function() { -const result: any = { _: 'broadcastRevenueBalances' }; -result.flags = this.int(); -result.withdrawal_enabled = !!(result.flags & 1); -result.current_balance = this.long(); -result.available_balance = this.long(); -result.overall_revenue = this.long(); -return result; - }], - [3755565557, function() { -const result: any = { _: 'updateBroadcastRevenueTransactions' }; -result.peer = this.predicate(); -result.balances = this.predicate(); return result; }], [2479088254, function() { @@ -9624,7 +9644,7 @@ const result: any = { _: 'inputInvoiceStars' }; result.purpose = this.predicate(); return result; }], - [1692387622, function() { + [325426864, function() { const result: any = { _: 'starsTransaction' }; result.flags = this.int(); result.refund = !!(result.flags & 8); @@ -9632,8 +9652,13 @@ result.pending = !!(result.flags & 16); result.failed = !!(result.flags & 64); result.gift = !!(result.flags & 1024); result.reaction = !!(result.flags & 2048); +result.stargift_upgrade = !!(result.flags & 262144); +result.business_transfer = !!(result.flags & 2097152); +result.stargift_resale = !!(result.flags & 4194304); +result.posts_search = !!(result.flags & 16777216); +result.stargift_prepaid_upgrade = !!(result.flags & 33554432); result.id = this.string(); -result.stars = this.predicate(); +result.amount = this.predicate(); result.date = this.int(); result.peer = this.predicate(); if (result.flags & 1) result.title = this.string(); @@ -9651,6 +9676,10 @@ if (result.flags & 32768) result.floodskip_number = this.int(); if (result.flags & 65536) result.starref_commission_permille = this.int(); if (result.flags & 131072) result.starref_peer = this.predicate(); if (result.flags & 131072) result.starref_amount = this.predicate(); +if (result.flags & 524288) result.paid_messages = this.int(); +if (result.flags & 1048576) result.premium_gift_months = this.int(); +if (result.flags & 8388608) result.ads_proceeds_from_date = this.int(); +if (result.flags & 8388608) result.ads_proceeds_to_date = this.int(); return result; }], [1822222573, function() { @@ -9751,8 +9780,10 @@ result.overall_revenue = this.predicate(); if (result.flags & 2) result.next_withdrawal_at = this.int(); return result; }], - [3375085371, function() { + [1814066038, function() { const result: any = { _: 'payments.starsRevenueStats' }; +result.flags = this.int(); +if (result.flags & 1) result.top_hours_graph = this.predicate(); result.revenue_graph = this.predicate(); result.status = this.predicate(); result.usd_rate = this.double(); @@ -9809,11 +9840,13 @@ if (result.flags & 1) result.payload = this.bytes(); result.charge = this.predicate(); return result; }], - [3722252118, function() { + [4188186315, function() { const result: any = { _: 'inputStorePaymentStarsTopup' }; +result.flags = this.int(); result.stars = this.long(); result.currency = this.string(); result.amount = this.long(); +if (result.flags & 1) result.spend_purpose_peer = this.predicate(); return result; }], [494149367, function() { @@ -9968,7 +10001,7 @@ result.boost_peer = this.predicate(); result.giveaway_msg_id = this.int(); return result; }], - [1372224236, function() { + [2339528654, function() { const result: any = { _: 'updatePaidReactionPrivacy' }; result.private = this.predicate(); return result; @@ -10009,37 +10042,50 @@ result.text = this.string(); result.copy_text = this.string(); return result; }], - [1237678029, function() { + [2158777283, function() { const result: any = { _: 'starGift' }; result.flags = this.int(); result.limited = !!(result.flags & 1); result.sold_out = !!(result.flags & 2); result.birthday = !!(result.flags & 4); +result.require_premium = !!(result.flags & 128); +result.limited_per_user = !!(result.flags & 256); result.id = this.long(); result.sticker = this.predicate(); result.stars = this.long(); if (result.flags & 1) result.availability_remains = this.int(); if (result.flags & 1) result.availability_total = this.int(); +if (result.flags & 16) result.availability_resale = this.long(); result.convert_stars = this.long(); if (result.flags & 2) result.first_sale_date = this.int(); if (result.flags & 2) result.last_sale_date = this.int(); +if (result.flags & 8) result.upgrade_stars = this.long(); +if (result.flags & 16) result.resell_min_stars = this.long(); +if (result.flags & 32) result.title = this.string(); +if (result.flags & 64) result.released_by = this.predicate(); +if (result.flags & 256) result.per_user_total = this.int(); +if (result.flags & 256) result.per_user_remains = this.int(); +if (result.flags & 512) result.locked_until_date = this.int(); return result; }], [2743640936, function() { const result: any = { _: 'payments.starGiftsNotModified' }; return result; }], - [2417396202, function() { + [785918357, function() { const result: any = { _: 'payments.starGifts' }; result.hash = this.int(); result.gifts = this.vector(this.predicate, false); +result.chats = this.vector(this.predicate, false); +result.users = this.vector(this.predicate, false); return result; }], - [634962392, function() { + [3898760850, function() { const result: any = { _: 'inputInvoiceStarGift' }; result.flags = this.int(); result.hide_name = !!(result.flags & 1); -result.user_id = this.predicate(); +result.include_upgrade = !!(result.flags & 4); +result.peer = this.predicate(); result.gift_id = this.long(); if (result.flags & 2) result.message = this.predicate(); return result; @@ -10050,37 +10096,27 @@ result.form_id = this.long(); result.invoice = this.predicate(); return result; }], - [139818551, function() { + [4065191930, function() { const result: any = { _: 'messageActionStarGift' }; result.flags = this.int(); result.name_hidden = !!(result.flags & 1); result.saved = !!(result.flags & 4); result.converted = !!(result.flags & 8); +result.upgraded = !!(result.flags & 32); +result.refunded = !!(result.flags & 512); +result.can_upgrade = !!(result.flags & 1024); +result.prepaid_upgrade = !!(result.flags & 8192); +result.upgrade_separate = !!(result.flags & 65536); result.gift = this.predicate(); if (result.flags & 2) result.message = this.predicate(); if (result.flags & 16) result.convert_stars = this.long(); -return result; - }], - [4003764846, function() { -const result: any = { _: 'userStarGift' }; -result.flags = this.int(); -result.name_hidden = !!(result.flags & 1); -result.unsaved = !!(result.flags & 32); -if (result.flags & 2) result.from_id = this.long(); -result.date = this.int(); -result.gift = this.predicate(); -if (result.flags & 4) result.message = this.predicate(); -if (result.flags & 8) result.msg_id = this.int(); -if (result.flags & 16) result.convert_stars = this.long(); -return result; - }], - [1801827607, function() { -const result: any = { _: 'payments.userStarGifts' }; -result.flags = this.int(); -result.count = this.int(); -result.gifts = this.vector(this.predicate, false); -if (result.flags & 1) result.next_offset = this.string(); -result.users = this.vector(this.predicate, false); +if (result.flags & 32) result.upgrade_msg_id = this.int(); +if (result.flags & 256) result.upgrade_stars = this.long(); +if (result.flags & 2048) result.from_id = this.predicate(); +if (result.flags & 4096) result.peer = this.predicate(); +if (result.flags & 4096) result.saved_id = this.long(); +if (result.flags & 16384) result.prepaid_upgrade_hash = this.string(); +if (result.flags & 32768) result.gift_msg_id = this.int(); return result; }], [2030298073, function() { @@ -10216,6 +10252,767 @@ result.flags = this.int(); if (result.flags & 1) result.next_offset = this.int(); result.hash = this.long(); result.stickers = this.vector(this.predicate, false); +return result; + }], + [2966251031, function() { +const result: any = { _: 'botVerifierSettings' }; +result.flags = this.int(); +result.can_modify_custom_description = !!(result.flags & 2); +result.icon = this.long(); +result.company = this.string(); +if (result.flags & 1) result.custom_description = this.string(); +return result; + }], + [4181513308, function() { +const result: any = { _: 'botVerification' }; +result.bot_id = this.long(); +result.icon = this.long(); +result.description = this.string(); +return result; + }], + [970559507, function() { +const result: any = { _: 'starGiftAttributeModel' }; +result.name = this.string(); +result.document = this.predicate(); +result.rarity_permille = this.int(); +return result; + }], + [330104601, function() { +const result: any = { _: 'starGiftAttributePattern' }; +result.name = this.string(); +result.document = this.predicate(); +result.rarity_permille = this.int(); +return result; + }], + [3644687772, function() { +const result: any = { _: 'starGiftAttributeBackdrop' }; +result.name = this.string(); +result.backdrop_id = this.int(); +result.center_color = this.int(); +result.edge_color = this.int(); +result.pattern_color = this.int(); +result.text_color = this.int(); +result.rarity_permille = this.int(); +return result; + }], + [3770675820, function() { +const result: any = { _: 'starGiftAttributeOriginalDetails' }; +result.flags = this.int(); +if (result.flags & 1) result.sender_id = this.predicate(); +result.recipient_id = this.predicate(); +result.date = this.int(); +if (result.flags & 2) result.message = this.predicate(); +return result; + }], + [468707429, function() { +const result: any = { _: 'starGiftUnique' }; +result.flags = this.int(); +result.require_premium = !!(result.flags & 64); +result.resale_ton_only = !!(result.flags & 128); +result.theme_available = !!(result.flags & 512); +result.id = this.long(); +result.gift_id = this.long(); +result.title = this.string(); +result.slug = this.string(); +result.num = this.int(); +if (result.flags & 1) result.owner_id = this.predicate(); +if (result.flags & 2) result.owner_name = this.string(); +if (result.flags & 4) result.owner_address = this.string(); +result.attributes = this.vector(this.predicate, false); +result.availability_issued = this.int(); +result.availability_total = this.int(); +if (result.flags & 8) result.gift_address = this.string(); +if (result.flags & 16) result.resell_amount = this.vector(this.predicate); +if (result.flags & 32) result.released_by = this.predicate(); +if (result.flags & 256) result.value_amount = this.long(); +if (result.flags & 256) result.value_currency = this.string(); +if (result.flags & 1024) result.theme_peer = this.predicate(); +return result; + }], + [888627955, function() { +const result: any = { _: 'messageActionStarGiftUnique' }; +result.flags = this.int(); +result.upgrade = !!(result.flags & 1); +result.transferred = !!(result.flags & 2); +result.saved = !!(result.flags & 4); +result.refunded = !!(result.flags & 32); +result.prepaid_upgrade = !!(result.flags & 2048); +result.gift = this.predicate(); +if (result.flags & 8) result.can_export_at = this.int(); +if (result.flags & 16) result.transfer_stars = this.long(); +if (result.flags & 64) result.from_id = this.predicate(); +if (result.flags & 128) result.peer = this.predicate(); +if (result.flags & 128) result.saved_id = this.long(); +if (result.flags & 256) result.resale_amount = this.predicate(); +if (result.flags & 512) result.can_transfer_at = this.int(); +if (result.flags & 1024) result.can_resell_at = this.int(); +return result; + }], + [1300335965, function() { +const result: any = { _: 'inputInvoiceStarGiftUpgrade' }; +result.flags = this.int(); +result.keep_original_details = !!(result.flags & 1); +result.stargift = this.predicate(); +return result; + }], + [1247763417, function() { +const result: any = { _: 'inputInvoiceStarGiftTransfer' }; +result.stargift = this.predicate(); +result.to_id = this.predicate(); +return result; + }], + [377215243, function() { +const result: any = { _: 'payments.starGiftUpgradePreview' }; +result.sample_attributes = this.vector(this.predicate, false); +return result; + }], + [1658259128, function() { +const result: any = { _: 'users.users' }; +result.users = this.vector(this.predicate, false); +return result; + }], + [828000628, function() { +const result: any = { _: 'users.usersSlice' }; +result.count = this.int(); +result.users = this.vector(this.predicate, false); +return result; + }], + [1097619176, function() { +const result: any = { _: 'payments.uniqueStarGift' }; +result.gift = this.predicate(); +result.chats = this.vector(this.predicate, false); +result.users = this.vector(this.predicate, false); +return result; + }], + [3480186296, function() { +const result: any = { _: 'webPageAttributeUniqueStarGift' }; +result.gift = this.predicate(); +return result; + }], + [1468491885, function() { +const result: any = { _: 'mediaAreaStarGift' }; +result.coordinates = this.predicate(); +result.slug = this.string(); +return result; + }], + [2358937772, function() { +const result: any = { _: 'messages.webPagePreview' }; +result.media = this.predicate(); +result.chats = this.vector(this.predicate, false); +result.users = this.vector(this.predicate, false); +return result; + }], + [1904500795, function() { +const result: any = { _: 'emojiStatusCollectible' }; +result.flags = this.int(); +result.collectible_id = this.long(); +result.document_id = this.long(); +result.title = this.string(); +result.slug = this.string(); +result.pattern_document_id = this.long(); +result.center_color = this.int(); +result.edge_color = this.int(); +result.pattern_color = this.int(); +result.text_color = this.int(); +if (result.flags & 1) result.until = this.int(); +return result; + }], + [118758847, function() { +const result: any = { _: 'inputEmojiStatusCollectible' }; +result.flags = this.int(); +result.collectible_id = this.long(); +if (result.flags & 1) result.until = this.int(); +return result; + }], + [430552434, function() { +const result: any = { _: 'savedStarGift' }; +result.flags = this.int(); +result.name_hidden = !!(result.flags & 1); +result.unsaved = !!(result.flags & 32); +result.refunded = !!(result.flags & 512); +result.can_upgrade = !!(result.flags & 1024); +result.pinned_to_top = !!(result.flags & 4096); +result.upgrade_separate = !!(result.flags & 131072); +if (result.flags & 2) result.from_id = this.predicate(); +result.date = this.int(); +result.gift = this.predicate(); +if (result.flags & 4) result.message = this.predicate(); +if (result.flags & 8) result.msg_id = this.int(); +if (result.flags & 2048) result.saved_id = this.long(); +if (result.flags & 16) result.convert_stars = this.long(); +if (result.flags & 64) result.upgrade_stars = this.long(); +if (result.flags & 128) result.can_export_at = this.int(); +if (result.flags & 256) result.transfer_stars = this.long(); +if (result.flags & 8192) result.can_transfer_at = this.int(); +if (result.flags & 16384) result.can_resell_at = this.int(); +if (result.flags & 32768) result.collection_id = this.vector(this.int); +if (result.flags & 65536) result.prepaid_upgrade_hash = this.string(); +return result; + }], + [2515765681, function() { +const result: any = { _: 'payments.savedStarGifts' }; +result.flags = this.int(); +result.count = this.int(); +if (result.flags & 2) result.chat_notifications_enabled = this.predicate(); +result.gifts = this.vector(this.predicate, false); +if (result.flags & 1) result.next_offset = this.string(); +result.chats = this.vector(this.predicate, false); +result.users = this.vector(this.predicate, false); +return result; + }], + [1764202389, function() { +const result: any = { _: 'inputSavedStarGiftUser' }; +result.msg_id = this.int(); +return result; + }], + [4043418239, function() { +const result: any = { _: 'inputSavedStarGiftChat' }; +result.peer = this.predicate(); +result.saved_id = this.long(); +return result; + }], + [2225748636, function() { +const result: any = { _: 'payments.starGiftWithdrawalUrl' }; +result.url = this.string(); +return result; + }], + [543872158, function() { +const result: any = { _: 'paidReactionPrivacyDefault' }; +return result; + }], + [520887001, function() { +const result: any = { _: 'paidReactionPrivacyAnonymous' }; +return result; + }], + [3698130160, function() { +const result: any = { _: 'paidReactionPrivacyPeer' }; +result.peer = this.predicate(); +return result; + }], + [3183843252, function() { +const result: any = { _: 'inputPrivacyKeyNoPaidMessages' }; +return result; + }], + [399722706, function() { +const result: any = { _: 'privacyKeyNoPaidMessages' }; +return result; + }], + [504403720, function() { +const result: any = { _: 'account.paidMessagesRevenue' }; +result.stars_amount = this.long(); +return result; + }], + [84580409, function() { +const result: any = { _: 'requirementToContactEmpty' }; +return result; + }], + [3850495209, function() { +const result: any = { _: 'requirementToContactPremium' }; +return result; + }], + [3036053139, function() { +const result: any = { _: 'requirementToContactPaidMessages' }; +result.stars_amount = this.long(); +return result; + }], + [3669668591, function() { +const result: any = { _: 'inputInvoicePremiumGiftStars' }; +result.flags = this.int(); +result.user_id = this.predicate(); +result.months = this.int(); +if (result.flags & 1) result.message = this.predicate(); +return result; + }], + [3617783033, function() { +const result: any = { _: 'auth.sentCodePaymentRequired' }; +result.store_product = this.string(); +result.phone_code_hash = this.string(); +result.support_email_address = this.string(); +result.support_email_subject = this.string(); +return result; + }], + [2612159341, function() { +const result: any = { _: 'inputStorePaymentAuthCode' }; +result.flags = this.int(); +result.restore = !!(result.flags & 1); +result.phone_number = this.string(); +result.phone_code_hash = this.string(); +result.currency = this.string(); +result.amount = this.long(); +return result; + }], + [1347068303, function() { +const result: any = { _: 'updateSentPhoneCode' }; +result.sent_code = this.predicate(); +return result; + }], + [2690796791, function() { +const result: any = { _: 'businessBotRights' }; +result.flags = this.int(); +result.reply = !!(result.flags & 1); +result.read_messages = !!(result.flags & 2); +result.delete_sent_messages = !!(result.flags & 4); +result.delete_received_messages = !!(result.flags & 8); +result.edit_name = !!(result.flags & 16); +result.edit_bio = !!(result.flags & 32); +result.edit_profile_photo = !!(result.flags & 64); +result.edit_username = !!(result.flags & 128); +result.view_gifts = !!(result.flags & 256); +result.sell_gifts = !!(result.flags & 512); +result.change_gift_settings = !!(result.flags & 1024); +result.transfer_and_upgrade_gifts = !!(result.flags & 2048); +result.transfer_stars = !!(result.flags & 4096); +result.manage_stories = !!(result.flags & 8192); +return result; + }], + [2887720909, function() { +const result: any = { _: 'messageActionPaidMessagesRefunded' }; +result.count = this.int(); +result.stars = this.long(); +return result; + }], + [2226685304, function() { +const result: any = { _: 'messageActionPaidMessagesPrice' }; +result.flags = this.int(); +result.broadcast_messages_allowed = !!(result.flags & 1); +result.stars = this.long(); +return result; + }], + [1911715524, function() { +const result: any = { _: 'disallowedGiftsSettings' }; +result.flags = this.int(); +result.disallow_unlimited_stargifts = !!(result.flags & 1); +result.disallow_limited_stargifts = !!(result.flags & 2); +result.disallow_unique_stargifts = !!(result.flags & 4); +result.disallow_premium_gifts = !!(result.flags & 8); +return result; + }], + [3331786963, function() { +const result: any = { _: 'sponsoredPeer' }; +result.flags = this.int(); +result.random_id = this.bytes(); +result.peer = this.predicate(); +if (result.flags & 1) result.sponsor_info = this.string(); +if (result.flags & 2) result.additional_info = this.string(); +return result; + }], + [3929191601, function() { +const result: any = { _: 'contacts.sponsoredPeersEmpty' }; +return result; + }], + [3942852740, function() { +const result: any = { _: 'contacts.sponsoredPeers' }; +result.peers = this.vector(this.predicate, false); +result.chats = this.vector(this.predicate, false); +result.users = this.vector(this.predicate, false); +return result; + }], + [4103700034, function() { +const result: any = { _: 'inputInvoiceBusinessBotTransferStars' }; +result.bot = this.predicate(); +result.stars = this.long(); +return result; + }], + [4261839423, function() { +const result: any = { _: 'inputGroupCallSlug' }; +result.slug = this.string(); +return result; + }], + [2349883455, function() { +const result: any = { _: 'inputGroupCallInviteMessage' }; +result.msg_id = this.int(); +return result; + }], + [2759272591, function() { +const result: any = { _: 'updateGroupCallChainBlocks' }; +result.call = this.predicate(); +result.sub_chain_id = this.int(); +result.blocks = this.vector(this.bytes, false); +result.next_offset = this.int(); +return result; + }], + [805187450, function() { +const result: any = { _: 'messageActionConferenceCall' }; +result.flags = this.int(); +result.missed = !!(result.flags & 1); +result.active = !!(result.flags & 2); +result.video = !!(result.flags & 16); +result.call_id = this.long(); +if (result.flags & 4) result.duration = this.int(); +if (result.flags & 8) result.other_participants = this.vector(this.predicate); +return result; + }], + [2679894519, function() { +const result: any = { _: 'phoneCallDiscardReasonMigrateConferenceCall' }; +result.slug = this.string(); +return result; + }], + [545636920, function() { +const result: any = { _: 'inputSavedStarGiftSlug' }; +result.slug = this.string(); +return result; + }], + [1219145276, function() { +const result: any = { _: 'starGiftAttributeIdModel' }; +result.document_id = this.long(); +return result; + }], + [1242965043, function() { +const result: any = { _: 'starGiftAttributeIdPattern' }; +result.document_id = this.long(); +return result; + }], + [520210263, function() { +const result: any = { _: 'starGiftAttributeIdBackdrop' }; +result.backdrop_id = this.int(); +return result; + }], + [783398488, function() { +const result: any = { _: 'starGiftAttributeCounter' }; +result.attribute = this.predicate(); +result.count = this.int(); +return result; + }], + [2491028191, function() { +const result: any = { _: 'payments.resaleStarGifts' }; +result.flags = this.int(); +result.count = this.int(); +result.gifts = this.vector(this.predicate, false); +if (result.flags & 1) result.next_offset = this.string(); +if (result.flags & 2) result.attributes = this.vector(this.predicate); +if (result.flags & 2) result.attributes_hash = this.long(); +result.chats = this.vector(this.predicate, false); +if (result.flags & 4) result.counters = this.vector(this.predicate); +result.users = this.vector(this.predicate, false); +return result; + }], + [3281998628, function() { +const result: any = { _: 'inputInvoiceStarGiftResale' }; +result.flags = this.int(); +result.ton = !!(result.flags & 1); +result.slug = this.string(); +result.to_id = this.predicate(); +return result; + }], + [3306682238, function() { +const result: any = { _: 'channelAdminLogEventActionToggleAutotranslation' }; +result.new_value = this.predicate(); +return result; + }], + [3280453710, function() { +const result: any = { _: 'stories.canSendStoryCount' }; +result.count_remains = this.int(); +return result; + }], + [3890753042, function() { +const result: any = { _: 'pendingSuggestion' }; +result.suggestion = this.string(); +result.title = this.predicate(); +result.description = this.predicate(); +result.url = this.string(); +return result; + }], + [1775660101, function() { +const result: any = { _: 'inputReplyToMonoForum' }; +result.monoforum_peer_id = this.predicate(); +return result; + }], + [1681948327, function() { +const result: any = { _: 'monoForumDialog' }; +result.flags = this.int(); +result.unread_mark = !!(result.flags & 8); +result.nopaid_messages_exception = !!(result.flags & 16); +result.peer = this.predicate(); +result.top_message = this.int(); +result.read_inbox_max_id = this.int(); +result.read_outbox_max_id = this.int(); +result.unread_count = this.int(); +result.unread_reactions_count = this.int(); +if (result.flags & 2) result.draft = this.predicate(); +return result; + }], + [2008081266, function() { +const result: any = { _: 'updateReadMonoForumInbox' }; +result.channel_id = this.long(); +result.saved_peer_id = this.predicate(); +result.read_max_id = this.int(); +return result; + }], + [2762445686, function() { +const result: any = { _: 'updateReadMonoForumOutbox' }; +result.channel_id = this.long(); +result.saved_peer_id = this.predicate(); +result.read_max_id = this.int(); +return result; + }], + [3416892719, function() { +const result: any = { _: 'todoItem' }; +result.id = this.int(); +result.title = this.predicate(); +return result; + }], + [1236871718, function() { +const result: any = { _: 'todoList' }; +result.flags = this.int(); +result.others_can_append = !!(result.flags & 1); +result.others_can_complete = !!(result.flags & 2); +result.title = this.predicate(); +result.list = this.vector(this.predicate, false); +return result; + }], + [1287725239, function() { +const result: any = { _: 'todoCompletion' }; +result.id = this.int(); +result.completed_by = this.long(); +result.date = this.int(); +return result; + }], + [2680512478, function() { +const result: any = { _: 'inputMediaTodo' }; +result.todo = this.predicate(); +return result; + }], + [2320740372, function() { +const result: any = { _: 'messageMediaToDo' }; +result.flags = this.int(); +result.todo = this.predicate(); +if (result.flags & 1) result.completions = this.vector(this.predicate); +return result; + }], + [3430702217, function() { +const result: any = { _: 'messageActionTodoCompletions' }; +result.completed = this.vector(this.int, false); +result.incompleted = this.vector(this.int, false); +return result; + }], + [3354246275, function() { +const result: any = { _: 'messageActionTodoAppendTasks' }; +result.list = this.vector(this.predicate, false); +return result; + }], + [2676042504, function() { +const result: any = { _: 'updateMonoForumNoPaidException' }; +result.flags = this.int(); +result.exception = !!(result.flags & 1); +result.channel_id = this.long(); +result.saved_peer_id = this.predicate(); +return result; + }], + [244201445, function() { +const result: any = { _: 'suggestedPost' }; +result.flags = this.int(); +result.accepted = !!(result.flags & 2); +result.rejected = !!(result.flags & 4); +if (result.flags & 8) result.price = this.predicate(); +if (result.flags & 1) result.schedule_date = this.int(); +return result; + }], + [4000978326, function() { +const result: any = { _: 'messageActionSuggestedPostApproval' }; +result.flags = this.int(); +result.rejected = !!(result.flags & 1); +result.balance_too_low = !!(result.flags & 2); +if (result.flags & 4) result.reject_comment = this.string(); +if (result.flags & 8) result.schedule_date = this.int(); +if (result.flags & 16) result.price = this.predicate(); +return result; + }], + [2514341737, function() { +const result: any = { _: 'messageActionSuggestedPostSuccess' }; +result.price = this.predicate(); +return result; + }], + [1777932024, function() { +const result: any = { _: 'messageActionSuggestedPostRefund' }; +result.flags = this.int(); +result.payer_initiated = !!(result.flags & 1); +return result; + }], + [1957618656, function() { +const result: any = { _: 'starsTonAmount' }; +result.amount = this.long(); +return result; + }], + [2829305497, function() { +const result: any = { _: 'messageActionGiftTon' }; +result.flags = this.int(); +result.currency = this.string(); +result.amount = this.long(); +result.crypto_currency = this.string(); +result.crypto_amount = this.long(); +if (result.flags & 1) result.transaction_id = this.string(); +return result; + }], + [485912992, function() { +const result: any = { _: 'inputStickerSetTonGifts' }; +return result; + }], + [453922567, function() { +const result: any = { _: 'starsRating' }; +result.flags = this.int(); +result.level = this.int(); +result.current_level_stars = this.long(); +result.stars = this.long(); +if (result.flags & 1) result.next_level_stars = this.long(); +return result; + }], + [2641040304, function() { +const result: any = { _: 'starGiftCollection' }; +result.flags = this.int(); +result.collection_id = this.int(); +result.title = this.string(); +if (result.flags & 1) result.icon = this.predicate(); +result.gifts_count = this.int(); +result.hash = this.long(); +return result; + }], + [2696564503, function() { +const result: any = { _: 'payments.starGiftCollectionsNotModified' }; +return result; + }], + [2317955827, function() { +const result: any = { _: 'payments.starGiftCollections' }; +result.collections = this.vector(this.predicate, false); +return result; + }], + [2468704346, function() { +const result: any = { _: 'storyAlbum' }; +result.flags = this.int(); +result.album_id = this.int(); +result.title = this.string(); +if (result.flags & 1) result.icon_photo = this.predicate(); +if (result.flags & 2) result.icon_video = this.predicate(); +return result; + }], + [1448008427, function() { +const result: any = { _: 'stories.albumsNotModified' }; +return result; + }], + [3281549882, function() { +const result: any = { _: 'stories.albums' }; +result.hash = this.long(); +result.albums = this.vector(this.predicate, false); +return result; + }], + [1040931690, function() { +const result: any = { _: 'searchPostsFlood' }; +result.flags = this.int(); +result.query_is_free = !!(result.flags & 1); +result.total_daily = this.int(); +result.remains = this.int(); +if (result.flags & 2) result.wait_till = this.int(); +result.stars_amount = this.long(); +return result; + }], + [835375875, function() { +const result: any = { _: 'webPageAttributeStarGiftCollection' }; +result.icons = this.vector(this.predicate, false); +return result; + }], + [2584430776, function() { +const result: any = { _: 'inputInvoiceStarGiftPrepaidUpgrade' }; +result.peer = this.predicate(); +result.hash = this.string(); +return result; + }], + [1362093126, function() { +const result: any = { _: 'payments.uniqueStarGiftValueInfo' }; +result.flags = this.int(); +result.last_sale_on_fragment = !!(result.flags & 2); +result.value_is_average = !!(result.flags & 64); +result.currency = this.string(); +result.value = this.long(); +result.initial_sale_date = this.int(); +result.initial_sale_stars = this.long(); +result.initial_sale_price = this.long(); +if (result.flags & 1) result.last_sale_date = this.int(); +if (result.flags & 1) result.last_sale_price = this.long(); +if (result.flags & 4) result.floor_price = this.long(); +if (result.flags & 8) result.average_price = this.long(); +if (result.flags & 16) result.listed_count = this.int(); +if (result.flags & 32) result.fragment_listed_count = this.int(); +if (result.flags & 32) result.fragment_listed_url = this.string(); +return result; + }], + [3113014934, function() { +const result: any = { _: 'profileTabPosts' }; +return result; + }], + [1296815210, function() { +const result: any = { _: 'profileTabGifts' }; +return result; + }], + [1925597525, function() { +const result: any = { _: 'profileTabMedia' }; +return result; + }], + [2872286208, function() { +const result: any = { _: 'profileTabFiles' }; +return result; + }], + [2670187118, function() { +const result: any = { _: 'profileTabMusic' }; +return result; + }], + [3833006382, function() { +const result: any = { _: 'profileTabVoice' }; +return result; + }], + [3546637465, function() { +const result: any = { _: 'profileTabLinks' }; +return result; + }], + [2730555029, function() { +const result: any = { _: 'profileTabGifs' }; +return result; + }], + [3817310884, function() { +const result: any = { _: 'users.savedMusicNotModified' }; +result.count = this.int(); +return result; + }], + [883094167, function() { +const result: any = { _: 'users.savedMusic' }; +result.count = this.int(); +result.documents = this.vector(this.predicate, false); +return result; + }], + [1338514798, function() { +const result: any = { _: 'account.savedMusicIdsNotModified' }; +return result; + }], + [2576180790, function() { +const result: any = { _: 'account.savedMusicIds' }; +result.ids = this.vector(this.long, false); +return result; + }], + [927967149, function() { +const result: any = { _: 'payments.checkCanSendGiftResultOk' }; +return result; + }], + [3588588148, function() { +const result: any = { _: 'payments.checkCanSendGiftResultFail' }; +result.reason = this.predicate(); +return result; + }], + [878246344, function() { +const result: any = { _: 'chatThemeUniqueGift' }; +result.gift = this.predicate(); +result.theme_settings = this.vector(this.predicate, false); +return result; + }], + [2200339587, function() { +const result: any = { _: 'inputChatThemeEmpty' }; +return result; + }], + [3376277852, function() { +const result: any = { _: 'inputChatTheme' }; +result.emoticon = this.string(); +return result; + }], + [2279989220, function() { +const result: any = { _: 'inputChatThemeUniqueGift' }; +result.slug = this.string(); return result; }], ]); diff --git a/src/rpc.ts b/src/rpc.ts index 52ec5a1..6c16db1 100644 --- a/src/rpc.ts +++ b/src/rpc.ts @@ -57,16 +57,16 @@ export class RPC { tmpAesKey?: Uint8Array tmpAesIV?: Uint8Array sessionId?: Uint8Array - nonce?: Uint8Array - newNonce: any - serverNonce: any + nonce: Uint8Array + newNonce: Uint8Array + serverNonce: Uint8Array dhPrime?: bigInt.BigInteger g?: bigInt.BigInteger gA?: bigInt.BigInteger authKeyAuxHash?: any lastMessageId?: any - seqNo?: number + seqNo: number constructor({ api_id, api_hash, initConnectionParams, dc, storage, updates }: { api_id: number @@ -90,6 +90,10 @@ export class RPC { this.pendingAcks = []; this.messagesWaitAuth = []; this.messagesWaitResponse = new Map(); + this.nonce = new Uint8Array() + this.newNonce = new Uint8Array() + this.serverNonce = new Uint8Array() + this.seqNo = 0 this.handleTransportOpen = this.handleTransportOpen.bind(this); this.handleTransportError = this.handleTransportError.bind(this); @@ -201,11 +205,13 @@ export class RPC { else { this.nonce = getRandomBytes(16); this.handleMessage = this.handlePQResponse; - this.sendPlainMessage(builderMap.mt_req_pq_multi, { nonce: this.nonce }); + this.sendPlainMessage(builderMap.mt_req_pq_multi, { + nonce: this.nonce + }); } } - handleTransportMessage(buffer: Buffer) { + handleTransportMessage(buffer: ArrayBufferLike) { this.handleMessage(buffer); } @@ -219,11 +225,11 @@ export class RPC { } } - handleMessage(buffer: Buffer) { + handleMessage(_: ArrayBufferLike) { throw new Error("`handleMessage` needs to be implemented") } - async handlePQResponse(buffer: Buffer) { + handlePQResponse(buffer: ArrayBufferLike) { this.debug("handling PQ response") const deserializer = new Deserializer(buffer); @@ -244,7 +250,7 @@ export class RPC { throw new Error('The nonce are not equal'); } - const publicKey = await RSA.getRsaKeyByFingerprints( + const publicKey = RSA.getRsaKeyByFingerprints( server_public_key_fingerprints ); @@ -299,15 +305,19 @@ export class RPC { const { nonce, server_nonce, encrypted_answer } = serverDH; if (!this.nonce) { - throw new Error("`this.nonce` can't be empty") + throw new TypeError("`this.nonce` can't be empty") + } + + if (!this.serverNonce) { + throw new TypeError("`this.serverNonce` can't be empty") } if (!bytesIsEqual(this.nonce, nonce)) { - throw new Error('The nonce are not equal'); + throw new RangeError('The nonce are not equal'); } if (!bytesIsEqual(this.serverNonce, server_nonce)) { - throw new Error('The server_nonce are not equal'); + throw new RangeError('The server_nonce are not equal'); } this.tmpAesKey = concatBytes( @@ -451,7 +461,7 @@ export class RPC { this.handleMessage = this.handleDHAnswer; } - async handleDHAnswer(buffer: Buffer) { + async handleDHAnswer(buffer: ArrayBufferLike) { this.debug("handling DH answer") const deserializer = new Deserializer(buffer); @@ -476,9 +486,10 @@ export class RPC { } if (serverDHAnswer._ === 'mt_dh_gen_ok') { + debugger const hash = ( SHA1( - concatBytes(this.newNonce, [1], this.authKeyAuxHash) + concatBytes(this.newNonce, new Uint8Array([1]), this.authKeyAuxHash) ) ).slice(4, 20); @@ -494,9 +505,10 @@ export class RPC { } if (serverDHAnswer._ === 'mt_dh_gen_retry') { + debugger const hash = ( SHA1( - concatBytes(this.newNonce, [2], this.authKeyAuxHash) + concatBytes(this.newNonce, new Uint8Array([2]), this.authKeyAuxHash) ) ).slice(4, 20); @@ -512,7 +524,7 @@ export class RPC { if (serverDHAnswer._ === 'mt_dh_gen_fail') { const hash = ( SHA1( - concatBytes(this.newNonce, [3], this.authKeyAuxHash) + concatBytes(this.newNonce, new Uint8Array([3]), this.authKeyAuxHash) ) ).slice(4, 20); @@ -812,12 +824,16 @@ export class RPC { const plainData = plainDataSerializer.getBytes(); - const messageKeyLarge = SHA256(concatBytes(authKey.slice(88, 120), plainData)); + const messageKeyLarge = SHA256( + concatBytes(authKey.slice(88, 120), plainData) + ); + const messageKey = messageKeyLarge.slice(8, 24); - const encryptedData = this.getAESInstance(authKey, messageKey, false).encrypt(plainData); + const encryptedData = this.getAESInstance(authKey, messageKey, false) + .encrypt(plainData); - const authKeyId = (SHA1(authKey)).slice(-8); + const authKeyId = SHA1(authKey).slice(-8); const serializer = new Serializer(function () { this.bytesRaw(authKeyId); this.bytesRaw(messageKey); @@ -882,7 +898,6 @@ export class RPC { } getSeqNo(isContentRelated = true) { - // @ts-ignore let seqNo = this.seqNo * 2; if (isContentRelated) { diff --git a/src/rsa.ts b/src/rsa.ts index 94e30fe..ee7f198 100644 --- a/src/rsa.ts +++ b/src/rsa.ts @@ -46,7 +46,7 @@ const publisKeys: PublicKey[] = [ ]; export namespace RSA { - export async function getPublisKeysByHex() { + export function getPublisKeysByHex() { const publisKeysByHex: Record = {}; for (const publisKey of publisKeys) { @@ -56,8 +56,7 @@ export namespace RSA { }); const buffer = RSAPublicKey.getBuffer(); - - const fingerprintBytes = (await SHA1(buffer)).slice(-8); + const fingerprintBytes = SHA1(buffer).slice(-8); fingerprintBytes.reverse(); @@ -70,10 +69,10 @@ export namespace RSA { return publisKeysByHex; } - export async function getRsaKeyByFingerprints(fingerprints: string[]): Promise { + export function getRsaKeyByFingerprints(fingerprints: string[]): RsaKey | null { let resultKey: RsaKey | null = null; - const publisKeysByHex = await getPublisKeysByHex(); + const publisKeysByHex = getPublisKeysByHex(); fingerprints.forEach((fingerprint) => { if (!!resultKey) { diff --git a/src/sync-schema.ts b/src/sync-schema.ts index 4c9ad9e..3eac131 100644 --- a/src/sync-schema.ts +++ b/src/sync-schema.ts @@ -3,13 +3,13 @@ import fs from "fs" const apiUrl = "https://core.telegram.org/schema/json" const mtprotoUrl = "https://core.telegram.org/schema/mtproto-json" -const apiJSON = await fetch(apiUrl).then(parse) -const mtprotoJSON = await fetch(mtprotoUrl).then(parse) +const apiJSON = await fetch(apiUrl).then(parseJSON) +const mtprotoJSON = await fetch(mtprotoUrl).then(parseJSON) -fs.writeFileSync("scheme/api.json", stringify(apiJSON), "utf8") -fs.writeFileSync("scheme/mtproto.json", stringify(mtprotoJSON), "utf8") +saveJSON("scheme/api.json", apiJSON) +saveJSON("scheme/mtproto.json", mtprotoJSON) -function parse(resp: Response) { +function parseJSON(resp: Response) { return resp.text().then(function (text) { if (!resp.ok) { throw new Error(text) @@ -19,6 +19,10 @@ function parse(resp: Response) { }) } -function stringify(obj: unknown) { +function stringifyJSON(obj: unknown) { return JSON.stringify(obj, null, 2) } + +function saveJSON(path: string, json: unknown) { + return fs.writeFileSync(path, stringifyJSON(json) + "\n", "utf8") +}