@mtcute/core 0.29.5 → 0.29.7

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 (96) hide show
  1. package/client.cjs +12 -0
  2. package/client.js +12 -0
  3. package/highlevel/client.d.cts +49 -1
  4. package/highlevel/client.d.ts +49 -1
  5. package/highlevel/methods/bots/answer-bot-guest-chat-query.cjs +26 -0
  6. package/highlevel/methods/bots/answer-bot-guest-chat-query.d.cts +12 -0
  7. package/highlevel/methods/bots/answer-bot-guest-chat-query.d.ts +12 -0
  8. package/highlevel/methods/bots/answer-bot-guest-chat-query.js +21 -0
  9. package/highlevel/methods/files/normalize-input-media.cjs +21 -1
  10. package/highlevel/methods/files/normalize-input-media.js +21 -1
  11. package/highlevel/methods/messages/create-streaming-draft.cjs +57 -0
  12. package/highlevel/methods/messages/create-streaming-draft.d.cts +36 -0
  13. package/highlevel/methods/messages/create-streaming-draft.d.ts +36 -0
  14. package/highlevel/methods/messages/create-streaming-draft.js +52 -0
  15. package/highlevel/methods/messages/send-common.cjs +2 -1
  16. package/highlevel/methods/messages/send-common.d.cts +4 -0
  17. package/highlevel/methods/messages/send-common.d.ts +4 -0
  18. package/highlevel/methods/messages/send-common.js +2 -1
  19. package/highlevel/methods/messages/send-copy-group.cjs +5 -9
  20. package/highlevel/methods/messages/send-copy-group.js +5 -9
  21. package/highlevel/methods/messages/send-media.cjs +1 -1
  22. package/highlevel/methods/messages/send-media.d.cts +3 -0
  23. package/highlevel/methods/messages/send-media.d.ts +3 -0
  24. package/highlevel/methods/messages/send-media.js +1 -1
  25. package/highlevel/methods/messages/send-text.cjs +1 -1
  26. package/highlevel/methods/messages/send-text.d.cts +3 -0
  27. package/highlevel/methods/messages/send-text.d.ts +3 -0
  28. package/highlevel/methods/messages/send-text.js +1 -1
  29. package/highlevel/methods.d.cts +3 -0
  30. package/highlevel/methods.d.ts +3 -0
  31. package/highlevel/storage/service/peers.cjs +1 -0
  32. package/highlevel/storage/service/peers.js +1 -0
  33. package/highlevel/types/media/input-media/types.d.cts +14 -0
  34. package/highlevel/types/media/input-media/types.d.ts +14 -0
  35. package/highlevel/types/media/photo.cjs +8 -0
  36. package/highlevel/types/media/photo.d.cts +2 -0
  37. package/highlevel/types/media/photo.d.ts +2 -0
  38. package/highlevel/types/media/photo.js +8 -0
  39. package/highlevel/types/media/poll.cjs +58 -4
  40. package/highlevel/types/media/poll.d.cts +25 -1
  41. package/highlevel/types/media/poll.d.ts +25 -1
  42. package/highlevel/types/media/poll.js +58 -4
  43. package/highlevel/types/messages/message-media.cjs +6 -1
  44. package/highlevel/types/messages/message-media.js +6 -1
  45. package/highlevel/types/messages/message.cjs +10 -1
  46. package/highlevel/types/messages/message.d.cts +5 -0
  47. package/highlevel/types/messages/message.d.ts +5 -0
  48. package/highlevel/types/messages/message.js +10 -1
  49. package/highlevel/types/messages/replied-message.cjs +4 -0
  50. package/highlevel/types/messages/replied-message.d.cts +2 -0
  51. package/highlevel/types/messages/replied-message.d.ts +2 -0
  52. package/highlevel/types/messages/replied-message.js +4 -0
  53. package/highlevel/types/messages/search-filters.cjs +2 -1
  54. package/highlevel/types/messages/search-filters.d.cts +4 -0
  55. package/highlevel/types/messages/search-filters.d.ts +4 -0
  56. package/highlevel/types/messages/search-filters.js +2 -1
  57. package/highlevel/types/peers/chat-permissions.cjs +6 -0
  58. package/highlevel/types/peers/chat-permissions.d.cts +4 -0
  59. package/highlevel/types/peers/chat-permissions.d.ts +4 -0
  60. package/highlevel/types/peers/chat-permissions.js +6 -0
  61. package/highlevel/types/peers/user.cjs +4 -0
  62. package/highlevel/types/peers/user.d.cts +2 -0
  63. package/highlevel/types/peers/user.d.ts +2 -0
  64. package/highlevel/types/peers/user.js +4 -0
  65. package/highlevel/types/updates/bot-guest-chat-query.cjs +39 -0
  66. package/highlevel/types/updates/bot-guest-chat-query.d.cts +21 -0
  67. package/highlevel/types/updates/bot-guest-chat-query.d.ts +21 -0
  68. package/highlevel/types/updates/bot-guest-chat-query.js +34 -0
  69. package/highlevel/types/updates/index.d.cts +5 -1
  70. package/highlevel/types/updates/index.d.ts +5 -1
  71. package/highlevel/types/updates/parse-update.cjs +3 -0
  72. package/highlevel/types/updates/parse-update.js +3 -0
  73. package/highlevel/updates/manager.cjs +23 -3
  74. package/highlevel/updates/manager.d.cts +1 -0
  75. package/highlevel/updates/manager.d.ts +1 -0
  76. package/highlevel/updates/manager.js +23 -3
  77. package/index.cjs +2 -0
  78. package/index.js +2 -0
  79. package/methods.cjs +4 -0
  80. package/methods.js +4 -0
  81. package/network/network-manager.cjs +1 -1
  82. package/network/network-manager.js +1 -1
  83. package/package.json +1 -1
  84. package/tl/api-schema.json +1 -1
  85. package/tl/binary/reader.cjs +85 -40
  86. package/tl/binary/reader.js +85 -40
  87. package/tl/binary/writer.cjs +349 -143
  88. package/tl/binary/writer.js +349 -143
  89. package/tl/compat/reader.cjs +8 -0
  90. package/tl/compat/reader.js +8 -0
  91. package/tl/index.d.cts +2071 -179
  92. package/tl/index.d.ts +2071 -179
  93. package/tl/inner-tl.cjs +17 -5
  94. package/tl/inner-tl.js +17 -5
  95. package/utils/binary/compat.cjs +5 -0
  96. package/utils/binary/compat.js +5 -0
