@mtcute/core 0.30.2 → 0.31.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/client.cjs +73 -0
- package/client.js +73 -0
- package/highlevel/client.d.cts +344 -114
- package/highlevel/client.d.ts +344 -114
- package/highlevel/methods/auth/sign-in-qr.cjs +2 -0
- package/highlevel/methods/auth/sign-in-qr.js +2 -0
- package/highlevel/methods/auth/sign-in-qr.test.d.cts +1 -0
- package/highlevel/methods/auth/sign-in-qr.test.d.ts +1 -0
- package/highlevel/methods/chats/join-chat.cjs +1 -1
- package/highlevel/methods/chats/join-chat.d.cts +2 -1
- package/highlevel/methods/chats/join-chat.d.ts +2 -1
- package/highlevel/methods/chats/join-chat.js +1 -1
- package/highlevel/methods/chats/transfer-chat-ownership.cjs +6 -17
- package/highlevel/methods/chats/transfer-chat-ownership.js +6 -17
- package/highlevel/methods/communities/ban-community-participant.cjs +30 -0
- package/highlevel/methods/communities/ban-community-participant.d.cts +20 -0
- package/highlevel/methods/communities/ban-community-participant.d.ts +20 -0
- package/highlevel/methods/communities/ban-community-participant.js +25 -0
- package/highlevel/methods/communities/create-community.cjs +29 -0
- package/highlevel/methods/communities/create-community.d.cts +22 -0
- package/highlevel/methods/communities/create-community.d.ts +22 -0
- package/highlevel/methods/communities/create-community.js +24 -0
- package/highlevel/methods/communities/get-community-link-requests.cjs +27 -0
- package/highlevel/methods/communities/get-community-link-requests.d.cts +17 -0
- package/highlevel/methods/communities/get-community-link-requests.d.ts +17 -0
- package/highlevel/methods/communities/get-community-link-requests.js +22 -0
- package/highlevel/methods/communities/get-community-participant-chats.cjs +24 -0
- package/highlevel/methods/communities/get-community-participant-chats.d.cts +17 -0
- package/highlevel/methods/communities/get-community-participant-chats.d.ts +17 -0
- package/highlevel/methods/communities/get-community-participant-chats.js +19 -0
- package/highlevel/methods/communities/get-joined-communities.cjs +21 -0
- package/highlevel/methods/communities/get-joined-communities.d.cts +6 -0
- package/highlevel/methods/communities/get-joined-communities.d.ts +6 -0
- package/highlevel/methods/communities/get-joined-communities.js +16 -0
- package/highlevel/methods/communities/hide-community-link-request.cjs +30 -0
- package/highlevel/methods/communities/hide-community-link-request.d.cts +22 -0
- package/highlevel/methods/communities/hide-community-link-request.d.ts +22 -0
- package/highlevel/methods/communities/hide-community-link-request.js +25 -0
- package/highlevel/methods/communities/link-community-peer.cjs +32 -0
- package/highlevel/methods/communities/link-community-peer.d.cts +22 -0
- package/highlevel/methods/communities/link-community-peer.d.ts +22 -0
- package/highlevel/methods/communities/link-community-peer.js +27 -0
- package/highlevel/methods/communities/toggle-community-collapsed.cjs +18 -0
- package/highlevel/methods/communities/toggle-community-collapsed.d.cts +16 -0
- package/highlevel/methods/communities/toggle-community-collapsed.d.ts +16 -0
- package/highlevel/methods/communities/toggle-community-collapsed.js +13 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.cjs +20 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.d.cts +13 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.d.ts +13 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.js +15 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.cjs +33 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.cts +25 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.ts +25 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.js +28 -0
- package/highlevel/methods/ephemeral/find-in-update.cjs +27 -0
- package/highlevel/methods/ephemeral/find-in-update.d.cts +8 -0
- package/highlevel/methods/ephemeral/find-in-update.d.ts +8 -0
- package/highlevel/methods/ephemeral/find-in-update.js +22 -0
- package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.cjs +31 -0
- package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.d.cts +29 -0
- package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.d.ts +29 -0
- package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.js +26 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.cjs +38 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.cts +29 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.ts +29 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.js +33 -0
- package/highlevel/methods/files/download-iterable.cjs +4 -2
- package/highlevel/methods/files/download-iterable.js +4 -2
- package/highlevel/methods/files/download-iterable.test.d.cts +1 -0
- package/highlevel/methods/files/download-iterable.test.d.ts +1 -0
- package/highlevel/methods/files/download-stream.cjs +5 -6
- package/highlevel/methods/files/download-stream.js +5 -6
- package/highlevel/methods/forums/create-forum-topic.d.cts +7 -0
- package/highlevel/methods/forums/create-forum-topic.d.ts +7 -0
- package/highlevel/methods/forums/delete-forum-topic-history.d.cts +1 -1
- package/highlevel/methods/forums/delete-forum-topic-history.d.ts +1 -1
- package/highlevel/methods/forums/edit-forum-topic.cjs +1 -1
- package/highlevel/methods/forums/edit-forum-topic.d.cts +2 -2
- package/highlevel/methods/forums/edit-forum-topic.d.ts +2 -2
- package/highlevel/methods/forums/edit-forum-topic.js +1 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.cjs +5 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.d.cts +9 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.d.ts +9 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.js +5 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.test.d.cts +1 -0
- package/highlevel/methods/forums/get-forum-topics-by-id.test.d.ts +1 -0
- package/highlevel/methods/forums/get-forum-topics.cjs +1 -1
- package/highlevel/methods/forums/get-forum-topics.js +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.d.cts +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.d.ts +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-pinned.d.cts +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-pinned.d.ts +1 -1
- package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +2 -2
- package/highlevel/methods/forums/toggle-general-topic-hidden.js +3 -3
- package/highlevel/methods/messages/send-common.d.cts +7 -1
- package/highlevel/methods/messages/send-common.d.ts +7 -1
- package/highlevel/methods/messages/send-text.cjs +70 -4
- package/highlevel/methods/messages/send-text.js +70 -4
- package/highlevel/methods/users/resolve-peer.cjs +11 -1
- package/highlevel/methods/users/resolve-peer.js +11 -1
- package/highlevel/methods.d.cts +16 -0
- package/highlevel/methods.d.ts +16 -0
- package/highlevel/storage/service/peers.cjs +25 -0
- package/highlevel/storage/service/peers.js +25 -0
- package/highlevel/storage/service/peers.test.d.cts +1 -0
- package/highlevel/storage/service/peers.test.d.ts +1 -0
- package/highlevel/types/conversation.cjs +8 -0
- package/highlevel/types/conversation.d.cts +1 -0
- package/highlevel/types/conversation.d.ts +1 -0
- package/highlevel/types/conversation.js +10 -2
- package/highlevel/types/conversation.test.d.cts +1 -0
- package/highlevel/types/conversation.test.d.ts +1 -0
- package/highlevel/types/messages/ephemeral-message.cjs +103 -0
- package/highlevel/types/messages/ephemeral-message.d.cts +55 -0
- package/highlevel/types/messages/ephemeral-message.d.ts +55 -0
- package/highlevel/types/messages/ephemeral-message.js +98 -0
- package/highlevel/types/messages/index.d.cts +1 -0
- package/highlevel/types/messages/index.d.ts +1 -0
- package/highlevel/types/messages/message-action.cjs +6 -0
- package/highlevel/types/messages/message-action.d.cts +8 -1
- package/highlevel/types/messages/message-action.d.ts +8 -1
- package/highlevel/types/messages/message-action.js +6 -0
- package/highlevel/types/messages/replied-message.cjs +5 -1
- package/highlevel/types/messages/replied-message.d.cts +5 -1
- package/highlevel/types/messages/replied-message.d.ts +5 -1
- package/highlevel/types/messages/replied-message.js +5 -1
- package/highlevel/types/peers/chat.cjs +23 -3
- package/highlevel/types/peers/chat.d.cts +8 -3
- package/highlevel/types/peers/chat.d.ts +8 -3
- package/highlevel/types/peers/chat.js +24 -4
- package/highlevel/types/peers/community-peer.cjs +60 -0
- package/highlevel/types/peers/community-peer.d.cts +37 -0
- package/highlevel/types/peers/community-peer.d.ts +37 -0
- package/highlevel/types/peers/community-peer.js +55 -0
- package/highlevel/types/peers/full-chat.cjs +20 -5
- package/highlevel/types/peers/full-chat.d.cts +5 -0
- package/highlevel/types/peers/full-chat.d.ts +5 -0
- package/highlevel/types/peers/full-chat.js +20 -5
- package/highlevel/types/peers/index.d.cts +1 -0
- package/highlevel/types/peers/index.d.ts +1 -0
- package/highlevel/types/peers/peer.cjs +2 -0
- package/highlevel/types/peers/peer.js +2 -0
- package/highlevel/types/peers/user.cjs +6 -0
- package/highlevel/types/peers/user.d.cts +2 -0
- package/highlevel/types/peers/user.d.ts +2 -0
- package/highlevel/types/peers/user.js +6 -0
- package/highlevel/types/updates/delete-ephemeral-messages-update.cjs +27 -0
- package/highlevel/types/updates/delete-ephemeral-messages-update.d.cts +15 -0
- package/highlevel/types/updates/delete-ephemeral-messages-update.d.ts +15 -0
- package/highlevel/types/updates/delete-ephemeral-messages-update.js +22 -0
- package/highlevel/types/updates/ephemeral-callback-query.cjs +61 -0
- package/highlevel/types/updates/ephemeral-callback-query.d.cts +38 -0
- package/highlevel/types/updates/ephemeral-callback-query.d.ts +38 -0
- package/highlevel/types/updates/ephemeral-callback-query.js +56 -0
- package/highlevel/types/updates/index.d.cts +16 -2
- package/highlevel/types/updates/index.d.ts +16 -2
- package/highlevel/types/updates/parse-update.cjs +12 -1
- package/highlevel/types/updates/parse-update.js +12 -1
- package/highlevel/updates/manager.cjs +31 -13
- package/highlevel/updates/manager.d.cts +1 -0
- package/highlevel/updates/manager.d.ts +1 -0
- package/highlevel/updates/manager.js +31 -13
- package/highlevel/updates/manager.test.d.cts +1 -0
- package/highlevel/updates/manager.test.d.ts +1 -0
- package/highlevel/utils/stream-utils.cjs +8 -4
- package/highlevel/utils/stream-utils.js +8 -4
- package/highlevel/utils/stream-utils.test.d.cts +1 -0
- package/highlevel/utils/stream-utils.test.d.ts +1 -0
- package/highlevel/utils/walk-page-blocks.cjs +4 -0
- package/highlevel/utils/walk-page-blocks.js +4 -0
- package/index.cjs +10 -0
- package/index.js +11 -1
- package/methods.cjs +27 -0
- package/methods.js +27 -0
- package/network/client.cjs +4 -3
- package/network/client.d.cts +1 -0
- package/network/client.d.ts +1 -0
- package/network/client.js +4 -3
- package/network/middlewares/flood-waiter.cjs +2 -2
- package/network/middlewares/flood-waiter.js +2 -2
- package/network/middlewares/internal-errors.cjs +1 -1
- package/network/middlewares/internal-errors.js +1 -1
- package/network/middlewares/media-throttle.cjs +1 -1
- package/network/middlewares/media-throttle.js +1 -1
- package/network/mtproxy/index.cjs +4 -3
- package/network/mtproxy/index.d.cts +2 -2
- package/network/mtproxy/index.d.ts +2 -2
- package/network/mtproxy/index.js +4 -3
- package/network/network-manager.cjs +44 -16
- package/network/network-manager.d.cts +10 -3
- package/network/network-manager.d.ts +10 -3
- package/network/network-manager.js +45 -17
- package/network/network-manager.test.d.cts +1 -0
- package/network/network-manager.test.d.ts +1 -0
- package/network/persistent-connection.cjs +10 -2
- package/network/persistent-connection.js +10 -2
- package/network/session-connection.cjs +3 -0
- package/network/session-connection.js +3 -0
- package/network/transports/abstract.cjs +16 -0
- package/network/transports/abstract.d.cts +8 -2
- package/network/transports/abstract.d.ts +8 -2
- package/network/transports/abstract.js +17 -1
- package/network/transports/obfuscated.cjs +3 -1
- package/network/transports/obfuscated.js +3 -1
- package/package.json +6 -6
- package/tl/api-schema.json +1 -1
- package/tl/binary/reader.cjs +90 -15
- package/tl/binary/reader.js +90 -15
- package/tl/binary/writer.cjs +385 -80
- package/tl/binary/writer.js +385 -80
- package/tl/compat/reader.cjs +11 -0
- package/tl/compat/reader.js +11 -0
- package/tl/index.d.cts +12380 -4272
- package/tl/index.d.ts +12380 -4272
- package/tl/inner-tl.cjs +70 -20
- package/tl/inner-tl.js +70 -20
- package/tl/raw-errors.json +1 -1
- package/utils/abort-signal.cjs +1 -12
- package/utils/abort-signal.js +1 -12
- package/utils/abort-signal.test.d.cts +1 -0
- package/utils/abort-signal.test.d.ts +1 -0
- package/utils/binary/compat.cjs +14 -0
- package/utils/binary/compat.js +14 -0
- package/utils/early-timer.cjs +3 -11
- package/utils/early-timer.js +3 -11
- package/utils/early-timer.test.d.cts +1 -0
- package/utils/early-timer.test.d.ts +1 -0
- package/utils/function-utils.cjs +9 -4
- package/utils/function-utils.js +9 -4
- package/utils/links/bots.cjs +3 -0
- package/utils/links/bots.js +3 -0
- package/utils/peer-utils.cjs +8 -0
- package/utils/peer-utils.js +8 -0
package/tl/binary/writer.js
CHANGED
|
@@ -491,7 +491,7 @@ var m = {
|
|
|
491
491
|
w.int53(h(v, "id"));
|
|
492
492
|
},
|
|
493
493
|
"user": function(w, v) {
|
|
494
|
-
w.uint(
|
|
494
|
+
w.uint(2981678211);
|
|
495
495
|
var flags = 0;
|
|
496
496
|
var _accessHash = v.accessHash !== void 0;
|
|
497
497
|
if (_accessHash) flags |= 1;
|
|
@@ -563,6 +563,8 @@ var m = {
|
|
|
563
563
|
if (v.botCanManageBots === true) flags2 |= 262144;
|
|
564
564
|
if (v.botGuestchat === true) flags2 |= 524288;
|
|
565
565
|
if (v.botGuard === true) flags2 |= 1048576;
|
|
566
|
+
var _linkedCommunityId = v.linkedCommunityId !== void 0;
|
|
567
|
+
if (_linkedCommunityId) flags2 |= 2097152;
|
|
566
568
|
w.uint(flags2);
|
|
567
569
|
w.int53(h(v, "id"));
|
|
568
570
|
if (_accessHash) w.long(v.accessHash);
|
|
@@ -584,6 +586,7 @@ var m = {
|
|
|
584
586
|
if (_botActiveUsers) w.int(v.botActiveUsers);
|
|
585
587
|
if (_botVerificationIcon) w.long(v.botVerificationIcon);
|
|
586
588
|
if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
|
|
589
|
+
if (_linkedCommunityId) w.int53(v.linkedCommunityId);
|
|
587
590
|
},
|
|
588
591
|
"userProfilePhotoEmpty": function(w) {
|
|
589
592
|
w.uint(1326562017);
|
|
@@ -665,7 +668,7 @@ var m = {
|
|
|
665
668
|
w.string(h(v, "title"));
|
|
666
669
|
},
|
|
667
670
|
"channel": function(w, v) {
|
|
668
|
-
w.uint(
|
|
671
|
+
w.uint(3567203526);
|
|
669
672
|
var flags = 0;
|
|
670
673
|
if (v.creator === true) flags |= 1;
|
|
671
674
|
if (v.left === true) flags |= 4;
|
|
@@ -731,6 +734,8 @@ var m = {
|
|
|
731
734
|
var _linkedMonoforumId = v.linkedMonoforumId !== void 0;
|
|
732
735
|
if (_linkedMonoforumId) flags2 |= 262144;
|
|
733
736
|
if (v.forumTabs === true) flags2 |= 524288;
|
|
737
|
+
var _linkedCommunityId = v.linkedCommunityId !== void 0;
|
|
738
|
+
if (_linkedCommunityId) flags2 |= 1048576;
|
|
734
739
|
w.uint(flags2);
|
|
735
740
|
w.int53(h(v, "id"));
|
|
736
741
|
if (_accessHash) w.long(v.accessHash);
|
|
@@ -753,6 +758,7 @@ var m = {
|
|
|
753
758
|
if (_botVerificationIcon) w.long(v.botVerificationIcon);
|
|
754
759
|
if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
|
|
755
760
|
if (_linkedMonoforumId) w.int53(v.linkedMonoforumId);
|
|
761
|
+
if (_linkedCommunityId) w.int53(v.linkedCommunityId);
|
|
756
762
|
},
|
|
757
763
|
"channelForbidden": function(w, v) {
|
|
758
764
|
w.uint(399807445);
|
|
@@ -768,6 +774,40 @@ var m = {
|
|
|
768
774
|
w.string(h(v, "title"));
|
|
769
775
|
if (_untilDate) w.int(v.untilDate);
|
|
770
776
|
},
|
|
777
|
+
"communityForbidden": function(w, v) {
|
|
778
|
+
w.uint(4248623800);
|
|
779
|
+
var flags = 0;
|
|
780
|
+
var _accessHash = v.accessHash !== void 0;
|
|
781
|
+
if (_accessHash) flags |= 8192;
|
|
782
|
+
w.uint(flags);
|
|
783
|
+
w.int53(h(v, "id"));
|
|
784
|
+
if (_accessHash) w.long(v.accessHash);
|
|
785
|
+
w.string(h(v, "title"));
|
|
786
|
+
},
|
|
787
|
+
"community": function(w, v) {
|
|
788
|
+
w.uint(1710221652);
|
|
789
|
+
var flags = 0;
|
|
790
|
+
if (v.creator === true) flags |= 1;
|
|
791
|
+
if (v.left === true) flags |= 4;
|
|
792
|
+
if (v.min === true) flags |= 4096;
|
|
793
|
+
var _accessHash = v.accessHash !== void 0;
|
|
794
|
+
if (_accessHash) flags |= 8192;
|
|
795
|
+
var _adminRights = v.adminRights !== void 0;
|
|
796
|
+
if (_adminRights) flags |= 16384;
|
|
797
|
+
var _defaultBannedRights = v.defaultBannedRights !== void 0;
|
|
798
|
+
if (_defaultBannedRights) flags |= 262144;
|
|
799
|
+
w.uint(flags);
|
|
800
|
+
var flags2 = 0;
|
|
801
|
+
if (v.collapsedInDialogs === true) flags2 |= 1048576;
|
|
802
|
+
w.uint(flags2);
|
|
803
|
+
w.int53(h(v, "id"));
|
|
804
|
+
if (_accessHash) w.long(v.accessHash);
|
|
805
|
+
w.string(h(v, "title"));
|
|
806
|
+
w.object(h(v, "photo"));
|
|
807
|
+
w.int(h(v, "date"));
|
|
808
|
+
if (_adminRights) w.object(v.adminRights);
|
|
809
|
+
if (_defaultBannedRights) w.object(v.defaultBannedRights);
|
|
810
|
+
},
|
|
771
811
|
"chatFull": function(w, v) {
|
|
772
812
|
w.uint(640893467);
|
|
773
813
|
var flags = 0;
|
|
@@ -967,6 +1007,24 @@ var m = {
|
|
|
967
1007
|
if (_mainTab) w.object(v.mainTab);
|
|
968
1008
|
if (_guardBotId) w.int53(v.guardBotId);
|
|
969
1009
|
},
|
|
1010
|
+
"communityFull": function(w, v) {
|
|
1011
|
+
w.uint(3417810183);
|
|
1012
|
+
var flags = 0;
|
|
1013
|
+
var _peerLinkRequestsPending = v.peerLinkRequestsPending !== void 0;
|
|
1014
|
+
if (_peerLinkRequestsPending) flags |= 1;
|
|
1015
|
+
var _adminsCount = v.adminsCount !== void 0;
|
|
1016
|
+
if (_adminsCount) flags |= 2;
|
|
1017
|
+
var _kickedCount = v.kickedCount !== void 0;
|
|
1018
|
+
if (_kickedCount) flags |= 4;
|
|
1019
|
+
w.uint(flags);
|
|
1020
|
+
w.int53(h(v, "id"));
|
|
1021
|
+
w.string(h(v, "about"));
|
|
1022
|
+
w.object(h(v, "chatPhoto"));
|
|
1023
|
+
w.vector(w.object, h(v, "linkedPeers"));
|
|
1024
|
+
if (_adminsCount) w.int(v.adminsCount);
|
|
1025
|
+
if (_kickedCount) w.int(v.kickedCount);
|
|
1026
|
+
if (_peerLinkRequestsPending) w.int(v.peerLinkRequestsPending);
|
|
1027
|
+
},
|
|
970
1028
|
"chatParticipant": function(w, v) {
|
|
971
1029
|
w.uint(954703838);
|
|
972
1030
|
var flags = 0;
|
|
@@ -1957,6 +2015,14 @@ var m = {
|
|
|
1957
2015
|
w.uint(375414334);
|
|
1958
2016
|
w.int53(h(v, "botId"));
|
|
1959
2017
|
},
|
|
2018
|
+
"messageActionChangeCommunity": function(w, v) {
|
|
2019
|
+
w.uint(1562426088);
|
|
2020
|
+
var flags = 0;
|
|
2021
|
+
var _communityId = v.communityId !== void 0;
|
|
2022
|
+
if (_communityId) flags |= 1;
|
|
2023
|
+
w.uint(flags);
|
|
2024
|
+
if (_communityId) w.int53(v.communityId);
|
|
2025
|
+
},
|
|
1960
2026
|
"dialog": function(w, v) {
|
|
1961
2027
|
w.uint(4236900339);
|
|
1962
2028
|
var flags = 0;
|
|
@@ -1999,6 +2065,14 @@ var m = {
|
|
|
1999
2065
|
w.int(h(v, "unreadMutedMessagesCount"));
|
|
2000
2066
|
w.int(h(v, "unreadUnmutedMessagesCount"));
|
|
2001
2067
|
},
|
|
2068
|
+
"dialogCommunity": function(w, v) {
|
|
2069
|
+
w.uint(4153018739);
|
|
2070
|
+
var flags = 0;
|
|
2071
|
+
if (v.pinned === true) flags |= 4;
|
|
2072
|
+
w.uint(flags);
|
|
2073
|
+
w.int53(h(v, "communityId"));
|
|
2074
|
+
w.object(h(v, "notifySettings"));
|
|
2075
|
+
},
|
|
2002
2076
|
"photoEmpty": function(w, v) {
|
|
2003
2077
|
w.uint(590459437);
|
|
2004
2078
|
w.long(h(v, "id"));
|
|
@@ -2141,6 +2215,10 @@ var m = {
|
|
|
2141
2215
|
w.object(h(v, "peer"));
|
|
2142
2216
|
w.int(h(v, "topMsgId"));
|
|
2143
2217
|
},
|
|
2218
|
+
"inputNotifyCommunity": function(w, v) {
|
|
2219
|
+
w.uint(666573532);
|
|
2220
|
+
w.object(h(v, "community"));
|
|
2221
|
+
},
|
|
2144
2222
|
"inputPeerNotifySettings": function(w, v) {
|
|
2145
2223
|
w.uint(3402328802);
|
|
2146
2224
|
var flags = 0;
|
|
@@ -3750,6 +3828,39 @@ var m = {
|
|
|
3750
3828
|
if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
|
|
3751
3829
|
w.object(h(v, "exception"));
|
|
3752
3830
|
},
|
|
3831
|
+
"updateNewEphemeralMessage": function(w, v) {
|
|
3832
|
+
w.uint(549239713);
|
|
3833
|
+
w.object(h(v, "message"));
|
|
3834
|
+
},
|
|
3835
|
+
"updateDeleteEphemeralMessages": function(w, v) {
|
|
3836
|
+
w.uint(1457257720);
|
|
3837
|
+
w.object(h(v, "peer"));
|
|
3838
|
+
w.vector(w.int, h(v, "ids"));
|
|
3839
|
+
},
|
|
3840
|
+
"updateEditEphemeralMessage": function(w, v) {
|
|
3841
|
+
w.uint(1270583041);
|
|
3842
|
+
w.object(h(v, "message"));
|
|
3843
|
+
},
|
|
3844
|
+
"updateEphemeralBotCallbackQuery": function(w, v) {
|
|
3845
|
+
w.uint(2604140386);
|
|
3846
|
+
w.long(h(v, "queryId"));
|
|
3847
|
+
w.int53(h(v, "userId"));
|
|
3848
|
+
w.object(h(v, "peer"));
|
|
3849
|
+
w.int(h(v, "msgId"));
|
|
3850
|
+
w.bytes(h(v, "data"));
|
|
3851
|
+
w.object(h(v, "message"));
|
|
3852
|
+
},
|
|
3853
|
+
"updateBotStarsSubscription": function(w, v) {
|
|
3854
|
+
w.uint(1812827683);
|
|
3855
|
+
var flags = 0;
|
|
3856
|
+
if (v.canceled === true) flags |= 1;
|
|
3857
|
+
if (v.paymentFailed === true) flags |= 2;
|
|
3858
|
+
if (v.restored === true) flags |= 4;
|
|
3859
|
+
w.uint(flags);
|
|
3860
|
+
w.int53(h(v, "userId"));
|
|
3861
|
+
w.bytes(h(v, "payload"));
|
|
3862
|
+
w.int(h(v, "qts"));
|
|
3863
|
+
},
|
|
3753
3864
|
"updates.state": function(w, v) {
|
|
3754
3865
|
w.uint(2775329342);
|
|
3755
3866
|
w.int(h(v, "pts"));
|
|
@@ -4212,6 +4323,10 @@ var m = {
|
|
|
4212
4323
|
w.object(h(v, "peer"));
|
|
4213
4324
|
w.int(h(v, "topMsgId"));
|
|
4214
4325
|
},
|
|
4326
|
+
"notifyCommunity": function(w, v) {
|
|
4327
|
+
w.uint(3191302553);
|
|
4328
|
+
w.int53(h(v, "communityId"));
|
|
4329
|
+
},
|
|
4215
4330
|
"sendMessageTypingAction": function(w) {
|
|
4216
4331
|
w.uint(381645902);
|
|
4217
4332
|
},
|
|
@@ -4909,7 +5024,10 @@ var m = {
|
|
|
4909
5024
|
w.uint(3556320491);
|
|
4910
5025
|
},
|
|
4911
5026
|
"botCommand": function(w, v) {
|
|
4912
|
-
w.uint(
|
|
5027
|
+
w.uint(2555565778);
|
|
5028
|
+
var flags = 0;
|
|
5029
|
+
if (v.ephemeral === true) flags |= 1;
|
|
5030
|
+
w.uint(flags);
|
|
4913
5031
|
w.string(h(v, "command"));
|
|
4914
5032
|
w.string(h(v, "description"));
|
|
4915
5033
|
},
|
|
@@ -6408,6 +6526,11 @@ var m = {
|
|
|
6408
6526
|
w.object(h(v, "text"));
|
|
6409
6527
|
w.int(h(v, "date"));
|
|
6410
6528
|
},
|
|
6529
|
+
"textDiff": function(w, v) {
|
|
6530
|
+
w.uint(2525416272);
|
|
6531
|
+
w.object(h(v, "text"));
|
|
6532
|
+
w.object(h(v, "oldText"));
|
|
6533
|
+
},
|
|
6411
6534
|
"pageBlockUnsupported": function(w) {
|
|
6412
6535
|
w.uint(324435594);
|
|
6413
6536
|
},
|
|
@@ -7528,6 +7651,10 @@ var m = {
|
|
|
7528
7651
|
w.uint(1684014375);
|
|
7529
7652
|
w.int(h(v, "folderId"));
|
|
7530
7653
|
},
|
|
7654
|
+
"inputDialogPeerCommunity": function(w, v) {
|
|
7655
|
+
w.uint(1777300164);
|
|
7656
|
+
w.object(h(v, "community"));
|
|
7657
|
+
},
|
|
7531
7658
|
"dialogPeer": function(w, v) {
|
|
7532
7659
|
w.uint(3849174789);
|
|
7533
7660
|
w.object(h(v, "peer"));
|
|
@@ -7536,6 +7663,10 @@ var m = {
|
|
|
7536
7663
|
w.uint(1363483106);
|
|
7537
7664
|
w.int(h(v, "folderId"));
|
|
7538
7665
|
},
|
|
7666
|
+
"dialogPeerCommunity": function(w, v) {
|
|
7667
|
+
w.uint(795199716);
|
|
7668
|
+
w.int53(h(v, "communityId"));
|
|
7669
|
+
},
|
|
7539
7670
|
"messages.foundStickerSetsNotModified": function(w) {
|
|
7540
7671
|
w.uint(223655517);
|
|
7541
7672
|
},
|
|
@@ -8147,6 +8278,7 @@ var m = {
|
|
|
8147
8278
|
if (v.deleteStories === true) flags |= 65536;
|
|
8148
8279
|
if (v.manageDirectMessages === true) flags |= 131072;
|
|
8149
8280
|
if (v.manageRanks === true) flags |= 262144;
|
|
8281
|
+
if (v.manageLinkedPeers === true) flags |= 524288;
|
|
8150
8282
|
w.uint(flags);
|
|
8151
8283
|
},
|
|
8152
8284
|
"chatBannedRights": function(w, v) {
|
|
@@ -8174,6 +8306,7 @@ var m = {
|
|
|
8174
8306
|
if (v.sendPlain === true) flags |= 33554432;
|
|
8175
8307
|
if (v.editRank === true) flags |= 67108864;
|
|
8176
8308
|
if (v.sendReactions === true) flags |= 134217728;
|
|
8309
|
+
if (v.manageLinkedPeers === true) flags |= 268435456;
|
|
8177
8310
|
w.uint(flags);
|
|
8178
8311
|
w.int(h(v, "untilDate"));
|
|
8179
8312
|
},
|
|
@@ -10473,6 +10606,10 @@ var m = {
|
|
|
10473
10606
|
w.uint(1775660101);
|
|
10474
10607
|
w.object(h(v, "monoforumPeerId"));
|
|
10475
10608
|
},
|
|
10609
|
+
"inputReplyToEphemeralMessage": function(w, v) {
|
|
10610
|
+
w.uint(1092204894);
|
|
10611
|
+
w.int(h(v, "id"));
|
|
10612
|
+
},
|
|
10476
10613
|
"exportedStoryLink": function(w, v) {
|
|
10477
10614
|
w.uint(1070138683);
|
|
10478
10615
|
w.string(h(v, "link"));
|
|
@@ -12806,6 +12943,10 @@ var m = {
|
|
|
12806
12943
|
w.uint(530584407);
|
|
12807
12944
|
w.string(h(v, "slug"));
|
|
12808
12945
|
},
|
|
12946
|
+
"inputAiComposeToneSingleUse": function(w, v) {
|
|
12947
|
+
w.uint(235681199);
|
|
12948
|
+
w.string(h(v, "customPrompt"));
|
|
12949
|
+
},
|
|
12809
12950
|
"aiComposeTone": function(w, v) {
|
|
12810
12951
|
w.uint(3489021609);
|
|
12811
12952
|
var flags = 0;
|
|
@@ -12865,9 +13006,9 @@ var m = {
|
|
|
12865
13006
|
w.object(h(v, "updates"));
|
|
12866
13007
|
},
|
|
12867
13008
|
"messages.chatInviteJoinResultWebView": function(w, v) {
|
|
12868
|
-
w.uint(
|
|
13009
|
+
w.uint(1640638931);
|
|
12869
13010
|
w.int53(h(v, "botId"));
|
|
12870
|
-
w.
|
|
13011
|
+
w.long(h(v, "queryId"));
|
|
12871
13012
|
w.vector(w.object, h(v, "users"));
|
|
12872
13013
|
},
|
|
12873
13014
|
"joinChatBotResultApproved": function(w) {
|
|
@@ -12966,22 +13107,78 @@ var m = {
|
|
|
12966
13107
|
w.vector(w.object, h(v, "photos"));
|
|
12967
13108
|
w.vector(w.object, h(v, "documents"));
|
|
12968
13109
|
},
|
|
12969
|
-
"
|
|
12970
|
-
w.uint(
|
|
13110
|
+
"communityPeer": function(w, v) {
|
|
13111
|
+
w.uint(1981030077);
|
|
12971
13112
|
var flags = 0;
|
|
12972
|
-
|
|
13113
|
+
var _visible = v.visible !== void 0;
|
|
13114
|
+
if (_visible) flags |= 1;
|
|
13115
|
+
if (v.canViewHistory === true) flags |= 4;
|
|
12973
13116
|
w.uint(flags);
|
|
12974
|
-
w.
|
|
12975
|
-
w.
|
|
13117
|
+
if (_visible) w.boolean(v.visible);
|
|
13118
|
+
w.object(h(v, "peer"));
|
|
12976
13119
|
},
|
|
12977
|
-
"
|
|
12978
|
-
w.uint(
|
|
13120
|
+
"communityPeerRequest": function(w, v) {
|
|
13121
|
+
w.uint(2078997125);
|
|
12979
13122
|
var flags = 0;
|
|
12980
|
-
|
|
12981
|
-
if (_order) flags |= 1;
|
|
13123
|
+
if (v.visible === true) flags |= 1;
|
|
12982
13124
|
w.uint(flags);
|
|
12983
|
-
w.
|
|
12984
|
-
|
|
13125
|
+
w.object(h(v, "peer"));
|
|
13126
|
+
w.int53(h(v, "requestedBy"));
|
|
13127
|
+
w.int(h(v, "date"));
|
|
13128
|
+
},
|
|
13129
|
+
"communities.peerLinkRequests": function(w, v) {
|
|
13130
|
+
w.uint(574926765);
|
|
13131
|
+
var flags = 0;
|
|
13132
|
+
var _nextOffset = v.nextOffset !== void 0;
|
|
13133
|
+
if (_nextOffset) flags |= 1;
|
|
13134
|
+
w.uint(flags);
|
|
13135
|
+
w.int(h(v, "totalCount"));
|
|
13136
|
+
w.vector(w.object, h(v, "requests"));
|
|
13137
|
+
if (_nextOffset) w.string(v.nextOffset);
|
|
13138
|
+
w.vector(w.object, h(v, "chats"));
|
|
13139
|
+
w.vector(w.object, h(v, "users"));
|
|
13140
|
+
},
|
|
13141
|
+
"ephemeralMessage": function(w, v) {
|
|
13142
|
+
w.uint(3653688346);
|
|
13143
|
+
var flags = 0;
|
|
13144
|
+
if (v.out === true) flags |= 1;
|
|
13145
|
+
var _topMsgId = v.topMsgId !== void 0;
|
|
13146
|
+
if (_topMsgId) flags |= 2;
|
|
13147
|
+
var _entities = v.entities && v.entities.length;
|
|
13148
|
+
if (_entities) flags |= 4;
|
|
13149
|
+
var _media = v.media !== void 0;
|
|
13150
|
+
if (_media) flags |= 8;
|
|
13151
|
+
var _replyMarkup = v.replyMarkup !== void 0;
|
|
13152
|
+
if (_replyMarkup) flags |= 16;
|
|
13153
|
+
var _replyTo = v.replyTo !== void 0;
|
|
13154
|
+
if (_replyTo) flags |= 64;
|
|
13155
|
+
w.uint(flags);
|
|
13156
|
+
w.int(h(v, "id"));
|
|
13157
|
+
w.object(h(v, "fromId"));
|
|
13158
|
+
w.object(h(v, "peerId"));
|
|
13159
|
+
w.int53(h(v, "receiverId"));
|
|
13160
|
+
if (_topMsgId) w.int(v.topMsgId);
|
|
13161
|
+
w.int(h(v, "date"));
|
|
13162
|
+
w.string(h(v, "message"));
|
|
13163
|
+
if (_entities) w.vector(w.object, v.entities);
|
|
13164
|
+
if (_media) w.object(v.media);
|
|
13165
|
+
if (_replyMarkup) w.object(v.replyMarkup);
|
|
13166
|
+
if (_replyTo) w.object(v.replyTo);
|
|
13167
|
+
},
|
|
13168
|
+
"communities.participantJoinedChats": function(w, v) {
|
|
13169
|
+
w.uint(2373472554);
|
|
13170
|
+
w.vector(w.int53, h(v, "creatorChatIds"));
|
|
13171
|
+
w.vector(w.int53, h(v, "joinedChatIds"));
|
|
13172
|
+
w.vector(w.object, h(v, "chats"));
|
|
13173
|
+
w.vector(w.object, h(v, "users"));
|
|
13174
|
+
},
|
|
13175
|
+
"messages.translatedRichMessage": function(w, v) {
|
|
13176
|
+
w.uint(1107532175);
|
|
13177
|
+
w.vector(w.object, h(v, "result"));
|
|
13178
|
+
},
|
|
13179
|
+
"messages.composedRichMessageWithAI": function(w, v) {
|
|
13180
|
+
w.uint(1279604680);
|
|
13181
|
+
w.object(h(v, "result"));
|
|
12985
13182
|
},
|
|
12986
13183
|
"invokeAfterMsg": function(w, v) {
|
|
12987
13184
|
w.uint(3416209197);
|
|
@@ -14578,15 +14775,18 @@ var m = {
|
|
|
14578
14775
|
w.int53(h(v, "chatId"));
|
|
14579
14776
|
},
|
|
14580
14777
|
"messages.searchGlobal": function(w, v) {
|
|
14581
|
-
w.uint(
|
|
14778
|
+
w.uint(1629922364);
|
|
14582
14779
|
var flags = 0;
|
|
14583
14780
|
var _folderId = v.folderId !== void 0;
|
|
14584
14781
|
if (_folderId) flags |= 1;
|
|
14585
14782
|
if (v.broadcastsOnly === true) flags |= 2;
|
|
14586
14783
|
if (v.groupsOnly === true) flags |= 4;
|
|
14587
14784
|
if (v.usersOnly === true) flags |= 8;
|
|
14785
|
+
var _community = v.community !== void 0;
|
|
14786
|
+
if (_community) flags |= 16;
|
|
14588
14787
|
w.uint(flags);
|
|
14589
14788
|
if (_folderId) w.int(v.folderId);
|
|
14789
|
+
if (_community) w.object(v.community);
|
|
14590
14790
|
w.string(h(v, "q"));
|
|
14591
14791
|
w.object(h(v, "filter"));
|
|
14592
14792
|
w.int(h(v, "minDate"));
|
|
@@ -16290,6 +16490,50 @@ var m = {
|
|
|
16290
16490
|
w.object(h(v, "peer"));
|
|
16291
16491
|
w.int(h(v, "id"));
|
|
16292
16492
|
},
|
|
16493
|
+
"messages.translateRichMessage": function(w, v) {
|
|
16494
|
+
w.uint(441720836);
|
|
16495
|
+
var flags = 0;
|
|
16496
|
+
var _peer = v.peer !== void 0;
|
|
16497
|
+
var _id = v.id && v.id.length;
|
|
16498
|
+
var _flags_0 = _peer || _id;
|
|
16499
|
+
if (_flags_0) flags |= 1;
|
|
16500
|
+
var _text = v.text && v.text.length;
|
|
16501
|
+
if (_text) flags |= 2;
|
|
16502
|
+
var _tone = v.tone !== void 0;
|
|
16503
|
+
if (_tone) flags |= 4;
|
|
16504
|
+
w.uint(flags);
|
|
16505
|
+
if (_flags_0) w.object(v.peer);
|
|
16506
|
+
if (_flags_0) w.vector(w.int, v.id);
|
|
16507
|
+
if (_text) w.vector(w.object, v.text);
|
|
16508
|
+
w.string(h(v, "toLang"));
|
|
16509
|
+
if (_tone) w.string(v.tone);
|
|
16510
|
+
},
|
|
16511
|
+
"messages.composeRichMessageWithAI": function(w, v) {
|
|
16512
|
+
w.uint(2373641903);
|
|
16513
|
+
var flags = 0;
|
|
16514
|
+
if (v.proofread === true) flags |= 1;
|
|
16515
|
+
var _translateToLang = v.translateToLang !== void 0;
|
|
16516
|
+
if (_translateToLang) flags |= 2;
|
|
16517
|
+
var _tone = v.tone !== void 0;
|
|
16518
|
+
if (_tone) flags |= 4;
|
|
16519
|
+
if (v.emojify === true) flags |= 8;
|
|
16520
|
+
var _text = v.text !== void 0;
|
|
16521
|
+
if (_text) flags |= 16;
|
|
16522
|
+
w.uint(flags);
|
|
16523
|
+
if (_text) w.object(v.text);
|
|
16524
|
+
if (_translateToLang) w.string(v.translateToLang);
|
|
16525
|
+
if (_tone) w.object(v.tone);
|
|
16526
|
+
},
|
|
16527
|
+
"messages.requestChatJoinWebView": function(w, v) {
|
|
16528
|
+
w.uint(3130975865);
|
|
16529
|
+
var flags = 0;
|
|
16530
|
+
var _themeParams = v.themeParams !== void 0;
|
|
16531
|
+
if (_themeParams) flags |= 1;
|
|
16532
|
+
w.uint(flags);
|
|
16533
|
+
w.long(h(v, "queryId"));
|
|
16534
|
+
if (_themeParams) w.object(v.themeParams);
|
|
16535
|
+
w.string(h(v, "platform"));
|
|
16536
|
+
},
|
|
16293
16537
|
"updates.getState": function(w) {
|
|
16294
16538
|
w.uint(3990128682);
|
|
16295
16539
|
},
|
|
@@ -16661,6 +16905,7 @@ var m = {
|
|
|
16661
16905
|
if (v.byLocation === true) flags |= 1;
|
|
16662
16906
|
if (v.checkLimit === true) flags |= 2;
|
|
16663
16907
|
if (v.forPersonal === true) flags |= 4;
|
|
16908
|
+
if (v.forCommunityPeer === true) flags |= 8;
|
|
16664
16909
|
w.uint(flags);
|
|
16665
16910
|
},
|
|
16666
16911
|
"channels.editBanned": function(w, v) {
|
|
@@ -18530,84 +18775,140 @@ var m = {
|
|
|
18530
18775
|
w.object(h(v, "tone"));
|
|
18531
18776
|
w.int(h(v, "num"));
|
|
18532
18777
|
},
|
|
18533
|
-
"
|
|
18534
|
-
w.uint(
|
|
18535
|
-
w.object(h(v, "channel"));
|
|
18536
|
-
w.object(h(v, "userId"));
|
|
18537
|
-
w.object(h(v, "password"));
|
|
18538
|
-
},
|
|
18539
|
-
"channels.createForumTopic": function(w, v) {
|
|
18540
|
-
w.uint(4094427684);
|
|
18778
|
+
"communities.create": function(w, v) {
|
|
18779
|
+
w.uint(2788710892);
|
|
18541
18780
|
var flags = 0;
|
|
18542
|
-
var
|
|
18543
|
-
if (
|
|
18544
|
-
|
|
18545
|
-
if (_sendAs) flags |= 4;
|
|
18546
|
-
var _iconEmojiId = v.iconEmojiId !== void 0;
|
|
18547
|
-
if (_iconEmojiId) flags |= 8;
|
|
18781
|
+
var _about = v.about !== void 0;
|
|
18782
|
+
if (_about) flags |= 1;
|
|
18783
|
+
if (v.hidden === true) flags |= 2;
|
|
18548
18784
|
w.uint(flags);
|
|
18549
|
-
w.object(h(v, "channel"));
|
|
18550
18785
|
w.string(h(v, "title"));
|
|
18551
|
-
if (
|
|
18552
|
-
|
|
18553
|
-
w.long(h(v, "randomId"));
|
|
18554
|
-
if (_sendAs) w.object(v.sendAs);
|
|
18786
|
+
if (_about) w.string(v.about);
|
|
18787
|
+
w.object(h(v, "peer"));
|
|
18555
18788
|
},
|
|
18556
|
-
"
|
|
18557
|
-
w.uint(
|
|
18789
|
+
"communities.togglePeerLink": function(w, v) {
|
|
18790
|
+
w.uint(1936576490);
|
|
18558
18791
|
var flags = 0;
|
|
18559
|
-
|
|
18560
|
-
if (
|
|
18792
|
+
if (v.visible === true) flags |= 1;
|
|
18793
|
+
if (v.hidden === true) flags |= 2;
|
|
18794
|
+
if (v.deleted === true) flags |= 4;
|
|
18561
18795
|
w.uint(flags);
|
|
18562
|
-
w.object(h(v, "
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18566
|
-
w.
|
|
18796
|
+
w.object(h(v, "community"));
|
|
18797
|
+
w.object(h(v, "peer"));
|
|
18798
|
+
},
|
|
18799
|
+
"communities.getJoinedCommunities": function(w) {
|
|
18800
|
+
w.uint(2791565360);
|
|
18801
|
+
},
|
|
18802
|
+
"communities.toggleCommunityCollapsedInDialogs": function(w, v) {
|
|
18803
|
+
w.uint(3613844458);
|
|
18804
|
+
var flags = 0;
|
|
18805
|
+
if (v.collapsed === true) flags |= 1;
|
|
18806
|
+
w.uint(flags);
|
|
18807
|
+
w.object(h(v, "community"));
|
|
18808
|
+
},
|
|
18809
|
+
"communities.getPeerLinkRequests": function(w, v) {
|
|
18810
|
+
w.uint(2474062660);
|
|
18811
|
+
w.object(h(v, "community"));
|
|
18812
|
+
w.string(h(v, "offset"));
|
|
18567
18813
|
w.int(h(v, "limit"));
|
|
18568
18814
|
},
|
|
18569
|
-
"
|
|
18570
|
-
w.uint(
|
|
18571
|
-
|
|
18572
|
-
|
|
18815
|
+
"communities.togglePeerLinkRequestApproval": function(w, v) {
|
|
18816
|
+
w.uint(2357336488);
|
|
18817
|
+
var flags = 0;
|
|
18818
|
+
if (v.reject === true) flags |= 1;
|
|
18819
|
+
w.uint(flags);
|
|
18820
|
+
w.object(h(v, "community"));
|
|
18821
|
+
w.object(h(v, "peer"));
|
|
18573
18822
|
},
|
|
18574
|
-
"
|
|
18575
|
-
w.uint(
|
|
18823
|
+
"communities.toggleAllPeerLinkRequestApproval": function(w, v) {
|
|
18824
|
+
w.uint(3219381565);
|
|
18576
18825
|
var flags = 0;
|
|
18577
|
-
|
|
18578
|
-
if (_title) flags |= 1;
|
|
18579
|
-
var _iconEmojiId = v.iconEmojiId !== void 0;
|
|
18580
|
-
if (_iconEmojiId) flags |= 2;
|
|
18581
|
-
var _closed = v.closed !== void 0;
|
|
18582
|
-
if (_closed) flags |= 4;
|
|
18583
|
-
var _hidden = v.hidden !== void 0;
|
|
18584
|
-
if (_hidden) flags |= 8;
|
|
18826
|
+
if (v.reject === true) flags |= 1;
|
|
18585
18827
|
w.uint(flags);
|
|
18586
|
-
w.object(h(v, "
|
|
18587
|
-
w.int(h(v, "topicId"));
|
|
18588
|
-
if (_title) w.string(v.title);
|
|
18589
|
-
if (_iconEmojiId) w.long(v.iconEmojiId);
|
|
18590
|
-
if (_closed) w.boolean(v.closed);
|
|
18591
|
-
if (_hidden) w.boolean(v.hidden);
|
|
18828
|
+
w.object(h(v, "community"));
|
|
18592
18829
|
},
|
|
18593
|
-
"
|
|
18594
|
-
w.uint(
|
|
18595
|
-
|
|
18596
|
-
|
|
18597
|
-
w.
|
|
18830
|
+
"communities.toggleParticipantBanned": function(w, v) {
|
|
18831
|
+
w.uint(2573708559);
|
|
18832
|
+
var flags = 0;
|
|
18833
|
+
if (v.unban === true) flags |= 1;
|
|
18834
|
+
w.uint(flags);
|
|
18835
|
+
w.object(h(v, "community"));
|
|
18836
|
+
w.object(h(v, "participant"));
|
|
18598
18837
|
},
|
|
18599
|
-
"
|
|
18600
|
-
w.uint(
|
|
18601
|
-
w.object(h(v, "
|
|
18602
|
-
w.
|
|
18838
|
+
"communities.getParticipantJoinedChats": function(w, v) {
|
|
18839
|
+
w.uint(4169051051);
|
|
18840
|
+
w.object(h(v, "community"));
|
|
18841
|
+
w.object(h(v, "participant"));
|
|
18603
18842
|
},
|
|
18604
|
-
"
|
|
18605
|
-
w.uint(
|
|
18843
|
+
"ephemeral.sendMessage": function(w, v) {
|
|
18844
|
+
w.uint(1758187679);
|
|
18606
18845
|
var flags = 0;
|
|
18607
|
-
|
|
18846
|
+
var _queryId = v.queryId !== void 0;
|
|
18847
|
+
if (_queryId) flags |= 1;
|
|
18848
|
+
var _entities = v.entities && v.entities.length;
|
|
18849
|
+
if (_entities) flags |= 2;
|
|
18850
|
+
var _media = v.media !== void 0;
|
|
18851
|
+
if (_media) flags |= 4;
|
|
18852
|
+
var _replyMarkup = v.replyMarkup !== void 0;
|
|
18853
|
+
if (_replyMarkup) flags |= 8;
|
|
18854
|
+
var _richMessage = v.richMessage !== void 0;
|
|
18855
|
+
if (_richMessage) flags |= 16;
|
|
18856
|
+
var _replyTo = v.replyTo !== void 0;
|
|
18857
|
+
if (_replyTo) flags |= 32;
|
|
18608
18858
|
w.uint(flags);
|
|
18609
|
-
w.object(h(v, "
|
|
18610
|
-
w.
|
|
18859
|
+
w.object(h(v, "peer"));
|
|
18860
|
+
w.object(h(v, "receiverId"));
|
|
18861
|
+
if (_queryId) w.long(v.queryId);
|
|
18862
|
+
w.string(h(v, "message"));
|
|
18863
|
+
if (_entities) w.vector(w.object, v.entities);
|
|
18864
|
+
if (_media) w.object(v.media);
|
|
18865
|
+
if (_replyMarkup) w.object(v.replyMarkup);
|
|
18866
|
+
if (_richMessage) w.object(v.richMessage);
|
|
18867
|
+
w.long(h(v, "randomId"));
|
|
18868
|
+
if (_replyTo) w.object(v.replyTo);
|
|
18869
|
+
},
|
|
18870
|
+
"ephemeral.deleteMessage": function(w, v) {
|
|
18871
|
+
w.uint(2747323665);
|
|
18872
|
+
w.object(h(v, "peer"));
|
|
18873
|
+
w.object(h(v, "receiverId"));
|
|
18874
|
+
w.int(h(v, "id"));
|
|
18875
|
+
},
|
|
18876
|
+
"ephemeral.reportMessage": function(w, v) {
|
|
18877
|
+
w.uint(2265248447);
|
|
18878
|
+
w.object(h(v, "peer"));
|
|
18879
|
+
w.int(h(v, "id"));
|
|
18880
|
+
w.bytes(h(v, "option"));
|
|
18881
|
+
w.string(h(v, "message"));
|
|
18882
|
+
},
|
|
18883
|
+
"ephemeral.getCallbackAnswer": function(w, v) {
|
|
18884
|
+
w.uint(1067738312);
|
|
18885
|
+
var flags = 0;
|
|
18886
|
+
var _data = v.data !== void 0;
|
|
18887
|
+
if (_data) flags |= 2;
|
|
18888
|
+
w.uint(flags);
|
|
18889
|
+
w.object(h(v, "peer"));
|
|
18890
|
+
w.int(h(v, "id"));
|
|
18891
|
+
if (_data) w.bytes(v.data);
|
|
18892
|
+
},
|
|
18893
|
+
"ephemeral.editMessage": function(w, v) {
|
|
18894
|
+
w.uint(334647534);
|
|
18895
|
+
var flags = 0;
|
|
18896
|
+
var _message = v.message !== void 0;
|
|
18897
|
+
if (_message) flags |= 1;
|
|
18898
|
+
var _entities = v.entities && v.entities.length;
|
|
18899
|
+
if (_entities) flags |= 2;
|
|
18900
|
+
var _replyMarkup = v.replyMarkup !== void 0;
|
|
18901
|
+
if (_replyMarkup) flags |= 4;
|
|
18902
|
+
var _media = v.media !== void 0;
|
|
18903
|
+
if (_media) flags |= 8;
|
|
18904
|
+
w.uint(flags);
|
|
18905
|
+
w.object(h(v, "peer"));
|
|
18906
|
+
w.object(h(v, "receiverId"));
|
|
18907
|
+
w.int(h(v, "id"));
|
|
18908
|
+
if (_message) w.string(v.message);
|
|
18909
|
+
if (_media) w.object(v.media);
|
|
18910
|
+
if (_entities) w.vector(w.object, v.entities);
|
|
18911
|
+
if (_replyMarkup) w.object(v.replyMarkup);
|
|
18611
18912
|
},
|
|
18612
18913
|
"mtcute.customMethod": function(w, v) {
|
|
18613
18914
|
w.raw(h(v, "bytes"));
|
|
@@ -19022,6 +19323,7 @@ var m = {
|
|
|
19022
19323
|
"notifyChats": 4,
|
|
19023
19324
|
"notifyBroadcasts": 4,
|
|
19024
19325
|
"notifyForumTopic": 20,
|
|
19326
|
+
"notifyCommunity": 12,
|
|
19025
19327
|
"sendMessageTypingAction": 4,
|
|
19026
19328
|
"sendMessageCancelAction": 4,
|
|
19027
19329
|
"sendMessageRecordVideoAction": 4,
|
|
@@ -19199,6 +19501,7 @@ var m = {
|
|
|
19199
19501
|
"inputDialogPeerFolder": 8,
|
|
19200
19502
|
"dialogPeer": 16,
|
|
19201
19503
|
"dialogPeerFolder": 8,
|
|
19504
|
+
"dialogPeerCommunity": 12,
|
|
19202
19505
|
"messages.foundStickerSetsNotModified": 4,
|
|
19203
19506
|
"help.termsOfServiceUpdateEmpty": 8,
|
|
19204
19507
|
"inputSecureFile": 20,
|
|
@@ -19321,6 +19624,7 @@ var m = {
|
|
|
19321
19624
|
"messagePeerVoteInputOption": 20,
|
|
19322
19625
|
"storyItemDeleted": 8,
|
|
19323
19626
|
"storyItemSkipped": 20,
|
|
19627
|
+
"inputReplyToEphemeralMessage": 8,
|
|
19324
19628
|
"prepaidGiveaway": 24,
|
|
19325
19629
|
"prepaidStarsGiveaway": 32,
|
|
19326
19630
|
"postInteractionCountersMessage": 20,
|
|
@@ -19408,7 +19712,7 @@ var m = {
|
|
|
19408
19712
|
"joinChatBotResultDeclined": 4,
|
|
19409
19713
|
"joinChatBotResultQueued": 4,
|
|
19410
19714
|
"account.webBrowserSettingsNotModified": 4,
|
|
19411
|
-
"
|
|
19715
|
+
"communityPeerRequest": 32,
|
|
19412
19716
|
"auth.logOut": 4,
|
|
19413
19717
|
"auth.resetAuthorizations": 4,
|
|
19414
19718
|
"auth.exportAuthorization": 8,
|
|
@@ -19575,6 +19879,7 @@ var m = {
|
|
|
19575
19879
|
"smsjobs.updateSettings": 8,
|
|
19576
19880
|
"smsjobs.getStatus": 4,
|
|
19577
19881
|
"aicompose.getTones": 12,
|
|
19882
|
+
"communities.getJoinedCommunities": 4,
|
|
19578
19883
|
"mt_dh_gen_ok": 52,
|
|
19579
19884
|
"mt_dh_gen_retry": 52,
|
|
19580
19885
|
"mt_dh_gen_fail": 52,
|