@mtkruto/node 0.63.11 → 0.63.13

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.
Files changed (39) hide show
  1. package/esm/client/0_storage_operations.d.ts +3 -0
  2. package/esm/client/0_storage_operations.d.ts.map +1 -1
  3. package/esm/client/0_storage_operations.js +7 -0
  4. package/esm/client/0_utilities.d.ts +1 -2
  5. package/esm/client/0_utilities.d.ts.map +1 -1
  6. package/esm/client/0_utilities.js +0 -1
  7. package/esm/client/1_types.d.ts +1 -0
  8. package/esm/client/1_types.d.ts.map +1 -1
  9. package/esm/client/2_file_manager.d.ts.map +1 -1
  10. package/esm/client/2_file_manager.js +10 -9
  11. package/esm/client/3_message_manager.d.ts.map +1 -1
  12. package/esm/client/3_message_manager.js +0 -6
  13. package/esm/client/5_client.d.ts.map +1 -1
  14. package/esm/client/5_client.js +16 -3
  15. package/esm/tl/1_telegram_api.d.ts +112 -89
  16. package/esm/tl/1_telegram_api.d.ts.map +1 -1
  17. package/esm/tl/1_telegram_api.js +136 -104
  18. package/esm/types/1_chat_p.js +4 -0
  19. package/esm/types/2_business_connection.js +1 -1
  20. package/package.json +1 -1
  21. package/script/client/0_storage_operations.d.ts +3 -0
  22. package/script/client/0_storage_operations.d.ts.map +1 -1
  23. package/script/client/0_storage_operations.js +7 -0
  24. package/script/client/0_utilities.d.ts +1 -2
  25. package/script/client/0_utilities.d.ts.map +1 -1
  26. package/script/client/0_utilities.js +1 -2
  27. package/script/client/1_types.d.ts +1 -0
  28. package/script/client/1_types.d.ts.map +1 -1
  29. package/script/client/2_file_manager.d.ts.map +1 -1
  30. package/script/client/2_file_manager.js +9 -8
  31. package/script/client/3_message_manager.d.ts.map +1 -1
  32. package/script/client/3_message_manager.js +0 -6
  33. package/script/client/5_client.d.ts.map +1 -1
  34. package/script/client/5_client.js +15 -2
  35. package/script/tl/1_telegram_api.d.ts +112 -89
  36. package/script/tl/1_telegram_api.d.ts.map +1 -1
  37. package/script/tl/1_telegram_api.js +136 -104
  38. package/script/types/1_chat_p.js +4 -0
  39. package/script/types/2_business_connection.js +1 -1
@@ -35,60 +35,10 @@ exports.schema = Object.freeze({
35
35
  ],
36
36
  "Error",
37
37
  ],