@@ -561,6 +561,7 @@ var m = {
561
561
  if (v.botForumView === true) flags2 |= 65536;
562
562
  if (v.botForumCanManageTopics === true) flags2 |= 131072;
563
563
  if (v.botCanManageBots === true) flags2 |= 262144;
564
+ if (v.botGuestchat === true) flags2 |= 524288;
564
565
  w.uint(flags2);
565
566
  w.int53(h(v, "id"));
566
567
  if (_accessHash) w.long(v.accessHash);
@@ -1032,7 +1033,7 @@ var m = {
1032
1033
  if (_peerId) w.object(v.peerId);
1033
1034
  },
1034
1035
  "message": function(w, v) {
1035
- w.uint(988112002);
1036
+ w.uint(2515496747);
1036
1037
  var flags = 0;
1037
1038
  if (v.out === true) flags |= 2;
1038
1039
  var _fwdFrom = v.fwdFrom !== void 0;
@@ -1107,6 +1108,8 @@ var m = {
1107
1108
  if (_summaryFromLanguage) flags2 |= 2048;
1108
1109
  var _fromRank = v.fromRank !== void 0;
1109
1110
  if (_fromRank) flags2 |= 4096;
1111
+ var _guestchatViaFrom = v.guestchatViaFrom !== void 0;
1112
+ if (_guestchatViaFrom) flags2 |= 524288;
1110
1113
  w.uint(flags2);
1111
1114
  w.int(h(v, "id"));
1112
1115
  if (_fromId) w.object(v.fromId);
@@ -1117,6 +1120,7 @@ var m = {
1117
1120
  if (_fwdFrom) w.object(v.fwdFrom);
1118
1121
  if (_viaBotId) w.int53(v.viaBotId);
1119
1122
  if (_viaBusinessBotId) w.int53(v.viaBusinessBotId);
1123
+ if (_guestchatViaFrom) w.object(v.guestchatViaFrom);
1120
1124
  if (_replyTo) w.object(v.replyTo);
1121
1125
  w.int(h(v, "date"));
1122
1126
  w.string(h(v, "message"));
@@ -1934,6 +1938,18 @@ var m = {
1934
1938
  w.boolean(h(v, "prevValue"));
1935
1939
  w.boolean(h(v, "newValue"));
1936
1940
  },
1941
+ "messageActionPollAppendAnswer": function(w, v) {
1942
+ w.uint(2644626796);
1943
+ w.object(h(v, "answer"));
1944
+ },
1945
+ "messageActionPollDeleteAnswer": function(w, v) {
1946
+ w.uint(966161628);
1947
+ w.object(h(v, "answer"));
1948
+ },
1949
+ "messageActionManagedBotCreated": function(w, v) {
1950
+ w.uint(375414334);
1951
+ w.int53(h(v, "botId"));
1952
+ },
1937
1953
  "dialog": function(w, v) {
1938
1954
  w.uint(4236900339);
1939
1955
  var flags = 0;
@@ -2062,11 +2078,12 @@ var m = {
2062
2078
  w.object(h(v, "authorization"));
2063
2079
  },
2064
2080
  "auth.sentCodePaymentRequired": function(w, v) {
2065
- w.uint(3767884348);
2081
+ w.uint(4169301695);
2066
2082
  w.string(h(v, "storeProduct"));
2067
2083
  w.string(h(v, "phoneCodeHash"));
2068
2084
  w.string(h(v, "supportEmailAddress"));
2069
2085
  w.string(h(v, "supportEmailSubject"));
2086
+ w.int(h(v, "premiumDays"));
2070
2087
  w.string(h(v, "currency"));
2071
2088
  w.long(h(v, "amount"));
2072
2089
  },
@@ -2601,6 +2618,9 @@ var m = {
2601
2618
  "inputMessagesFilterPinned": function(w) {
2602
2619
  w.uint(464520273);
2603
2620
  },
2621
+ "inputMessagesFilterPoll": function(w) {
2622
+ w.uint(4197173514);
2623
+ },
2604
2624
  "updateNewMessage": function(w, v) {
2605
2625
  w.uint(522914557);
2606
2626
  w.object(h(v, "message"));
@@ -3660,6 +3680,26 @@ var m = {
3660
3680
  w.string(h(v, "rank"));
3661
3681
  w.int(h(v, "version"));
3662
3682
  },
3683
+ "updateManagedBot": function(w, v) {
3684
+ w.uint(1216408986);
3685
+ w.int53(h(v, "userId"));
3686
+ w.int53(h(v, "botId"));
3687
+ w.int(h(v, "qts"));
3688
+ },
3689
+ "updateBotGuestChatQuery": function(w, v) {
3690
+ w.uint(3453225277);
3691
+ var flags = 0;
3692
+ var _referenceMessages = v.referenceMessages && v.referenceMessages.length;
3693
+ if (_referenceMessages) flags |= 1;
3694
+ w.uint(flags);
3695
+ w.long(h(v, "queryId"));
3696
+ w.object(h(v, "message"));
3697
+ if (_referenceMessages) w.vector(w.object, v.referenceMessages);
3698
+ w.int(h(v, "qts"));
3699
+ },
3700
+ "updateAiComposeTones": function(w) {
3701
+ w.uint(2349830651);
3702
+ },
3663
3703
  "updates.state": function(w, v) {
3664
3704
  w.uint(2775329342);
3665
3705
  w.int(h(v, "pts"));
@@ -5208,6 +5248,22 @@ var m = {
5208
5248
  w.int(h(v, "length"));
5209
5249
  w.int(h(v, "date"));
5210
5250
  },
5251
+ "messageEntityDiffInsert": function(w, v) {
5252
+ w.uint(1903653142);
5253
+ w.int(h(v, "offset"));
5254
+ w.int(h(v, "length"));
5255
+ },
5256
+ "messageEntityDiffReplace": function(w, v) {
5257
+ w.uint(3334596007);
5258
+ w.int(h(v, "offset"));
5259
+ w.int(h(v, "length"));
5260
+ w.string(h(v, "oldText"));
5261
+ },
5262
+ "messageEntityDiffDelete": function(w, v) {
5263
+ w.uint(106086853);
5264
+ w.int(h(v, "offset"));
5265
+ w.int(h(v, "length"));
5266
+ },
5211
5267
  "inputChannelEmpty": function(w) {
5212
5268
  w.uint(4002160262);
5213
5269
  },
@@ -5978,6 +6034,9 @@ var m = {
5978
6034
  "topPeerCategoryBotsApp": function(w) {
5979
6035
  w.uint(4255022060);
5980
6036
  },
6037
+ "topPeerCategoryBotsGuestChat": function(w) {
6038
+ w.uint(1814361053);
6039
+ },
5981
6040
  "topPeerCategoryPeers": function(w, v) {
5982
6041
  w.uint(4219683473);
5983
6042
  w.object(h(v, "category"));
@@ -7751,8 +7810,17 @@ var m = {
7751
7810
  if (_flags_1) w.object(v.addedBy);
7752
7811
  if (_flags_1) w.int(v.date);
7753
7812
  },
7813
+ "inputPollAnswer": function(w, v) {
7814
+ w.uint(429911446);
7815
+ var flags = 0;
7816
+ var _media = v.media !== void 0;
7817
+ if (_media) flags |= 1;
7818
+ w.uint(flags);
7819
+ w.object(h(v, "text"));
7820
+ if (_media) w.object(v.media);
7821
+ },
7754
7822
  "poll": function(w, v) {
7755
- w.uint(3091356649);
7823
+ w.uint(2523803071);
7756
7824
  w.long(h(v, "id"));
7757
7825
  var flags = 0;
7758
7826
  if (v.closed === true) flags |= 1;
@@ -7768,11 +7836,15 @@ var m = {
7768
7836
  if (v.shuffleAnswers === true) flags |= 256;
7769
7837
  if (v.hideResultsUntilClose === true) flags |= 512;
7770
7838
  if (v.creator === true) flags |= 1024;
7839
+ if (v.subscribersOnly === true) flags |= 2048;
7840
+ var _countriesIso2 = v.countriesIso2 && v.countriesIso2.length;
7841
+ if (_countriesIso2) flags |= 4096;
7771
7842
  w.uint(flags);
7772
7843
  w.object(h(v, "question"));
7773
7844
  w.vector(w.object, h(v, "answers"));
7774
7845
  if (_closePeriod) w.int(v.closePeriod);
7775
7846
  if (_closeDate) w.int(v.closeDate);
7847
+ if (_countriesIso2) w.vector(w.string, v.countriesIso2);
7776
7848
  w.long(h(v, "hash"));
7777
7849
  },
7778
7850
  "pollAnswerVoters": function(w, v) {
@@ -7806,6 +7878,7 @@ var m = {
7806
7878
  var _solutionMedia = v.solutionMedia !== void 0;
7807
7879
  if (_solutionMedia) flags |= 32;
7808
7880
  if (v.hasUnreadVotes === true) flags |= 64;
7881
+ if (v.canViewStats === true) flags |= 128;
7809
7882
  w.uint(flags);
7810
7883
  if (_results) w.vector(w.object, v.results);
7811
7884
  if (_totalVoters) w.int(v.totalVoters);
@@ -7868,6 +7941,7 @@ var m = {
7868
7941
  if (v.sendDocs === true) flags |= 16777216;
7869
7942
  if (v.sendPlain === true) flags |= 33554432;
7870
7943
  if (v.editRank === true) flags |= 67108864;
7944
+ if (v.sendReactions === true) flags |= 134217728;
7871
7945
  w.uint(flags);
7872
7946
  w.int(h(v, "untilDate"));
7873
7947
  },
@@ -8245,6 +8319,10 @@ var m = {
8245
8319
  w.object(h(v, "gift"));
8246
8320
  w.int(h(v, "endDate"));
8247
8321
  },
8322
+ "webPageAttributeAiComposeTone": function(w, v) {
8323
+ w.uint(2005007896);
8324
+ w.long(h(v, "emojiId"));
8325
+ },
8248
8326
  "messages.votesList": function(w, v) {
8249
8327
  w.uint(1218005070);
8250
8328
  var flags = 0;
@@ -9468,12 +9546,13 @@ var m = {
9468
9546
  w.int(h(v, "users"));
9469
9547
  },
9470
9548
  "inputStorePaymentAuthCode": function(w, v) {
9471
- w.uint(2612159341);
9549
+ w.uint(1069645911);
9472
9550
  var flags = 0;
9473
9551
  if (v.restore === true) flags |= 1;
9474
9552
  w.uint(flags);
9475
9553
  w.string(h(v, "phoneNumber"));
9476
9554
  w.string(h(v, "phoneCodeHash"));
9555
+ w.int(h(v, "premiumDays"));
9477
9556
  w.string(h(v, "currency"));
9478
9557
  w.long(h(v, "amount"));
9479
9558
  },
@@ -9754,6 +9833,18 @@ var m = {
9754
9833
  if (_userAdminRights) w.object(v.userAdminRights);
9755
9834
  if (_botAdminRights) w.object(v.botAdminRights);
9756
9835
  },
9836
+ "requestPeerTypeCreateBot": function(w, v) {
9837
+ w.uint(1048699e3);
9838
+ var flags = 0;
9839
+ if (v.botManaged === true) flags |= 1;
9840
+ var _suggestedName = v.suggestedName !== void 0;
9841
+ if (_suggestedName) flags |= 2;
9842
+ var _suggestedUsername = v.suggestedUsername !== void 0;
9843
+ if (_suggestedUsername) flags |= 4;
9844
+ w.uint(flags);
9845
+ if (_suggestedName) w.string(v.suggestedName);
9846
+ if (_suggestedUsername) w.string(v.suggestedUsername);
9847
+ },
9757
9848
  "emojiListNotModified": function(w) {
9758
9849
  w.uint(1209970170);
9759
9850
  },
@@ -12429,64 +12520,6 @@ var m = {
12429
12520
  w.uint(flags);
12430
12521
  if (_icon) w.long(v.icon);
12431
12522
  },
12432
- "messageActionPollAppendAnswer": function(w, v) {
12433
- w.uint(2644626796);
12434
- w.object(h(v, "answer"));
12435
- },
12436
- "messageActionPollDeleteAnswer": function(w, v) {
12437
- w.uint(966161628);
12438
- w.object(h(v, "answer"));
12439
- },
12440
- "messageActionManagedBotCreated": function(w, v) {
12441
- w.uint(375414334);
12442
- w.int53(h(v, "botId"));
12443
- },
12444
- "inputMessagesFilterPoll": function(w) {
12445
- w.uint(4197173514);
12446
- },
12447
- "updateManagedBot": function(w, v) {
12448
- w.uint(1216408986);
12449
- w.int53(h(v, "userId"));
12450
- w.int53(h(v, "botId"));
12451
- w.int(h(v, "qts"));
12452
- },
12453
- "messageEntityDiffInsert": function(w, v) {
12454
- w.uint(1903653142);
12455
- w.int(h(v, "offset"));
12456
- w.int(h(v, "length"));
12457
- },
12458
- "messageEntityDiffReplace": function(w, v) {
12459
- w.uint(3334596007);
12460
- w.int(h(v, "offset"));
12461
- w.int(h(v, "length"));
12462
- w.string(h(v, "oldText"));
12463
- },
12464
- "messageEntityDiffDelete": function(w, v) {
12465
- w.uint(106086853);
12466
- w.int(h(v, "offset"));
12467
- w.int(h(v, "length"));
12468
- },
12469
- "inputPollAnswer": function(w, v) {
12470
- w.uint(429911446);
12471
- var flags = 0;
12472
- var _media = v.media !== void 0;
12473
- if (_media) flags |= 1;
12474
- w.uint(flags);
12475
- w.object(h(v, "text"));
12476
- if (_media) w.object(v.media);
12477
- },
12478
- "requestPeerTypeCreateBot": function(w, v) {
12479
- w.uint(1048699e3);
12480
- var flags = 0;
12481
- if (v.botManaged === true) flags |= 1;
12482
- var _suggestedName = v.suggestedName !== void 0;
12483
- if (_suggestedName) flags |= 2;
12484
- var _suggestedUsername = v.suggestedUsername !== void 0;
12485
- if (_suggestedUsername) flags |= 4;
12486
- w.uint(flags);
12487
- if (_suggestedName) w.string(v.suggestedName);
12488
- if (_suggestedUsername) w.string(v.suggestedUsername);
12489
- },
12490
12523
  "inputMessageReadMetric": function(w, v) {
12491
12524
  w.uint(1076577429);
12492
12525
  w.int(h(v, "msgId"));
@@ -12513,6 +12546,77 @@ var m = {
12513
12546
  w.object(h(v, "resultText"));
12514
12547
  if (_diffText) w.object(v.diffText);
12515
12548
  },
12549
+ "stats.pollStats": function(w, v) {
12550
+ w.uint(697941741);
12551
+ w.object(h(v, "votesGraph"));
12552
+ },
12553
+ "inputAiComposeToneDefault": function(w, v) {
12554
+ w.uint(535407039);
12555
+ w.string(h(v, "tone"));
12556
+ },
12557
+ "inputAiComposeToneID": function(w, v) {
12558
+ w.uint(125026432);
12559
+ w.long(h(v, "id"));
12560
+ w.long(h(v, "accessHash"));
12561
+ },
12562
+ "inputAiComposeToneSlug": function(w, v) {
12563
+ w.uint(530584407);
12564
+ w.string(h(v, "slug"));
12565
+ },
12566
+ "aiComposeTone": function(w, v) {
12567
+ w.uint(3489021609);
12568
+ var flags = 0;
12569
+ if (v.creator === true) flags |= 1;
12570
+ var _emojiId = v.emojiId !== void 0;
12571
+ if (_emojiId) flags |= 2;
12572
+ var _installsCount = v.installsCount !== void 0;
12573
+ if (_installsCount) flags |= 4;
12574
+ var _authorId = v.authorId !== void 0;
12575
+ if (_authorId) flags |= 8;
12576
+ var _prompt = v.prompt !== void 0;
12577
+ if (_prompt) flags |= 16;
12578
+ var _exampleEnglish = v.exampleEnglish !== void 0;
12579
+ if (_exampleEnglish) flags |= 32;
12580
+ w.uint(flags);
12581
+ w.long(h(v, "id"));
12582
+ w.long(h(v, "accessHash"));
12583
+ w.string(h(v, "slug"));
12584
+ w.string(h(v, "title"));
12585
+ if (_emojiId) w.long(v.emojiId);
12586
+ if (_prompt) w.string(v.prompt);
12587
+ if (_installsCount) w.int(v.installsCount);
12588
+ if (_authorId) w.int53(v.authorId);
12589
+ if (_exampleEnglish) w.object(v.exampleEnglish);
12590
+ },
12591
+ "aiComposeToneDefault": function(w, v) {
12592
+ w.uint(2611831828);
12593
+ w.string(h(v, "tone"));
12594
+ w.long(h(v, "emojiId"));
12595
+ w.string(h(v, "title"));
12596
+ },
12597
+ "aicompose.tonesNotModified": function(w) {
12598
+ w.uint(3254018307);
12599
+ },
12600
+ "aicompose.tones": function(w, v) {
12601
+ w.uint(1822232318);
12602
+ w.long(h(v, "hash"));
12603
+ w.vector(w.object, h(v, "tones"));
12604
+ w.vector(w.object, h(v, "users"));
12605
+ },
12606
+ "aiComposeToneExample": function(w, v) {
12607
+ w.uint(4057344236);
12608
+ w.object(h(v, "from"));
12609
+ w.object(h(v, "to"));
12610
+ },
12611
+ "bots.accessSettings": function(w, v) {
12612
+ w.uint(3709845395);
12613
+ var flags = 0;
12614
+ if (v.restricted === true) flags |= 1;
12615
+ var _addUsers = v.addUsers && v.addUsers.length;
12616
+ if (_addUsers) flags |= 2;
12617
+ w.uint(flags);
12618
+ if (_addUsers) w.vector(w.object, v.addUsers);
12619
+ },
12516
12620
  "updateChannelPinnedTopic": function(w, v) {
12517
12621
  w.uint(422509539);
12518
12622
  var flags = 0;
@@ -13550,6 +13654,7 @@ var m = {
13550
13654
  if (v.groups === true) flags |= 1024;
13551
13655
  if (v.channels === true) flags |= 32768;
13552
13656
  if (v.botsApp === true) flags |= 65536;
13657
+ if (v.botsGuestchat === true) flags |= 131072;
13553
13658
  w.uint(flags);
13554
13659
  w.int(h(v, "offset"));
13555
13660
  w.int(h(v, "limit"));
@@ -15704,6 +15809,89 @@ var m = {
15704
15809
  w.string(h(v, "url"));
15705
15810
  w.string(h(v, "matchCode"));
15706
15811
  },
15812
+ "messages.composeMessageWithAI": function(w, v) {
15813
+ w.uint(3672950153);
15814
+ var flags = 0;
15815
+ if (v.proofread === true) flags |= 1;
15816
+ var _translateToLang = v.translateToLang !== void 0;
15817
+ if (_translateToLang) flags |= 2;
15818
+ var _tone = v.tone !== void 0;
15819
+ if (_tone) flags |= 4;
15820
+ if (v.emojify === true) flags |= 8;
15821
+ w.uint(flags);
15822
+ w.object(h(v, "text"));
15823
+ if (_translateToLang) w.string(v.translateToLang);
15824
+ if (_tone) w.object(v.tone);
15825
+ },
15826
+ "messages.reportReadMetrics": function(w, v) {
15827
+ w.uint(1080542694);
15828
+ w.object(h(v, "peer"));
15829
+ w.vector(w.object, h(v, "metrics"));
15830
+ },
15831
+ "messages.reportMusicListen": function(w, v) {
15832
+ w.uint(3720140825);
15833
+ w.object(h(v, "id"));
15834
+ w.int(h(v, "listenedDuration"));
15835
+ },
15836
+ "messages.addPollAnswer": function(w, v) {
15837
+ w.uint(431770477);
15838
+ w.object(h(v, "peer"));
15839
+ w.int(h(v, "msgId"));
15840
+ w.object(h(v, "answer"));
15841
+ },
15842
+ "messages.deletePollAnswer": function(w, v) {
15843
+ w.uint(2894398885);
15844
+ w.object(h(v, "peer"));
15845
+ w.int(h(v, "msgId"));
15846
+ w.bytes(h(v, "option"));
15847
+ },
15848
+ "messages.getUnreadPollVotes": function(w, v) {
15849
+ w.uint(1126722802);
15850
+ var flags = 0;
15851
+ var _topMsgId = v.topMsgId !== void 0;
15852
+ if (_topMsgId) flags |= 1;
15853
+ w.uint(flags);
15854
+ w.object(h(v, "peer"));
15855
+ if (_topMsgId) w.int(v.topMsgId);
15856
+ w.int(h(v, "offsetId"));
15857
+ w.int(h(v, "addOffset"));
15858
+ w.int(h(v, "limit"));
15859
+ w.int(h(v, "maxId"));
15860
+ w.int(h(v, "minId"));
15861
+ },
15862
+ "messages.readPollVotes": function(w, v) {
15863
+ w.uint(388019416);
15864
+ var flags = 0;
15865
+ var _topMsgId = v.topMsgId !== void 0;
15866
+ if (_topMsgId) flags |= 1;
15867
+ w.uint(flags);
15868
+ w.object(h(v, "peer"));
15869
+ if (_topMsgId) w.int(v.topMsgId);
15870
+ },
15871
+ "messages.setBotGuestChatResult": function(w, v) {
15872
+ w.uint(3102803683);
15873
+ w.long(h(v, "queryId"));
15874
+ w.object(h(v, "result"));
15875
+ },
15876
+ "messages.deleteParticipantReactions": function(w, v) {
15877
+ w.uint(2696416504);
15878
+ w.object(h(v, "peer"));
15879
+ w.object(h(v, "participant"));
15880
+ },
15881
+ "messages.deleteParticipantReaction": function(w, v) {
15882
+ w.uint(3820484652);
15883
+ w.object(h(v, "peer"));
15884
+ w.int(h(v, "msgId"));
15885
+ w.object(h(v, "participant"));
15886
+ },
15887
+ "messages.getPersonalChannelHistory": function(w, v) {
15888
+ w.uint(1442515350);
15889
+ w.object(h(v, "userId"));
15890
+ w.int(h(v, "limit"));
15891
+ w.int(h(v, "maxId"));
15892
+ w.int(h(v, "minId"));
15893
+ w.long(h(v, "hash"));
15894
+ },
15707
15895
  "updates.getState": function(w) {
15708
15896
  w.uint(3990128682);
15709
15897
  },
@@ -16486,6 +16674,48 @@ var m = {
16486
16674
  w.uint(2713126933);
16487
16675
  w.object(h(v, "bot"));
16488
16676
  },
16677
+ "bots.checkUsername": function(w, v) {
16678
+ w.uint(2280792475);
16679
+ w.string(h(v, "username"));
16680
+ },
16681
+ "bots.createBot": function(w, v) {
16682
+ w.uint(3853614891);
16683
+ var flags = 0;
16684
+ if (v.viaDeeplink === true) flags |= 1;
16685
+ w.uint(flags);
16686
+ w.string(h(v, "name"));
16687
+ w.string(h(v, "username"));
16688
+ w.object(h(v, "managerId"));
16689
+ },
16690
+ "bots.exportBotToken": function(w, v) {
16691
+ w.uint(3171785195);
16692
+ w.object(h(v, "bot"));
16693
+ w.boolean(h(v, "revoke"));
16694
+ },
16695
+ "bots.requestWebViewButton": function(w, v) {
16696
+ w.uint(832742238);
16697
+ w.object(h(v, "userId"));
16698
+ w.object(h(v, "button"));
16699
+ },
16700
+ "bots.getRequestedWebViewButton": function(w, v) {
16701
+ w.uint(3206920179);
16702
+ w.object(h(v, "bot"));
16703
+ w.string(h(v, "webappReqId"));
16704
+ },
16705
+ "bots.getAccessSettings": function(w, v) {
16706
+ w.uint(557339555);
16707
+ w.object(h(v, "bot"));
16708
+ },
16709
+ "bots.editAccessSettings": function(w, v) {
16710
+ w.uint(830553304);
16711
+ var flags = 0;
16712
+ if (v.restricted === true) flags |= 1;
16713
+ var _addUsers = v.addUsers && v.addUsers.length;
16714
+ if (_addUsers) flags |= 2;
16715
+ w.uint(flags);
16716
+ w.object(h(v, "bot"));
16717
+ if (_addUsers) w.vector(w.object, v.addUsers);
16718
+ },
16489
16719
  "payments.getPaymentForm": function(w, v) {
16490
16720
  w.uint(924093883);
16491
16721
  var flags = 0;
@@ -17420,6 +17650,14 @@ var m = {
17420
17650
  w.string(h(v, "offset"));
17421
17651
  w.int(h(v, "limit"));
17422
17652
  },
17653
+ "stats.getPollStats": function(w, v) {
17654
+ w.uint(3263036008);
17655
+ var flags = 0;
17656
+ if (v.dark === true) flags |= 1;
17657
+ w.uint(flags);
17658
+ w.object(h(v, "peer"));
17659
+ w.int(h(v, "msgId"));
17660
+ },
17423
17661
  "chatlists.exportChatlistInvite": function(w, v) {
17424
17662
  w.uint(2222081934);
17425
17663
  w.object(h(v, "chatlist"));
@@ -17834,92 +18072,54 @@ var m = {
17834
18072
  w.uint(3189671354);
17835
18073
  w.object(h(v, "collectible"));
17836
18074
  },
17837
- "messages.composeMessageWithAI": function(w, v) {
17838
- w.uint(4248988414);
18075
+ "aicompose.createTone": function(w, v) {
18076
+ w.uint(1252538643);
17839
18077
  var flags = 0;
17840
- if (v.proofread === true) flags |= 1;
17841
- var _translateToLang = v.translateToLang !== void 0;
17842
- if (_translateToLang) flags |= 2;
17843
- var _changeTone = v.changeTone !== void 0;
17844
- if (_changeTone) flags |= 4;
17845
- if (v.emojify === true) flags |= 8;
18078
+ if (v.displayAuthor === true) flags |= 1;
17846
18079
  w.uint(flags);
17847
- w.object(h(v, "text"));
17848
- if (_translateToLang) w.string(v.translateToLang);
17849
- if (_changeTone) w.string(v.changeTone);
17850
- },
17851
- "messages.reportReadMetrics": function(w, v) {
17852
- w.uint(1080542694);
17853
- w.object(h(v, "peer"));
17854
- w.vector(w.object, h(v, "metrics"));
17855
- },
17856
- "messages.reportMusicListen": function(w, v) {
17857
- w.uint(3720140825);
17858
- w.object(h(v, "id"));
17859
- w.int(h(v, "listenedDuration"));
17860
- },
17861
- "messages.addPollAnswer": function(w, v) {
17862
- w.uint(431770477);
17863
- w.object(h(v, "peer"));
17864
- w.int(h(v, "msgId"));
17865
- w.object(h(v, "answer"));
17866
- },
17867
- "messages.deletePollAnswer": function(w, v) {
17868
- w.uint(2894398885);
17869
- w.object(h(v, "peer"));
17870
- w.int(h(v, "msgId"));
17871
- w.bytes(h(v, "option"));
18080
+ w.long(h(v, "emojiId"));
18081
+ w.string(h(v, "title"));
18082
+ w.string(h(v, "prompt"));
17872
18083
  },
17873
- "messages.getUnreadPollVotes": function(w, v) {
17874
- w.uint(1126722802);
18084
+ "aicompose.updateTone": function(w, v) {
18085
+ w.uint(2419838809);
17875
18086
  var flags = 0;
17876
- var _topMsgId = v.topMsgId !== void 0;
17877
- if (_topMsgId) flags |= 1;
17878
- w.uint(flags);
17879
- w.object(h(v, "peer"));
17880
- if (_topMsgId) w.int(v.topMsgId);
17881
- w.int(h(v, "offsetId"));
17882
- w.int(h(v, "addOffset"));
17883
- w.int(h(v, "limit"));
17884
- w.int(h(v, "maxId"));
17885
- w.int(h(v, "minId"));
17886
- },
17887
- "messages.readPollVotes": function(w, v) {
17888
- w.uint(388019416);
17889
- var flags = 0;
17890
- var _topMsgId = v.topMsgId !== void 0;
17891
- if (_topMsgId) flags |= 1;
18087
+ var _displayAuthor = v.displayAuthor !== void 0;
18088
+ if (_displayAuthor) flags |= 1;
18089
+ var _emojiId = v.emojiId !== void 0;
18090
+ if (_emojiId) flags |= 2;
18091
+ var _title = v.title !== void 0;
18092
+ if (_title) flags |= 4;
18093
+ var _prompt = v.prompt !== void 0;
18094
+ if (_prompt) flags |= 8;
17892
18095
  w.uint(flags);
17893
- w.object(h(v, "peer"));
17894
- if (_topMsgId) w.int(v.topMsgId);
18096
+ w.object(h(v, "tone"));
18097
+ if (_displayAuthor) w.boolean(v.displayAuthor);
18098
+ if (_emojiId) w.long(v.emojiId);
18099
+ if (_title) w.string(v.title);
18100
+ if (_prompt) w.string(v.prompt);
17895
18101
  },
17896
- "bots.checkUsername": function(w, v) {
17897
- w.uint(2280792475);
17898
- w.string(h(v, "username"));
18102
+ "aicompose.saveTone": function(w, v) {
18103
+ w.uint(394447793);
18104
+ w.object(h(v, "tone"));
18105
+ w.boolean(h(v, "unsave"));
17899
18106
  },
17900
- "bots.createBot": function(w, v) {
17901
- w.uint(3853614891);
17902
- var flags = 0;
17903
- if (v.viaDeeplink === true) flags |= 1;
17904
- w.uint(flags);
17905
- w.string(h(v, "name"));
17906
- w.string(h(v, "username"));
17907
- w.object(h(v, "managerId"));
18107
+ "aicompose.deleteTone": function(w, v) {
18108
+ w.uint(3711512938);
18109
+ w.object(h(v, "tone"));
17908
18110
  },
17909
- "bots.exportBotToken": function(w, v) {
17910
- w.uint(3171785195);
17911
- w.object(h(v, "bot"));
17912
- w.boolean(h(v, "revoke"));
18111
+ "aicompose.getTone": function(w, v) {
18112
+ w.uint(3001596419);
18113
+ w.object(h(v, "tone"));
17913
18114
  },
17914
- "bots.requestWebViewButton": function(w, v) {
17915
- w.uint(832742238);
17916
- w.object(h(v, "userId"));
17917
- w.object(h(v, "button"));
18115
+ "aicompose.getTones": function(w, v) {
18116
+ w.uint(2882900481);
18117
+ w.long(h(v, "hash"));
17918
18118
  },
17919
- "bots.getRequestedWebViewButton": function(w, v) {
17920
- w.uint(3206920179);
17921
- w.object(h(v, "bot"));
17922
- w.string(h(v, "webappReqId"));
18119
+ "aicompose.getToneExample": function(w, v) {
18120
+ w.uint(3518278420);
18121
+ w.object(h(v, "tone"));
18122
+ w.int(h(v, "num"));
17923
18123
  },
17924
18124
  "channels.editCreator": function(w, v) {
17925
18125
  w.uint(2402864415);
@@ -18302,6 +18502,7 @@ var m = {
18302
18502
  "messageActionChangeCreator": 12,
18303
18503
  "messageActionNoForwardsToggle": 12,
18304
18504
  "messageActionNoForwardsRequest": 16,
18505
+ "messageActionManagedBotCreated": 12,
18305
18506
  "photoEmpty": 12,
18306
18507
  "geoPointEmpty": 4,
18307
18508
  "inputNotifyUsers": 4,
@@ -18340,6 +18541,7 @@ var m = {
18340
18541
  "inputMessagesFilterGeo": 4,
18341
18542
  "inputMessagesFilterContacts": 4,
18342
18543
  "inputMessagesFilterPinned": 4,
18544
+ "inputMessagesFilterPoll": 4,
18343
18545
  "updateMessageID": 16,
18344
18546
  "updateEncryptedChatTyping": 8,
18345
18547
  "updateEncryptedMessagesRead": 16,
@@ -18386,6 +18588,8 @@ var m = {
18386
18588
  "updateMonoForumNoPaidException": 28,
18387
18589
  "updatePinnedForumTopic": 24,
18388
18590
  "updateStarGiftCraftFail": 4,
18591
+ "updateManagedBot": 24,
18592
+ "updateAiComposeTones": 4,
18389
18593
  "updates.state": 24,
18390
18594
  "updates.differenceEmpty": 12,
18391
18595
  "updates.differenceTooLong": 8,
@@ -18508,6 +18712,8 @@ var m = {
18508
18712
  "messageEntityCustomEmoji": 20,
18509
18713
  "messageEntityBlockquote": 16,
18510
18714
  "messageEntityFormattedDate": 20,
18715
+ "messageEntityDiffInsert": 12,
18716
+ "messageEntityDiffDelete": 12,
18511
18717
  "inputChannelEmpty": 4,
18512
18718
  "inputChannel": 20,
18513
18719
  "messageRange": 12,
@@ -18540,6 +18746,7 @@ var m = {
18540
18746
  "topPeerCategoryForwardUsers": 4,
18541
18747
  "topPeerCategoryForwardChats": 4,
18542
18748
  "topPeerCategoryBotsApp": 4,
18749
+ "topPeerCategoryBotsGuestChat": 4,
18543
18750
  "contacts.topPeersNotModified": 4,
18544
18751
  "contacts.topPeersDisabled": 4,
18545
18752
  "messages.featuredStickersNotModified": 8,
@@ -18631,6 +18838,7 @@ var m = {
18631
18838
  "baseThemeNight": 4,
18632
18839
  "baseThemeTinted": 4,
18633
18840
  "baseThemeArctic": 4,
18841
+ "webPageAttributeAiComposeTone": 12,
18634
18842
  "dialogFilterDefault": 4,
18635
18843
  "statsDateRangeDays": 12,
18636
18844
  "statsAbsValueAndPrev": 20,
@@ -18783,12 +18991,9 @@ var m = {
18783
18991
  "starGiftAttributeRarityRare": 4,
18784
18992
  "starGiftAttributeRarityEpic": 4,
18785
18993
  "starGiftAttributeRarityLegendary": 4,
18786
- "messageActionManagedBotCreated": 12,
18787
- "inputMessagesFilterPoll": 4,
18788
- "updateManagedBot": 24,
18789
- "messageEntityDiffInsert": 12,
18790
- "messageEntityDiffDelete": 12,
18791
18994
  "inputMessageReadMetric": 32,
18995
+ "inputAiComposeToneID": 20,
18996
+ "aicompose.tonesNotModified": 4,
18792
18997
  "updateChannelPinnedTopic": 20,
18793
18998
  "auth.logOut": 4,
18794
18999
  "auth.resetAuthorizations": 4,
@@ -18952,6 +19157,7 @@ var m = {
18952
19157
  "smsjobs.leave": 4,
18953
19158
  "smsjobs.updateSettings": 8,
18954
19159
  "smsjobs.getStatus": 4,
19160
+ "aicompose.getTones": 12,
18955
19161
  "mt_dh_gen_ok": 52,
18956
19162
  "mt_dh_gen_retry": 52,
18957
19163
  "mt_dh_gen_fail": 52,