@mtkruto/node 0.63.11 → 0.63.12
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/client/0_storage_operations.d.ts +3 -0
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +7 -0
- package/esm/client/0_utilities.d.ts +2 -3
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/0_utilities.js +1 -2
- package/esm/client/1_types.d.ts +1 -0
- package/esm/client/1_types.d.ts.map +1 -1
- package/esm/client/2_file_manager.d.ts.map +1 -1
- package/esm/client/2_file_manager.js +10 -9
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +0 -6
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +16 -3
- package/esm/tl/1_telegram_api.d.ts +112 -89
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +136 -104
- package/esm/types/1_chat_p.js +4 -0
- package/esm/types/2_business_connection.js +1 -1
- package/package.json +1 -1
- package/script/client/0_storage_operations.d.ts +3 -0
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +7 -0
- package/script/client/0_utilities.d.ts +2 -3
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/0_utilities.js +2 -3
- package/script/client/1_types.d.ts +1 -0
- package/script/client/1_types.d.ts.map +1 -1
- package/script/client/2_file_manager.d.ts.map +1 -1
- package/script/client/2_file_manager.js +9 -8
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +0 -6
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +15 -2
- package/script/tl/1_telegram_api.d.ts +112 -89
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +136 -104
- package/script/types/1_chat_p.js +4 -0
- package/script/types/2_business_connection.js +1 -1
package/esm/tl/1_telegram_api.js
CHANGED
|
@@ -32,60 +32,10 @@ export const schema = Object.freeze({
|
|
|
32
32
|
],
|
|
33
33
|
"Error",
|
|
34
34
|
],
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
[
|
|
38
|
-
|
|
39
|
-
["port", "int"],
|
|
40
|
-
],
|
|
41
|
-
"IpPort",
|
|
42
|
-
],
|
|
43
|
-
ipPortSecret: [
|
|
44
|
-
0x37982646,
|
|
45
|
-
[
|
|
46
|
-
["ipv4", "int"],
|
|
47
|
-
["port", "int"],
|
|
48
|
-
["secret", "bytes"],
|
|
49
|
-
],
|
|
50
|
-
"IpPort",
|
|
51
|
-
],
|
|
52
|
-
accessPointRule: [
|
|
53
|
-
0x4679B65F,
|
|
54
|
-
[
|
|
55
|
-
["phone_prefix_rules", "string"],
|
|
56
|
-
["dc_id", "int"],
|
|
57
|
-
["ips", "vector<IpPort>"],
|
|
58
|
-
],
|
|
59
|
-
"AccessPointRule",
|
|
60
|
-
],
|
|
61
|
-
"help.configSimple": [
|
|
62
|
-
0x5A592A6C,
|
|
63
|
-
[
|
|
64
|
-
["date", "int"],
|
|
65
|
-
["expires", "int"],
|
|
66
|
-
["rules", "vector<AccessPointRule>"],
|
|
67
|
-
],
|
|
68
|
-
"help.ConfigSimple",
|
|
69
|
-
],
|
|
70
|
-
inputPeerPhotoFileLocationLegacy: [
|
|
71
|
-
0x27D69997,
|
|
72
|
-
[
|
|
73
|
-
["flags", "#"],
|
|
74
|
-
["big", "flags.0?true"],
|
|
75
|
-
["peer", "InputPeer"],
|
|
76
|
-
["volume_id", "long"],
|
|
77
|
-
["local_id", "int"],
|
|
78
|
-
],
|
|
79
|
-
"InputFileLocation",
|
|
80
|
-
],
|
|
81
|
-
inputStickerSetThumbLegacy: [
|
|
82
|
-
0x0DBAEAE9,
|
|
83
|
-
[
|
|
84
|
-
["stickerset", "InputStickerSet"],
|
|
85
|
-
["volume_id", "long"],
|
|
86
|
-
["local_id", "int"],
|
|
87
|
-
],
|
|
88
|
-
"InputFileLocation",
|
|
35
|
+
null: [
|
|
36
|
+
0x56730BCC,
|
|
37
|
+
[],
|
|
38
|
+
"Null",
|
|
89
39
|
],
|
|
90
40
|
inputPeerEmpty: [
|
|
91
41
|
0x7F3B18EA,
|
|
@@ -1681,6 +1631,21 @@ export const schema = Object.freeze({
|
|
|
1681
1631
|
],
|
|
1682
1632
|
"MessageAction",
|
|
1683
1633
|
],
|
|
1634
|
+
messageActionPaidMessagesRefunded: [
|
|
1635
|
+
0xAC1F1FCD,
|
|
1636
|
+
[
|
|
1637
|
+
["count", "int"],
|
|
1638
|
+
["stars", "long"],
|
|
1639
|
+
],
|
|
1640
|
+
"MessageAction",
|
|
1641
|
+
],
|
|
1642
|
+
messageActionPaidMessagesPrice: [
|
|
1643
|
+
0xBCD71419,
|
|
1644
|
+
[
|
|
1645
|
+
["stars", "long"],
|
|
1646
|
+
],
|
|
1647
|
+
"MessageAction",
|
|
1648
|
+
],
|
|
1684
1649
|
dialog: [
|
|
1685
1650
|
0xD58A08C6,
|
|
1686
1651
|
[
|
|
@@ -1827,6 +1792,14 @@ export const schema = Object.freeze({
|
|
|
1827
1792
|
],
|
|
1828
1793
|
"auth.SentCode",
|
|
1829
1794
|
],
|
|
1795
|
+
"auth.sentCodePaymentRequired": [
|
|
1796
|
+
0xD7CEF980,
|
|
1797
|
+
[
|
|
1798
|
+
["store_product", "string"],
|
|
1799
|
+
["phone_code_hash", "string"],
|
|
1800
|
+
],
|
|
1801
|
+
"auth.SentCode",
|
|
1802
|
+
],
|
|
1830
1803
|
"auth.authorization": [
|
|
1831
1804
|
0x2EA2C0D4,
|
|
1832
1805
|
[
|
|
@@ -2023,7 +1996,7 @@ export const schema = Object.freeze({
|
|
|
2023
1996
|
"ReportReason",
|
|
2024
1997
|
],
|
|
2025
1998
|
userFull: [
|
|
2026
|
-
|
|
1999
|
+
0x99E78045,
|
|
2027
2000
|
[
|
|
2028
2001
|
["flags", "#"],
|
|
2029
2002
|
["blocked", "flags.0?true"],
|
|
@@ -2043,6 +2016,7 @@ export const schema = Object.freeze({
|
|
|
2043
2016
|
["sponsored_enabled", "flags2.7?true"],
|
|
2044
2017
|
["can_view_revenue", "flags2.9?true"],
|
|
2045
2018
|
["bot_can_manage_emoji_status", "flags2.10?true"],
|
|
2019
|
+
["display_gifts_button", "flags2.16?true"],
|
|
2046
2020
|
["id", "long"],
|
|
2047
2021
|
["about", "flags.1?string"],
|
|
2048
2022
|
["settings", "PeerSettings"],
|
|
@@ -2073,6 +2047,7 @@ export const schema = Object.freeze({
|
|
|
2073
2047
|
["starref_program", "flags2.11?StarRefProgram"],
|
|
2074
2048
|
["bot_verification", "flags2.12?BotVerification"],
|
|
2075
2049
|
["send_paid_messages_stars", "flags2.14?long"],
|
|
2050
|
+
["disallowed_gifts", "flags2.15?DisallowedGiftsSettings"],
|
|
2076
2051
|
],
|
|
2077
2052
|
"UserFull",
|
|
2078
2053
|
],
|
|
@@ -3576,6 +3551,13 @@ export const schema = Object.freeze({
|
|
|
3576
3551
|
],
|
|
3577
3552
|
"Update",
|
|
3578
3553
|
],
|
|
3554
|
+
updateSentPhoneCode: [
|
|
3555
|
+
0x504AA18F,
|
|
3556
|
+
[
|
|
3557
|
+
["sent_code", "auth.SentCode"],
|
|
3558
|
+
],
|
|
3559
|
+
"Update",
|
|
3560
|
+
],
|
|
3579
3561
|
"updates.state": [
|
|
3580
3562
|
0xA56C2A3E,
|
|
3581
3563
|
[
|
|
@@ -9255,7 +9237,7 @@ export const schema = Object.freeze({
|
|
|
9255
9237
|
"stats.MegagroupStats",
|
|
9256
9238
|
],
|
|
9257
9239
|
globalPrivacySettings: [
|
|
9258
|
-
|
|
9240
|
+
0xFE41B34F,
|
|
9259
9241
|
[
|
|
9260
9242
|
["flags", "#"],
|
|
9261
9243
|
["archive_and_mute_new_noncontact_peers", "flags.0?true"],
|
|
@@ -9263,7 +9245,9 @@ export const schema = Object.freeze({
|
|
|
9263
9245
|
["keep_archived_folders", "flags.2?true"],
|
|
9264
9246
|
["hide_read_marks", "flags.3?true"],
|
|
9265
9247
|
["new_noncontact_peers_require_premium", "flags.4?true"],
|
|
9248
|
+
["display_gifts_button", "flags.7?true"],
|
|
9266
9249
|
["noncontact_peers_paid_stars", "flags.5?long"],
|
|
9250
|
+
["disallowed_gifts", "flags.6?DisallowedGiftsSettings"],
|
|
9267
9251
|
],
|
|
9268
9252
|
"GlobalPrivacySettings",
|
|
9269
9253
|
],
|
|
@@ -10293,6 +10277,18 @@ export const schema = Object.freeze({
|
|
|
10293
10277
|
],
|
|
10294
10278
|
"InputStorePaymentPurpose",
|
|
10295
10279
|
],
|
|
10280
|
+
inputStorePaymentAuthCode: [
|
|
10281
|
+
0x9BB2636D,
|
|
10282
|
+
[
|
|
10283
|
+
["flags", "#"],
|
|
10284
|
+
["restore", "flags.0?true"],
|
|
10285
|
+
["phone_number", "string"],
|
|
10286
|
+
["phone_code_hash", "string"],
|
|
10287
|
+
["currency", "string"],
|
|
10288
|
+
["amount", "long"],
|
|
10289
|
+
],
|
|
10290
|
+
"InputStorePaymentPurpose",
|
|
10291
|
+
],
|
|
10296
10292
|
paymentFormMethod: [
|
|
10297
10293
|
0x88F8F21B,
|
|
10298
10294
|
[
|
|
@@ -11781,12 +11777,12 @@ export const schema = Object.freeze({
|
|
|
11781
11777
|
"messages.QuickReplies",
|
|
11782
11778
|
],
|
|
11783
11779
|
connectedBot: [
|
|
11784
|
-
|
|
11780
|
+
0xCD64636C,
|
|
11785
11781
|
[
|
|
11786
11782
|
["flags", "#"],
|
|
11787
|
-
["can_reply", "flags.0?true"],
|
|
11788
11783
|
["bot_id", "long"],
|
|
11789
11784
|
["recipients", "BusinessBotRecipients"],
|
|
11785
|
+
["rights", "BusinessBotRights"],
|
|
11790
11786
|
],
|
|
11791
11787
|
"ConnectedBot",
|
|
11792
11788
|
],
|
|
@@ -11818,15 +11814,15 @@ export const schema = Object.freeze({
|
|
|
11818
11814
|
"Birthday",
|
|
11819
11815
|
],
|
|
11820
11816
|
botBusinessConnection: [
|
|
11821
|
-
|
|
11817
|
+
0x8F34B2F5,
|
|
11822
11818
|
[
|
|
11823
11819
|
["flags", "#"],
|
|
11824
|
-
["can_reply", "flags.0?true"],
|
|
11825
11820
|
["disabled", "flags.1?true"],
|
|
11826
11821
|
["connection_id", "string"],
|
|
11827
11822
|
["user_id", "long"],
|
|
11828
11823
|
["dc_id", "int"],
|
|
11829
11824
|
["date", "int"],
|
|
11825
|
+
["rights", "flags.2?BusinessBotRights"],
|
|
11830
11826
|
],
|
|
11831
11827
|
"BotBusinessConnection",
|
|
11832
11828
|
],
|
|
@@ -12835,35 +12831,62 @@ export const schema = Object.freeze({
|
|
|
12835
12831
|
],
|
|
12836
12832
|
"RequirementToContact",
|
|
12837
12833
|
],
|
|
12838
|
-
|
|
12839
|
-
|
|
12834
|
+
businessBotRights: [
|
|
12835
|
+
0xA0624CF7,
|
|
12840
12836
|
[
|
|
12841
|
-
["
|
|
12837
|
+
["flags", "#"],
|
|
12838
|
+
["reply", "flags.0?true"],
|
|
12839
|
+
["read_messages", "flags.1?true"],
|
|
12840
|
+
["delete_sent_messages", "flags.2?true"],
|
|
12841
|
+
["delete_received_messages", "flags.3?true"],
|
|
12842
|
+
["edit_name", "flags.4?true"],
|
|
12843
|
+
["edit_bio", "flags.5?true"],
|
|
12844
|
+
["edit_profile_photo", "flags.6?true"],
|
|
12845
|
+
["edit_username", "flags.7?true"],
|
|
12846
|
+
["view_gifts", "flags.8?true"],
|
|
12847
|
+
["sell_gifts", "flags.9?true"],
|
|
12848
|
+
["change_gift_settings", "flags.10?true"],
|
|
12849
|
+
["transfer_and_upgrade_gifts", "flags.11?true"],
|
|
12850
|
+
["transfer_stars", "flags.12?true"],
|
|
12851
|
+
["manage_stories", "flags.13?true"],
|
|
12842
12852
|
],
|
|
12843
|
-
"
|
|
12853
|
+
"BusinessBotRights",
|
|
12844
12854
|
],
|
|
12845
|
-
|
|
12846
|
-
|
|
12855
|
+
disallowedGiftsSettings: [
|
|
12856
|
+
0x71F276C4,
|
|
12847
12857
|
[
|
|
12848
|
-
["
|
|
12849
|
-
["
|
|
12858
|
+
["flags", "#"],
|
|
12859
|
+
["disallow_unlimited_stargifts", "flags.0?true"],
|
|
12860
|
+
["disallow_limited_stargifts", "flags.1?true"],
|
|
12861
|
+
["disallow_unique_stargifts", "flags.2?true"],
|
|
12862
|
+
["disallow_premium_gifts", "flags.3?true"],
|
|
12850
12863
|
],
|
|
12851
|
-
"
|
|
12864
|
+
"DisallowedGiftsSettings",
|
|
12852
12865
|
],
|
|
12853
|
-
|
|
12854
|
-
|
|
12866
|
+
sponsoredPeer: [
|
|
12867
|
+
0xC69708D3,
|
|
12855
12868
|
[
|
|
12856
|
-
["
|
|
12857
|
-
["
|
|
12869
|
+
["flags", "#"],
|
|
12870
|
+
["random_id", "bytes"],
|
|
12871
|
+
["peer", "Peer"],
|
|
12872
|
+
["sponsor_info", "flags.0?string"],
|
|
12873
|
+
["additional_info", "flags.1?string"],
|
|
12858
12874
|
],
|
|
12859
|
-
"
|
|
12875
|
+
"SponsoredPeer",
|
|
12860
12876
|
],
|
|
12861
|
-
|
|
12862
|
-
|
|
12877
|
+
"contacts.sponsoredPeersEmpty": [
|
|
12878
|
+
0xEA32B4B1,
|
|
12879
|
+
[],
|
|
12880
|
+
"contacts.SponsoredPeers",
|
|
12881
|
+
],
|
|
12882
|
+
"contacts.sponsoredPeers": [
|
|
12883
|
+
0xEB032884,
|
|
12863
12884
|
[
|
|
12864
|
-
["
|
|
12885
|
+
["peers", "Vector<SponsoredPeer>"],
|
|
12886
|
+
["chats", "Vector<Chat>"],
|
|
12887
|
+
["users", "Vector<User>"],
|
|
12865
12888
|
],
|
|
12866
|
-
"
|
|
12889
|
+
"contacts.SponsoredPeers",
|
|
12867
12890
|
],
|
|
12868
12891
|
invokeAfterMsg: [
|
|
12869
12892
|
0xCB9F372D,
|
|
@@ -13893,11 +13916,11 @@ export const schema = Object.freeze({
|
|
|
13893
13916
|
"Bool",
|
|
13894
13917
|
],
|
|
13895
13918
|
"account.updateConnectedBot": [
|
|
13896
|
-
|
|
13919
|
+
0x66A08C7E,
|
|
13897
13920
|
[
|
|
13898
13921
|
["flags", "#"],
|
|
13899
|
-
["can_reply", "flags.0?true"],
|
|
13900
13922
|
["deleted", "flags.1?true"],
|
|
13923
|
+
["rights", "flags.0?BusinessBotRights"],
|
|
13901
13924
|
["bot", "InputUser"],
|
|
13902
13925
|
["recipients", "InputBusinessBotRecipients"],
|
|
13903
13926
|
],
|
|
@@ -14268,6 +14291,13 @@ export const schema = Object.freeze({
|
|
|
14268
14291
|
[],
|
|
14269
14292
|
"contacts.ContactBirthdays",
|
|
14270
14293
|
],
|
|
14294
|
+
"contacts.getSponsoredPeers": [
|
|
14295
|
+
0xB6C8C393,
|
|
14296
|
+
[
|
|
14297
|
+
["q", "string"],
|
|
14298
|
+
],
|
|
14299
|
+
"contacts.SponsoredPeers",
|
|
14300
|
+
],
|
|
14271
14301
|
"messages.getMessages": [
|
|
14272
14302
|
0x63C66506,
|
|
14273
14303
|
[
|
|
@@ -16328,28 +16358,25 @@ export const schema = Object.freeze({
|
|
|
16328
16358
|
"Updates",
|
|
16329
16359
|
],
|
|
16330
16360
|
"messages.viewSponsoredMessage": [
|
|
16331
|
-
|
|
16361
|
+
0x269E3643,
|
|
16332
16362
|
[
|
|
16333
|
-
["peer", "InputPeer"],
|
|
16334
16363
|
["random_id", "bytes"],
|
|
16335
16364
|
],
|
|
16336
16365
|
"Bool",
|
|
16337
16366
|
],
|
|
16338
16367
|
"messages.clickSponsoredMessage": [
|
|
16339
|
-
|
|
16368
|
+
0x8235057E,
|
|
16340
16369
|
[
|
|
16341
16370
|
["flags", "#"],
|
|
16342
16371
|
["media", "flags.0?true"],
|
|
16343
16372
|
["fullscreen", "flags.1?true"],
|
|
16344
|
-
["peer", "InputPeer"],
|
|
16345
16373
|
["random_id", "bytes"],
|
|
16346
16374
|
],
|
|
16347
16375
|
"Bool",
|
|
16348
16376
|
],
|
|
16349
16377
|
"messages.reportSponsoredMessage": [
|
|
16350
|
-
|
|
16378
|
+
0x12CBF0C4,
|
|
16351
16379
|
[
|
|
16352
|
-
["peer", "InputPeer"],
|
|
16353
16380
|
["random_id", "bytes"],
|
|
16354
16381
|
["option", "bytes"],
|
|
16355
16382
|
],
|
|
@@ -17596,13 +17623,6 @@ export const schema = Object.freeze({
|
|
|
17596
17623
|
],
|
|
17597
17624
|
"Updates",
|
|
17598
17625
|
],
|
|
17599
|
-
"payments.canPurchasePremium": [
|
|
17600
|
-
0x9FC19EB6,
|
|
17601
|
-
[
|
|
17602
|
-
["purpose", "InputStorePaymentPurpose"],
|
|
17603
|
-
],
|
|
17604
|
-
"Bool",
|
|
17605
|
-
],
|
|
17606
17626
|
"payments.getPremiumGiftCodeOptions": [
|
|
17607
17627
|
0x2757BA54,
|
|
17608
17628
|
[
|
|
@@ -17919,6 +17939,13 @@ export const schema = Object.freeze({
|
|
|
17919
17939
|
],
|
|
17920
17940
|
"Bool",
|
|
17921
17941
|
],
|
|
17942
|
+
"payments.canPurchaseStore": [
|
|
17943
|
+
0x4FDC5EA7,
|
|
17944
|
+
[
|
|
17945
|
+
["purpose", "InputStorePaymentPurpose"],
|
|
17946
|
+
],
|
|
17947
|
+
"Bool",
|
|
17948
|
+
],
|
|
17922
17949
|
"stickers.createStickerSet": [
|
|
17923
17950
|
0x9021AB67,
|
|
17924
17951
|
[
|
|
@@ -18871,12 +18898,7 @@ export const schema = Object.freeze({
|
|
|
18871
18898
|
identifierToName: {
|
|
18872
18899
|
[0x3FEDD339]: "true",
|
|
18873
18900
|
[0xC4B9F9BB]: "error",
|
|
18874
|
-
[
|
|
18875
|
-
[0x37982646]: "ipPortSecret",
|
|
18876
|
-
[0x4679B65F]: "accessPointRule",
|
|
18877
|
-
[0x5A592A6C]: "help.configSimple",
|
|
18878
|
-
[0x27D69997]: "inputPeerPhotoFileLocationLegacy",
|
|
18879
|
-
[0x0DBAEAE9]: "inputStickerSetThumbLegacy",
|
|
18901
|
+
[0x56730BCC]: "null",
|
|
18880
18902
|
[0x7F3B18EA]: "inputPeerEmpty",
|
|
18881
18903
|
[0x7DA07EC9]: "inputPeerSelf",
|
|
18882
18904
|
[0x35A95CB9]: "inputPeerChat",
|
|
@@ -19032,6 +19054,8 @@ export const schema = Object.freeze({
|
|
|
19032
19054
|
[0xB00C47A2]: "messageActionPrizeStars",
|
|
19033
19055
|
[0x4717E8A4]: "messageActionStarGift",
|
|
19034
19056
|
[0xACDFCB81]: "messageActionStarGiftUnique",
|
|
19057
|
+
[0xAC1F1FCD]: "messageActionPaidMessagesRefunded",
|
|
19058
|
+
[0xBCD71419]: "messageActionPaidMessagesPrice",
|
|
19035
19059
|
[0xD58A08C6]: "dialog",
|
|
19036
19060
|
[0x71BD134C]: "dialogFolder",
|
|
19037
19061
|
[0x2331B22D]: "photoEmpty",
|
|
@@ -19046,6 +19070,7 @@ export const schema = Object.freeze({
|
|
|
19046
19070
|
[0xB2A2F663]: "geoPoint",
|
|
19047
19071
|
[0x5E002502]: "auth.sentCode",
|
|
19048
19072
|
[0x2390FE44]: "auth.sentCodeSuccess",
|
|
19073
|
+
[0xD7CEF980]: "auth.sentCodePaymentRequired",
|
|
19049
19074
|
[0x2EA2C0D4]: "auth.authorization",
|
|
19050
19075
|
[0x44747E9A]: "auth.authorizationSignUpRequired",
|
|
19051
19076
|
[0xB434E2B8]: "auth.exportedAuthorization",
|
|
@@ -19069,7 +19094,7 @@ export const schema = Object.freeze({
|
|
|
19069
19094
|
[0xF5DDD6E7]: "inputReportReasonFake",
|
|
19070
19095
|
[0x0A8EB2BE]: "inputReportReasonIllegalDrugs",
|
|
19071
19096
|
[0x9EC7863D]: "inputReportReasonPersonalDetails",
|
|
19072
|
-
[
|
|
19097
|
+
[0x99E78045]: "userFull",
|
|
19073
19098
|
[0x145ADE0B]: "contact",
|
|
19074
19099
|
[0xC13E3C50]: "importedContact",
|
|
19075
19100
|
[0x16D9703B]: "contactStatus",
|
|
@@ -19247,6 +19272,7 @@ export const schema = Object.freeze({
|
|
|
19247
19272
|
[0xA584B019]: "updateStarsRevenueStatus",
|
|
19248
19273
|
[0x283BD312]: "updateBotPurchasedPaidMedia",
|
|
19249
19274
|
[0x8B725FCE]: "updatePaidReactionPrivacy",
|
|
19275
|
+
[0x504AA18F]: "updateSentPhoneCode",
|
|
19250
19276
|
[0xA56C2A3E]: "updates.state",
|
|
19251
19277
|
[0x5D75A138]: "updates.differenceEmpty",
|
|
19252
19278
|
[0x00F49CA0]: "updates.difference",
|
|
@@ -19898,7 +19924,7 @@ export const schema = Object.freeze({
|
|
|
19898
19924
|
[0xD7584C87]: "statsGroupTopAdmin",
|
|
19899
19925
|
[0x535F779D]: "statsGroupTopInviter",
|
|
19900
19926
|
[0xEF7FF916]: "stats.megagroupStats",
|
|
19901
|
-
[
|
|
19927
|
+
[0xFE41B34F]: "globalPrivacySettings",
|
|
19902
19928
|
[0x4203C5EF]: "help.countryCode",
|
|
19903
19929
|
[0xC3878E23]: "help.country",
|
|
19904
19930
|
[0x93CC1F32]: "help.countriesListNotModified",
|
|
@@ -20013,6 +20039,7 @@ export const schema = Object.freeze({
|
|
|
20013
20039
|
[0xDDDD0F56]: "inputStorePaymentStarsTopup",
|
|
20014
20040
|
[0x1D741EF7]: "inputStorePaymentStarsGift",
|
|
20015
20041
|
[0x751F08FA]: "inputStorePaymentStarsGiveaway",
|
|
20042
|
+
[0x9BB2636D]: "inputStorePaymentAuthCode",
|
|
20016
20043
|
[0x88F8F21B]: "paymentFormMethod",
|
|
20017
20044
|
[0x2DE11AAE]: "emojiStatusEmpty",
|
|
20018
20045
|
[0xE7FF068A]: "emojiStatus",
|
|
@@ -20171,11 +20198,11 @@ export const schema = Object.freeze({
|
|
|
20171
20198
|
[0x01190CF1]: "inputQuickReplyShortcutId",
|
|
20172
20199
|
[0xC68D6695]: "messages.quickReplies",
|
|
20173
20200
|
[0x5F91EB5B]: "messages.quickRepliesNotModified",
|
|
20174
|
-
[
|
|
20201
|
+
[0xCD64636C]: "connectedBot",
|
|
20175
20202
|
[0x17D7F87B]: "account.connectedBots",
|
|
20176
20203
|
[0x2AD93719]: "messages.dialogFilters",
|
|
20177
20204
|
[0x6C8E1E06]: "birthday",
|
|
20178
|
-
[
|
|
20205
|
+
[0x8F34B2F5]: "botBusinessConnection",
|
|
20179
20206
|
[0x09C469CD]: "inputBusinessIntro",
|
|
20180
20207
|
[0x5A0A066D]: "businessIntro",
|
|
20181
20208
|
[0xFAFF629D]: "messages.myStickers",
|
|
@@ -20282,6 +20309,11 @@ export const schema = Object.freeze({
|
|
|
20282
20309
|
[0x050A9839]: "requirementToContactEmpty",
|
|
20283
20310
|
[0xE581E4E9]: "requirementToContactPremium",
|
|
20284
20311
|
[0xB4F67E93]: "requirementToContactPaidMessages",
|
|
20312
|
+
[0xA0624CF7]: "businessBotRights",
|
|
20313
|
+
[0x71F276C4]: "disallowedGiftsSettings",
|
|
20314
|
+
[0xC69708D3]: "sponsoredPeer",
|
|
20315
|
+
[0xEA32B4B1]: "contacts.sponsoredPeersEmpty",
|
|
20316
|
+
[0xEB032884]: "contacts.sponsoredPeers",
|
|
20285
20317
|
},
|
|
20286
20318
|
});
|
|
20287
|
-
export const LAYER =
|
|
20319
|
+
export const LAYER = 201;
|
package/esm/types/1_chat_p.js
CHANGED
|
@@ -24,6 +24,8 @@ import { constructRestrictionReason } from "./0_restriction_reason.js";
|
|
|
24
24
|
export function constructChatP(chat) {
|
|
25
25
|
if (Api.is("user", chat)) {
|
|
26
26
|
const id = Number(chat.id);
|
|
27
|
+
const usernames = chat.usernames?.map((v) => v.username);
|
|
28
|
+
const username = chat.username ?? usernames?.shift();
|
|
27
29
|
const chat_ = {
|
|
28
30
|
id,
|
|
29
31
|
type: "private",
|
|
@@ -31,6 +33,8 @@ export function constructChatP(chat) {
|
|
|
31
33
|
color: chat.color?.color !== undefined ? chat.color.color : getColorFromPeerId(id),
|
|
32
34
|
firstName: chat.first_name || "",
|
|
33
35
|
lastName: chat.last_name,
|
|
36
|
+
username,
|
|
37
|
+
also: usernames?.filter((v) => v != username),
|
|
34
38
|
isScam: chat.scam || false,
|
|
35
39
|
isFake: chat.fake || false,
|
|
36
40
|
isSupport: chat.support || false,
|
|
@@ -24,7 +24,7 @@ export async function constructBusinessConnection(connection, getEntity) {
|
|
|
24
24
|
id: connection.connection_id,
|
|
25
25
|
user: constructUser((await getEntity({ ...connection, _: "peerUser" }))),
|
|
26
26
|
date: fromUnixTimestamp(connection.date),
|
|
27
|
-
canReply: !!connection.
|
|
27
|
+
canReply: !!connection.rights?.reply,
|
|
28
28
|
isEnabled: !connection.disabled,
|
|
29
29
|
};
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@ export declare const K: {
|
|
|
37
37
|
key: () => StorageKeyPart[];
|
|
38
38
|
accountId: () => StorageKeyPart[];
|
|
39
39
|
accountType: () => StorageKeyPart[];
|
|
40
|
+
isPremium: () => StorageKeyPart[];
|
|
40
41
|
};
|
|
41
42
|
updates: {
|
|
42
43
|
P: (string: string) => string;
|
|
@@ -141,6 +142,8 @@ export declare class StorageOperations {
|
|
|
141
142
|
setAccountType(type: "user" | "bot"): Promise<void>;
|
|
142
143
|
getAccountType(): Promise<"user" | "bot" | null>;
|
|
143
144
|
get accountType(): "user" | "bot";
|
|
145
|
+
setIsPremium(isPremium: boolean): Promise<void>;
|
|
146
|
+
getIsPremium(): Promise<boolean | null>;
|
|
144
147
|
updateStickerSetName(id: bigint, accessHash: bigint, name: string): Promise<void>;
|
|
145
148
|
getStickerSetName(id: bigint, accessHash: bigint): MaybePromise<[string, Date] | null>;
|
|
146
149
|
setServerSalt(serverSalt: bigint): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_storage_operations.d.ts","sourceRoot":"","sources":["../../src/client/0_storage_operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAA8D,YAAY,EAA+C,MAAM,mBAAmB,CAAC;A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AE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;IAIjD,WAAW;IAQX,qBAAqB,CAAC,kBAAkB,EAAE,kBAAkB;IAI5D,qBAAqB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAIlF,yBAAyB;IAQzB,8BAA8B,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM;IAIhH,8BAA8B,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIhH,kCAAkC;CAOzC"}
|
|
@@ -52,6 +52,7 @@ exports.K = {
|
|
|
52
52
|
key: () => [exports.K.auth.P("key")],
|
|
53
53
|
accountId: () => [exports.K.auth.P("accountId")],
|
|
54
54
|
accountType: () => [exports.K.auth.P("accountType")],
|
|
55
|
+
isPremium: () => [exports.K.auth.P("isPremium")],
|
|
55
56
|
},
|
|
56
57
|
updates: {
|
|
57
58
|
P: (string) => `updates.${string}`,
|
|
@@ -343,6 +344,12 @@ class StorageOperations {
|
|
|
343
344
|
}
|
|
344
345
|
return __classPrivateFieldGet(this, _StorageOperations_accountType, "f");
|
|
345
346
|
}
|
|
347
|
+
async setIsPremium(isPremium) {
|
|
348
|
+
await __classPrivateFieldGet(this, _StorageOperations_storage, "f").set(exports.K.auth.isPremium(), isPremium);
|
|
349
|
+
}
|
|
350
|
+
async getIsPremium() {
|
|
351
|
+
return await __classPrivateFieldGet(this, _StorageOperations_storage, "f").get(exports.K.auth.isPremium());
|
|
352
|
+
}
|
|
346
353
|
async updateStickerSetName(id, accessHash, name) {
|
|
347
354
|
await __classPrivateFieldGet(this, _StorageOperations_storage, "f").set(exports.K.cache.stickerSetName(id, accessHash), [name, new Date()]);
|
|
348
355
|
}
|