@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.cjs
CHANGED
|
@@ -498,7 +498,7 @@ var m = {
|
|
|
498
498
|
w.int53(h(v, "id"));
|
|
499
499
|
},
|
|
500
500
|
"user": function(w, v) {
|
|
501
|
-
w.uint(
|
|
501
|
+
w.uint(2981678211);
|
|
502
502
|
var flags = 0;
|
|
503
503
|
var _accessHash = v.accessHash !== void 0;
|
|
504
504
|
if (_accessHash) flags |= 1;
|
|
@@ -570,6 +570,8 @@ var m = {
|
|
|
570
570
|
if (v.botCanManageBots === true) flags2 |= 262144;
|
|
571
571
|
if (v.botGuestchat === true) flags2 |= 524288;
|
|
572
572
|
if (v.botGuard === true) flags2 |= 1048576;
|
|
573
|
+
var _linkedCommunityId = v.linkedCommunityId !== void 0;
|
|
574
|
+
if (_linkedCommunityId) flags2 |= 2097152;
|
|
573
575
|
w.uint(flags2);
|
|
574
576
|
w.int53(h(v, "id"));
|
|
575
577
|
if (_accessHash) w.long(v.accessHash);
|
|
@@ -591,6 +593,7 @@ var m = {
|
|
|
591
593
|
if (_botActiveUsers) w.int(v.botActiveUsers);
|
|
592
594
|
if (_botVerificationIcon) w.long(v.botVerificationIcon);
|
|
593
595
|
if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
|
|
596
|
+
if (_linkedCommunityId) w.int53(v.linkedCommunityId);
|
|
594
597
|
},
|
|
595
598
|
"userProfilePhotoEmpty": function(w) {
|
|
596
599
|
w.uint(1326562017);
|
|
@@ -672,7 +675,7 @@ var m = {
|
|
|
672
675
|
w.string(h(v, "title"));
|
|
673
676
|
},
|
|
674
677
|
"channel": function(w, v) {
|
|
675
|
-
w.uint(
|
|
678
|
+
w.uint(3567203526);
|
|
676
679
|
var flags = 0;
|
|
677
680
|
if (v.creator === true) flags |= 1;
|
|
678
681
|
if (v.left === true) flags |= 4;
|
|
@@ -738,6 +741,8 @@ var m = {
|
|
|
738
741
|
var _linkedMonoforumId = v.linkedMonoforumId !== void 0;
|
|
739
742
|
if (_linkedMonoforumId) flags2 |= 262144;
|
|
740
743
|
if (v.forumTabs === true) flags2 |= 524288;
|
|
744
|
+
var _linkedCommunityId = v.linkedCommunityId !== void 0;
|
|
745
|
+
if (_linkedCommunityId) flags2 |= 1048576;
|
|
741
746
|
w.uint(flags2);
|
|
742
747
|
w.int53(h(v, "id"));
|
|
743
748
|
if (_accessHash) w.long(v.accessHash);
|
|
@@ -760,6 +765,7 @@ var m = {
|
|
|
760
765
|
if (_botVerificationIcon) w.long(v.botVerificationIcon);
|
|
761
766
|
if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
|
|
762
767
|
if (_linkedMonoforumId) w.int53(v.linkedMonoforumId);
|
|
768
|
+
if (_linkedCommunityId) w.int53(v.linkedCommunityId);
|
|
763
769
|
},
|
|
764
770
|
"channelForbidden": function(w, v) {
|
|
765
771
|
w.uint(399807445);
|
|
@@ -775,6 +781,40 @@ var m = {
|
|
|
775
781
|
w.string(h(v, "title"));
|
|
776
782
|
if (_untilDate) w.int(v.untilDate);
|
|
777
783
|
},
|
|
784
|
+
"communityForbidden": function(w, v) {
|
|
785
|
+
w.uint(4248623800);
|
|
786
|
+
var flags = 0;
|
|
787
|
+
var _accessHash = v.accessHash !== void 0;
|
|
788
|
+
if (_accessHash) flags |= 8192;
|
|
789
|
+
w.uint(flags);
|
|
790
|
+
w.int53(h(v, "id"));
|
|
791
|
+
if (_accessHash) w.long(v.accessHash);
|
|
792
|
+
w.string(h(v, "title"));
|
|
793
|
+
},
|
|
794
|
+
"community": function(w, v) {
|
|
795
|
+
w.uint(1710221652);
|
|
796
|
+
var flags = 0;
|
|
797
|
+
if (v.creator === true) flags |= 1;
|
|
798
|
+
if (v.left === true) flags |= 4;
|
|
799
|
+
if (v.min === true) flags |= 4096;
|
|
800
|
+
var _accessHash = v.accessHash !== void 0;
|
|
801
|
+
if (_accessHash) flags |= 8192;
|
|
802
|
+
var _adminRights = v.adminRights !== void 0;
|
|
803
|
+
if (_adminRights) flags |= 16384;
|
|
804
|
+
var _defaultBannedRights = v.defaultBannedRights !== void 0;
|
|
805
|
+
if (_defaultBannedRights) flags |= 262144;
|
|
806
|
+
w.uint(flags);
|
|
807
|
+
var flags2 = 0;
|
|
808
|
+
if (v.collapsedInDialogs === true) flags2 |= 1048576;
|
|
809
|
+
w.uint(flags2);
|
|
810
|
+
w.int53(h(v, "id"));
|
|
811
|
+
if (_accessHash) w.long(v.accessHash);
|
|
812
|
+
w.string(h(v, "title"));
|
|
813
|
+
w.object(h(v, "photo"));
|
|
814
|
+
w.int(h(v, "date"));
|
|
815
|
+
if (_adminRights) w.object(v.adminRights);
|
|
816
|
+
if (_defaultBannedRights) w.object(v.defaultBannedRights);
|
|
817
|
+
},
|
|
778
818
|
"chatFull": function(w, v) {
|
|
779
819
|
w.uint(640893467);
|
|
780
820
|
var flags = 0;
|
|
@@ -974,6 +1014,24 @@ var m = {
|
|
|
974
1014
|
if (_mainTab) w.object(v.mainTab);
|
|
975
1015
|
if (_guardBotId) w.int53(v.guardBotId);
|
|
976
1016
|
},
|
|
1017
|
+
"communityFull": function(w, v) {
|
|
1018
|
+
w.uint(3417810183);
|
|
1019
|
+
var flags = 0;
|
|
1020
|
+
var _peerLinkRequestsPending = v.peerLinkRequestsPending !== void 0;
|
|
1021
|
+
if (_peerLinkRequestsPending) flags |= 1;
|
|
1022
|
+
var _adminsCount = v.adminsCount !== void 0;
|
|
1023
|
+
if (_adminsCount) flags |= 2;
|
|
1024
|
+
var _kickedCount = v.kickedCount !== void 0;
|
|
1025
|
+
if (_kickedCount) flags |= 4;
|
|
1026
|
+
w.uint(flags);
|
|
1027
|
+
w.int53(h(v, "id"));
|
|
1028
|
+
w.string(h(v, "about"));
|
|
1029
|
+
w.object(h(v, "chatPhoto"));
|
|
1030
|
+
w.vector(w.object, h(v, "linkedPeers"));
|
|
1031
|
+
if (_adminsCount) w.int(v.adminsCount);
|
|
1032
|
+
if (_kickedCount) w.int(v.kickedCount);
|
|
1033
|
+
if (_peerLinkRequestsPending) w.int(v.peerLinkRequestsPending);
|
|
1034
|
+
},
|
|
977
1035
|
"chatParticipant": function(w, v) {
|
|
978
1036
|
w.uint(954703838);
|
|
979
1037
|
var flags = 0;
|
|
@@ -1964,6 +2022,14 @@ var m = {
|
|
|
1964
2022
|
w.uint(375414334);
|
|
1965
2023
|
w.int53(h(v, "botId"));
|
|
1966
2024
|
},
|
|
2025
|
+
"messageActionChangeCommunity": function(w, v) {
|
|
2026
|
+
w.uint(1562426088);
|
|
2027
|
+
var flags = 0;
|
|
2028
|
+
var _communityId = v.communityId !== void 0;
|
|
2029
|
+
if (_communityId) flags |= 1;
|
|
2030
|
+
w.uint(flags);
|
|
2031
|
+
if (_communityId) w.int53(v.communityId);
|
|
2032
|
+
},
|
|
1967
2033
|
"dialog": function(w, v) {
|
|
1968
2034
|
w.uint(4236900339);
|
|
1969
2035
|
var flags = 0;
|
|
@@ -2006,6 +2072,14 @@ var m = {
|
|
|
2006
2072
|
w.int(h(v, "unreadMutedMessagesCount"));
|
|
2007
2073
|
w.int(h(v, "unreadUnmutedMessagesCount"));
|
|
2008
2074
|
},
|
|
2075
|
+
"dialogCommunity": function(w, v) {
|
|
2076
|
+
w.uint(4153018739);
|
|
2077
|
+
var flags = 0;
|
|
2078
|
+
if (v.pinned === true) flags |= 4;
|
|
2079
|
+
w.uint(flags);
|
|
2080
|
+
w.int53(h(v, "communityId"));
|
|
2081
|
+
w.object(h(v, "notifySettings"));
|
|
2082
|
+
},
|
|
2009
2083
|
"photoEmpty": function(w, v) {
|
|
2010
2084
|
w.uint(590459437);
|
|
2011
2085
|
w.long(h(v, "id"));
|
|
@@ -2148,6 +2222,10 @@ var m = {
|
|
|
2148
2222
|
w.object(h(v, "peer"));
|
|
2149
2223
|
w.int(h(v, "topMsgId"));
|
|
2150
2224
|
},
|
|
2225
|
+
"inputNotifyCommunity": function(w, v) {
|
|
2226
|
+
w.uint(666573532);
|
|
2227
|
+
w.object(h(v, "community"));
|
|
2228
|
+
},
|
|
2151
2229
|
"inputPeerNotifySettings": function(w, v) {
|
|
2152
2230
|
w.uint(3402328802);
|
|
2153
2231
|
var flags = 0;
|
|
@@ -3757,6 +3835,39 @@ var m = {
|
|
|
3757
3835
|
if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
|
|
3758
3836
|
w.object(h(v, "exception"));
|
|
3759
3837
|
},
|
|
3838
|
+
"updateNewEphemeralMessage": function(w, v) {
|
|
3839
|
+
w.uint(549239713);
|
|
3840
|
+
w.object(h(v, "message"));
|
|
3841
|
+
},
|
|
3842
|
+
"updateDeleteEphemeralMessages": function(w, v) {
|
|
3843
|
+
w.uint(1457257720);
|
|
3844
|
+
w.object(h(v, "peer"));
|
|
3845
|
+
w.vector(w.int, h(v, "ids"));
|
|
3846
|
+
},
|
|
3847
|
+
"updateEditEphemeralMessage": function(w, v) {
|
|
3848
|
+
w.uint(1270583041);
|
|
3849
|
+
w.object(h(v, "message"));
|
|
3850
|
+
},
|
|
3851
|
+
"updateEphemeralBotCallbackQuery": function(w, v) {
|
|
3852
|
+
w.uint(2604140386);
|
|
3853
|
+
w.long(h(v, "queryId"));
|
|
3854
|
+
w.int53(h(v, "userId"));
|
|
3855
|
+
w.object(h(v, "peer"));
|
|
3856
|
+
w.int(h(v, "msgId"));
|
|
3857
|
+
w.bytes(h(v, "data"));
|
|
3858
|
+
w.object(h(v, "message"));
|
|
3859
|
+
},
|
|
3860
|
+
"updateBotStarsSubscription": function(w, v) {
|
|
3861
|
+
w.uint(1812827683);
|
|
3862
|
+
var flags = 0;
|
|
3863
|
+
if (v.canceled === true) flags |= 1;
|
|
3864
|
+
if (v.paymentFailed === true) flags |= 2;
|
|
3865
|
+
if (v.restored === true) flags |= 4;
|
|
3866
|
+
w.uint(flags);
|
|
3867
|
+
w.int53(h(v, "userId"));
|
|
3868
|
+
w.bytes(h(v, "payload"));
|
|
3869
|
+
w.int(h(v, "qts"));
|
|
3870
|
+
},
|
|
3760
3871
|
"updates.state": function(w, v) {
|
|
3761
3872
|
w.uint(2775329342);
|
|
3762
3873
|
w.int(h(v, "pts"));
|
|
@@ -4219,6 +4330,10 @@ var m = {
|
|
|
4219
4330
|
w.object(h(v, "peer"));
|
|
4220
4331
|
w.int(h(v, "topMsgId"));
|
|
4221
4332
|
},
|
|
4333
|
+
"notifyCommunity": function(w, v) {
|
|
4334
|
+
w.uint(3191302553);
|
|
4335
|
+
w.int53(h(v, "communityId"));
|
|
4336
|
+
},
|
|
4222
4337
|
"sendMessageTypingAction": function(w) {
|
|
4223
4338
|
w.uint(381645902);
|
|
4224
4339
|
},
|
|
@@ -4916,7 +5031,10 @@ var m = {
|
|
|
4916
5031
|
w.uint(3556320491);
|
|
4917
5032
|
},
|
|
4918
5033
|
"botCommand": function(w, v) {
|
|
4919
|
-
w.uint(
|
|
5034
|
+
w.uint(2555565778);
|
|
5035
|
+
var flags = 0;
|
|
5036
|
+
if (v.ephemeral === true) flags |= 1;
|
|
5037
|
+
w.uint(flags);
|
|
4920
5038
|
w.string(h(v, "command"));
|
|
4921
5039
|
w.string(h(v, "description"));
|
|
4922
5040
|
},
|
|
@@ -6415,6 +6533,11 @@ var m = {
|
|
|
6415
6533
|
w.object(h(v, "text"));
|
|
6416
6534
|
w.int(h(v, "date"));
|
|
6417
6535
|
},
|
|
6536
|
+
"textDiff": function(w, v) {
|
|
6537
|
+
w.uint(2525416272);
|
|
6538
|
+
w.object(h(v, "text"));
|
|
6539
|
+
w.object(h(v, "oldText"));
|
|
6540
|
+
},
|
|
6418
6541
|
"pageBlockUnsupported": function(w) {
|
|
6419
6542
|
w.uint(324435594);
|
|
6420
6543
|
},
|
|
@@ -7535,6 +7658,10 @@ var m = {
|
|
|
7535
7658
|
w.uint(1684014375);
|
|
7536
7659
|
w.int(h(v, "folderId"));
|
|
7537
7660
|
},
|
|
7661
|
+
"inputDialogPeerCommunity": function(w, v) {
|
|
7662
|
+
w.uint(1777300164);
|
|
7663
|
+
w.object(h(v, "community"));
|
|
7664
|
+
},
|
|
7538
7665
|
"dialogPeer": function(w, v) {
|
|
7539
7666
|
w.uint(3849174789);
|
|
7540
7667
|
w.object(h(v, "peer"));
|
|
@@ -7543,6 +7670,10 @@ var m = {
|
|
|
7543
7670
|
w.uint(1363483106);
|
|
7544
7671
|
w.int(h(v, "folderId"));
|
|
7545
7672
|
},
|
|
7673
|
+
"dialogPeerCommunity": function(w, v) {
|
|
7674
|
+
w.uint(795199716);
|
|
7675
|
+
w.int53(h(v, "communityId"));
|
|
7676
|
+
},
|
|
7546
7677
|
"messages.foundStickerSetsNotModified": function(w) {
|
|
7547
7678
|
w.uint(223655517);
|
|
7548
7679
|
},
|
|
@@ -8154,6 +8285,7 @@ var m = {
|
|
|
8154
8285
|
if (v.deleteStories === true) flags |= 65536;
|
|
8155
8286
|
if (v.manageDirectMessages === true) flags |= 131072;
|
|
8156
8287
|
if (v.manageRanks === true) flags |= 262144;
|
|
8288
|
+
if (v.manageLinkedPeers === true) flags |= 524288;
|
|
8157
8289
|
w.uint(flags);
|
|
8158
8290
|
},
|
|
8159
8291
|
"chatBannedRights": function(w, v) {
|
|
@@ -8181,6 +8313,7 @@ var m = {
|
|
|
8181
8313
|
if (v.sendPlain === true) flags |= 33554432;
|
|
8182
8314
|
if (v.editRank === true) flags |= 67108864;
|
|
8183
8315
|
if (v.sendReactions === true) flags |= 134217728;
|
|
8316
|
+
if (v.manageLinkedPeers === true) flags |= 268435456;
|
|
8184
8317
|
w.uint(flags);
|
|
8185
8318
|
w.int(h(v, "untilDate"));
|
|
8186
8319
|
},
|
|
@@ -10480,6 +10613,10 @@ var m = {
|
|
|
10480
10613
|
w.uint(1775660101);
|
|
10481
10614
|
w.object(h(v, "monoforumPeerId"));
|
|
10482
10615
|
},
|
|
10616
|
+
"inputReplyToEphemeralMessage": function(w, v) {
|
|
10617
|
+
w.uint(1092204894);
|
|
10618
|
+
w.int(h(v, "id"));
|
|
10619
|
+
},
|
|
10483
10620
|
"exportedStoryLink": function(w, v) {
|
|
10484
10621
|
w.uint(1070138683);
|
|
10485
10622
|
w.string(h(v, "link"));
|
|
@@ -12813,6 +12950,10 @@ var m = {
|
|
|
12813
12950
|
w.uint(530584407);
|
|
12814
12951
|
w.string(h(v, "slug"));
|
|
12815
12952
|
},
|
|
12953
|
+
"inputAiComposeToneSingleUse": function(w, v) {
|
|
12954
|
+
w.uint(235681199);
|
|
12955
|
+
w.string(h(v, "customPrompt"));
|
|
12956
|
+
},
|
|
12816
12957
|
"aiComposeTone": function(w, v) {
|
|
12817
12958
|
w.uint(3489021609);
|
|
12818
12959
|
var flags = 0;
|
|
@@ -12872,9 +13013,9 @@ var m = {
|
|
|
12872
13013
|
w.object(h(v, "updates"));
|
|
12873
13014
|
},
|
|
12874
13015
|
"messages.chatInviteJoinResultWebView": function(w, v) {
|
|
12875
|
-
w.uint(
|
|
13016
|
+
w.uint(1640638931);
|
|
12876
13017
|
w.int53(h(v, "botId"));
|
|
12877
|
-
w.
|
|
13018
|
+
w.long(h(v, "queryId"));
|
|
12878
13019
|
w.vector(w.object, h(v, "users"));
|
|
12879
13020
|
},
|
|
12880
13021
|
"joinChatBotResultApproved": function(w) {
|
|
@@ -12973,22 +13114,78 @@ var m = {
|
|
|
12973
13114
|
w.vector(w.object, h(v, "photos"));
|
|
12974
13115
|
w.vector(w.object, h(v, "documents"));
|
|
12975
13116
|
},
|
|
12976
|
-
"
|
|
12977
|
-
w.uint(
|
|
13117
|
+
"communityPeer": function(w, v) {
|
|
13118
|
+
w.uint(1981030077);
|
|
12978
13119
|
var flags = 0;
|
|
12979
|
-
|
|
13120
|
+
var _visible = v.visible !== void 0;
|
|
13121
|
+
if (_visible) flags |= 1;
|
|
13122
|
+
if (v.canViewHistory === true) flags |= 4;
|
|
12980
13123
|
w.uint(flags);
|
|
12981
|
-
w.
|
|
12982
|
-
w.
|
|
13124
|
+
if (_visible) w.boolean(v.visible);
|
|
13125
|
+
w.object(h(v, "peer"));
|
|
12983
13126
|
},
|
|
12984
|
-
"
|
|
12985
|
-
w.uint(
|
|
13127
|
+
"communityPeerRequest": function(w, v) {
|
|
13128
|
+
w.uint(2078997125);
|
|
12986
13129
|
var flags = 0;
|
|
12987
|
-
|
|
12988
|
-
if (_order) flags |= 1;
|
|
13130
|
+
if (v.visible === true) flags |= 1;
|
|
12989
13131
|
w.uint(flags);
|
|
12990
|
-
w.
|
|
12991
|
-
|
|
13132
|
+
w.object(h(v, "peer"));
|
|
13133
|
+
w.int53(h(v, "requestedBy"));
|
|
13134
|
+
w.int(h(v, "date"));
|
|
13135
|
+
},
|
|
13136
|
+
"communities.peerLinkRequests": function(w, v) {
|
|
13137
|
+
w.uint(574926765);
|
|
13138
|
+
var flags = 0;
|
|
13139
|
+
var _nextOffset = v.nextOffset !== void 0;
|
|
13140
|
+
if (_nextOffset) flags |= 1;
|
|
13141
|
+
w.uint(flags);
|
|
13142
|
+
w.int(h(v, "totalCount"));
|
|
13143
|
+
w.vector(w.object, h(v, "requests"));
|
|
13144
|
+
if (_nextOffset) w.string(v.nextOffset);
|
|
13145
|
+
w.vector(w.object, h(v, "chats"));
|
|
13146
|
+
w.vector(w.object, h(v, "users"));
|
|
13147
|
+
},
|
|
13148
|
+
"ephemeralMessage": function(w, v) {
|
|
13149
|
+
w.uint(3653688346);
|
|
13150
|
+
var flags = 0;
|
|
13151
|
+
if (v.out === true) flags |= 1;
|
|
13152
|
+
var _topMsgId = v.topMsgId !== void 0;
|
|
13153
|
+
if (_topMsgId) flags |= 2;
|
|
13154
|
+
var _entities = v.entities && v.entities.length;
|
|
13155
|
+
if (_entities) flags |= 4;
|
|
13156
|
+
var _media = v.media !== void 0;
|
|
13157
|
+
if (_media) flags |= 8;
|
|
13158
|
+
var _replyMarkup = v.replyMarkup !== void 0;
|
|
13159
|
+
if (_replyMarkup) flags |= 16;
|
|
13160
|
+
var _replyTo = v.replyTo !== void 0;
|
|
13161
|
+
if (_replyTo) flags |= 64;
|
|
13162
|
+
w.uint(flags);
|
|
13163
|
+
w.int(h(v, "id"));
|
|
13164
|
+
w.object(h(v, "fromId"));
|
|
13165
|
+
w.object(h(v, "peerId"));
|
|
13166
|
+
w.int53(h(v, "receiverId"));
|
|
13167
|
+
if (_topMsgId) w.int(v.topMsgId);
|
|
13168
|
+
w.int(h(v, "date"));
|
|
13169
|
+
w.string(h(v, "message"));
|
|
13170
|
+
if (_entities) w.vector(w.object, v.entities);
|
|
13171
|
+
if (_media) w.object(v.media);
|
|
13172
|
+
if (_replyMarkup) w.object(v.replyMarkup);
|
|
13173
|
+
if (_replyTo) w.object(v.replyTo);
|
|
13174
|
+
},
|
|
13175
|
+
"communities.participantJoinedChats": function(w, v) {
|
|
13176
|
+
w.uint(2373472554);
|
|
13177
|
+
w.vector(w.int53, h(v, "creatorChatIds"));
|
|
13178
|
+
w.vector(w.int53, h(v, "joinedChatIds"));
|
|
13179
|
+
w.vector(w.object, h(v, "chats"));
|
|
13180
|
+
w.vector(w.object, h(v, "users"));
|
|
13181
|
+
},
|
|
13182
|
+
"messages.translatedRichMessage": function(w, v) {
|
|
13183
|
+
w.uint(1107532175);
|
|
13184
|
+
w.vector(w.object, h(v, "result"));
|
|
13185
|
+
},
|
|
13186
|
+
"messages.composedRichMessageWithAI": function(w, v) {
|
|
13187
|
+
w.uint(1279604680);
|
|
13188
|
+
w.object(h(v, "result"));
|
|
12992
13189
|
},
|
|
12993
13190
|
"invokeAfterMsg": function(w, v) {
|
|
12994
13191
|
w.uint(3416209197);
|
|
@@ -14585,15 +14782,18 @@ var m = {
|
|
|
14585
14782
|
w.int53(h(v, "chatId"));
|
|
14586
14783
|
},
|
|
14587
14784
|
"messages.searchGlobal": function(w, v) {
|
|
14588
|
-
w.uint(
|
|
14785
|
+
w.uint(1629922364);
|
|
14589
14786
|
var flags = 0;
|
|
14590
14787
|
var _folderId = v.folderId !== void 0;
|
|
14591
14788
|
if (_folderId) flags |= 1;
|
|
14592
14789
|
if (v.broadcastsOnly === true) flags |= 2;
|
|
14593
14790
|
if (v.groupsOnly === true) flags |= 4;
|
|
14594
14791
|
if (v.usersOnly === true) flags |= 8;
|
|
14792
|
+
var _community = v.community !== void 0;
|
|
14793
|
+
if (_community) flags |= 16;
|
|
14595
14794
|
w.uint(flags);
|
|
14596
14795
|
if (_folderId) w.int(v.folderId);
|
|
14796
|
+
if (_community) w.object(v.community);
|
|
14597
14797
|
w.string(h(v, "q"));
|
|
14598
14798
|
w.object(h(v, "filter"));
|
|
14599
14799
|
w.int(h(v, "minDate"));
|
|
@@ -16297,6 +16497,50 @@ var m = {
|
|
|
16297
16497
|
w.object(h(v, "peer"));
|
|
16298
16498
|
w.int(h(v, "id"));
|
|
16299
16499
|
},
|
|
16500
|
+
"messages.translateRichMessage": function(w, v) {
|
|
16501
|
+
w.uint(441720836);
|
|
16502
|
+
var flags = 0;
|
|
16503
|
+
var _peer = v.peer !== void 0;
|
|
16504
|
+
var _id = v.id && v.id.length;
|
|
16505
|
+
var _flags_0 = _peer || _id;
|
|
16506
|
+
if (_flags_0) flags |= 1;
|
|
16507
|
+
var _text = v.text && v.text.length;
|
|
16508
|
+
if (_text) flags |= 2;
|
|
16509
|
+
var _tone = v.tone !== void 0;
|
|
16510
|
+
if (_tone) flags |= 4;
|
|
16511
|
+
w.uint(flags);
|
|
16512
|
+
if (_flags_0) w.object(v.peer);
|
|
16513
|
+
if (_flags_0) w.vector(w.int, v.id);
|
|
16514
|
+
if (_text) w.vector(w.object, v.text);
|
|
16515
|
+
w.string(h(v, "toLang"));
|
|
16516
|
+
if (_tone) w.string(v.tone);
|
|
16517
|
+
},
|
|
16518
|
+
"messages.composeRichMessageWithAI": function(w, v) {
|
|
16519
|
+
w.uint(2373641903);
|
|
16520
|
+
var flags = 0;
|
|
16521
|
+
if (v.proofread === true) flags |= 1;
|
|
16522
|
+
var _translateToLang = v.translateToLang !== void 0;
|
|
16523
|
+
if (_translateToLang) flags |= 2;
|
|
16524
|
+
var _tone = v.tone !== void 0;
|
|
16525
|
+
if (_tone) flags |= 4;
|
|
16526
|
+
if (v.emojify === true) flags |= 8;
|
|
16527
|
+
var _text = v.text !== void 0;
|
|
16528
|
+
if (_text) flags |= 16;
|
|
16529
|
+
w.uint(flags);
|
|
16530
|
+
if (_text) w.object(v.text);
|
|
16531
|
+
if (_translateToLang) w.string(v.translateToLang);
|
|
16532
|
+
if (_tone) w.object(v.tone);
|
|
16533
|
+
},
|
|
16534
|
+
"messages.requestChatJoinWebView": function(w, v) {
|
|
16535
|
+
w.uint(3130975865);
|
|
16536
|
+
var flags = 0;
|
|
16537
|
+
var _themeParams = v.themeParams !== void 0;
|
|
16538
|
+
if (_themeParams) flags |= 1;
|
|
16539
|
+
w.uint(flags);
|
|
16540
|
+
w.long(h(v, "queryId"));
|
|
16541
|
+
if (_themeParams) w.object(v.themeParams);
|
|
16542
|
+
w.string(h(v, "platform"));
|
|
16543
|
+
},
|
|
16300
16544
|
"updates.getState": function(w) {
|
|
16301
16545
|
w.uint(3990128682);
|
|
16302
16546
|
},
|
|
@@ -16668,6 +16912,7 @@ var m = {
|
|
|
16668
16912
|
if (v.byLocation === true) flags |= 1;
|
|
16669
16913
|
if (v.checkLimit === true) flags |= 2;
|
|
16670
16914
|
if (v.forPersonal === true) flags |= 4;
|
|
16915
|
+
if (v.forCommunityPeer === true) flags |= 8;
|
|
16671
16916
|
w.uint(flags);
|
|
16672
16917
|
},
|
|
16673
16918
|
"channels.editBanned": function(w, v) {
|
|
@@ -18537,84 +18782,140 @@ var m = {
|
|
|
18537
18782
|
w.object(h(v, "tone"));
|
|
18538
18783
|
w.int(h(v, "num"));
|
|
18539
18784
|
},
|
|
18540
|
-
"
|
|
18541
|
-
w.uint(
|
|
18542
|
-
w.object(h(v, "channel"));
|
|
18543
|
-
w.object(h(v, "userId"));
|
|
18544
|
-
w.object(h(v, "password"));
|
|
18545
|
-
},
|
|
18546
|
-
"channels.createForumTopic": function(w, v) {
|
|
18547
|
-
w.uint(4094427684);
|
|
18785
|
+
"communities.create": function(w, v) {
|
|
18786
|
+
w.uint(2788710892);
|
|
18548
18787
|
var flags = 0;
|
|
18549
|
-
var
|
|
18550
|
-
if (
|
|
18551
|
-
|
|
18552
|
-
if (_sendAs) flags |= 4;
|
|
18553
|
-
var _iconEmojiId = v.iconEmojiId !== void 0;
|
|
18554
|
-
if (_iconEmojiId) flags |= 8;
|
|
18788
|
+
var _about = v.about !== void 0;
|
|
18789
|
+
if (_about) flags |= 1;
|
|
18790
|
+
if (v.hidden === true) flags |= 2;
|
|
18555
18791
|
w.uint(flags);
|
|
18556
|
-
w.object(h(v, "channel"));
|
|
18557
18792
|
w.string(h(v, "title"));
|
|
18558
|
-
if (
|
|
18559
|
-
|
|
18560
|
-
w.long(h(v, "randomId"));
|
|
18561
|
-
if (_sendAs) w.object(v.sendAs);
|
|
18793
|
+
if (_about) w.string(v.about);
|
|
18794
|
+
w.object(h(v, "peer"));
|
|
18562
18795
|
},
|
|
18563
|
-
"
|
|
18564
|
-
w.uint(
|
|
18796
|
+
"communities.togglePeerLink": function(w, v) {
|
|
18797
|
+
w.uint(1936576490);
|
|
18565
18798
|
var flags = 0;
|
|
18566
|
-
|
|
18567
|
-
if (
|
|
18799
|
+
if (v.visible === true) flags |= 1;
|
|
18800
|
+
if (v.hidden === true) flags |= 2;
|
|
18801
|
+
if (v.deleted === true) flags |= 4;
|
|
18568
18802
|
w.uint(flags);
|
|
18569
|
-
w.object(h(v, "
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
w.
|
|
18803
|
+
w.object(h(v, "community"));
|
|
18804
|
+
w.object(h(v, "peer"));
|
|
18805
|
+
},
|
|
18806
|
+
"communities.getJoinedCommunities": function(w) {
|
|
18807
|
+
w.uint(2791565360);
|
|
18808
|
+
},
|
|
18809
|
+
"communities.toggleCommunityCollapsedInDialogs": function(w, v) {
|
|
18810
|
+
w.uint(3613844458);
|
|
18811
|
+
var flags = 0;
|
|
18812
|
+
if (v.collapsed === true) flags |= 1;
|
|
18813
|
+
w.uint(flags);
|
|
18814
|
+
w.object(h(v, "community"));
|
|
18815
|
+
},
|
|
18816
|
+
"communities.getPeerLinkRequests": function(w, v) {
|
|
18817
|
+
w.uint(2474062660);
|
|
18818
|
+
w.object(h(v, "community"));
|
|
18819
|
+
w.string(h(v, "offset"));
|
|
18574
18820
|
w.int(h(v, "limit"));
|
|
18575
18821
|
},
|
|
18576
|
-
"
|
|
18577
|
-
w.uint(
|
|
18578
|
-
|
|
18579
|
-
|
|
18822
|
+
"communities.togglePeerLinkRequestApproval": function(w, v) {
|
|
18823
|
+
w.uint(2357336488);
|
|
18824
|
+
var flags = 0;
|
|
18825
|
+
if (v.reject === true) flags |= 1;
|
|
18826
|
+
w.uint(flags);
|
|
18827
|
+
w.object(h(v, "community"));
|
|
18828
|
+
w.object(h(v, "peer"));
|
|
18580
18829
|
},
|
|
18581
|
-
"
|
|
18582
|
-
w.uint(
|
|
18830
|
+
"communities.toggleAllPeerLinkRequestApproval": function(w, v) {
|
|
18831
|
+
w.uint(3219381565);
|
|
18583
18832
|
var flags = 0;
|
|
18584
|
-
|
|
18585
|
-
if (_title) flags |= 1;
|
|
18586
|
-
var _iconEmojiId = v.iconEmojiId !== void 0;
|
|
18587
|
-
if (_iconEmojiId) flags |= 2;
|
|
18588
|
-
var _closed = v.closed !== void 0;
|
|
18589
|
-
if (_closed) flags |= 4;
|
|
18590
|
-
var _hidden = v.hidden !== void 0;
|
|
18591
|
-
if (_hidden) flags |= 8;
|
|
18833
|
+
if (v.reject === true) flags |= 1;
|
|
18592
18834
|
w.uint(flags);
|
|
18593
|
-
w.object(h(v, "
|
|
18594
|
-
w.int(h(v, "topicId"));
|
|
18595
|
-
if (_title) w.string(v.title);
|
|
18596
|
-
if (_iconEmojiId) w.long(v.iconEmojiId);
|
|
18597
|
-
if (_closed) w.boolean(v.closed);
|
|
18598
|
-
if (_hidden) w.boolean(v.hidden);
|
|
18835
|
+
w.object(h(v, "community"));
|
|
18599
18836
|
},
|
|
18600
|
-
"
|
|
18601
|
-
w.uint(
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
w.
|
|
18837
|
+
"communities.toggleParticipantBanned": function(w, v) {
|
|
18838
|
+
w.uint(2573708559);
|
|
18839
|
+
var flags = 0;
|
|
18840
|
+
if (v.unban === true) flags |= 1;
|
|
18841
|
+
w.uint(flags);
|
|
18842
|
+
w.object(h(v, "community"));
|
|
18843
|
+
w.object(h(v, "participant"));
|
|
18605
18844
|
},
|
|
18606
|
-
"
|
|
18607
|
-
w.uint(
|
|
18608
|
-
w.object(h(v, "
|
|
18609
|
-
w.
|
|
18845
|
+
"communities.getParticipantJoinedChats": function(w, v) {
|
|
18846
|
+
w.uint(4169051051);
|
|
18847
|
+
w.object(h(v, "community"));
|
|
18848
|
+
w.object(h(v, "participant"));
|
|
18610
18849
|
},
|
|
18611
|
-
"
|
|
18612
|
-
w.uint(
|
|
18850
|
+
"ephemeral.sendMessage": function(w, v) {
|
|
18851
|
+
w.uint(1758187679);
|
|
18613
18852
|
var flags = 0;
|
|
18614
|
-
|
|
18853
|
+
var _queryId = v.queryId !== void 0;
|
|
18854
|
+
if (_queryId) flags |= 1;
|
|
18855
|
+
var _entities = v.entities && v.entities.length;
|
|
18856
|
+
if (_entities) flags |= 2;
|
|
18857
|
+
var _media = v.media !== void 0;
|
|
18858
|
+
if (_media) flags |= 4;
|
|
18859
|
+
var _replyMarkup = v.replyMarkup !== void 0;
|
|
18860
|
+
if (_replyMarkup) flags |= 8;
|
|
18861
|
+
var _richMessage = v.richMessage !== void 0;
|
|
18862
|
+
if (_richMessage) flags |= 16;
|
|
18863
|
+
var _replyTo = v.replyTo !== void 0;
|
|
18864
|
+
if (_replyTo) flags |= 32;
|
|
18615
18865
|
w.uint(flags);
|
|
18616
|
-
w.object(h(v, "
|
|
18617
|
-
w.
|
|
18866
|
+
w.object(h(v, "peer"));
|
|
18867
|
+
w.object(h(v, "receiverId"));
|
|
18868
|
+
if (_queryId) w.long(v.queryId);
|
|
18869
|
+
w.string(h(v, "message"));
|
|
18870
|
+
if (_entities) w.vector(w.object, v.entities);
|
|
18871
|
+
if (_media) w.object(v.media);
|
|
18872
|
+
if (_replyMarkup) w.object(v.replyMarkup);
|
|
18873
|
+
if (_richMessage) w.object(v.richMessage);
|
|
18874
|
+
w.long(h(v, "randomId"));
|
|
18875
|
+
if (_replyTo) w.object(v.replyTo);
|
|
18876
|
+
},
|
|
18877
|
+
"ephemeral.deleteMessage": function(w, v) {
|
|
18878
|
+
w.uint(2747323665);
|
|
18879
|
+
w.object(h(v, "peer"));
|
|
18880
|
+
w.object(h(v, "receiverId"));
|
|
18881
|
+
w.int(h(v, "id"));
|
|
18882
|
+
},
|
|
18883
|
+
"ephemeral.reportMessage": function(w, v) {
|
|
18884
|
+
w.uint(2265248447);
|
|
18885
|
+
w.object(h(v, "peer"));
|
|
18886
|
+
w.int(h(v, "id"));
|
|
18887
|
+
w.bytes(h(v, "option"));
|
|
18888
|
+
w.string(h(v, "message"));
|
|
18889
|
+
},
|
|
18890
|
+
"ephemeral.getCallbackAnswer": function(w, v) {
|
|
18891
|
+
w.uint(1067738312);
|
|
18892
|
+
var flags = 0;
|
|
18893
|
+
var _data = v.data !== void 0;
|
|
18894
|
+
if (_data) flags |= 2;
|
|
18895
|
+
w.uint(flags);
|
|
18896
|
+
w.object(h(v, "peer"));
|
|
18897
|
+
w.int(h(v, "id"));
|
|
18898
|
+
if (_data) w.bytes(v.data);
|
|
18899
|
+
},
|
|
18900
|
+
"ephemeral.editMessage": function(w, v) {
|
|
18901
|
+
w.uint(334647534);
|
|
18902
|
+
var flags = 0;
|
|
18903
|
+
var _message = v.message !== void 0;
|
|
18904
|
+
if (_message) flags |= 1;
|
|
18905
|
+
var _entities = v.entities && v.entities.length;
|
|
18906
|
+
if (_entities) flags |= 2;
|
|
18907
|
+
var _replyMarkup = v.replyMarkup !== void 0;
|
|
18908
|
+
if (_replyMarkup) flags |= 4;
|
|
18909
|
+
var _media = v.media !== void 0;
|
|
18910
|
+
if (_media) flags |= 8;
|
|
18911
|
+
w.uint(flags);
|
|
18912
|
+
w.object(h(v, "peer"));
|
|
18913
|
+
w.object(h(v, "receiverId"));
|
|
18914
|
+
w.int(h(v, "id"));
|
|
18915
|
+
if (_message) w.string(v.message);
|
|
18916
|
+
if (_media) w.object(v.media);
|
|
18917
|
+
if (_entities) w.vector(w.object, v.entities);
|
|
18918
|
+
if (_replyMarkup) w.object(v.replyMarkup);
|
|
18618
18919
|
},
|
|
18619
18920
|
"mtcute.customMethod": function(w, v) {
|
|
18620
18921
|
w.raw(h(v, "bytes"));
|
|
@@ -19029,6 +19330,7 @@ var m = {
|
|
|
19029
19330
|
"notifyChats": 4,
|
|
19030
19331
|
"notifyBroadcasts": 4,
|
|
19031
19332
|
"notifyForumTopic": 20,
|
|
19333
|
+
"notifyCommunity": 12,
|
|
19032
19334
|
"sendMessageTypingAction": 4,
|
|
19033
19335
|
"sendMessageCancelAction": 4,
|
|
19034
19336
|
"sendMessageRecordVideoAction": 4,
|
|
@@ -19206,6 +19508,7 @@ var m = {
|
|
|
19206
19508
|
"inputDialogPeerFolder": 8,
|
|
19207
19509
|
"dialogPeer": 16,
|
|
19208
19510
|
"dialogPeerFolder": 8,
|
|
19511
|
+
"dialogPeerCommunity": 12,
|
|
19209
19512
|
"messages.foundStickerSetsNotModified": 4,
|
|
19210
19513
|
"help.termsOfServiceUpdateEmpty": 8,
|
|
19211
19514
|
"inputSecureFile": 20,
|
|
@@ -19328,6 +19631,7 @@ var m = {
|
|
|
19328
19631
|
"messagePeerVoteInputOption": 20,
|
|
19329
19632
|
"storyItemDeleted": 8,
|
|
19330
19633
|
"storyItemSkipped": 20,
|
|
19634
|
+
"inputReplyToEphemeralMessage": 8,
|
|
19331
19635
|
"prepaidGiveaway": 24,
|
|
19332
19636
|
"prepaidStarsGiveaway": 32,
|
|
19333
19637
|
"postInteractionCountersMessage": 20,
|
|
@@ -19415,7 +19719,7 @@ var m = {
|
|
|
19415
19719
|
"joinChatBotResultDeclined": 4,
|
|
19416
19720
|
"joinChatBotResultQueued": 4,
|
|
19417
19721
|
"account.webBrowserSettingsNotModified": 4,
|
|
19418
|
-
"
|
|
19722
|
+
"communityPeerRequest": 32,
|
|
19419
19723
|
"auth.logOut": 4,
|
|
19420
19724
|
"auth.resetAuthorizations": 4,
|
|
19421
19725
|
"auth.exportAuthorization": 8,
|
|
@@ -19582,6 +19886,7 @@ var m = {
|
|
|
19582
19886
|
"smsjobs.updateSettings": 8,
|
|
19583
19887
|
"smsjobs.getStatus": 4,
|
|
19584
19888
|
"aicompose.getTones": 12,
|
|
19889
|
+
"communities.getJoinedCommunities": 4,
|
|
19585
19890
|
"mt_dh_gen_ok": 52,
|
|
19586
19891
|
"mt_dh_gen_retry": 52,
|
|
19587
19892
|
"mt_dh_gen_fail": 52,
|