38
- ipPort: [
39
- 0xD433AD73,
40
- [
41
- ["ipv4", "int"],
42
- ["port", "int"],
43
- ],
44
- "IpPort",
45
- ],
46
- ipPortSecret: [
47
- 0x37982646,
48
- [
49
- ["ipv4", "int"],
50
- ["port", "int"],
51
- ["secret", "bytes"],
52
- ],
53
- "IpPort",
54
- ],
55
- accessPointRule: [
56
- 0x4679B65F,
57
- [
58
- ["phone_prefix_rules", "string"],
59
- ["dc_id", "int"],
60
- ["ips", "vector<IpPort>"],
61
- ],
62
- "AccessPointRule",
63
- ],
64
- "help.configSimple": [
65
- 0x5A592A6C,
66
- [
67
- ["date", "int"],
68
- ["expires", "int"],
69
- ["rules", "vector<AccessPointRule>"],
70
- ],
71
- "help.ConfigSimple",
72
- ],
73
- inputPeerPhotoFileLocationLegacy: [
74
- 0x27D69997,
75
- [
76
- ["flags", "#"],
77
- ["big", "flags.0?true"],
78
- ["peer", "InputPeer"],
79
- ["volume_id", "long"],
80
- ["local_id", "int"],
81
- ],
82
- "InputFileLocation",
83
- ],
84
- inputStickerSetThumbLegacy: [
85
- 0x0DBAEAE9,
86
- [
87
- ["stickerset", "InputStickerSet"],
88
- ["volume_id", "long"],
89
- ["local_id", "int"],
90
- ],
91
- "InputFileLocation",
38
+ null: [
39
+ 0x56730BCC,
40
+ [],
41
+ "Null",
92
42
  ],
93
43
  inputPeerEmpty: [
94
44
  0x7F3B18EA,
@@ -1684,6 +1634,21 @@ exports.schema = Object.freeze({
1684
1634
  ],
1685
1635
  "MessageAction",
1686
1636
  ],
1637
+ messageActionPaidMessagesRefunded: [
1638
+ 0xAC1F1FCD,
1639
+ [
1640
+ ["count", "int"],
1641
+ ["stars", "long"],
1642
+ ],
1643
+ "MessageAction",
1644
+ ],
1645
+ messageActionPaidMessagesPrice: [
1646
+ 0xBCD71419,
1647
+ [
1648
+ ["stars", "long"],
1649
+ ],
1650
+ "MessageAction",
1651
+ ],
1687
1652
  dialog: [
1688
1653
  0xD58A08C6,
1689
1654
  [
@@ -1830,6 +1795,14 @@ exports.schema = Object.freeze({
1830
1795
  ],
1831
1796
  "auth.SentCode",
1832
1797
  ],
1798
+ "auth.sentCodePaymentRequired": [
1799
+ 0xD7CEF980,
1800
+ [
1801
+ ["store_product", "string"],
1802
+ ["phone_code_hash", "string"],
1803
+ ],
1804
+ "auth.SentCode",
1805
+ ],
1833
1806
  "auth.authorization": [
1834
1807
  0x2EA2C0D4,
1835
1808
  [
@@ -2026,7 +1999,7 @@ exports.schema = Object.freeze({
2026
1999
  "ReportReason",
2027
2000
  ],
2028
2001
  userFull: [
2029
- 0xD2234EA0,
2002
+ 0x99E78045,
2030
2003
  [
2031
2004
  ["flags", "#"],
2032
2005
  ["blocked", "flags.0?true"],
@@ -2046,6 +2019,7 @@ exports.schema = Object.freeze({
2046
2019
  ["sponsored_enabled", "flags2.7?true"],
2047
2020
  ["can_view_revenue", "flags2.9?true"],
2048
2021
  ["bot_can_manage_emoji_status", "flags2.10?true"],
2022
+ ["display_gifts_button", "flags2.16?true"],
2049
2023
  ["id", "long"],
2050
2024
  ["about", "flags.1?string"],
2051
2025
  ["settings", "PeerSettings"],
@@ -2076,6 +2050,7 @@ exports.schema = Object.freeze({
2076
2050
  ["starref_program", "flags2.11?StarRefProgram"],
2077
2051
  ["bot_verification", "flags2.12?BotVerification"],
2078
2052
  ["send_paid_messages_stars", "flags2.14?long"],
2053
+ ["disallowed_gifts", "flags2.15?DisallowedGiftsSettings"],
2079
2054
  ],
2080
2055
  "UserFull",
2081
2056
  ],
@@ -3579,6 +3554,13 @@ exports.schema = Object.freeze({
3579
3554
  ],
3580
3555
  "Update",
3581
3556
  ],
3557
+ updateSentPhoneCode: [
3558
+ 0x504AA18F,
3559
+ [
3560
+ ["sent_code", "auth.SentCode"],
3561
+ ],
3562
+ "Update",
3563
+ ],
3582
3564
  "updates.state": [
3583
3565
  0xA56C2A3E,
3584
3566
  [
@@ -9258,7 +9240,7 @@ exports.schema = Object.freeze({
9258
9240
  "stats.MegagroupStats",
9259
9241
  ],
9260
9242
  globalPrivacySettings: [
9261
- 0xC9D8DF1C,
9243
+ 0xFE41B34F,
9262
9244
  [
9263
9245
  ["flags", "#"],
9264
9246
  ["archive_and_mute_new_noncontact_peers", "flags.0?true"],
@@ -9266,7 +9248,9 @@ exports.schema = Object.freeze({
9266
9248
  ["keep_archived_folders", "flags.2?true"],
9267
9249
  ["hide_read_marks", "flags.3?true"],
9268
9250
  ["new_noncontact_peers_require_premium", "flags.4?true"],
9251
+ ["display_gifts_button", "flags.7?true"],
9269
9252
  ["noncontact_peers_paid_stars", "flags.5?long"],
9253
+ ["disallowed_gifts", "flags.6?DisallowedGiftsSettings"],
9270
9254
  ],
9271
9255
  "GlobalPrivacySettings",
9272
9256
  ],
@@ -10296,6 +10280,18 @@ exports.schema = Object.freeze({
10296
10280
  ],
10297
10281
  "InputStorePaymentPurpose",
10298
10282
  ],
10283
+ inputStorePaymentAuthCode: [
10284
+ 0x9BB2636D,
10285
+ [
10286
+ ["flags", "#"],
10287
+ ["restore", "flags.0?true"],
10288
+ ["phone_number", "string"],
10289
+ ["phone_code_hash", "string"],
10290
+ ["currency", "string"],
10291
+ ["amount", "long"],
10292
+ ],
10293
+ "InputStorePaymentPurpose",
10294
+ ],
10299
10295
  paymentFormMethod: [
10300
10296
  0x88F8F21B,
10301
10297
  [
@@ -11784,12 +11780,12 @@ exports.schema = Object.freeze({
11784
11780
  "messages.QuickReplies",
11785
11781
  ],
11786
11782
  connectedBot: [
11787
- 0xBD068601,
11783
+ 0xCD64636C,
11788
11784
  [
11789
11785
  ["flags", "#"],
11790
- ["can_reply", "flags.0?true"],
11791
11786
  ["bot_id", "long"],
11792
11787
  ["recipients", "BusinessBotRecipients"],
11788
+ ["rights", "BusinessBotRights"],
11793
11789
  ],
11794
11790
  "ConnectedBot",
11795
11791
  ],
@@ -11821,15 +11817,15 @@ exports.schema = Object.freeze({
11821
11817
  "Birthday",
11822
11818
  ],
11823
11819
  botBusinessConnection: [
11824
- 0x896433B4,
11820
+ 0x8F34B2F5,
11825
11821
  [
11826
11822
  ["flags", "#"],
11827
- ["can_reply", "flags.0?true"],
11828
11823
  ["disabled", "flags.1?true"],
11829
11824
  ["connection_id", "string"],
11830
11825
  ["user_id", "long"],
11831
11826
  ["dc_id", "int"],
11832
11827
  ["date", "int"],
11828
+ ["rights", "flags.2?BusinessBotRights"],
11833
11829
  ],
11834
11830
  "BotBusinessConnection",
11835
11831
  ],
@@ -12838,35 +12834,62 @@ exports.schema = Object.freeze({
12838
12834
  ],
12839
12835
  "RequirementToContact",
12840
12836
  ],
12841
- invokeWithBusinessConnectionPrefix: [
12842
- 0xDD289F8E,
12837
+ businessBotRights: [
12838
+ 0xA0624CF7,
12843
12839
  [
12844
- ["connection_id", "string"],
12840
+ ["flags", "#"],
12841
+ ["reply", "flags.0?true"],
12842
+ ["read_messages", "flags.1?true"],
12843
+ ["delete_sent_messages", "flags.2?true"],
12844
+ ["delete_received_messages", "flags.3?true"],
12845
+ ["edit_name", "flags.4?true"],
12846
+ ["edit_bio", "flags.5?true"],
12847
+ ["edit_profile_photo", "flags.6?true"],
12848
+ ["edit_username", "flags.7?true"],
12849
+ ["view_gifts", "flags.8?true"],
12850
+ ["sell_gifts", "flags.9?true"],
12851
+ ["change_gift_settings", "flags.10?true"],
12852
+ ["transfer_and_upgrade_gifts", "flags.11?true"],
12853
+ ["transfer_stars", "flags.12?true"],
12854
+ ["manage_stories", "flags.13?true"],
12845
12855
  ],
12846
- "Error",
12856
+ "BusinessBotRights",
12847
12857
  ],
12848
- invokeWithGooglePlayIntegrityPrefix: [
12849
- 0x1DF92984,
12858
+ disallowedGiftsSettings: [
12859
+ 0x71F276C4,
12850
12860
  [
12851
- ["nonce", "string"],
12852
- ["token", "string"],
12861
+ ["flags", "#"],
12862
+ ["disallow_unlimited_stargifts", "flags.0?true"],
12863
+ ["disallow_limited_stargifts", "flags.1?true"],
12864
+ ["disallow_unique_stargifts", "flags.2?true"],
12865
+ ["disallow_premium_gifts", "flags.3?true"],
12853
12866
  ],
12854
- "Error",
12867
+ "DisallowedGiftsSettings",
12855
12868
  ],
12856
- invokeWithApnsSecretPrefix: [
12857
- 0x0DAE54F8,
12869
+ sponsoredPeer: [
12870
+ 0xC69708D3,
12858
12871
  [
12859
- ["nonce", "string"],
12860
- ["secret", "string"],
12872
+ ["flags", "#"],
12873
+ ["random_id", "bytes"],
12874
+ ["peer", "Peer"],
12875
+ ["sponsor_info", "flags.0?string"],
12876
+ ["additional_info", "flags.1?string"],
12861
12877
  ],
12862
- "Error",
12878
+ "SponsoredPeer",
12863
12879
  ],
12864
- invokeWithReCaptchaPrefix: [
12865
- 0xADBB0F94,
12880
+ "contacts.sponsoredPeersEmpty": [
12881
+ 0xEA32B4B1,
12882
+ [],
12883
+ "contacts.SponsoredPeers",
12884
+ ],
12885
+ "contacts.sponsoredPeers": [
12886
+ 0xEB032884,
12866
12887
  [
12867
- ["token", "string"],
12888
+ ["peers", "Vector<SponsoredPeer>"],
12889
+ ["chats", "Vector<Chat>"],
12890
+ ["users", "Vector<User>"],
12868
12891
  ],
12869
- "Error",
12892
+ "contacts.SponsoredPeers",
12870
12893
  ],
12871
12894
  invokeAfterMsg: [
12872
12895
  0xCB9F372D,
@@ -13896,11 +13919,11 @@ exports.schema = Object.freeze({
13896
13919
  "Bool",
13897
13920
  ],
13898
13921
  "account.updateConnectedBot": [
13899
- 0x43D8521D,
13922
+ 0x66A08C7E,
13900
13923
  [
13901
13924
  ["flags", "#"],
13902
- ["can_reply", "flags.0?true"],
13903
13925
  ["deleted", "flags.1?true"],
13926
+ ["rights", "flags.0?BusinessBotRights"],
13904
13927
  ["bot", "InputUser"],
13905
13928
  ["recipients", "InputBusinessBotRecipients"],
13906
13929
  ],
@@ -14271,6 +14294,13 @@ exports.schema = Object.freeze({
14271
14294
  [],
14272
14295
  "contacts.ContactBirthdays",
14273
14296
  ],
14297
+ "contacts.getSponsoredPeers": [
14298
+ 0xB6C8C393,
14299
+ [
14300
+ ["q", "string"],
14301
+ ],
14302
+ "contacts.SponsoredPeers",
14303
+ ],
14274
14304
  "messages.getMessages": [
14275
14305
  0x63C66506,
14276
14306
  [
@@ -16331,28 +16361,25 @@ exports.schema = Object.freeze({
16331
16361
  "Updates",
16332
16362
  ],
16333
16363
  "messages.viewSponsoredMessage": [
16334
- 0x673AD8F1,
16364
+ 0x269E3643,
16335
16365
  [
16336
- ["peer", "InputPeer"],
16337
16366
  ["random_id", "bytes"],
16338
16367
  ],
16339
16368
  "Bool",
16340
16369
  ],
16341
16370
  "messages.clickSponsoredMessage": [
16342
- 0x0F093465,
16371
+ 0x8235057E,
16343
16372
  [
16344
16373
  ["flags", "#"],
16345
16374
  ["media", "flags.0?true"],
16346
16375
  ["fullscreen", "flags.1?true"],
16347
- ["peer", "InputPeer"],
16348
16376
  ["random_id", "bytes"],
16349
16377
  ],
16350
16378
  "Bool",
16351
16379
  ],
16352
16380
  "messages.reportSponsoredMessage": [
16353
- 0x1AF3DBB8,
16381
+ 0x12CBF0C4,
16354
16382
  [
16355
- ["peer", "InputPeer"],
16356
16383
  ["random_id", "bytes"],
16357
16384
  ["option", "bytes"],
16358
16385
  ],
@@ -17599,13 +17626,6 @@ exports.schema = Object.freeze({
17599
17626
  ],
17600
17627
  "Updates",
17601
17628
  ],
17602
- "payments.canPurchasePremium": [
17603
- 0x9FC19EB6,
17604
- [
17605
- ["purpose", "InputStorePaymentPurpose"],
17606
- ],
17607
- "Bool",
17608
- ],
17609
17629
  "payments.getPremiumGiftCodeOptions": [
17610
17630
  0x2757BA54,
17611
17631
  [
@@ -17922,6 +17942,13 @@ exports.schema = Object.freeze({
17922
17942
  ],
17923
17943
  "Bool",
17924
17944
  ],
17945
+ "payments.canPurchaseStore": [
17946
+ 0x4FDC5EA7,
17947
+ [
17948
+ ["purpose", "InputStorePaymentPurpose"],
17949
+ ],
17950
+ "Bool",
17951
+ ],
17925
17952
  "stickers.createStickerSet": [
17926
17953
  0x9021AB67,
17927
17954
  [
@@ -18874,12 +18901,7 @@ exports.schema = Object.freeze({
18874
18901
  identifierToName: {
18875
18902
  [0x3FEDD339]: "true",
18876
18903
  [0xC4B9F9BB]: "error",
18877
- [0xD433AD73]: "ipPort",
18878
- [0x37982646]: "ipPortSecret",
18879
- [0x4679B65F]: "accessPointRule",
18880
- [0x5A592A6C]: "help.configSimple",
18881
- [0x27D69997]: "inputPeerPhotoFileLocationLegacy",
18882
- [0x0DBAEAE9]: "inputStickerSetThumbLegacy",
18904
+ [0x56730BCC]: "null",
18883
18905
  [0x7F3B18EA]: "inputPeerEmpty",
18884
18906
  [0x7DA07EC9]: "inputPeerSelf",
18885
18907
  [0x35A95CB9]: "inputPeerChat",
@@ -19035,6 +19057,8 @@ exports.schema = Object.freeze({
19035
19057
  [0xB00C47A2]: "messageActionPrizeStars",
19036
19058
  [0x4717E8A4]: "messageActionStarGift",
19037
19059
  [0xACDFCB81]: "messageActionStarGiftUnique",
19060
+ [0xAC1F1FCD]: "messageActionPaidMessagesRefunded",
19061
+ [0xBCD71419]: "messageActionPaidMessagesPrice",
19038
19062
  [0xD58A08C6]: "dialog",
19039
19063
  [0x71BD134C]: "dialogFolder",
19040
19064
  [0x2331B22D]: "photoEmpty",
@@ -19049,6 +19073,7 @@ exports.schema = Object.freeze({
19049
19073
  [0xB2A2F663]: "geoPoint",
19050
19074
  [0x5E002502]: "auth.sentCode",
19051
19075
  [0x2390FE44]: "auth.sentCodeSuccess",
19076
+ [0xD7CEF980]: "auth.sentCodePaymentRequired",
19052
19077
  [0x2EA2C0D4]: "auth.authorization",
19053
19078
  [0x44747E9A]: "auth.authorizationSignUpRequired",
19054
19079
  [0xB434E2B8]: "auth.exportedAuthorization",
@@ -19072,7 +19097,7 @@ exports.schema = Object.freeze({
19072
19097
  [0xF5DDD6E7]: "inputReportReasonFake",
19073
19098
  [0x0A8EB2BE]: "inputReportReasonIllegalDrugs",
19074
19099
  [0x9EC7863D]: "inputReportReasonPersonalDetails",
19075
- [0xD2234EA0]: "userFull",
19100
+ [0x99E78045]: "userFull",
19076
19101
  [0x145ADE0B]: "contact",
19077
19102
  [0xC13E3C50]: "importedContact",
19078
19103
  [0x16D9703B]: "contactStatus",
@@ -19250,6 +19275,7 @@ exports.schema = Object.freeze({
19250
19275
  [0xA584B019]: "updateStarsRevenueStatus",
19251
19276
  [0x283BD312]: "updateBotPurchasedPaidMedia",
19252
19277
  [0x8B725FCE]: "updatePaidReactionPrivacy",
19278
+ [0x504AA18F]: "updateSentPhoneCode",
19253
19279
  [0xA56C2A3E]: "updates.state",
19254
19280
  [0x5D75A138]: "updates.differenceEmpty",
19255
19281
  [0x00F49CA0]: "updates.difference",
@@ -19901,7 +19927,7 @@ exports.schema = Object.freeze({
19901
19927
  [0xD7584C87]: "statsGroupTopAdmin",
19902
19928
  [0x535F779D]: "statsGroupTopInviter",
19903
19929
  [0xEF7FF916]: "stats.megagroupStats",
19904
- [0xC9D8DF1C]: "globalPrivacySettings",
19930
+ [0xFE41B34F]: "globalPrivacySettings",
19905
19931
  [0x4203C5EF]: "help.countryCode",
19906
19932
  [0xC3878E23]: "help.country",
19907
19933
  [0x93CC1F32]: "help.countriesListNotModified",
@@ -20016,6 +20042,7 @@ exports.schema = Object.freeze({
20016
20042
  [0xDDDD0F56]: "inputStorePaymentStarsTopup",
20017
20043
  [0x1D741EF7]: "inputStorePaymentStarsGift",
20018
20044
  [0x751F08FA]: "inputStorePaymentStarsGiveaway",
20045
+ [0x9BB2636D]: "inputStorePaymentAuthCode",
20019
20046
  [0x88F8F21B]: "paymentFormMethod",
20020
20047
  [0x2DE11AAE]: "emojiStatusEmpty",
20021
20048
  [0xE7FF068A]: "emojiStatus",
@@ -20174,11 +20201,11 @@ exports.schema = Object.freeze({
20174
20201
  [0x01190CF1]: "inputQuickReplyShortcutId",
20175
20202
  [0xC68D6695]: "messages.quickReplies",
20176
20203
  [0x5F91EB5B]: "messages.quickRepliesNotModified",
20177
- [0xBD068601]: "connectedBot",
20204
+ [0xCD64636C]: "connectedBot",
20178
20205
  [0x17D7F87B]: "account.connectedBots",
20179
20206
  [0x2AD93719]: "messages.dialogFilters",
20180
20207
  [0x6C8E1E06]: "birthday",
20181
- [0x896433B4]: "botBusinessConnection",
20208
+ [0x8F34B2F5]: "botBusinessConnection",
20182
20209
  [0x09C469CD]: "inputBusinessIntro",
20183
20210
  [0x5A0A066D]: "businessIntro",
20184
20211
  [0xFAFF629D]: "messages.myStickers",
@@ -20285,6 +20312,11 @@ exports.schema = Object.freeze({
20285
20312
  [0x050A9839]: "requirementToContactEmpty",
20286
20313
  [0xE581E4E9]: "requirementToContactPremium",
20287
20314
  [0xB4F67E93]: "requirementToContactPaidMessages",
20315
+ [0xA0624CF7]: "businessBotRights",
20316
+ [0x71F276C4]: "disallowedGiftsSettings",
20317
+ [0xC69708D3]: "sponsoredPeer",
20318
+ [0xEA32B4B1]: "contacts.sponsoredPeersEmpty",
20319
+ [0xEB032884]: "contacts.sponsoredPeers",
20288
20320
  },
20289
20321
  });
20290
- exports.LAYER = 200;
20322
+ exports.LAYER = 201;
@@ -27,6 +27,8 @@ const _0_restriction_reason_js_1 = require("./0_restriction_reason.js");
27
27
  function constructChatP(chat) {
28
28
  if (_2_tl_js_1.Api.is("user", chat)) {
29
29
  const id = Number(chat.id);
30
+ const usernames = chat.usernames?.map((v) => v.username);
31
+ const username = chat.username ?? usernames?.shift();
30
32
  const chat_ = {
31
33
  id,
32
34
  type: "private",
@@ -34,6 +36,8 @@ function constructChatP(chat) {
34
36
  color: chat.color?.color !== undefined ? chat.color.color : (0, _1_utilities_js_1.getColorFromPeerId)(id),
35
37
  firstName: chat.first_name || "",
36
38
  lastName: chat.last_name,
39
+ username,
40
+ also: usernames?.filter((v) => v != username),
37
41
  isScam: chat.scam || false,
38
42
  isFake: chat.fake || false,
39
43
  isSupport: chat.support || false,
@@ -27,7 +27,7 @@ async function constructBusinessConnection(connection, getEntity) {
27
27
  id: connection.connection_id,
28
28
  user: (0, _1_user_js_1.constructUser)((await getEntity({ ...connection, _: "peerUser" }))),
29
29
  date: (0, _1_utilities_js_1.fromUnixTimestamp)(connection.date),
30
- canReply: !!connection.can_reply,
30
+ canReply: !!connection.rights?.reply,
31
31
  isEnabled: !connection.disabled,
32
32
  };
33
33
  }