@mtcute/core 0.30.3 → 0.32.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 +85 -0
- package/client.js +85 -0
- package/highlevel/client.d.cts +411 -116
- package/highlevel/client.d.ts +411 -116
- 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/build-peers-index.cjs +45 -0
- package/highlevel/methods/chats/build-peers-index.d.cts +13 -0
- package/highlevel/methods/chats/build-peers-index.d.ts +13 -0
- package/highlevel/methods/chats/build-peers-index.js +40 -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-all-welcome-messages.cjs +17 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.cts +8 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.ts +8 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.js +12 -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/delete-welcome-message.cjs +18 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.d.cts +9 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.d.ts +9 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.js +13 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.cjs +41 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.cts +39 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.ts +39 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.js +36 -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/get-welcome-messages.cjs +29 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.d.cts +8 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.d.ts +8 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.js +24 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.cjs +48 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.cts +47 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.ts +47 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.js +43 -0
- package/highlevel/methods/files/download-iterable.cjs +7 -2
- package/highlevel/methods/files/download-iterable.js +7 -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/files/normalize-input-media.cjs +25 -4
- package/highlevel/methods/files/normalize-input-media.js +25 -4
- 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 +2 -2
- 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 +2 -2
- 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.cjs +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-closed.js +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 +3 -3
- package/highlevel/methods/forums/toggle-general-topic-hidden.js +4 -4
- package/highlevel/methods/gifts/buy-resale-gift.cjs +5 -2
- package/highlevel/methods/gifts/buy-resale-gift.d.cts +11 -1
- package/highlevel/methods/gifts/buy-resale-gift.d.ts +11 -1
- package/highlevel/methods/gifts/buy-resale-gift.js +5 -2
- package/highlevel/methods/messages/forward-messages.cjs +1 -0
- package/highlevel/methods/messages/forward-messages.d.cts +2 -0
- package/highlevel/methods/messages/forward-messages.d.ts +2 -0
- package/highlevel/methods/messages/forward-messages.js +1 -0
- package/highlevel/methods/messages/normalize-rich-message.cjs +3 -0
- package/highlevel/methods/messages/normalize-rich-message.js +3 -0
- 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 -35
- package/highlevel/methods/messages/send-text.js +70 -35
- package/highlevel/methods/messages/send-typing.d.cts +3 -3
- package/highlevel/methods/messages/send-typing.d.ts +3 -3
- package/highlevel/methods/messages/set-typing.cjs +1 -1
- package/highlevel/methods/messages/set-typing.d.cts +2 -2
- package/highlevel/methods/messages/set-typing.d.ts +2 -2
- package/highlevel/methods/messages/set-typing.js +1 -1
- package/highlevel/methods/users/resolve-peer.cjs +11 -1
- package/highlevel/methods/users/resolve-peer.js +11 -1
- package/highlevel/methods.d.cts +19 -0
- package/highlevel/methods.d.ts +19 -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/bots/keyboards/builder.cjs +5 -5
- package/highlevel/types/bots/keyboards/builder.d.cts +8 -9
- package/highlevel/types/bots/keyboards/builder.d.ts +8 -9
- package/highlevel/types/bots/keyboards/builder.js +5 -5
- package/highlevel/types/bots/keyboards/factories.cjs +51 -103
- package/highlevel/types/bots/keyboards/factories.d.cts +58 -89
- package/highlevel/types/bots/keyboards/factories.d.ts +58 -89
- package/highlevel/types/bots/keyboards/factories.js +51 -103
- package/highlevel/types/bots/keyboards/index.d.cts +3 -3
- package/highlevel/types/bots/keyboards/index.d.ts +3 -3
- package/highlevel/types/bots/keyboards/normalize.cjs +131 -0
- package/highlevel/types/bots/keyboards/normalize.d.cts +10 -0
- package/highlevel/types/bots/keyboards/normalize.d.ts +10 -0
- package/highlevel/types/bots/keyboards/normalize.js +126 -0
- package/highlevel/types/bots/keyboards/types.d.cts +160 -4
- package/highlevel/types/bots/keyboards/types.d.ts +160 -4
- 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/dialog.cjs +8 -1
- package/highlevel/types/messages/dialog.d.cts +3 -0
- package/highlevel/types/messages/dialog.d.ts +3 -0
- package/highlevel/types/messages/dialog.js +8 -1
- package/highlevel/types/messages/dialog.test.d.cts +1 -0
- package/highlevel/types/messages/dialog.test.d.ts +1 -0
- package/highlevel/types/messages/ephemeral-message.cjs +135 -0
- package/highlevel/types/messages/ephemeral-message.d.cts +75 -0
- package/highlevel/types/messages/ephemeral-message.d.ts +75 -0
- package/highlevel/types/messages/ephemeral-message.js +130 -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 +14 -1
- package/highlevel/types/messages/message-action.d.cts +18 -1
- package/highlevel/types/messages/message-action.d.ts +18 -1
- package/highlevel/types/messages/message-action.js +14 -1
- package/highlevel/types/messages/message.cjs +7 -2
- package/highlevel/types/messages/message.d.cts +2 -2
- package/highlevel/types/messages/message.d.ts +2 -2
- package/highlevel/types/messages/message.js +8 -3
- 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/messages/rich/inner.cjs +37 -0
- package/highlevel/types/messages/rich/inner.d.cts +19 -0
- package/highlevel/types/messages/rich/inner.d.ts +19 -0
- package/highlevel/types/messages/rich/inner.js +37 -0
- 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 +24 -5
- package/highlevel/types/peers/full-chat.d.cts +7 -0
- package/highlevel/types/peers/full-chat.d.ts +7 -0
- package/highlevel/types/peers/full-chat.js +24 -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/typing-status.d.cts +4 -1
- package/highlevel/types/peers/typing-status.d.ts +4 -1
- 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 +69 -0
- package/highlevel/types/updates/ephemeral-callback-query.d.cts +44 -0
- package/highlevel/types/updates/ephemeral-callback-query.d.ts +44 -0
- package/highlevel/types/updates/ephemeral-callback-query.js +64 -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/types/updates/user-typing-update.cjs +18 -0
- package/highlevel/types/updates/user-typing-update.d.cts +9 -0
- package/highlevel/types/updates/user-typing-update.d.ts +9 -0
- package/highlevel/types/updates/user-typing-update.js +18 -0
- package/highlevel/updates/manager.cjs +71 -41
- package/highlevel/updates/manager.d.cts +1 -0
- package/highlevel/updates/manager.d.ts +1 -0
- package/highlevel/updates/manager.js +71 -41
- 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 +9 -0
- package/highlevel/utils/walk-page-blocks.js +9 -0
- package/index.cjs +10 -0
- package/index.js +11 -1
- package/methods.cjs +33 -0
- package/methods.js +33 -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/mtproto-session.cjs +9 -2
- package/network/mtproto-session.d.cts +3 -1
- package/network/mtproto-session.d.ts +3 -1
- package/network/mtproto-session.js +9 -2
- 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 +15 -6
- package/network/session-connection.js +15 -6
- package/network/session-connection.test.d.cts +1 -0
- package/network/session-connection.test.d.ts +1 -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 +221 -103
- package/tl/binary/reader.js +221 -103
- package/tl/binary/writer.cjs +693 -277
- package/tl/binary/writer.js +693 -277
- package/tl/compat/reader.cjs +93 -0
- package/tl/compat/reader.js +93 -0
- package/tl/index.d.cts +12529 -4762
- package/tl/index.d.ts +12529 -4762
- package/tl/inner-tl.cjs +90 -24
- package/tl/inner-tl.js +90 -24
- package/tl/raw-errors.json +1 -1
- package/tl/rpc-error.test.d.cts +1 -0
- package/tl/rpc-error.test.d.ts +1 -0
- 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 +189 -29
- package/utils/binary/compat.js +189 -29
- 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 +10 -2
- package/utils/links/bots.js +10 -2
- package/utils/peer-utils.cjs +8 -0
- package/utils/peer-utils.js +8 -0
package/tl/binary/reader.cjs
CHANGED
|
@@ -230,9 +230,9 @@ var m = {
|
|
|
230
230
|
3552332666: function(r) {
|
|
231
231
|
return { _: "userEmpty", id: r.int53() };
|
|
232
232
|
},
|
|
233
|
-
|
|
233
|
+
2981678211: function(r) {
|
|
234
234
|
var flags = r.uint(), flags2 = r.uint();
|
|
235
|
-
return { _: "user", 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 };
|
|
235
|
+
return { _: "user", 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, linkedCommunityId: flags2 & 2097152 ? r.int53() : void 0 };
|
|
236
236
|
},
|
|
237
237
|
1326562017: function(r) {
|
|
238
238
|
return { _: "userProfilePhotoEmpty" };
|
|
@@ -272,21 +272,33 @@ var m = {
|
|
|
272
272
|
1704108455: function(r) {
|
|
273
273
|
return { _: "chatForbidden", id: r.int53(), title: r.string() };
|
|
274
274
|
},
|
|
275
|
-
|
|
275
|
+
3567203526: function(r) {
|
|
276
276
|
var flags = r.uint(), flags2 = r.uint();
|
|
277
|
-
return { _: "channel", 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 };
|
|
277
|
+
return { _: "channel", 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, linkedCommunityId: flags2 & 1048576 ? r.int53() : void 0 };
|
|
278
278
|
},
|
|
279
279
|
399807445: function(r) {
|
|
280
280
|
var flags = r.uint();
|
|
281
281
|
return { _: "channelForbidden", broadcast: !!(flags & 32), megagroup: !!(flags & 256), monoforum: !!(flags & 1024), id: r.int53(), accessHash: r.long(), title: r.string(), untilDate: flags & 65536 ? r.int() : void 0 };
|
|
282
282
|
},
|
|
283
|
+
4248623800: function(r) {
|
|
284
|
+
var flags = r.uint();
|
|
285
|
+
return { _: "communityForbidden", id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string() };
|
|
286
|
+
},
|
|
287
|
+
1710221652: function(r) {
|
|
288
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
289
|
+
return { _: "community", creator: !!(flags & 1), left: !!(flags & 4), min: !!(flags & 4096), collapsedInDialogs: !!(flags2 & 1048576), id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string(), photo: r.object(), date: r.int(), adminRights: flags & 16384 ? r.object() : void 0, defaultBannedRights: flags & 262144 ? r.object() : void 0 };
|
|
290
|
+
},
|
|
283
291
|
640893467: function(r) {
|
|
284
292
|
var flags = r.uint();
|
|
285
|
-
return { _: "chatFull", canSetUsername: !!(flags & 128), hasScheduled: !!(flags & 256), translationsDisabled: !!(flags & 524288), id: r.int53(), about: r.string(), participants: r.object(), chatPhoto: flags & 4 ? r.object() : void 0, notifySettings: r.object(), exportedInvite: flags & 8192 ? r.object() : void 0, botInfo: flags & 8 ? r.vector(r.object) : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, folderId: flags & 2048 ? r.int() : void 0, call: flags & 4096 ? r.object() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, groupcallDefaultJoinAs: flags & 32768 ? r.object() : void 0, themeEmoticon: flags & 65536 ? r.string() : void 0, requestsPending: flags & 131072 ? r.int() : void 0, recentRequesters: flags & 131072 ? r.vector(r.long) : void 0, availableReactions: flags & 262144 ? r.object() : void 0, reactionsLimit: flags & 1048576 ? r.int() : void 0 };
|
|
293
|
+
return { _: "chatFull", canSetUsername: !!(flags & 128), hasScheduled: !!(flags & 256), translationsDisabled: !!(flags & 524288), hasWelcomeMessages: !!(flags & 2097152), id: r.int53(), about: r.string(), participants: r.object(), chatPhoto: flags & 4 ? r.object() : void 0, notifySettings: r.object(), exportedInvite: flags & 8192 ? r.object() : void 0, botInfo: flags & 8 ? r.vector(r.object) : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, folderId: flags & 2048 ? r.int() : void 0, call: flags & 4096 ? r.object() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, groupcallDefaultJoinAs: flags & 32768 ? r.object() : void 0, themeEmoticon: flags & 65536 ? r.string() : void 0, requestsPending: flags & 131072 ? r.int() : void 0, recentRequesters: flags & 131072 ? r.vector(r.long) : void 0, availableReactions: flags & 262144 ? r.object() : void 0, reactionsLimit: flags & 1048576 ? r.int() : void 0 };
|
|
286
294
|
},
|
|
287
295
|
2689502522: function(r) {
|
|
288
296
|
var flags = r.uint(), flags2 = r.uint();
|
|
289
|
-
return { _: "channelFull", canViewParticipants: !!(flags & 8), canSetUsername: !!(flags & 64), canSetStickers: !!(flags & 128), hiddenPrehistory: !!(flags & 1024), canSetLocation: !!(flags & 65536), hasScheduled: !!(flags & 524288), canViewStats: !!(flags & 1048576), blocked: !!(flags & 4194304), canDeleteChannel: !!(flags2 & 1), antispam: !!(flags2 & 2), participantsHidden: !!(flags2 & 4), translationsDisabled: !!(flags2 & 8), storiesPinnedAvailable: !!(flags2 & 32), viewForumAsMessages: !!(flags2 & 64), restrictedSponsored: !!(flags2 & 2048), canViewRevenue: !!(flags2 & 4096), paidMediaAllowed: !!(flags2 & 16384), canViewStarsRevenue: !!(flags2 & 32768), paidReactionsAvailable: !!(flags2 & 65536), stargiftsAvailable: !!(flags2 & 524288), paidMessagesAvailable: !!(flags2 & 1048576), id: r.int53(), about: r.string(), participantsCount: flags & 1 ? r.int() : void 0, adminsCount: flags & 2 ? r.int() : void 0, kickedCount: flags & 4 ? r.int() : void 0, bannedCount: flags & 4 ? r.int() : void 0, onlineCount: flags & 8192 ? r.int() : void 0, readInboxMaxId: r.int(), readOutboxMaxId: r.int(), unreadCount: r.int(), chatPhoto: r.object(), notifySettings: r.object(), exportedInvite: flags & 8388608 ? r.object() : void 0, botInfo: r.vector(r.object), migratedFromChatId: flags & 16 ? r.long() : void 0, migratedFromMaxId: flags & 16 ? r.int() : void 0, pinnedMsgId: flags & 32 ? r.int() : void 0, stickerset: flags & 256 ? r.object() : void 0, availableMinId: flags & 512 ? r.int() : void 0, folderId: flags & 2048 ? r.int() : void 0, linkedChatId: flags & 16384 ? r.int53() : void 0, location: flags & 32768 ? r.object() : void 0, slowmodeSeconds: flags & 131072 ? r.int() : void 0, slowmodeNextSendDate: flags & 262144 ? r.int() : void 0, statsDc: flags & 4096 ? r.int() : void 0, pts: r.int(), call: flags & 2097152 ? r.object() : void 0, ttlPeriod: flags & 16777216 ? r.int() : void 0, pendingSuggestions: flags & 33554432 ? r.vector(r.string) : void 0, groupcallDefaultJoinAs: flags & 67108864 ? r.object() : void 0, themeEmoticon: flags & 134217728 ? r.string() : void 0, requestsPending: flags & 268435456 ? r.int() : void 0, recentRequesters: flags & 268435456 ? r.vector(r.int53) : void 0, defaultSendAs: flags & 536870912 ? r.object() : void 0, availableReactions: flags & 1073741824 ? r.object() : void 0, reactionsLimit: flags2 & 8192 ? r.int() : void 0, stories: flags2 & 16 ? r.object() : void 0, wallpaper: flags2 & 128 ? r.object() : void 0, boostsApplied: flags2 & 256 ? r.int() : void 0, boostsUnrestrict: flags2 & 512 ? r.int() : void 0, emojiset: flags2 & 1024 ? r.object() : void 0, botVerification: flags2 & 131072 ? r.object() : void 0, stargiftsCount: flags2 & 262144 ? r.int() : void 0, sendPaidMessagesStars: flags2 & 2097152 ? r.long() : void 0, mainTab: flags2 & 4194304 ? r.object() : void 0, guardBotId: flags2 & 8388608 ? r.int53() : void 0 };
|
|
297
|
+
return { _: "channelFull", canViewParticipants: !!(flags & 8), canSetUsername: !!(flags & 64), canSetStickers: !!(flags & 128), hiddenPrehistory: !!(flags & 1024), canSetLocation: !!(flags & 65536), hasScheduled: !!(flags & 524288), canViewStats: !!(flags & 1048576), blocked: !!(flags & 4194304), canDeleteChannel: !!(flags2 & 1), antispam: !!(flags2 & 2), participantsHidden: !!(flags2 & 4), translationsDisabled: !!(flags2 & 8), storiesPinnedAvailable: !!(flags2 & 32), viewForumAsMessages: !!(flags2 & 64), restrictedSponsored: !!(flags2 & 2048), canViewRevenue: !!(flags2 & 4096), paidMediaAllowed: !!(flags2 & 16384), canViewStarsRevenue: !!(flags2 & 32768), paidReactionsAvailable: !!(flags2 & 65536), stargiftsAvailable: !!(flags2 & 524288), paidMessagesAvailable: !!(flags2 & 1048576), hasWelcomeMessages: !!(flags2 & 16777216), id: r.int53(), about: r.string(), participantsCount: flags & 1 ? r.int() : void 0, adminsCount: flags & 2 ? r.int() : void 0, kickedCount: flags & 4 ? r.int() : void 0, bannedCount: flags & 4 ? r.int() : void 0, onlineCount: flags & 8192 ? r.int() : void 0, readInboxMaxId: r.int(), readOutboxMaxId: r.int(), unreadCount: r.int(), chatPhoto: r.object(), notifySettings: r.object(), exportedInvite: flags & 8388608 ? r.object() : void 0, botInfo: r.vector(r.object), migratedFromChatId: flags & 16 ? r.long() : void 0, migratedFromMaxId: flags & 16 ? r.int() : void 0, pinnedMsgId: flags & 32 ? r.int() : void 0, stickerset: flags & 256 ? r.object() : void 0, availableMinId: flags & 512 ? r.int() : void 0, folderId: flags & 2048 ? r.int() : void 0, linkedChatId: flags & 16384 ? r.int53() : void 0, location: flags & 32768 ? r.object() : void 0, slowmodeSeconds: flags & 131072 ? r.int() : void 0, slowmodeNextSendDate: flags & 262144 ? r.int() : void 0, statsDc: flags & 4096 ? r.int() : void 0, pts: r.int(), call: flags & 2097152 ? r.object() : void 0, ttlPeriod: flags & 16777216 ? r.int() : void 0, pendingSuggestions: flags & 33554432 ? r.vector(r.string) : void 0, groupcallDefaultJoinAs: flags & 67108864 ? r.object() : void 0, themeEmoticon: flags & 134217728 ? r.string() : void 0, requestsPending: flags & 268435456 ? r.int() : void 0, recentRequesters: flags & 268435456 ? r.vector(r.int53) : void 0, defaultSendAs: flags & 536870912 ? r.object() : void 0, availableReactions: flags & 1073741824 ? r.object() : void 0, reactionsLimit: flags2 & 8192 ? r.int() : void 0, stories: flags2 & 16 ? r.object() : void 0, wallpaper: flags2 & 128 ? r.object() : void 0, boostsApplied: flags2 & 256 ? r.int() : void 0, boostsUnrestrict: flags2 & 512 ? r.int() : void 0, emojiset: flags2 & 1024 ? r.object() : void 0, botVerification: flags2 & 131072 ? r.object() : void 0, stargiftsCount: flags2 & 262144 ? r.int() : void 0, sendPaidMessagesStars: flags2 & 2097152 ? r.long() : void 0, mainTab: flags2 & 4194304 ? r.object() : void 0, guardBotId: flags2 & 8388608 ? r.int53() : void 0 };
|
|
298
|
+
},
|
|
299
|
+
3417810183: function(r) {
|
|
300
|
+
var flags = r.uint();
|
|
301
|
+
return { _: "communityFull", id: r.int53(), about: r.string(), chatPhoto: r.object(), linkedPeers: r.vector(r.object), adminsCount: flags & 2 ? r.int() : void 0, kickedCount: flags & 4 ? r.int() : void 0, peerLinkRequestsPending: flags & 1 ? r.int() : void 0 };
|
|
290
302
|
},
|
|
291
303
|
954703838: function(r) {
|
|
292
304
|
var flags = r.uint();
|
|
@@ -553,9 +565,9 @@ var m = {
|
|
|
553
565
|
var flags = r.uint();
|
|
554
566
|
return { _: "messageActionStarGift", nameHidden: !!(flags & 1), saved: !!(flags & 4), converted: !!(flags & 8), upgraded: !!(flags & 32), refunded: !!(flags & 512), canUpgrade: !!(flags & 1024), prepaidUpgrade: !!(flags & 8192), upgradeSeparate: !!(flags & 65536), auctionAcquired: !!(flags & 131072), gift: r.object(), message: flags & 2 ? r.object() : void 0, convertStars: flags & 16 ? r.long() : void 0, upgradeMsgId: flags & 32 ? r.int() : void 0, upgradeStars: flags & 256 ? r.long() : void 0, fromId: flags & 2048 ? r.object() : void 0, peer: flags & 4096 ? r.object() : void 0, savedId: flags & 4096 ? r.long() : void 0, prepaidUpgradeHash: flags & 16384 ? r.string() : void 0, giftMsgId: flags & 32768 ? r.int() : void 0, toId: flags & 262144 ? r.object() : void 0, giftNum: flags & 524288 ? r.int() : void 0 };
|
|
555
567
|
},
|
|
556
|
-
|
|
568
|
+
2115768711: function(r) {
|
|
557
569
|
var flags = r.uint();
|
|
558
|
-
return { _: "messageActionStarGiftUnique", upgrade: !!(flags & 1), transferred: !!(flags & 2), saved: !!(flags & 4), refunded: !!(flags & 32), prepaidUpgrade: !!(flags & 2048), assigned: !!(flags & 8192), fromOffer: !!(flags & 16384), craft: !!(flags & 65536), gift: r.object(), canExportAt: flags & 8 ? r.int() : void 0, transferStars: flags & 16 ? r.long() : void 0, fromId: flags & 64 ? r.object() : void 0, peer: flags & 128 ? r.object() : void 0, savedId: flags & 128 ? r.long() : void 0, resaleAmount: flags & 256 ? r.object() : void 0, canTransferAt: flags & 512 ? r.int() : void 0, canResellAt: flags & 1024 ? r.int() : void 0, dropOriginalDetailsStars: flags & 4096 ? r.long() : void 0, canCraftAt: flags & 32768 ? r.int() : void 0 };
|
|
570
|
+
return { _: "messageActionStarGiftUnique", upgrade: !!(flags & 1), transferred: !!(flags & 2), saved: !!(flags & 4), refunded: !!(flags & 32), prepaidUpgrade: !!(flags & 2048), assigned: !!(flags & 8192), fromOffer: !!(flags & 16384), craft: !!(flags & 65536), nameHidden: !!(flags & 131072), gift: r.object(), canExportAt: flags & 8 ? r.int() : void 0, transferStars: flags & 16 ? r.long() : void 0, fromId: flags & 64 ? r.object() : void 0, peer: flags & 128 ? r.object() : void 0, savedId: flags & 128 ? r.long() : void 0, resaleAmount: flags & 256 ? r.object() : void 0, canTransferAt: flags & 512 ? r.int() : void 0, canResellAt: flags & 1024 ? r.int() : void 0, dropOriginalDetailsStars: flags & 4096 ? r.long() : void 0, canCraftAt: flags & 32768 ? r.int() : void 0, message: flags & 262144 ? r.object() : void 0 };
|
|
559
571
|
},
|
|
560
572
|
2887720909: function(r) {
|
|
561
573
|
return { _: "messageActionPaidMessagesRefunded", count: r.int(), stars: r.long() };
|
|
@@ -622,6 +634,13 @@ var m = {
|
|
|
622
634
|
375414334: function(r) {
|
|
623
635
|
return { _: "messageActionManagedBotCreated", botId: r.int53() };
|
|
624
636
|
},
|
|
637
|
+
1562426088: function(r) {
|
|
638
|
+
var flags = r.uint();
|
|
639
|
+
return { _: "messageActionChangeCommunity", communityId: flags & 1 ? r.int53() : void 0 };
|
|
640
|
+
},
|
|
641
|
+
1250688640: function(r) {
|
|
642
|
+
return { _: "messageActionChatJoinedViaCommunity", communityId: r.int53() };
|
|
643
|
+
},
|
|
625
644
|
4236900339: function(r) {
|
|
626
645
|
var flags = r.uint();
|
|
627
646
|
return { _: "dialog", pinned: !!(flags & 4), unreadMark: !!(flags & 8), viewForumAsMessages: !!(flags & 64), peer: r.object(), topMessage: r.int(), readInboxMaxId: r.int(), readOutboxMaxId: r.int(), unreadCount: r.int(), unreadMentionsCount: r.int(), unreadReactionsCount: r.int(), unreadPollVotesCount: r.int(), notifySettings: r.object(), pts: flags & 1 ? r.int() : void 0, draft: flags & 2 ? r.object() : void 0, folderId: flags & 16 ? r.int() : void 0, ttlPeriod: flags & 32 ? r.int() : void 0 };
|
|
@@ -630,6 +649,10 @@ var m = {
|
|
|
630
649
|
var flags = r.uint();
|
|
631
650
|
return { _: "dialogFolder", pinned: !!(flags & 4), folder: r.object(), peer: r.object(), topMessage: r.int(), unreadMutedPeersCount: r.int(), unreadUnmutedPeersCount: r.int(), unreadMutedMessagesCount: r.int(), unreadUnmutedMessagesCount: r.int() };
|
|
632
651
|
},
|
|
652
|
+
4153018739: function(r) {
|
|
653
|
+
var flags = r.uint();
|
|
654
|
+
return { _: "dialogCommunity", pinned: !!(flags & 4), communityId: r.int53(), notifySettings: r.object() };
|
|
655
|
+
},
|
|
633
656
|
590459437: function(r) {
|
|
634
657
|
return { _: "photoEmpty", id: r.long() };
|
|
635
658
|
},
|
|
@@ -698,6 +721,9 @@ var m = {
|
|
|
698
721
|
1548122514: function(r) {
|
|
699
722
|
return { _: "inputNotifyForumTopic", peer: r.object(), topMsgId: r.int() };
|
|
700
723
|
},
|
|
724
|
+
666573532: function(r) {
|
|
725
|
+
return { _: "inputNotifyCommunity", community: r.object() };
|
|
726
|
+
},
|
|
701
727
|
3402328802: function(r) {
|
|
702
728
|
var flags = r.uint();
|
|
703
729
|
return { _: "inputPeerNotifySettings", showPreviews: flags & 1 ? r.boolean() : void 0, silent: flags & 2 ? r.boolean() : void 0, muteUntil: flags & 4 ? r.int() : void 0, sound: flags & 8 ? r.object() : void 0, storiesMuted: flags & 64 ? r.boolean() : void 0, storiesHideSender: flags & 128 ? r.boolean() : void 0, storiesSound: flags & 256 ? r.object() : void 0 };
|
|
@@ -1395,6 +1421,23 @@ var m = {
|
|
|
1395
1421
|
var flags = r.uint();
|
|
1396
1422
|
return { _: "updateWebBrowserException", delete: !!(flags & 2), openExternalBrowser: flags & 1 ? r.boolean() : void 0, exception: r.object() };
|
|
1397
1423
|
},
|
|
1424
|
+
549239713: function(r) {
|
|
1425
|
+
return { _: "updateNewEphemeralMessage", message: r.object() };
|
|
1426
|
+
},
|
|
1427
|
+
1457257720: function(r) {
|
|
1428
|
+
return { _: "updateDeleteEphemeralMessages", peer: r.object(), ids: r.vector(r.int) };
|
|
1429
|
+
},
|
|
1430
|
+
1270583041: function(r) {
|
|
1431
|
+
return { _: "updateEditEphemeralMessage", message: r.object() };
|
|
1432
|
+
},
|
|
1433
|
+
2081454550: function(r) {
|
|
1434
|
+
var flags = r.uint();
|
|
1435
|
+
return { _: "updateEphemeralBotCallbackQuery", queryId: r.long(), userId: r.int53(), peer: flags & 1 ? r.object() : void 0, msgId: r.int(), data: r.bytes(), chatInstance: flags & 2 ? r.long() : void 0, message: r.object() };
|
|
1436
|
+
},
|
|
1437
|
+
1812827683: function(r) {
|
|
1438
|
+
var flags = r.uint();
|
|
1439
|
+
return { _: "updateBotStarsSubscription", canceled: !!(flags & 1), paymentFailed: !!(flags & 2), restored: !!(flags & 4), userId: r.int53(), payload: r.bytes(), qts: r.int() };
|
|
1440
|
+
},
|
|
1398
1441
|
2775329342: function(r) {
|
|
1399
1442
|
return { _: "updates.state", pts: r.int(), qts: r.int(), date: r.int(), seq: r.int(), unreadCount: r.int() };
|
|
1400
1443
|
},
|
|
@@ -1557,6 +1600,9 @@ var m = {
|
|
|
1557
1600
|
577659656: function(r) {
|
|
1558
1601
|
return { _: "notifyForumTopic", peer: r.object(), topMsgId: r.int() };
|
|
1559
1602
|
},
|
|
1603
|
+
3191302553: function(r) {
|
|
1604
|
+
return { _: "notifyCommunity", communityId: r.int53() };
|
|
1605
|
+
},
|
|
1560
1606
|
381645902: function(r) {
|
|
1561
1607
|
return { _: "sendMessageTypingAction" };
|
|
1562
1608
|
},
|
|
@@ -1611,14 +1657,20 @@ var m = {
|
|
|
1611
1657
|
3060109358: function(r) {
|
|
1612
1658
|
return { _: "sendMessageEmojiInteractionSeen", emoticon: r.string() };
|
|
1613
1659
|
},
|
|
1614
|
-
|
|
1615
|
-
|
|
1660
|
+
909162586: function(r) {
|
|
1661
|
+
var flags = r.uint();
|
|
1662
|
+
return { _: "sendMessageTextDraftAction", canStop: !!(flags & 1), keepOnStop: !!(flags & 2), randomId: r.long(), text: r.object() };
|
|
1663
|
+
},
|
|
1664
|
+
2839005118: function(r) {
|
|
1665
|
+
var flags = r.uint();
|
|
1666
|
+
return { _: "inputSendMessageRichMessageDraftAction", canStop: !!(flags & 1), keepOnStop: !!(flags & 2), randomId: r.long(), richMessage: r.object() };
|
|
1616
1667
|
},
|
|
1617
|
-
|
|
1618
|
-
|
|
1668
|
+
1381386387: function(r) {
|
|
1669
|
+
var flags = r.uint();
|
|
1670
|
+
return { _: "sendMessageRichMessageDraftAction", canStop: !!(flags & 1), keepOnStop: !!(flags & 2), randomId: r.long(), richMessage: r.object() };
|
|
1619
1671
|
},
|
|
1620
|
-
|
|
1621
|
-
return { _: "
|
|
1672
|
+
4227400368: function(r) {
|
|
1673
|
+
return { _: "sendMessageStopDraftAction", randomId: r.long() };
|
|
1622
1674
|
},
|
|
1623
1675
|
3004386717: function(r) {
|
|
1624
1676
|
return { _: "contacts.found", myResults: r.vector(r.object), results: r.vector(r.object), chats: r.vector(r.object), users: r.vector(r.object) };
|
|
@@ -1935,84 +1987,17 @@ var m = {
|
|
|
1935
1987
|
3556320491: function(r) {
|
|
1936
1988
|
return { _: "messages.stickerSetNotModified" };
|
|
1937
1989
|
},
|
|
1938
|
-
|
|
1939
|
-
|
|
1990
|
+
2555565778: function(r) {
|
|
1991
|
+
var flags = r.uint();
|
|
1992
|
+
return { _: "botCommand", ephemeral: !!(flags & 1), command: r.string(), description: r.string() };
|
|
1940
1993
|
},
|
|
1941
1994
|
1300890265: function(r) {
|
|
1942
1995
|
var flags = r.uint();
|
|
1943
1996
|
return { _: "botInfo", hasPreviewMedias: !!(flags & 64), userId: flags & 1 ? r.int53() : void 0, description: flags & 2 ? r.string() : void 0, descriptionPhoto: flags & 16 ? r.object() : void 0, descriptionDocument: flags & 32 ? r.object() : void 0, commands: flags & 4 ? r.vector(r.object) : void 0, menuButton: flags & 8 ? r.object() : void 0, privacyPolicyUrl: flags & 128 ? r.string() : void 0, appSettings: flags & 256 ? r.object() : void 0, verifierSettings: flags & 512 ? r.object() : void 0 };
|
|
1944
1997
|
},
|
|
1945
|
-
|
|
1946
|
-
var flags = r.uint();
|
|
1947
|
-
return { _: "keyboardButton", style: flags & 1024 ? r.object() : void 0, text: r.string() };
|
|
1948
|
-
},
|
|
1949
|
-
3624674796: function(r) {
|
|
1950
|
-
var flags = r.uint();
|
|
1951
|
-
return { _: "keyboardButtonUrl", style: flags & 1024 ? r.object() : void 0, text: r.string(), url: r.string() };
|
|
1952
|
-
},
|
|
1953
|
-
3861629280: function(r) {
|
|
1954
|
-
var flags = r.uint();
|
|
1955
|
-
return { _: "keyboardButtonCallback", requiresPassword: !!(flags & 1), style: flags & 1024 ? r.object() : void 0, text: r.string(), data: r.bytes() };
|
|
1956
|
-
},
|
|
1957
|
-
1098841487: function(r) {
|
|
1958
|
-
var flags = r.uint();
|
|
1959
|
-
return { _: "keyboardButtonRequestPhone", style: flags & 1024 ? r.object() : void 0, text: r.string() };
|
|
1960
|
-
},
|
|
1961
|
-
2856384845: function(r) {
|
|
1962
|
-
var flags = r.uint();
|
|
1963
|
-
return { _: "keyboardButtonRequestGeoLocation", style: flags & 1024 ? r.object() : void 0, text: r.string() };
|
|
1964
|
-
},
|
|
1965
|
-
2568198652: function(r) {
|
|
1966
|
-
var flags = r.uint();
|
|
1967
|
-
return { _: "keyboardButtonSwitchInline", samePeer: !!(flags & 1), style: flags & 1024 ? r.object() : void 0, text: r.string(), query: r.string(), peerTypes: flags & 2 ? r.vector(r.object) : void 0 };
|
|
1968
|
-
},
|
|
1969
|
-
2311426297: function(r) {
|
|
1970
|
-
var flags = r.uint();
|
|
1971
|
-
return { _: "keyboardButtonGame", style: flags & 1024 ? r.object() : void 0, text: r.string() };
|
|
1972
|
-
},
|
|
1973
|
-
1067792645: function(r) {
|
|
1974
|
-
var flags = r.uint();
|
|
1975
|
-
return { _: "keyboardButtonBuy", style: flags & 1024 ? r.object() : void 0, text: r.string() };
|
|
1976
|
-
},
|
|
1977
|
-
4111468281: function(r) {
|
|
1978
|
-
var flags = r.uint();
|
|
1979
|
-
return { _: "keyboardButtonUrlAuth", style: flags & 1024 ? r.object() : void 0, text: r.string(), fwdText: flags & 1 ? r.string() : void 0, url: r.string(), buttonId: r.int() };
|
|
1980
|
-
},
|
|
1981
|
-
1744911986: function(r) {
|
|
1982
|
-
var flags = r.uint();
|
|
1983
|
-
return { _: "inputKeyboardButtonUrlAuth", requestWriteAccess: !!(flags & 1), style: flags & 1024 ? r.object() : void 0, text: r.string(), fwdText: flags & 2 ? r.string() : void 0, url: r.string(), bot: r.object() };
|
|
1984
|
-
},
|
|
1985
|
-
2047989634: function(r) {
|
|
1986
|
-
var flags = r.uint();
|
|
1987
|
-
return { _: "keyboardButtonRequestPoll", style: flags & 1024 ? r.object() : void 0, quiz: flags & 1 ? r.boolean() : void 0, text: r.string() };
|
|
1988
|
-
},
|
|
1989
|
-
2103314375: function(r) {
|
|
1990
|
-
var flags = r.uint();
|
|
1991
|
-
return { _: "inputKeyboardButtonUserProfile", style: flags & 1024 ? r.object() : void 0, text: r.string(), userId: r.object() };
|
|
1992
|
-
},
|
|
1993
|
-
3237829897: function(r) {
|
|
1994
|
-
var flags = r.uint();
|
|
1995
|
-
return { _: "keyboardButtonUserProfile", style: flags & 1024 ? r.object() : void 0, text: r.string(), userId: r.int53() };
|
|
1996
|
-
},
|
|
1997
|
-
3896947104: function(r) {
|
|
1998
|
-
var flags = r.uint();
|
|
1999
|
-
return { _: "keyboardButtonWebView", style: flags & 1024 ? r.object() : void 0, text: r.string(), url: r.string() };
|
|
2000
|
-
},
|
|
2001
|
-
3780920176: function(r) {
|
|
2002
|
-
var flags = r.uint();
|
|
2003
|
-
return { _: "keyboardButtonSimpleWebView", style: flags & 1024 ? r.object() : void 0, text: r.string(), url: r.string() };
|
|
2004
|
-
},
|
|
2005
|
-
1527715317: function(r) {
|
|
2006
|
-
var flags = r.uint();
|
|
2007
|
-
return { _: "keyboardButtonRequestPeer", style: flags & 1024 ? r.object() : void 0, text: r.string(), buttonId: r.int(), peerType: r.object(), maxQuantity: r.int() };
|
|
2008
|
-
},
|
|
2009
|
-
45580630: function(r) {
|
|
1998
|
+
795322159: function(r) {
|
|
2010
1999
|
var flags = r.uint();
|
|
2011
|
-
return { _: "
|
|
2012
|
-
},
|
|
2013
|
-
3167006480: function(r) {
|
|
2014
|
-
var flags = r.uint();
|
|
2015
|
-
return { _: "keyboardButtonCopy", style: flags & 1024 ? r.object() : void 0, text: r.string(), copyText: r.string() };
|
|
2000
|
+
return { _: "keyboardButton", style: flags & 1024 ? r.object() : void 0, text: r.string(), type: r.object() };
|
|
2016
2001
|
},
|
|
2017
2002
|
2002815875: function(r) {
|
|
2018
2003
|
return { _: "keyboardButtonRow", buttons: r.vector(r.object) };
|
|
@@ -2027,10 +2012,11 @@ var m = {
|
|
|
2027
2012
|
},
|
|
2028
2013
|
2245892561: function(r) {
|
|
2029
2014
|
var flags = r.uint();
|
|
2030
|
-
return { _: "replyKeyboardMarkup", resize: !!(flags & 1), singleUse: !!(flags & 2), selective: !!(flags & 4), persistent: !!(flags & 16), rows: r.vector(r.object), placeholder: flags & 8 ? r.string() : void 0 };
|
|
2015
|
+
return { _: "replyKeyboardMarkup", resize: !!(flags & 1), singleUse: !!(flags & 2), selective: !!(flags & 4), persistent: !!(flags & 16), forceReply: !!(flags & 32), rows: r.vector(r.object), placeholder: flags & 8 ? r.string() : void 0 };
|
|
2031
2016
|
},
|
|
2032
|
-
|
|
2033
|
-
|
|
2017
|
+
2997966704: function(r) {
|
|
2018
|
+
var flags = r.uint();
|
|
2019
|
+
return { _: "replyInlineMarkup", forceReply: !!(flags & 32), rows: r.vector(r.object) };
|
|
2034
2020
|
},
|
|
2035
2021
|
3146955413: function(r) {
|
|
2036
2022
|
return { _: "messageEntityUnknown", offset: r.int(), length: r.int() };
|
|
@@ -2584,6 +2570,13 @@ var m = {
|
|
|
2584
2570
|
var flags = r.uint();
|
|
2585
2571
|
return { _: "textDate", relative: !!(flags & 1), shortTime: !!(flags & 2), longTime: !!(flags & 4), shortDate: !!(flags & 8), longDate: !!(flags & 16), dayOfWeek: !!(flags & 32), text: r.object(), date: r.int() };
|
|
2586
2572
|
},
|
|
2573
|
+
2525416272: function(r) {
|
|
2574
|
+
return { _: "textDiff", text: r.object(), oldText: r.object() };
|
|
2575
|
+
},
|
|
2576
|
+
2949094614: function(r) {
|
|
2577
|
+
var flags = r.uint();
|
|
2578
|
+
return { _: "textButton", text: r.object(), type: r.object(), style: flags & 1 ? r.object() : void 0 };
|
|
2579
|
+
},
|
|
2587
2580
|
324435594: function(r) {
|
|
2588
2581
|
return { _: "pageBlockUnsupported" };
|
|
2589
2582
|
},
|
|
@@ -2620,8 +2613,9 @@ var m = {
|
|
|
2620
2613
|
3840442385: function(r) {
|
|
2621
2614
|
return { _: "pageBlockList", items: r.vector(r.object) };
|
|
2622
2615
|
},
|
|
2623
|
-
|
|
2624
|
-
|
|
2616
|
+
1724999435: function(r) {
|
|
2617
|
+
var flags = r.uint();
|
|
2618
|
+
return { _: "pageBlockBlockquote", collapsed: !!(flags & 1), text: r.object(), caption: r.object() };
|
|
2625
2619
|
},
|
|
2626
2620
|
1329878739: function(r) {
|
|
2627
2621
|
return { _: "pageBlockPullquote", text: r.object(), caption: r.object() };
|
|
@@ -2661,7 +2655,7 @@ var m = {
|
|
|
2661
2655
|
},
|
|
2662
2656
|
3209554562: function(r) {
|
|
2663
2657
|
var flags = r.uint();
|
|
2664
|
-
return { _: "pageBlockTable", bordered: !!(flags & 1), striped: !!(flags & 2), title: r.object(), rows: r.vector(r.object) };
|
|
2658
|
+
return { _: "pageBlockTable", bordered: !!(flags & 1), striped: !!(flags & 2), compact: !!(flags & 4), title: r.object(), rows: r.vector(r.object) };
|
|
2665
2659
|
},
|
|
2666
2660
|
534181569: function(r) {
|
|
2667
2661
|
var flags = r.uint();
|
|
@@ -2707,6 +2701,13 @@ var m = {
|
|
|
2707
2701
|
242108356: function(r) {
|
|
2708
2702
|
return { _: "pageBlockBlockquoteBlocks", blocks: r.vector(r.object), caption: r.object() };
|
|
2709
2703
|
},
|
|
2704
|
+
1835270936: function(r) {
|
|
2705
|
+
var flags = r.uint();
|
|
2706
|
+
return { _: "pageBlockButtonRow", alignLeft: !!(flags & 1), alignCenter: !!(flags & 2), alignRight: !!(flags & 4), buttons: r.vector(r.object) };
|
|
2707
|
+
},
|
|
2708
|
+
955923363: function(r) {
|
|
2709
|
+
return { _: "pageBlockDocument", documentId: r.long(), caption: r.object() };
|
|
2710
|
+
},
|
|
2710
2711
|
2246320897: function(r) {
|
|
2711
2712
|
return { _: "phoneCallDiscardReasonMissed" };
|
|
2712
2713
|
},
|
|
@@ -3116,12 +3117,18 @@ var m = {
|
|
|
3116
3117
|
1684014375: function(r) {
|
|
3117
3118
|
return { _: "inputDialogPeerFolder", folderId: r.int() };
|
|
3118
3119
|
},
|
|
3120
|
+
1777300164: function(r) {
|
|
3121
|
+
return { _: "inputDialogPeerCommunity", community: r.object() };
|
|
3122
|
+
},
|
|
3119
3123
|
3849174789: function(r) {
|
|
3120
3124
|
return { _: "dialogPeer", peer: r.object() };
|
|
3121
3125
|
},
|
|
3122
3126
|
1363483106: function(r) {
|
|
3123
3127
|
return { _: "dialogPeerFolder", folderId: r.int() };
|
|
3124
3128
|
},
|
|
3129
|
+
795199716: function(r) {
|
|
3130
|
+
return { _: "dialogPeerCommunity", communityId: r.int53() };
|
|
3131
|
+
},
|
|
3125
3132
|
223655517: function(r) {
|
|
3126
3133
|
return { _: "messages.foundStickerSetsNotModified" };
|
|
3127
3134
|
},
|
|
@@ -3393,11 +3400,11 @@ var m = {
|
|
|
3393
3400
|
},
|
|
3394
3401
|
1605510357: function(r) {
|
|
3395
3402
|
var flags = r.uint();
|
|
3396
|
-
return { _: "chatAdminRights", changeInfo: !!(flags & 1), postMessages: !!(flags & 2), editMessages: !!(flags & 4), deleteMessages: !!(flags & 8), banUsers: !!(flags & 16), inviteUsers: !!(flags & 32), pinMessages: !!(flags & 128), addAdmins: !!(flags & 512), anonymous: !!(flags & 1024), manageCall: !!(flags & 2048), other: !!(flags & 4096), manageTopics: !!(flags & 8192), postStories: !!(flags & 16384), editStories: !!(flags & 32768), deleteStories: !!(flags & 65536), manageDirectMessages: !!(flags & 131072), manageRanks: !!(flags & 262144) };
|
|
3403
|
+
return { _: "chatAdminRights", changeInfo: !!(flags & 1), postMessages: !!(flags & 2), editMessages: !!(flags & 4), deleteMessages: !!(flags & 8), banUsers: !!(flags & 16), inviteUsers: !!(flags & 32), pinMessages: !!(flags & 128), addAdmins: !!(flags & 512), anonymous: !!(flags & 1024), manageCall: !!(flags & 2048), other: !!(flags & 4096), manageTopics: !!(flags & 8192), postStories: !!(flags & 16384), editStories: !!(flags & 32768), deleteStories: !!(flags & 65536), manageDirectMessages: !!(flags & 131072), manageRanks: !!(flags & 262144), manageLinkedPeers: !!(flags & 524288), manageWelcomeMessages: !!(flags & 1048576) };
|
|
3397
3404
|
},
|
|
3398
3405
|
2668758040: function(r) {
|
|
3399
3406
|
var flags = r.uint();
|
|
3400
|
-
return { _: "chatBannedRights", viewMessages: !!(flags & 1), sendMessages: !!(flags & 2), sendMedia: !!(flags & 4), sendStickers: !!(flags & 8), sendGifs: !!(flags & 16), sendGames: !!(flags & 32), sendInline: !!(flags & 64), embedLinks: !!(flags & 128), sendPolls: !!(flags & 256), changeInfo: !!(flags & 1024), inviteUsers: !!(flags & 32768), pinMessages: !!(flags & 131072), manageTopics: !!(flags & 262144), sendPhotos: !!(flags & 524288), sendVideos: !!(flags & 1048576), sendRoundvideos: !!(flags & 2097152), sendAudios: !!(flags & 4194304), sendVoices: !!(flags & 8388608), sendDocs: !!(flags & 16777216), sendPlain: !!(flags & 33554432), editRank: !!(flags & 67108864), sendReactions: !!(flags & 134217728), untilDate: r.int() };
|
|
3407
|
+
return { _: "chatBannedRights", viewMessages: !!(flags & 1), sendMessages: !!(flags & 2), sendMedia: !!(flags & 4), sendStickers: !!(flags & 8), sendGifs: !!(flags & 16), sendGames: !!(flags & 32), sendInline: !!(flags & 64), embedLinks: !!(flags & 128), sendPolls: !!(flags & 256), changeInfo: !!(flags & 1024), inviteUsers: !!(flags & 32768), pinMessages: !!(flags & 131072), manageTopics: !!(flags & 262144), sendPhotos: !!(flags & 524288), sendVideos: !!(flags & 1048576), sendRoundvideos: !!(flags & 2097152), sendAudios: !!(flags & 4194304), sendVoices: !!(flags & 8388608), sendDocs: !!(flags & 16777216), sendPlain: !!(flags & 33554432), editRank: !!(flags & 67108864), sendReactions: !!(flags & 134217728), manageLinkedPeers: !!(flags & 268435456), untilDate: r.int() };
|
|
3401
3408
|
},
|
|
3402
3409
|
3861952889: function(r) {
|
|
3403
3410
|
return { _: "inputWallPaper", id: r.long(), accessHash: r.long() };
|
|
@@ -3669,7 +3676,7 @@ var m = {
|
|
|
3669
3676
|
},
|
|
3670
3677
|
462937446: function(r) {
|
|
3671
3678
|
var flags = r.uint();
|
|
3672
|
-
return { _: "messageReplyHeader", replyToScheduled: !!(flags & 4), forumTopic: !!(flags & 8), quote: !!(flags & 512), replyToMsgId: flags & 16 ? r.int() : void 0, replyToPeerId: flags & 1 ? r.object() : void 0, replyFrom: flags & 32 ? r.object() : void 0, replyMedia: flags & 256 ? r.object() : void 0, replyToTopId: flags & 2 ? r.int() : void 0, quoteText: flags & 64 ? r.string() : void 0, quoteEntities: flags & 128 ? r.vector(r.object) : void 0, quoteOffset: flags & 1024 ? r.int() : void 0, todoItemId: flags & 2048 ? r.int() : void 0, pollOption: flags & 4096 ? r.bytes() : void 0
|
|
3679
|
+
return { _: "messageReplyHeader", replyToScheduled: !!(flags & 4), forumTopic: !!(flags & 8), quote: !!(flags & 512), replyToEphemeral: !!(flags & 8192), replyToMsgId: flags & 16 ? r.int() : void 0, replyToPeerId: flags & 1 ? r.object() : void 0, replyFrom: flags & 32 ? r.object() : void 0, replyMedia: flags & 256 ? r.object() : void 0, replyToTopId: flags & 2 ? r.int() : void 0, quoteText: flags & 64 ? r.string() : void 0, quoteEntities: flags & 128 ? r.vector(r.object) : void 0, quoteOffset: flags & 1024 ? r.int() : void 0, todoItemId: flags & 2048 ? r.int() : void 0, pollOption: flags & 4096 ? r.bytes() : void 0 };
|
|
3673
3680
|
},
|
|
3674
3681
|
240843065: function(r) {
|
|
3675
3682
|
return { _: "messageReplyStoryHeader", peer: r.object(), storyId: r.int() };
|
|
@@ -4003,9 +4010,9 @@ var m = {
|
|
|
4003
4010
|
4103700034: function(r) {
|
|
4004
4011
|
return { _: "inputInvoiceBusinessBotTransferStars", bot: r.object(), stars: r.long() };
|
|
4005
4012
|
},
|
|
4006
|
-
|
|
4013
|
+
3920676440: function(r) {
|
|
4007
4014
|
var flags = r.uint();
|
|
4008
|
-
return { _: "inputInvoiceStarGiftResale", ton: !!(flags & 1), slug: r.string(), toId: r.object() };
|
|
4015
|
+
return { _: "inputInvoiceStarGiftResale", ton: !!(flags & 1), showName: !!(flags & 4), slug: r.string(), toId: r.object(), message: flags & 2 ? r.object() : void 0 };
|
|
4009
4016
|
},
|
|
4010
4017
|
2584430776: function(r) {
|
|
4011
4018
|
return { _: "inputInvoiceStarGiftPrepaidUpgrade", peer: r.object(), hash: r.string() };
|
|
@@ -4348,6 +4355,9 @@ var m = {
|
|
|
4348
4355
|
1775660101: function(r) {
|
|
4349
4356
|
return { _: "inputReplyToMonoForum", monoforumPeerId: r.object() };
|
|
4350
4357
|
},
|
|
4358
|
+
1092204894: function(r) {
|
|
4359
|
+
return { _: "inputReplyToEphemeralMessage", id: r.int() };
|
|
4360
|
+
},
|
|
4351
4361
|
1070138683: function(r) {
|
|
4352
4362
|
return { _: "exportedStoryLink", link: r.string() };
|
|
4353
4363
|
},
|
|
@@ -5260,6 +5270,9 @@ var m = {
|
|
|
5260
5270
|
530584407: function(r) {
|
|
5261
5271
|
return { _: "inputAiComposeToneSlug", slug: r.string() };
|
|
5262
5272
|
},
|
|
5273
|
+
235681199: function(r) {
|
|
5274
|
+
return { _: "inputAiComposeToneSingleUse", customPrompt: r.string() };
|
|
5275
|
+
},
|
|
5263
5276
|
3489021609: function(r) {
|
|
5264
5277
|
var flags = r.uint();
|
|
5265
5278
|
return { _: "aiComposeTone", creator: !!(flags & 1), id: r.long(), accessHash: r.long(), slug: r.string(), title: r.string(), emojiId: flags & 2 ? r.long() : void 0, prompt: flags & 16 ? r.string() : void 0, installsCount: flags & 4 ? r.int() : void 0, authorId: flags & 8 ? r.int53() : void 0, exampleEnglish: flags & 32 ? r.object() : void 0 };
|
|
@@ -5283,8 +5296,8 @@ var m = {
|
|
|
5283
5296
|
1146512295: function(r) {
|
|
5284
5297
|
return { _: "messages.chatInviteJoinResultOk", updates: r.object() };
|
|
5285
5298
|
},
|
|
5286
|
-
|
|
5287
|
-
return { _: "messages.chatInviteJoinResultWebView", botId: r.int53(),
|
|
5299
|
+
1640638931: function(r) {
|
|
5300
|
+
return { _: "messages.chatInviteJoinResultWebView", botId: r.int53(), queryId: r.long(), users: r.vector(r.object) };
|
|
5288
5301
|
},
|
|
5289
5302
|
2920622697: function(r) {
|
|
5290
5303
|
return { _: "joinChatBotResultApproved" };
|
|
@@ -5331,13 +5344,118 @@ var m = {
|
|
|
5331
5344
|
var flags = r.uint();
|
|
5332
5345
|
return { _: "richMessage", rtl: !!(flags & 1), part: !!(flags & 2), blocks: r.vector(r.object), photos: r.vector(r.object), documents: r.vector(r.object) };
|
|
5333
5346
|
},
|
|
5334
|
-
|
|
5347
|
+
1981030077: function(r) {
|
|
5335
5348
|
var flags = r.uint();
|
|
5336
|
-
return { _: "
|
|
5349
|
+
return { _: "communityPeer", canViewHistory: !!(flags & 4), visible: flags & 1 ? r.boolean() : void 0, peer: r.object() };
|
|
5337
5350
|
},
|
|
5338
|
-
|
|
5351
|
+
2078997125: function(r) {
|
|
5339
5352
|
var flags = r.uint();
|
|
5340
|
-
return { _: "
|
|
5353
|
+
return { _: "communityPeerRequest", visible: !!(flags & 1), peer: r.object(), requestedBy: r.int53(), date: r.int() };
|
|
5354
|
+
},
|
|
5355
|
+
574926765: function(r) {
|
|
5356
|
+
var flags = r.uint();
|
|
5357
|
+
return { _: "communities.peerLinkRequests", totalCount: r.int(), requests: r.vector(r.object), nextOffset: flags & 1 ? r.string() : void 0, chats: r.vector(r.object), users: r.vector(r.object) };
|
|
5358
|
+
},
|
|
5359
|
+
3710369513: function(r) {
|
|
5360
|
+
var flags = r.uint();
|
|
5361
|
+
return { _: "ephemeralMessage", out: !!(flags & 1), welcomeTemplate: !!(flags & 32), invertMedia: !!(flags & 128), noforwards: !!(flags & 4096), id: r.int(), fromId: r.object(), peerId: flags & 512 ? r.object() : void 0, receiverId: r.int53(), topMsgId: flags & 2 ? r.int() : void 0, date: r.int(), message: r.string(), entities: flags & 4 ? r.vector(r.object) : void 0, media: flags & 8 ? r.object() : void 0, replyMarkup: flags & 16 ? r.object() : void 0, replyTo: flags & 64 ? r.object() : void 0, richMessage: flags & 256 ? r.object() : void 0, chatInstance: flags & 1024 ? r.long() : void 0, anchorMsgId: flags & 2048 ? r.int() : void 0 };
|
|
5362
|
+
},
|
|
5363
|
+
2373472554: function(r) {
|
|
5364
|
+
return { _: "communities.participantJoinedChats", creatorChatIds: r.vector(r.int53), joinedChatIds: r.vector(r.int53), chats: r.vector(r.object), users: r.vector(r.object) };
|
|
5365
|
+
},
|
|
5366
|
+
1107532175: function(r) {
|
|
5367
|
+
return { _: "messages.translatedRichMessage", result: r.vector(r.object) };
|
|
5368
|
+
},
|
|
5369
|
+
1279604680: function(r) {
|
|
5370
|
+
return { _: "messages.composedRichMessageWithAI", result: r.object() };
|
|
5371
|
+
},
|
|
5372
|
+
3386740969: function(r) {
|
|
5373
|
+
return { _: "buttonTypeDefault" };
|
|
5374
|
+
},
|
|
5375
|
+
3745330937: function(r) {
|
|
5376
|
+
return { _: "buttonTypeRequestPhone" };
|
|
5377
|
+
},
|
|
5378
|
+
2616123712: function(r) {
|
|
5379
|
+
return { _: "buttonTypeRequestGeoLocation" };
|
|
5380
|
+
},
|
|
5381
|
+
2865758084: function(r) {
|
|
5382
|
+
var flags = r.uint();
|
|
5383
|
+
return { _: "buttonTypeRequestPoll", quiz: flags & 1 ? r.boolean() : void 0 };
|
|
5384
|
+
},
|
|
5385
|
+
1331208759: function(r) {
|
|
5386
|
+
r.uint();
|
|
5387
|
+
return { _: "buttonTypeRequestPeer", buttonId: r.int(), peerType: r.object(), maxQuantity: r.int() };
|
|
5388
|
+
},
|
|
5389
|
+
1071802622: function(r) {
|
|
5390
|
+
var flags = r.uint();
|
|
5391
|
+
return { _: "inputButtonTypeRequestPeer", nameRequested: !!(flags & 1), usernameRequested: !!(flags & 2), photoRequested: !!(flags & 4), buttonId: r.int(), peerType: r.object(), maxQuantity: r.int() };
|
|
5392
|
+
},
|
|
5393
|
+
3222952314: function(r) {
|
|
5394
|
+
return { _: "buttonTypeSimpleWebView", url: r.string() };
|
|
5395
|
+
},
|
|
5396
|
+
3970234580: function(r) {
|
|
5397
|
+
return { _: "inlineButtonTypeUrl", url: r.string() };
|
|
5398
|
+
},
|
|
5399
|
+
3218091426: function(r) {
|
|
5400
|
+
var flags = r.uint();
|
|
5401
|
+
return { _: "inlineButtonTypeUrlAuth", fwdText: flags & 1 ? r.string() : void 0, url: r.string(), buttonId: r.int() };
|
|
5402
|
+
},
|
|
5403
|
+
2573319348: function(r) {
|
|
5404
|
+
var flags = r.uint();
|
|
5405
|
+
return { _: "inputInlineButtonTypeUrlAuth", requestWriteAccess: !!(flags & 1), fwdText: flags & 2 ? r.string() : void 0, url: r.string(), bot: flags & 4 ? r.object() : void 0 };
|
|
5406
|
+
},
|
|
5407
|
+
1003140532: function(r) {
|
|
5408
|
+
return { _: "inlineButtonTypeWebView", url: r.string() };
|
|
5409
|
+
},
|
|
5410
|
+
693484600: function(r) {
|
|
5411
|
+
var flags = r.uint();
|
|
5412
|
+
return { _: "inlineButtonTypeCallback", requiresPassword: !!(flags & 1), data: r.bytes() };
|
|
5413
|
+
},
|
|
5414
|
+
1557360797: function(r) {
|
|
5415
|
+
return { _: "inlineButtonTypeGame" };
|
|
5416
|
+
},
|
|
5417
|
+
1220204453: function(r) {
|
|
5418
|
+
return { _: "inlineButtonTypeBuy" };
|
|
5419
|
+
},
|
|
5420
|
+
2474065909: function(r) {
|
|
5421
|
+
var flags = r.uint();
|
|
5422
|
+
return { _: "inlineButtonTypeSwitchInline", samePeer: !!(flags & 1), query: r.string(), peerTypes: flags & 2 ? r.vector(r.object) : void 0 };
|
|
5423
|
+
},
|
|
5424
|
+
1067663311: function(r) {
|
|
5425
|
+
return { _: "inlineButtonTypeUserProfile", userId: r.int53() };
|
|
5426
|
+
},
|
|
5427
|
+
1408487002: function(r) {
|
|
5428
|
+
return { _: "inputInlineButtonTypeUserProfile", userId: r.object() };
|
|
5429
|
+
},
|
|
5430
|
+
3021812338: function(r) {
|
|
5431
|
+
return { _: "inlineButtonTypeCopy", copyText: r.string() };
|
|
5432
|
+
},
|
|
5433
|
+
2755158429: function(r) {
|
|
5434
|
+
return { _: "inlineButtonTypeDisabled" };
|
|
5435
|
+
},
|
|
5436
|
+
297902882: function(r) {
|
|
5437
|
+
var flags = r.uint();
|
|
5438
|
+
return { _: "keyboardInlineButton", style: flags & 1024 ? r.object() : void 0, text: r.string(), type: r.object() };
|
|
5439
|
+
},
|
|
5440
|
+
423758582: function(r) {
|
|
5441
|
+
return { _: "keyboardInlineButtonRow", buttons: r.vector(r.object) };
|
|
5442
|
+
},
|
|
5443
|
+
63312061: function(r) {
|
|
5444
|
+
var flags = r.uint();
|
|
5445
|
+
return { _: "richButtonStyle", bgPrimary: !!(flags & 1), bgDanger: !!(flags & 2), bgSuccess: !!(flags & 4), link: !!(flags & 8) };
|
|
5446
|
+
},
|
|
5447
|
+
1764381832: function(r) {
|
|
5448
|
+
var flags = r.uint();
|
|
5449
|
+
return { _: "pageButton", text: r.object(), type: r.object(), style: flags & 1 ? r.object() : void 0 };
|
|
5450
|
+
},
|
|
5451
|
+
1509940017: function(r) {
|
|
5452
|
+
return { _: "ephemeral.welcomeMessagesNotModified" };
|
|
5453
|
+
},
|
|
5454
|
+
273664114: function(r) {
|
|
5455
|
+
return { _: "ephemeral.welcomeMessages", hash: r.long(), messages: r.vector(r.object) };
|
|
5456
|
+
},
|
|
5457
|
+
3747266572: function(r) {
|
|
5458
|
+
return { _: "auth.firebasePnvIntent", nonce: r.string(), digitalCredentialPayload: r.string() };
|
|
5341
5459
|
},
|
|
5342
5460
|
_results: {
|
|
5343
5461
|
"contacts.getContactIDs": function(r) {
|