@mtcute/core 0.30.3 → 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/compat/reader.cjs
CHANGED
|
@@ -372,6 +372,17 @@ var m = {
|
|
|
372
372
|
2515496747: function(r) {
|
|
373
373
|
var flags = r.uint(), flags2 = r.uint();
|
|
374
374
|
return { _: "message_layer225", out: !!(flags & 2), mentioned: !!(flags & 16), mediaUnread: !!(flags & 32), silent: !!(flags & 8192), post: !!(flags & 16384), fromScheduled: !!(flags & 262144), legacy: !!(flags & 524288), editHide: !!(flags & 2097152), pinned: !!(flags & 16777216), noforwards: !!(flags & 67108864), invertMedia: !!(flags & 134217728), offline: !!(flags2 & 2), videoProcessingPending: !!(flags2 & 16), paidSuggestedPostStars: !!(flags2 & 256), paidSuggestedPostTon: !!(flags2 & 512), id: r.int(), fromId: flags & 256 ? r.object() : void 0, fromBoostsApplied: flags & 536870912 ? r.int() : void 0, fromRank: flags2 & 4096 ? r.string() : void 0, peerId: r.object(), savedPeerId: flags & 268435456 ? r.object() : void 0, fwdFrom: flags & 4 ? r.object() : void 0, viaBotId: flags & 2048 ? r.int53() : void 0, viaBusinessBotId: flags2 & 1 ? r.int53() : void 0, guestchatViaFrom: flags2 & 524288 ? r.object() : void 0, replyTo: flags & 8 ? r.object() : void 0, date: r.int(), message: r.string(), media: flags & 512 ? r.object() : void 0, replyMarkup: flags & 64 ? r.object() : void 0, entities: flags & 128 ? r.vector(r.object) : void 0, views: flags & 1024 ? r.int() : void 0, forwards: flags & 1024 ? r.int() : void 0, replies: flags & 8388608 ? r.object() : void 0, editDate: flags & 32768 ? r.int() : void 0, postAuthor: flags & 65536 ? r.string() : void 0, groupedId: flags & 131072 ? r.long() : void 0, reactions: flags & 1048576 ? r.object() : void 0, restrictionReason: flags & 4194304 ? r.vector(r.object) : void 0, ttlPeriod: flags & 33554432 ? r.int() : void 0, quickReplyShortcutId: flags & 1073741824 ? r.int() : void 0, effect: flags2 & 4 ? r.long() : void 0, factcheck: flags2 & 8 ? r.object() : void 0, reportDeliveryUntilDate: flags2 & 32 ? r.int() : void 0, paidMessageStars: flags2 & 64 ? r.long() : void 0, suggestedPost: flags2 & 128 ? r.object() : void 0, scheduleRepeatPeriod: flags2 & 1024 ? r.int() : void 0, summaryFromLanguage: flags2 & 2048 ? r.string() : void 0 };
|
|
375
|
+
},
|
|
376
|
+
473084188: function(r) {
|
|
377
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
378
|
+
return { _: "channel_layer227", creator: !!(flags & 1), left: !!(flags & 4), broadcast: !!(flags & 32), verified: !!(flags & 128), megagroup: !!(flags & 256), restricted: !!(flags & 512), signatures: !!(flags & 2048), min: !!(flags & 4096), scam: !!(flags & 524288), hasLink: !!(flags & 1048576), hasGeo: !!(flags & 2097152), slowmodeEnabled: !!(flags & 4194304), callActive: !!(flags & 8388608), callNotEmpty: !!(flags & 16777216), fake: !!(flags & 33554432), gigagroup: !!(flags & 67108864), noforwards: !!(flags & 134217728), joinToSend: !!(flags & 268435456), joinRequest: !!(flags & 536870912), forum: !!(flags & 1073741824), storiesHidden: !!(flags2 & 2), storiesHiddenMin: !!(flags2 & 4), storiesUnavailable: !!(flags2 & 8), signatureProfiles: !!(flags2 & 4096), autotranslation: !!(flags2 & 32768), broadcastMessagesAllowed: !!(flags2 & 65536), monoforum: !!(flags2 & 131072), forumTabs: !!(flags2 & 524288), id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string(), username: flags & 64 ? r.string() : void 0, photo: r.object(), date: r.int(), restrictionReason: flags & 512 ? r.vector(r.object) : void 0, adminRights: flags & 16384 ? r.object() : void 0, bannedRights: flags & 32768 ? r.object() : void 0, defaultBannedRights: flags & 262144 ? r.object() : void 0, participantsCount: flags & 131072 ? r.int() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 16 ? r.object() : void 0, color: flags2 & 128 ? r.object() : void 0, profileColor: flags2 & 256 ? r.object() : void 0, emojiStatus: flags2 & 512 ? r.object() : void 0, level: flags2 & 1024 ? r.int() : void 0, subscriptionUntilDate: flags2 & 2048 ? r.int() : void 0, botVerificationIcon: flags2 & 8192 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, linkedMonoforumId: flags2 & 262144 ? r.int53() : void 0 };
|
|
379
|
+
},
|
|
380
|
+
3262826695: function(r) {
|
|
381
|
+
return { _: "botCommand_layer227", command: r.string(), description: r.string() };
|
|
382
|
+
},
|
|
383
|
+
829899656: function(r) {
|
|
384
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
385
|
+
return { _: "user_layer227", self: !!(flags & 1024), contact: !!(flags & 2048), mutualContact: !!(flags & 4096), deleted: !!(flags & 8192), bot: !!(flags & 16384), botChatHistory: !!(flags & 32768), botNochats: !!(flags & 65536), verified: !!(flags & 131072), restricted: !!(flags & 262144), min: !!(flags & 1048576), botInlineGeo: !!(flags & 2097152), support: !!(flags & 8388608), scam: !!(flags & 16777216), applyMinPhoto: !!(flags & 33554432), fake: !!(flags & 67108864), botAttachMenu: !!(flags & 134217728), premium: !!(flags & 268435456), attachMenuEnabled: !!(flags & 536870912), botCanEdit: !!(flags2 & 2), closeFriend: !!(flags2 & 4), storiesHidden: !!(flags2 & 8), storiesUnavailable: !!(flags2 & 16), contactRequirePremium: !!(flags2 & 1024), botBusiness: !!(flags2 & 2048), botHasMainApp: !!(flags2 & 8192), botForumView: !!(flags2 & 65536), botForumCanManageTopics: !!(flags2 & 131072), botCanManageBots: !!(flags2 & 262144), botGuestchat: !!(flags2 & 524288), botGuard: !!(flags2 & 1048576), id: r.int53(), accessHash: flags & 1 ? r.long() : void 0, firstName: flags & 2 ? r.string() : void 0, lastName: flags & 4 ? r.string() : void 0, username: flags & 8 ? r.string() : void 0, phone: flags & 16 ? r.string() : void 0, photo: flags & 32 ? r.object() : void 0, status: flags & 64 ? r.object() : void 0, botInfoVersion: flags & 16384 ? r.int() : void 0, restrictionReason: flags & 262144 ? r.vector(r.object) : void 0, botInlinePlaceholder: flags & 524288 ? r.string() : void 0, langCode: flags & 4194304 ? r.string() : void 0, emojiStatus: flags & 1073741824 ? r.object() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 32 ? r.object() : void 0, color: flags2 & 256 ? r.object() : void 0, profileColor: flags2 & 512 ? r.object() : void 0, botActiveUsers: flags2 & 4096 ? r.int() : void 0, botVerificationIcon: flags2 & 16384 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 32768 ? r.long() : void 0 };
|
|
375
386
|
}
|
|
376
387
|
};
|
|
377
388
|
const __tlReaderMapCompat = m;
|
package/tl/compat/reader.js
CHANGED
|
@@ -365,6 +365,17 @@ var m = {
|
|
|
365
365
|
2515496747: function(r) {
|
|
366
366
|
var flags = r.uint(), flags2 = r.uint();
|
|
367
367
|
return { _: "message_layer225", out: !!(flags & 2), mentioned: !!(flags & 16), mediaUnread: !!(flags & 32), silent: !!(flags & 8192), post: !!(flags & 16384), fromScheduled: !!(flags & 262144), legacy: !!(flags & 524288), editHide: !!(flags & 2097152), pinned: !!(flags & 16777216), noforwards: !!(flags & 67108864), invertMedia: !!(flags & 134217728), offline: !!(flags2 & 2), videoProcessingPending: !!(flags2 & 16), paidSuggestedPostStars: !!(flags2 & 256), paidSuggestedPostTon: !!(flags2 & 512), id: r.int(), fromId: flags & 256 ? r.object() : void 0, fromBoostsApplied: flags & 536870912 ? r.int() : void 0, fromRank: flags2 & 4096 ? r.string() : void 0, peerId: r.object(), savedPeerId: flags & 268435456 ? r.object() : void 0, fwdFrom: flags & 4 ? r.object() : void 0, viaBotId: flags & 2048 ? r.int53() : void 0, viaBusinessBotId: flags2 & 1 ? r.int53() : void 0, guestchatViaFrom: flags2 & 524288 ? r.object() : void 0, replyTo: flags & 8 ? r.object() : void 0, date: r.int(), message: r.string(), media: flags & 512 ? r.object() : void 0, replyMarkup: flags & 64 ? r.object() : void 0, entities: flags & 128 ? r.vector(r.object) : void 0, views: flags & 1024 ? r.int() : void 0, forwards: flags & 1024 ? r.int() : void 0, replies: flags & 8388608 ? r.object() : void 0, editDate: flags & 32768 ? r.int() : void 0, postAuthor: flags & 65536 ? r.string() : void 0, groupedId: flags & 131072 ? r.long() : void 0, reactions: flags & 1048576 ? r.object() : void 0, restrictionReason: flags & 4194304 ? r.vector(r.object) : void 0, ttlPeriod: flags & 33554432 ? r.int() : void 0, quickReplyShortcutId: flags & 1073741824 ? r.int() : void 0, effect: flags2 & 4 ? r.long() : void 0, factcheck: flags2 & 8 ? r.object() : void 0, reportDeliveryUntilDate: flags2 & 32 ? r.int() : void 0, paidMessageStars: flags2 & 64 ? r.long() : void 0, suggestedPost: flags2 & 128 ? r.object() : void 0, scheduleRepeatPeriod: flags2 & 1024 ? r.int() : void 0, summaryFromLanguage: flags2 & 2048 ? r.string() : void 0 };
|
|
368
|
+
},
|
|
369
|
+
473084188: function(r) {
|
|
370
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
371
|
+
return { _: "channel_layer227", creator: !!(flags & 1), left: !!(flags & 4), broadcast: !!(flags & 32), verified: !!(flags & 128), megagroup: !!(flags & 256), restricted: !!(flags & 512), signatures: !!(flags & 2048), min: !!(flags & 4096), scam: !!(flags & 524288), hasLink: !!(flags & 1048576), hasGeo: !!(flags & 2097152), slowmodeEnabled: !!(flags & 4194304), callActive: !!(flags & 8388608), callNotEmpty: !!(flags & 16777216), fake: !!(flags & 33554432), gigagroup: !!(flags & 67108864), noforwards: !!(flags & 134217728), joinToSend: !!(flags & 268435456), joinRequest: !!(flags & 536870912), forum: !!(flags & 1073741824), storiesHidden: !!(flags2 & 2), storiesHiddenMin: !!(flags2 & 4), storiesUnavailable: !!(flags2 & 8), signatureProfiles: !!(flags2 & 4096), autotranslation: !!(flags2 & 32768), broadcastMessagesAllowed: !!(flags2 & 65536), monoforum: !!(flags2 & 131072), forumTabs: !!(flags2 & 524288), id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string(), username: flags & 64 ? r.string() : void 0, photo: r.object(), date: r.int(), restrictionReason: flags & 512 ? r.vector(r.object) : void 0, adminRights: flags & 16384 ? r.object() : void 0, bannedRights: flags & 32768 ? r.object() : void 0, defaultBannedRights: flags & 262144 ? r.object() : void 0, participantsCount: flags & 131072 ? r.int() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 16 ? r.object() : void 0, color: flags2 & 128 ? r.object() : void 0, profileColor: flags2 & 256 ? r.object() : void 0, emojiStatus: flags2 & 512 ? r.object() : void 0, level: flags2 & 1024 ? r.int() : void 0, subscriptionUntilDate: flags2 & 2048 ? r.int() : void 0, botVerificationIcon: flags2 & 8192 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, linkedMonoforumId: flags2 & 262144 ? r.int53() : void 0 };
|
|
372
|
+
},
|
|
373
|
+
3262826695: function(r) {
|
|
374
|
+
return { _: "botCommand_layer227", command: r.string(), description: r.string() };
|
|
375
|
+
},
|
|
376
|
+
829899656: function(r) {
|
|
377
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
378
|
+
return { _: "user_layer227", self: !!(flags & 1024), contact: !!(flags & 2048), mutualContact: !!(flags & 4096), deleted: !!(flags & 8192), bot: !!(flags & 16384), botChatHistory: !!(flags & 32768), botNochats: !!(flags & 65536), verified: !!(flags & 131072), restricted: !!(flags & 262144), min: !!(flags & 1048576), botInlineGeo: !!(flags & 2097152), support: !!(flags & 8388608), scam: !!(flags & 16777216), applyMinPhoto: !!(flags & 33554432), fake: !!(flags & 67108864), botAttachMenu: !!(flags & 134217728), premium: !!(flags & 268435456), attachMenuEnabled: !!(flags & 536870912), botCanEdit: !!(flags2 & 2), closeFriend: !!(flags2 & 4), storiesHidden: !!(flags2 & 8), storiesUnavailable: !!(flags2 & 16), contactRequirePremium: !!(flags2 & 1024), botBusiness: !!(flags2 & 2048), botHasMainApp: !!(flags2 & 8192), botForumView: !!(flags2 & 65536), botForumCanManageTopics: !!(flags2 & 131072), botCanManageBots: !!(flags2 & 262144), botGuestchat: !!(flags2 & 524288), botGuard: !!(flags2 & 1048576), id: r.int53(), accessHash: flags & 1 ? r.long() : void 0, firstName: flags & 2 ? r.string() : void 0, lastName: flags & 4 ? r.string() : void 0, username: flags & 8 ? r.string() : void 0, phone: flags & 16 ? r.string() : void 0, photo: flags & 32 ? r.object() : void 0, status: flags & 64 ? r.object() : void 0, botInfoVersion: flags & 16384 ? r.int() : void 0, restrictionReason: flags & 262144 ? r.vector(r.object) : void 0, botInlinePlaceholder: flags & 524288 ? r.string() : void 0, langCode: flags & 4194304 ? r.string() : void 0, emojiStatus: flags & 1073741824 ? r.object() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 32 ? r.object() : void 0, color: flags2 & 256 ? r.object() : void 0, profileColor: flags2 & 512 ? r.object() : void 0, botActiveUsers: flags2 & 4096 ? r.int() : void 0, botVerificationIcon: flags2 & 16384 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 32768 ? r.long() : void 0 };
|
|
368
379
|
}
|
|
369
380
|
};
|
|
370
381
|
const __tlReaderMapCompat = m;
|