@mtkruto/node 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_params.d.ts +8 -0
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_utilities.d.ts +2 -2
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/2_account_manager.d.ts +2 -1
- package/esm/client/2_account_manager.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +52 -2
- package/esm/client/5_client.d.ts +11 -5
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +12 -4
- package/esm/tl/0_api.d.ts +143 -6
- package/esm/tl/0_api.d.ts.map +1 -1
- package/esm/tl/0_api.js +217 -17
- package/package.json +1 -1
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_params.d.ts +8 -0
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_utilities.d.ts +2 -2
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/2_account_manager.d.ts +2 -1
- package/script/client/2_account_manager.d.ts.map +1 -1
- package/script/client/2_account_manager.js +51 -1
- package/script/client/5_client.d.ts +11 -5
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +12 -4
- package/script/tl/0_api.d.ts +143 -6
- package/script/tl/0_api.d.ts.map +1 -1
- package/script/tl/0_api.js +217 -17
package/script/tl/0_api.js
CHANGED
|
@@ -278,7 +278,7 @@ const map = new Map([
|
|
|
278
278
|
[0xF5DDD6E7, "inputReportReasonFake"],
|
|
279
279
|
[0x0A8EB2BE, "inputReportReasonIllegalDrugs"],
|
|
280
280
|
[0x9EC7863D, "inputReportReasonPersonalDetails"],
|
|
281
|
-
[
|
|
281
|
+
[0x979D2376, "userFull"],
|
|
282
282
|
[0x145ADE0B, "contact"],
|
|
283
283
|
[0xC13E3C50, "importedContact"],
|
|
284
284
|
[0x16D9703B, "contactStatus"],
|
|
@@ -451,7 +451,7 @@ const map = new Map([
|
|
|
451
451
|
[0xA02A982E, "updateBotDeleteBusinessMessage"],
|
|
452
452
|
[0x1824E40B, "updateNewStoryReaction"],
|
|
453
453
|
[0xDFD961F5, "updateBroadcastRevenueTransactions"],
|
|
454
|
-
[
|
|
454
|
+
[0x4E80A379, "updateStarsBalance"],
|
|
455
455
|
[0x1EA2FDA7, "updateBusinessBotCallbackQuery"],
|
|
456
456
|
[0xA584B019, "updateStarsRevenueStatus"],
|
|
457
457
|
[0x283BD312, "updateBotPurchasedPaidMedia"],
|
|
@@ -1423,12 +1423,12 @@ const map = new Map([
|
|
|
1423
1423
|
[0x60682812, "starsTransactionPeerAds"],
|
|
1424
1424
|
[0xF9677AAD, "starsTransactionPeerAPI"],
|
|
1425
1425
|
[0x0BD915C0, "starsTopupOption"],
|
|
1426
|
-
[
|
|
1427
|
-
[
|
|
1426
|
+
[0x64DFC926, "starsTransaction"],
|
|
1427
|
+
[0x6C9CE8ED, "payments.starsStatus"],
|
|
1428
1428
|
[0xE87ACBC0, "foundStory"],
|
|
1429
1429
|
[0xE2DE7737, "stories.foundStories"],
|
|
1430
1430
|
[0xDE4C5D93, "geoPointAddress"],
|
|
1431
|
-
[
|
|
1431
|
+
[0xFEBE5491, "starsRevenueStatus"],
|
|
1432
1432
|
[0xC92BB73B, "payments.starsRevenueStats"],
|
|
1433
1433
|
[0x1DAB80B7, "payments.starsRevenueWithdrawalUrl"],
|
|
1434
1434
|
[0x394E7F21, "payments.starsRevenueAdsAccountUrl"],
|
|
@@ -1454,6 +1454,13 @@ const map = new Map([
|
|
|
1454
1454
|
[0x8ECF0511, "messages.botPreparedInlineMessage"],
|
|
1455
1455
|
[0xFF57708D, "messages.preparedInlineMessage"],
|
|
1456
1456
|
[0xC99B1950, "botAppSettings"],
|
|
1457
|
+
[0xDD0C66F2, "starRefProgram"],
|
|
1458
|
+
[0x19A13F71, "connectedBotStarRef"],
|
|
1459
|
+
[0x98D5EA1D, "payments.connectedStarRefBots"],
|
|
1460
|
+
[0xB4D5D859, "payments.suggestedStarRefBots"],
|
|
1461
|
+
[0xBBB6B4A3, "starsAmount"],
|
|
1462
|
+
[0x6010C534, "messages.foundStickersNotModified"],
|
|
1463
|
+
[0x82C9E290, "messages.foundStickers"],
|
|
1457
1464
|
]);
|
|
1458
1465
|
exports.getTypeName = map.get.bind(map);
|
|
1459
1466
|
exports.flags = Symbol();
|
|
@@ -2194,6 +2201,12 @@ const enums = new Map([
|
|
|
2194
2201
|
["messages.BotPreparedInlineMessage", ["messages.botPreparedInlineMessage"]],
|
|
2195
2202
|
["messages.PreparedInlineMessage", ["messages.preparedInlineMessage"]],
|
|
2196
2203
|
["BotAppSettings", ["botAppSettings"]],
|
|
2204
|
+
["StarRefProgram", ["starRefProgram"]],
|
|
2205
|
+
["ConnectedBotStarRef", ["connectedBotStarRef"]],
|
|
2206
|
+
["payments.ConnectedStarRefBots", ["payments.connectedStarRefBots"]],
|
|
2207
|
+
["payments.SuggestedStarRefBots", ["payments.suggestedStarRefBots"]],
|
|
2208
|
+
["StarsAmount", ["starsAmount"]],
|
|
2209
|
+
["messages.FoundStickers", ["messages.foundStickersNotModified", "messages.foundStickers"]],
|
|
2197
2210
|
]);
|
|
2198
2211
|
const types = new Map([
|
|
2199
2212
|
[
|
|
@@ -4906,7 +4919,7 @@ const types = new Map([
|
|
|
4906
4919
|
[
|
|
4907
4920
|
"userFull",
|
|
4908
4921
|
[
|
|
4909
|
-
|
|
4922
|
+
0x979D2376,
|
|
4910
4923
|
[
|
|
4911
4924
|
["flags", exports.flags, "#"],
|
|
4912
4925
|
["blocked", "true", "flags.0?true"],
|
|
@@ -4954,6 +4967,7 @@ const types = new Map([
|
|
|
4954
4967
|
["personal_channel_id", "bigint", "flags2.6?long"],
|
|
4955
4968
|
["personal_channel_message", "number", "flags2.6?int"],
|
|
4956
4969
|
["stargifts_count", "number", "flags2.8?int"],
|
|
4970
|
+
["starref_program", "StarRefProgram", "flags2.11?StarRefProgram"],
|
|
4957
4971
|
],
|
|
4958
4972
|
],
|
|
4959
4973
|
],
|
|
@@ -6758,9 +6772,9 @@ const types = new Map([
|
|
|
6758
6772
|
[
|
|
6759
6773
|
"updateStarsBalance",
|
|
6760
6774
|
[
|
|
6761
|
-
|
|
6775
|
+
0x4E80A379,
|
|
6762
6776
|
[
|
|
6763
|
-
["balance", "
|
|
6777
|
+
["balance", "StarsAmount", "StarsAmount"],
|
|
6764
6778
|
],
|
|
6765
6779
|
],
|
|
6766
6780
|
],
|
|
@@ -17319,7 +17333,7 @@ const types = new Map([
|
|
|
17319
17333
|
[
|
|
17320
17334
|
"starsTransaction",
|
|
17321
17335
|
[
|
|
17322
|
-
|
|
17336
|
+
0x64DFC926,
|
|
17323
17337
|
[
|
|
17324
17338
|
["flags", exports.flags, "#"],
|
|
17325
17339
|
["refund", "true", "flags.3?true"],
|
|
@@ -17328,7 +17342,7 @@ const types = new Map([
|
|
|
17328
17342
|
["gift", "true", "flags.10?true"],
|
|
17329
17343
|
["reaction", "true", "flags.11?true"],
|
|
17330
17344
|
["id", "string", "string"],
|
|
17331
|
-
["stars", "
|
|
17345
|
+
["stars", "StarsAmount", "StarsAmount"],
|
|
17332
17346
|
["date", "number", "int"],
|
|
17333
17347
|
["peer", "StarsTransactionPeer", "StarsTransactionPeer"],
|
|
17334
17348
|
["title", "string", "flags.0?string"],
|
|
@@ -17343,16 +17357,19 @@ const types = new Map([
|
|
|
17343
17357
|
["giveaway_post_id", "number", "flags.13?int"],
|
|
17344
17358
|
["stargift", "StarGift", "flags.14?StarGift"],
|
|
17345
17359
|
["floodskip_number", "number", "flags.15?int"],
|
|
17360
|
+
["starref_commission_permille", "number", "flags.16?int"],
|
|
17361
|
+
["starref_peer", "Peer", "flags.17?Peer"],
|
|
17362
|
+
["starref_amount", "StarsAmount", "flags.17?StarsAmount"],
|
|
17346
17363
|
],
|
|
17347
17364
|
],
|
|
17348
17365
|
],
|
|
17349
17366
|
[
|
|
17350
17367
|
"payments.starsStatus",
|
|
17351
17368
|
[
|
|
17352
|
-
|
|
17369
|
+
0x6C9CE8ED,
|
|
17353
17370
|
[
|
|
17354
17371
|
["flags", exports.flags, "#"],
|
|
17355
|
-
["balance", "
|
|
17372
|
+
["balance", "StarsAmount", "StarsAmount"],
|
|
17356
17373
|
["subscriptions", ["StarsSubscription"], "flags.1?Vector<StarsSubscription>"],
|
|
17357
17374
|
["subscriptions_next_offset", "string", "flags.2?string"],
|
|
17358
17375
|
["subscriptions_missing_balance", "bigint", "flags.4?long"],
|
|
@@ -17403,13 +17420,13 @@ const types = new Map([
|
|
|
17403
17420
|
[
|
|
17404
17421
|
"starsRevenueStatus",
|
|
17405
17422
|
[
|
|
17406
|
-
|
|
17423
|
+
0xFEBE5491,
|
|
17407
17424
|
[
|
|
17408
17425
|
["flags", exports.flags, "#"],
|
|
17409
17426
|
["withdrawal_enabled", "true", "flags.0?true"],
|
|
17410
|
-
["current_balance", "
|
|
17411
|
-
["available_balance", "
|
|
17412
|
-
["overall_revenue", "
|
|
17427
|
+
["current_balance", "StarsAmount", "StarsAmount"],
|
|
17428
|
+
["available_balance", "StarsAmount", "StarsAmount"],
|
|
17429
|
+
["overall_revenue", "StarsAmount", "StarsAmount"],
|
|
17413
17430
|
["next_withdrawal_at", "number", "flags.1?int"],
|
|
17414
17431
|
],
|
|
17415
17432
|
],
|
|
@@ -17715,6 +17732,93 @@ const types = new Map([
|
|
|
17715
17732
|
],
|
|
17716
17733
|
],
|
|
17717
17734
|
],
|
|
17735
|
+
[
|
|
17736
|
+
"starRefProgram",
|
|
17737
|
+
[
|
|
17738
|
+
0xDD0C66F2,
|
|
17739
|
+
[
|
|
17740
|
+
["flags", exports.flags, "#"],
|
|
17741
|
+
["bot_id", "bigint", "long"],
|
|
17742
|
+
["commission_permille", "number", "int"],
|
|
17743
|
+
["duration_months", "number", "flags.0?int"],
|
|
17744
|
+
["end_date", "number", "flags.1?int"],
|
|
17745
|
+
["daily_revenue_per_user", "StarsAmount", "flags.2?StarsAmount"],
|
|
17746
|
+
],
|
|
17747
|
+
],
|
|
17748
|
+
],
|
|
17749
|
+
[
|
|
17750
|
+
"connectedBotStarRef",
|
|
17751
|
+
[
|
|
17752
|
+
0x19A13F71,
|
|
17753
|
+
[
|
|
17754
|
+
["flags", exports.flags, "#"],
|
|
17755
|
+
["revoked", "true", "flags.1?true"],
|
|
17756
|
+
["url", "string", "string"],
|
|
17757
|
+
["date", "number", "int"],
|
|
17758
|
+
["bot_id", "bigint", "long"],
|
|
17759
|
+
["commission_permille", "number", "int"],
|
|
17760
|
+
["duration_months", "number", "flags.0?int"],
|
|
17761
|
+
["participants", "bigint", "long"],
|
|
17762
|
+
["revenue", "bigint", "long"],
|
|
17763
|
+
],
|
|
17764
|
+
],
|
|
17765
|
+
],
|
|
17766
|
+
[
|
|
17767
|
+
"payments.connectedStarRefBots",
|
|
17768
|
+
[
|
|
17769
|
+
0x98D5EA1D,
|
|
17770
|
+
[
|
|
17771
|
+
["count", "number", "int"],
|
|
17772
|
+
["connected_bots", ["ConnectedBotStarRef"], "Vector<ConnectedBotStarRef>"],
|
|
17773
|
+
["users", ["User"], "Vector<User>"],
|
|
17774
|
+
],
|
|
17775
|
+
],
|
|
17776
|
+
],
|
|
17777
|
+
[
|
|
17778
|
+
"payments.suggestedStarRefBots",
|
|
17779
|
+
[
|
|
17780
|
+
0xB4D5D859,
|
|
17781
|
+
[
|
|
17782
|
+
["flags", exports.flags, "#"],
|
|
17783
|
+
["count", "number", "int"],
|
|
17784
|
+
["suggested_bots", ["StarRefProgram"], "Vector<StarRefProgram>"],
|
|
17785
|
+
["users", ["User"], "Vector<User>"],
|
|
17786
|
+
["next_offset", "string", "flags.0?string"],
|
|
17787
|
+
],
|
|
17788
|
+
],
|
|
17789
|
+
],
|
|
17790
|
+
[
|
|
17791
|
+
"starsAmount",
|
|
17792
|
+
[
|
|
17793
|
+
0xBBB6B4A3,
|
|
17794
|
+
[
|
|
17795
|
+
["amount", "bigint", "long"],
|
|
17796
|
+
["nanos", "number", "int"],
|
|
17797
|
+
],
|
|
17798
|
+
],
|
|
17799
|
+
],
|
|
17800
|
+
[
|
|
17801
|
+
"messages.foundStickersNotModified",
|
|
17802
|
+
[
|
|
17803
|
+
0x6010C534,
|
|
17804
|
+
[
|
|
17805
|
+
["flags", exports.flags, "#"],
|
|
17806
|
+
["next_offset", "number", "flags.0?int"],
|
|
17807
|
+
],
|
|
17808
|
+
],
|
|
17809
|
+
],
|
|
17810
|
+
[
|
|
17811
|
+
"messages.foundStickers",
|
|
17812
|
+
[
|
|
17813
|
+
0x82C9E290,
|
|
17814
|
+
[
|
|
17815
|
+
["flags", exports.flags, "#"],
|
|
17816
|
+
["next_offset", "number", "flags.0?int"],
|
|
17817
|
+
["hash", "bigint", "long"],
|
|
17818
|
+
["stickers", ["Document"], "Vector<Document>"],
|
|
17819
|
+
],
|
|
17820
|
+
],
|
|
17821
|
+
],
|
|
17718
17822
|
[
|
|
17719
17823
|
"req_pq_multi",
|
|
17720
17824
|
[
|
|
@@ -19390,9 +19494,11 @@ const types = new Map([
|
|
|
19390
19494
|
[
|
|
19391
19495
|
"contacts.resolveUsername",
|
|
19392
19496
|
[
|
|
19393
|
-
|
|
19497
|
+
0x725AFBBC,
|
|
19394
19498
|
[
|
|
19499
|
+
["flags", exports.flags, "#"],
|
|
19395
19500
|
["username", "string", "string"],
|
|
19501
|
+
["referer", "string", "flags.0?string"],
|
|
19396
19502
|
],
|
|
19397
19503
|
],
|
|
19398
19504
|
],
|
|
@@ -22101,6 +22207,22 @@ const types = new Map([
|
|
|
22101
22207
|
],
|
|
22102
22208
|
],
|
|
22103
22209
|
],
|
|
22210
|
+
[
|
|
22211
|
+
"messages.searchStickers",
|
|
22212
|
+
[
|
|
22213
|
+
0x29B1C66A,
|
|
22214
|
+
[
|
|
22215
|
+
["flags", exports.flags, "#"],
|
|
22216
|
+
["emojis", "true", "flags.0?true"],
|
|
22217
|
+
["q", "string", "string"],
|
|
22218
|
+
["emoticon", "string", "string"],
|
|
22219
|
+
["lang_code", ["string"], "Vector<string>"],
|
|
22220
|
+
["offset", "number", "int"],
|
|
22221
|
+
["limit", "number", "int"],
|
|
22222
|
+
["hash", "bigint", "long"],
|
|
22223
|
+
],
|
|
22224
|
+
],
|
|
22225
|
+
],
|
|
22104
22226
|
[
|
|
22105
22227
|
"updates.getState",
|
|
22106
22228
|
[
|
|
@@ -23422,6 +23544,25 @@ const types = new Map([
|
|
|
23422
23544
|
],
|
|
23423
23545
|
],
|
|
23424
23546
|
],
|
|
23547
|
+
[
|
|
23548
|
+
"bots.getAdminedBots",
|
|
23549
|
+
[
|
|
23550
|
+
0xB0711D83,
|
|
23551
|
+
[],
|
|
23552
|
+
],
|
|
23553
|
+
],
|
|
23554
|
+
[
|
|
23555
|
+
"bots.updateStarRefProgram",
|
|
23556
|
+
[
|
|
23557
|
+
0x778B5AB3,
|
|
23558
|
+
[
|
|
23559
|
+
["flags", exports.flags, "#"],
|
|
23560
|
+
["bot", "InputUser", "InputUser"],
|
|
23561
|
+
["commission_permille", "number", "int"],
|
|
23562
|
+
["duration_months", "number", "flags.0?int"],
|
|
23563
|
+
],
|
|
23564
|
+
],
|
|
23565
|
+
],
|
|
23425
23566
|
[
|
|
23426
23567
|
"payments.getPaymentForm",
|
|
23427
23568
|
[
|
|
@@ -23782,6 +23923,65 @@ const types = new Map([
|
|
|
23782
23923
|
],
|
|
23783
23924
|
],
|
|
23784
23925
|
],
|
|
23926
|
+
[
|
|
23927
|
+
"payments.getConnectedStarRefBots",
|
|
23928
|
+
[
|
|
23929
|
+
0x5869A553,
|
|
23930
|
+
[
|
|
23931
|
+
["flags", exports.flags, "#"],
|
|
23932
|
+
["peer", "InputPeer", "InputPeer"],
|
|
23933
|
+
["offset_date", "number", "flags.2?int"],
|
|
23934
|
+
["offset_link", "string", "flags.2?string"],
|
|
23935
|
+
["limit", "number", "int"],
|
|
23936
|
+
],
|
|
23937
|
+
],
|
|
23938
|
+
],
|
|
23939
|
+
[
|
|
23940
|
+
"payments.getConnectedStarRefBot",
|
|
23941
|
+
[
|
|
23942
|
+
0xB7D998F0,
|
|
23943
|
+
[
|
|
23944
|
+
["peer", "InputPeer", "InputPeer"],
|
|
23945
|
+
["bot", "InputUser", "InputUser"],
|
|
23946
|
+
],
|
|
23947
|
+
],
|
|
23948
|
+
],
|
|
23949
|
+
[
|
|
23950
|
+
"payments.getSuggestedStarRefBots",
|
|
23951
|
+
[
|
|
23952
|
+
0x0D6B48F7,
|
|
23953
|
+
[
|
|
23954
|
+
["flags", exports.flags, "#"],
|
|
23955
|
+
["order_by_revenue", "true", "flags.0?true"],
|
|
23956
|
+
["order_by_date", "true", "flags.1?true"],
|
|
23957
|
+
["peer", "InputPeer", "InputPeer"],
|
|
23958
|
+
["offset", "string", "string"],
|
|
23959
|
+
["limit", "number", "int"],
|
|
23960
|
+
],
|
|
23961
|
+
],
|
|
23962
|
+
],
|
|
23963
|
+
[
|
|
23964
|
+
"payments.connectStarRefBot",
|
|
23965
|
+
[
|
|
23966
|
+
0x7ED5348A,
|
|
23967
|
+
[
|
|
23968
|
+
["peer", "InputPeer", "InputPeer"],
|
|
23969
|
+
["bot", "InputUser", "InputUser"],
|
|
23970
|
+
],
|
|
23971
|
+
],
|
|
23972
|
+
],
|
|
23973
|
+
[
|
|
23974
|
+
"payments.editConnectedStarRefBot",
|
|
23975
|
+
[
|
|
23976
|
+
0xE4FCA4A3,
|
|
23977
|
+
[
|
|
23978
|
+
["flags", exports.flags, "#"],
|
|
23979
|
+
["revoked", "true", "flags.0?true"],
|
|
23980
|
+
["peer", "InputPeer", "InputPeer"],
|
|
23981
|
+
["link", "string", "string"],
|
|
23982
|
+
],
|
|
23983
|
+
],
|
|
23984
|
+
],
|
|
23785
23985
|
[
|
|
23786
23986
|
"stickers.createStickerSet",
|
|
23787
23987
|
[
|