@mtcute/core 0.28.2 → 0.29.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 +0 -4
- package/client.js +0 -4
- package/highlevel/base.cjs +8 -9
- package/highlevel/base.d.cts +1 -1
- package/highlevel/base.d.ts +1 -1
- package/highlevel/base.js +8 -9
- package/highlevel/client.d.cts +9 -18
- package/highlevel/client.d.ts +9 -18
- package/highlevel/client.types.d.cts +5 -2
- package/highlevel/client.types.d.ts +5 -2
- package/highlevel/managers/timers.cjs +38 -18
- package/highlevel/managers/timers.d.cts +18 -4
- package/highlevel/managers/timers.d.ts +18 -4
- package/highlevel/managers/timers.js +38 -18
- package/highlevel/managers/timers.test.d.cts +1 -0
- package/highlevel/managers/timers.test.d.ts +1 -0
- package/highlevel/methods/auth/check-password.d.cts +1 -1
- package/highlevel/methods/auth/check-password.d.ts +1 -1
- package/highlevel/methods/auth/send-code.d.cts +1 -1
- package/highlevel/methods/auth/send-code.d.ts +1 -1
- package/highlevel/methods/auth/sign-in-qr.cjs +4 -4
- package/highlevel/methods/auth/sign-in-qr.js +4 -4
- package/highlevel/methods/auth/start.cjs +6 -6
- package/highlevel/methods/auth/start.d.cts +1 -1
- package/highlevel/methods/auth/start.d.ts +1 -1
- package/highlevel/methods/auth/start.js +6 -6
- package/highlevel/methods/auth/utils.d.cts +1 -1
- package/highlevel/methods/auth/utils.d.ts +1 -1
- package/highlevel/methods/bots/answer-inline-query.d.cts +1 -1
- package/highlevel/methods/bots/answer-inline-query.d.ts +1 -1
- package/highlevel/methods/bots/answer-pre-checkout-query.d.cts +1 -1
- package/highlevel/methods/bots/answer-pre-checkout-query.d.ts +1 -1
- package/highlevel/methods/bots/delete-my-commands.d.cts +1 -1
- package/highlevel/methods/bots/delete-my-commands.d.ts +1 -1
- package/highlevel/methods/bots/get-bot-info.d.cts +1 -1
- package/highlevel/methods/bots/get-bot-info.d.ts +1 -1
- package/highlevel/methods/bots/get-bot-menu-button.d.cts +1 -1
- package/highlevel/methods/bots/get-bot-menu-button.d.ts +1 -1
- package/highlevel/methods/bots/get-callback-answer.d.cts +1 -1
- package/highlevel/methods/bots/get-callback-answer.d.ts +1 -1
- package/highlevel/methods/bots/get-game-high-scores.d.cts +1 -1
- package/highlevel/methods/bots/get-game-high-scores.d.ts +1 -1
- package/highlevel/methods/bots/get-my-commands.d.cts +1 -1
- package/highlevel/methods/bots/get-my-commands.d.ts +1 -1
- package/highlevel/methods/bots/normalize-command-scope.cjs +2 -2
- package/highlevel/methods/bots/normalize-command-scope.d.cts +1 -1
- package/highlevel/methods/bots/normalize-command-scope.d.ts +1 -1
- package/highlevel/methods/bots/normalize-command-scope.js +2 -2
- package/highlevel/methods/bots/open-webview.cjs +15 -9
- package/highlevel/methods/bots/open-webview.d.cts +1 -1
- package/highlevel/methods/bots/open-webview.d.ts +1 -1
- package/highlevel/methods/bots/open-webview.js +15 -9
- package/highlevel/methods/bots/prepare-inline-message.d.cts +1 -1
- package/highlevel/methods/bots/prepare-inline-message.d.ts +1 -1
- package/highlevel/methods/bots/set-bot-menu-button.d.cts +1 -1
- package/highlevel/methods/bots/set-bot-menu-button.d.ts +1 -1
- package/highlevel/methods/bots/set-game-score.d.cts +1 -1
- package/highlevel/methods/bots/set-game-score.d.ts +1 -1
- package/highlevel/methods/bots/set-my-commands.d.cts +1 -1
- package/highlevel/methods/bots/set-my-commands.d.ts +1 -1
- package/highlevel/methods/bots/set-my-default-rights.d.cts +1 -1
- package/highlevel/methods/bots/set-my-default-rights.d.ts +1 -1
- package/highlevel/methods/chats/add-chat-members.d.cts +1 -1
- package/highlevel/methods/chats/add-chat-members.d.ts +1 -1
- package/highlevel/methods/chats/batched-queries.cjs +3 -3
- package/highlevel/methods/chats/batched-queries.d.cts +1 -1
- package/highlevel/methods/chats/batched-queries.d.ts +1 -1
- package/highlevel/methods/chats/batched-queries.js +3 -3
- package/highlevel/methods/chats/create-group.d.cts +1 -1
- package/highlevel/methods/chats/create-group.d.ts +1 -1
- package/highlevel/methods/chats/edit-admin-rights.d.cts +1 -1
- package/highlevel/methods/chats/edit-admin-rights.d.ts +1 -1
- package/highlevel/methods/chats/get-chat-event-log.d.cts +1 -1
- package/highlevel/methods/chats/get-chat-event-log.d.ts +1 -1
- package/highlevel/methods/chats/get-chat-member.cjs +2 -2
- package/highlevel/methods/chats/get-chat-member.js +2 -2
- package/highlevel/methods/chats/restrict-chat-member.d.cts +1 -1
- package/highlevel/methods/chats/restrict-chat-member.d.ts +1 -1
- package/highlevel/methods/chats/save-draft.d.cts +1 -1
- package/highlevel/methods/chats/save-draft.d.ts +1 -1
- package/highlevel/methods/chats/set-chat-color.d.cts +1 -1
- package/highlevel/methods/chats/set-chat-color.d.ts +1 -1
- package/highlevel/methods/chats/set-chat-default-permissions.d.cts +1 -1
- package/highlevel/methods/chats/set-chat-default-permissions.d.ts +1 -1
- package/highlevel/methods/chats/set-chat-photo.cjs +3 -3
- package/highlevel/methods/chats/set-chat-photo.js +3 -3
- package/highlevel/methods/contacts/import-contacts.d.cts +1 -1
- package/highlevel/methods/contacts/import-contacts.d.ts +1 -1
- package/highlevel/methods/contacts/set-contact-note.cjs +0 -2
- package/highlevel/methods/contacts/set-contact-note.js +0 -2
- package/highlevel/methods/dialogs/create-folder.d.cts +1 -1
- package/highlevel/methods/dialogs/create-folder.d.ts +1 -1
- package/highlevel/methods/dialogs/delete-folder.d.cts +1 -1
- package/highlevel/methods/dialogs/delete-folder.d.ts +1 -1
- package/highlevel/methods/dialogs/edit-folder.d.cts +1 -1
- package/highlevel/methods/dialogs/edit-folder.d.ts +1 -1
- package/highlevel/methods/dialogs/find-folder.cjs +1 -1
- package/highlevel/methods/dialogs/find-folder.d.cts +1 -1
- package/highlevel/methods/dialogs/find-folder.d.ts +1 -1
- package/highlevel/methods/dialogs/find-folder.js +1 -1
- package/highlevel/methods/dialogs/get-folders.d.cts +1 -1
- package/highlevel/methods/dialogs/get-folders.d.ts +1 -1
- package/highlevel/methods/dialogs/iter-dialogs.d.cts +1 -1
- package/highlevel/methods/dialogs/iter-dialogs.d.ts +1 -1
- package/highlevel/methods/dialogs/join-chatlist.d.cts +1 -1
- package/highlevel/methods/dialogs/join-chatlist.d.ts +1 -1
- package/highlevel/methods/files/download-chunk.cjs +2 -2
- package/highlevel/methods/files/download-chunk.js +2 -2
- package/highlevel/methods/files/download-iterable.cjs +3 -3
- package/highlevel/methods/files/download-iterable.d.cts +1 -1
- package/highlevel/methods/files/download-iterable.d.ts +1 -1
- package/highlevel/methods/files/download-iterable.js +3 -3
- package/highlevel/methods/files/normalize-file-to-document.cjs +2 -2
- package/highlevel/methods/files/normalize-file-to-document.d.cts +1 -1
- package/highlevel/methods/files/normalize-file-to-document.d.ts +1 -1
- package/highlevel/methods/files/normalize-file-to-document.js +2 -2
- package/highlevel/methods/files/normalize-input-file.cjs +3 -3
- package/highlevel/methods/files/normalize-input-file.d.cts +1 -1
- package/highlevel/methods/files/normalize-input-file.d.ts +1 -1
- package/highlevel/methods/files/normalize-input-file.js +3 -3
- package/highlevel/methods/files/normalize-input-media.cjs +5 -5
- package/highlevel/methods/files/normalize-input-media.d.cts +1 -1
- package/highlevel/methods/files/normalize-input-media.d.ts +1 -1
- package/highlevel/methods/files/normalize-input-media.js +5 -5
- package/highlevel/methods/forums/create-forum-topic.d.cts +1 -1
- package/highlevel/methods/forums/create-forum-topic.d.ts +1 -1
- package/highlevel/methods/forums/edit-forum-topic.d.cts +1 -1
- package/highlevel/methods/forums/edit-forum-topic.d.ts +1 -1
- package/highlevel/methods/gifts/_normalize-input-star-gift.d.cts +1 -1
- package/highlevel/methods/gifts/_normalize-input-star-gift.d.ts +1 -1
- package/highlevel/methods/gifts/get-resale-star-gifts.d.cts +1 -1
- package/highlevel/methods/gifts/get-resale-star-gifts.d.ts +1 -1
- package/highlevel/methods/gifts/get-star-gift-upgrade-options.d.cts +1 -1
- package/highlevel/methods/gifts/get-star-gift-upgrade-options.d.ts +1 -1
- package/highlevel/methods/gifts/send-star-gift-offer.d.cts +1 -1
- package/highlevel/methods/gifts/send-star-gift-offer.d.ts +1 -1
- package/highlevel/methods/gifts/transfer-star-gift.cjs +2 -2
- package/highlevel/methods/gifts/transfer-star-gift.js +2 -2
- package/highlevel/methods/gifts/upgrade-star-gift.cjs +2 -2
- package/highlevel/methods/gifts/upgrade-star-gift.js +2 -2
- package/highlevel/methods/invite-links/create-invite-link.d.cts +1 -1
- package/highlevel/methods/invite-links/create-invite-link.d.ts +1 -1
- package/highlevel/methods/invite-links/get-invite-link-members.d.cts +1 -1
- package/highlevel/methods/invite-links/get-invite-link-members.d.ts +1 -1
- package/highlevel/methods/messages/edit-inline-message.cjs +2 -2
- package/highlevel/methods/messages/edit-inline-message.d.cts +1 -1
- package/highlevel/methods/messages/edit-inline-message.d.ts +1 -1
- package/highlevel/methods/messages/edit-inline-message.js +2 -2
- package/highlevel/methods/messages/edit-message.cjs +3 -2
- package/highlevel/methods/messages/edit-message.js +3 -2
- package/highlevel/methods/messages/find-in-update.d.cts +1 -1
- package/highlevel/methods/messages/find-in-update.d.ts +1 -1
- package/highlevel/methods/messages/forward-messages.cjs +1 -1
- package/highlevel/methods/messages/forward-messages.d.cts +1 -1
- package/highlevel/methods/messages/forward-messages.d.ts +1 -1
- package/highlevel/methods/messages/forward-messages.js +1 -1
- package/highlevel/methods/messages/get-callback-query-message.d.cts +1 -1
- package/highlevel/methods/messages/get-callback-query-message.d.ts +1 -1
- package/highlevel/methods/messages/get-discussion-message.d.cts +1 -1
- package/highlevel/methods/messages/get-discussion-message.d.ts +1 -1
- package/highlevel/methods/messages/search-global.d.cts +1 -1
- package/highlevel/methods/messages/search-global.d.ts +1 -1
- package/highlevel/methods/messages/search-hashtag.d.cts +1 -1
- package/highlevel/methods/messages/search-hashtag.d.ts +1 -1
- package/highlevel/methods/messages/search-messages.d.cts +1 -1
- package/highlevel/methods/messages/search-messages.d.ts +1 -1
- package/highlevel/methods/messages/search-posts-global.d.cts +1 -1
- package/highlevel/methods/messages/search-posts-global.d.ts +1 -1
- package/highlevel/methods/messages/send-common.cjs +1 -1
- package/highlevel/methods/messages/send-common.d.cts +1 -1
- package/highlevel/methods/messages/send-common.d.ts +1 -1
- package/highlevel/methods/messages/send-common.js +1 -1
- package/highlevel/methods/messages/send-media-group.cjs +6 -5
- package/highlevel/methods/messages/send-media-group.js +6 -5
- package/highlevel/methods/messages/send-media.cjs +6 -5
- package/highlevel/methods/messages/send-media.js +6 -5
- package/highlevel/methods/messages/send-paid-reaction.cjs +2 -2
- package/highlevel/methods/messages/send-paid-reaction.js +2 -2
- package/highlevel/methods/messages/send-text.cjs +6 -5
- package/highlevel/methods/messages/send-text.js +6 -5
- package/highlevel/methods/messages/send-typing.cjs +3 -2
- package/highlevel/methods/messages/send-typing.d.cts +1 -1
- package/highlevel/methods/messages/send-typing.d.ts +1 -1
- package/highlevel/methods/messages/send-typing.js +3 -2
- package/highlevel/methods/messages/set-typing.cjs +12 -8
- package/highlevel/methods/messages/set-typing.d.cts +1 -1
- package/highlevel/methods/messages/set-typing.d.ts +1 -1
- package/highlevel/methods/messages/set-typing.js +12 -8
- package/highlevel/methods/messages/set-typing.test.d.cts +1 -0
- package/highlevel/methods/messages/set-typing.test.d.ts +1 -0
- package/highlevel/methods/misc/chain-id.d.cts +1 -1
- package/highlevel/methods/misc/chain-id.d.ts +1 -1
- package/highlevel/methods/misc/init-takeout-session.d.cts +1 -1
- package/highlevel/methods/misc/init-takeout-session.d.ts +1 -1
- package/highlevel/methods/misc/normalize-privacy-rules.d.cts +1 -1
- package/highlevel/methods/misc/normalize-privacy-rules.d.ts +1 -1
- package/highlevel/methods/misc/normalize-text.d.cts +1 -1
- package/highlevel/methods/misc/normalize-text.d.ts +1 -1
- package/highlevel/methods/premium/_normalize-stars-amount.d.cts +1 -1
- package/highlevel/methods/premium/_normalize-stars-amount.d.ts +1 -1
- package/highlevel/methods/premium/set-business-intro.d.cts +1 -1
- package/highlevel/methods/premium/set-business-intro.d.ts +1 -1
- package/highlevel/methods/premium/set-business-work-hours.d.cts +1 -1
- package/highlevel/methods/premium/set-business-work-hours.d.ts +1 -1
- package/highlevel/methods/stickers/_utils.d.cts +1 -1
- package/highlevel/methods/stickers/_utils.d.ts +1 -1
- package/highlevel/methods/stickers/get-custom-emojis.cjs +4 -5
- package/highlevel/methods/stickers/get-custom-emojis.d.cts +3 -3
- package/highlevel/methods/stickers/get-custom-emojis.d.ts +3 -3
- package/highlevel/methods/stickers/get-custom-emojis.js +4 -5
- package/highlevel/methods/stickers/set-sticker-set-thumb.d.cts +1 -1
- package/highlevel/methods/stickers/set-sticker-set-thumb.d.ts +1 -1
- package/highlevel/methods/stories/can-send-story.cjs +3 -3
- package/highlevel/methods/stories/can-send-story.js +3 -3
- package/highlevel/methods/stories/edit-story.d.cts +1 -1
- package/highlevel/methods/stories/edit-story.d.ts +1 -1
- package/highlevel/methods/stories/find-in-update.d.cts +1 -1
- package/highlevel/methods/stories/find-in-update.d.ts +1 -1
- package/highlevel/methods/stories/get-profile-stories.cjs +3 -3
- package/highlevel/methods/stories/get-profile-stories.js +3 -3
- package/highlevel/methods/stories/get-stories-by-id.cjs +3 -3
- package/highlevel/methods/stories/get-stories-by-id.js +3 -3
- package/highlevel/methods/stories/send-story.d.cts +1 -1
- package/highlevel/methods/stories/send-story.d.ts +1 -1
- package/highlevel/methods/users/_resolve-common.cjs +74 -0
- package/highlevel/methods/users/_resolve-common.d.cts +4 -0
- package/highlevel/methods/users/_resolve-common.d.ts +4 -0
- package/highlevel/methods/users/_resolve-common.js +69 -0
- package/highlevel/methods/users/delete-profile-photos.d.cts +1 -1
- package/highlevel/methods/users/delete-profile-photos.d.ts +1 -1
- package/highlevel/methods/users/get-profile-photo.cjs +1 -2
- package/highlevel/methods/users/get-profile-photo.d.cts +2 -2
- package/highlevel/methods/users/get-profile-photo.d.ts +2 -2
- package/highlevel/methods/users/get-profile-photo.js +1 -2
- package/highlevel/methods/users/get-profile-photos.cjs +3 -3
- package/highlevel/methods/users/get-profile-photos.js +3 -3
- package/highlevel/methods/users/get-saved-music.cjs +1 -0
- package/highlevel/methods/users/get-saved-music.js +1 -0
- package/highlevel/methods/users/is-peer-available.cjs +2 -2
- package/highlevel/methods/users/is-peer-available.js +1 -1
- package/highlevel/methods/users/resolve-peer-many.d.cts +1 -1
- package/highlevel/methods/users/resolve-peer-many.d.ts +1 -1
- package/highlevel/methods/users/resolve-peer.cjs +7 -68
- package/highlevel/methods/users/resolve-peer.d.cts +1 -3
- package/highlevel/methods/users/resolve-peer.d.ts +1 -3
- package/highlevel/methods/users/resolve-peer.js +8 -69
- package/highlevel/methods/users/resolve-phone-number.cjs +4 -4
- package/highlevel/methods/users/resolve-phone-number.d.cts +1 -1
- package/highlevel/methods/users/resolve-phone-number.d.ts +1 -1
- package/highlevel/methods/users/resolve-phone-number.js +3 -3
- package/highlevel/methods/users/save-music-to-profile.cjs +2 -2
- package/highlevel/methods/users/save-music-to-profile.js +2 -2
- package/highlevel/methods/users/set-emoji-status.d.cts +1 -1
- package/highlevel/methods/users/set-emoji-status.d.ts +1 -1
- package/highlevel/methods/users/set-my-profile-photo.cjs +5 -2
- package/highlevel/methods/users/set-my-profile-photo.d.cts +1 -1
- package/highlevel/methods/users/set-my-profile-photo.d.ts +1 -1
- package/highlevel/methods/users/set-my-profile-photo.js +5 -2
- package/highlevel/methods/users/set-online.cjs +9 -5
- package/highlevel/methods/users/set-online.js +9 -5
- package/highlevel/methods.d.cts +0 -1
- package/highlevel/methods.d.ts +0 -1
- package/highlevel/storage/service/current-user.cjs +1 -1
- package/highlevel/storage/service/current-user.d.cts +1 -1
- package/highlevel/storage/service/current-user.d.ts +1 -1
- package/highlevel/storage/service/current-user.js +1 -1
- package/highlevel/storage/service/peers.d.cts +1 -1
- package/highlevel/storage/service/peers.d.ts +1 -1
- package/highlevel/types/auth/sent-code.d.cts +1 -1
- package/highlevel/types/auth/sent-code.d.ts +1 -1
- package/highlevel/types/bots/command-scope/inner.d.cts +1 -1
- package/highlevel/types/bots/command-scope/inner.d.ts +1 -1
- package/highlevel/types/bots/game-high-score.d.cts +1 -1
- package/highlevel/types/bots/game-high-score.d.ts +1 -1
- package/highlevel/types/bots/inline-message/factories.d.cts +1 -1
- package/highlevel/types/bots/inline-message/factories.d.ts +1 -1
- package/highlevel/types/bots/inline-result/factories.d.cts +1 -1
- package/highlevel/types/bots/inline-result/factories.d.ts +1 -1
- package/highlevel/types/bots/inline-result/types.d.cts +1 -1
- package/highlevel/types/bots/inline-result/types.d.ts +1 -1
- package/highlevel/types/bots/keyboards/builder.d.cts +1 -1
- package/highlevel/types/bots/keyboards/builder.d.ts +1 -1
- package/highlevel/types/bots/keyboards/factories.cjs +2 -2
- package/highlevel/types/bots/keyboards/factories.d.cts +1 -1
- package/highlevel/types/bots/keyboards/factories.d.ts +1 -1
- package/highlevel/types/bots/keyboards/factories.js +2 -2
- package/highlevel/types/bots/keyboards/types.d.cts +1 -1
- package/highlevel/types/bots/keyboards/types.d.ts +1 -1
- package/highlevel/types/bots/webview.d.cts +1 -1
- package/highlevel/types/bots/webview.d.ts +1 -1
- package/highlevel/types/conversation.d.cts +1 -1
- package/highlevel/types/conversation.d.ts +1 -1
- package/highlevel/types/files/file-location.d.cts +1 -1
- package/highlevel/types/files/file-location.d.ts +1 -1
- package/highlevel/types/files/uploaded-file.d.cts +1 -1
- package/highlevel/types/files/uploaded-file.d.ts +1 -1
- package/highlevel/types/files/utils.d.cts +1 -1
- package/highlevel/types/files/utils.d.ts +1 -1
- package/highlevel/types/files/web-document.d.cts +1 -1
- package/highlevel/types/files/web-document.d.ts +1 -1
- package/highlevel/types/media/audio.d.cts +1 -1
- package/highlevel/types/media/audio.d.ts +1 -1
- package/highlevel/types/media/contact.d.cts +1 -1
- package/highlevel/types/media/contact.d.ts +1 -1
- package/highlevel/types/media/dice.d.cts +1 -1
- package/highlevel/types/media/dice.d.ts +1 -1
- package/highlevel/types/media/document-utils.d.cts +1 -1
- package/highlevel/types/media/document-utils.d.ts +1 -1
- package/highlevel/types/media/document.d.cts +1 -1
- package/highlevel/types/media/document.d.ts +1 -1
- package/highlevel/types/media/extended-media.d.cts +1 -1
- package/highlevel/types/media/extended-media.d.ts +1 -1
- package/highlevel/types/media/game.d.cts +1 -1
- package/highlevel/types/media/game.d.ts +1 -1
- package/highlevel/types/media/input-media/factories.d.cts +1 -1
- package/highlevel/types/media/input-media/factories.d.ts +1 -1
- package/highlevel/types/media/input-media/types.d.cts +1 -1
- package/highlevel/types/media/input-media/types.d.ts +1 -1
- package/highlevel/types/media/invoice.d.cts +1 -1
- package/highlevel/types/media/invoice.d.ts +1 -1
- package/highlevel/types/media/location.d.cts +1 -1
- package/highlevel/types/media/location.d.ts +1 -1
- package/highlevel/types/media/paid-media.d.cts +1 -1
- package/highlevel/types/media/paid-media.d.ts +1 -1
- package/highlevel/types/media/photo.d.cts +1 -1
- package/highlevel/types/media/photo.d.ts +1 -1
- package/highlevel/types/media/poll.d.cts +1 -1
- package/highlevel/types/media/poll.d.ts +1 -1
- package/highlevel/types/media/sticker.d.cts +1 -1
- package/highlevel/types/media/sticker.d.ts +1 -1
- package/highlevel/types/media/story.d.cts +1 -1
- package/highlevel/types/media/story.d.ts +1 -1
- package/highlevel/types/media/thumbnail.d.cts +1 -1
- package/highlevel/types/media/thumbnail.d.ts +1 -1
- package/highlevel/types/media/todo.d.cts +1 -1
- package/highlevel/types/media/todo.d.ts +1 -1
- package/highlevel/types/media/venue.cjs +2 -2
- package/highlevel/types/media/venue.d.cts +1 -1
- package/highlevel/types/media/venue.d.ts +1 -1
- package/highlevel/types/media/venue.js +2 -2
- package/highlevel/types/media/video.d.cts +1 -1
- package/highlevel/types/media/video.d.ts +1 -1
- package/highlevel/types/media/voice.d.cts +1 -1
- package/highlevel/types/media/voice.d.ts +1 -1
- package/highlevel/types/media/web-page.d.cts +1 -1
- package/highlevel/types/media/web-page.d.ts +1 -1
- package/highlevel/types/messages/dialog.d.cts +1 -1
- package/highlevel/types/messages/dialog.d.ts +1 -1
- package/highlevel/types/messages/draft-message.d.cts +1 -1
- package/highlevel/types/messages/draft-message.d.ts +1 -1
- package/highlevel/types/messages/fact-check.d.cts +1 -1
- package/highlevel/types/messages/fact-check.d.ts +1 -1
- package/highlevel/types/messages/message-action.cjs +4 -0
- package/highlevel/types/messages/message-action.d.cts +1 -1
- package/highlevel/types/messages/message-action.d.ts +1 -1
- package/highlevel/types/messages/message-action.js +4 -0
- package/highlevel/types/messages/message-effect.cjs +2 -6
- package/highlevel/types/messages/message-effect.d.cts +1 -1
- package/highlevel/types/messages/message-effect.d.ts +1 -1
- package/highlevel/types/messages/message-effect.js +2 -6
- package/highlevel/types/messages/message-entity.d.cts +1 -1
- package/highlevel/types/messages/message-entity.d.ts +1 -1
- package/highlevel/types/messages/message-forward.d.cts +1 -1
- package/highlevel/types/messages/message-forward.d.ts +1 -1
- package/highlevel/types/messages/message-media.d.cts +1 -1
- package/highlevel/types/messages/message-media.d.ts +1 -1
- package/highlevel/types/messages/message-reactions.d.cts +1 -1
- package/highlevel/types/messages/message-reactions.d.ts +1 -1
- package/highlevel/types/messages/message-replies.d.cts +1 -1
- package/highlevel/types/messages/message-replies.d.ts +1 -1
- package/highlevel/types/messages/message.d.cts +1 -1
- package/highlevel/types/messages/message.d.ts +1 -1
- package/highlevel/types/messages/replied-message.cjs +4 -14
- package/highlevel/types/messages/replied-message.d.cts +2 -2
- package/highlevel/types/messages/replied-message.d.ts +2 -2
- package/highlevel/types/messages/replied-message.js +2 -12
- package/highlevel/types/messages/suggested-post.d.cts +1 -1
- package/highlevel/types/messages/suggested-post.d.ts +1 -1
- package/highlevel/types/misc/collectible-info.d.cts +1 -1
- package/highlevel/types/misc/collectible-info.d.ts +1 -1
- package/highlevel/types/misc/entities.d.cts +1 -1
- package/highlevel/types/misc/entities.d.ts +1 -1
- package/highlevel/types/misc/input-privacy-rule/allow.d.cts +1 -1
- package/highlevel/types/misc/input-privacy-rule/allow.d.ts +1 -1
- package/highlevel/types/misc/input-privacy-rule/disallow.d.cts +1 -1
- package/highlevel/types/misc/input-privacy-rule/disallow.d.ts +1 -1
- package/highlevel/types/misc/input-privacy-rule/types.d.cts +1 -1
- package/highlevel/types/misc/input-privacy-rule/types.d.ts +1 -1
- package/highlevel/types/misc/sticker-set.cjs +5 -3
- package/highlevel/types/misc/sticker-set.d.cts +1 -1
- package/highlevel/types/misc/sticker-set.d.ts +1 -1
- package/highlevel/types/misc/sticker-set.js +5 -3
- package/highlevel/types/misc/takeout-session.d.cts +1 -1
- package/highlevel/types/misc/takeout-session.d.ts +1 -1
- package/highlevel/types/peers/bot-info.d.cts +1 -1
- package/highlevel/types/peers/bot-info.d.ts +1 -1
- package/highlevel/types/peers/bot-verification.d.cts +1 -1
- package/highlevel/types/peers/bot-verification.d.ts +1 -1
- package/highlevel/types/peers/chat-colors.d.cts +1 -1
- package/highlevel/types/peers/chat-colors.d.ts +1 -1
- package/highlevel/types/peers/chat-event/actions.cjs +4 -5
- package/highlevel/types/peers/chat-event/actions.d.cts +5 -6
- package/highlevel/types/peers/chat-event/actions.d.ts +5 -6
- package/highlevel/types/peers/chat-event/actions.js +4 -5
- package/highlevel/types/peers/chat-event/filters.d.cts +1 -1
- package/highlevel/types/peers/chat-event/filters.d.ts +1 -1
- package/highlevel/types/peers/chat-event/index.d.cts +1 -1
- package/highlevel/types/peers/chat-event/index.d.ts +1 -1
- package/highlevel/types/peers/chat-invite-link-member.d.cts +1 -1
- package/highlevel/types/peers/chat-invite-link-member.d.ts +1 -1
- package/highlevel/types/peers/chat-invite-link.d.cts +1 -1
- package/highlevel/types/peers/chat-invite-link.d.ts +1 -1
- package/highlevel/types/peers/chat-member.d.cts +1 -1
- package/highlevel/types/peers/chat-member.d.ts +1 -1
- package/highlevel/types/peers/chat-permissions.d.cts +1 -1
- package/highlevel/types/peers/chat-permissions.d.ts +1 -1
- package/highlevel/types/peers/chat-photo.d.cts +1 -1
- package/highlevel/types/peers/chat-photo.d.ts +1 -1
- package/highlevel/types/peers/chat-preview.d.cts +1 -1
- package/highlevel/types/peers/chat-preview.d.ts +1 -1
- package/highlevel/types/peers/chat.d.cts +1 -1
- package/highlevel/types/peers/chat.d.ts +1 -1
- package/highlevel/types/peers/chatlist-preview.d.cts +1 -1
- package/highlevel/types/peers/chatlist-preview.d.ts +1 -1
- package/highlevel/types/peers/forum-topic.d.cts +1 -1
- package/highlevel/types/peers/forum-topic.d.ts +1 -1
- package/highlevel/types/peers/full-chat.cjs +0 -11
- package/highlevel/types/peers/full-chat.d.cts +1 -6
- package/highlevel/types/peers/full-chat.d.ts +1 -6
- package/highlevel/types/peers/full-chat.js +0 -11
- package/highlevel/types/peers/full-user.d.cts +1 -1
- package/highlevel/types/peers/full-user.d.ts +1 -1
- package/highlevel/types/peers/index.d.cts +0 -1
- package/highlevel/types/peers/index.d.ts +0 -1
- package/highlevel/types/peers/peer-settings.d.cts +1 -1
- package/highlevel/types/peers/peer-settings.d.ts +1 -1
- package/highlevel/types/peers/peer.d.cts +1 -1
- package/highlevel/types/peers/peer.d.ts +1 -1
- package/highlevel/types/peers/peers-index.cjs +3 -1
- package/highlevel/types/peers/peers-index.d.cts +1 -1
- package/highlevel/types/peers/peers-index.d.ts +1 -1
- package/highlevel/types/peers/peers-index.js +3 -1
- package/highlevel/types/peers/user.d.cts +1 -1
- package/highlevel/types/peers/user.d.ts +1 -1
- package/highlevel/types/premium/boost-slot.d.cts +1 -1
- package/highlevel/types/premium/boost-slot.d.ts +1 -1
- package/highlevel/types/premium/boost-stats.d.cts +1 -1
- package/highlevel/types/premium/boost-stats.d.ts +1 -1
- package/highlevel/types/premium/boost.d.cts +1 -1
- package/highlevel/types/premium/boost.d.ts +1 -1
- package/highlevel/types/premium/business-account.d.cts +1 -1
- package/highlevel/types/premium/business-account.d.ts +1 -1
- package/highlevel/types/premium/business-chat-link.d.cts +1 -1
- package/highlevel/types/premium/business-chat-link.d.ts +1 -1
- package/highlevel/types/premium/business-connection.d.cts +1 -1
- package/highlevel/types/premium/business-connection.d.ts +1 -1
- package/highlevel/types/premium/business-intro.d.cts +1 -1
- package/highlevel/types/premium/business-intro.d.ts +1 -1
- package/highlevel/types/premium/business-location.d.cts +1 -1
- package/highlevel/types/premium/business-location.d.ts +1 -1
- package/highlevel/types/premium/business-work-hours.d.cts +1 -1
- package/highlevel/types/premium/business-work-hours.d.ts +1 -1
- package/highlevel/types/premium/saved-star-gift.d.cts +1 -1
- package/highlevel/types/premium/saved-star-gift.d.ts +1 -1
- package/highlevel/types/premium/star-gift-unique.d.cts +1 -1
- package/highlevel/types/premium/star-gift-unique.d.ts +1 -1
- package/highlevel/types/premium/star-gift-value.d.cts +1 -1
- package/highlevel/types/premium/star-gift-value.d.ts +1 -1
- package/highlevel/types/premium/star-gift.cjs +0 -4
- package/highlevel/types/premium/star-gift.d.cts +1 -3
- package/highlevel/types/premium/star-gift.d.ts +1 -3
- package/highlevel/types/premium/star-gift.js +0 -4
- package/highlevel/types/premium/stars-status.d.cts +1 -1
- package/highlevel/types/premium/stars-status.d.ts +1 -1
- package/highlevel/types/premium/stars-transaction.d.cts +1 -1
- package/highlevel/types/premium/stars-transaction.d.ts +1 -1
- package/highlevel/types/reactions/emoji-status.d.cts +1 -1
- package/highlevel/types/reactions/emoji-status.d.ts +1 -1
- package/highlevel/types/reactions/peer-reaction.cjs +5 -8
- package/highlevel/types/reactions/peer-reaction.d.cts +4 -5
- package/highlevel/types/reactions/peer-reaction.d.ts +4 -5
- package/highlevel/types/reactions/peer-reaction.js +5 -8
- package/highlevel/types/reactions/reaction-count.d.cts +1 -1
- package/highlevel/types/reactions/reaction-count.d.ts +1 -1
- package/highlevel/types/reactions/types.d.cts +1 -1
- package/highlevel/types/reactions/types.d.ts +1 -1
- package/highlevel/types/stories/all-stories.d.cts +1 -1
- package/highlevel/types/stories/all-stories.d.ts +1 -1
- package/highlevel/types/stories/interactive/base.d.cts +1 -1
- package/highlevel/types/stories/interactive/base.d.ts +1 -1
- package/highlevel/types/stories/interactive/channel-post.d.cts +1 -1
- package/highlevel/types/stories/interactive/channel-post.d.ts +1 -1
- package/highlevel/types/stories/interactive/index.d.cts +1 -1
- package/highlevel/types/stories/interactive/index.d.ts +1 -1
- package/highlevel/types/stories/interactive/input.d.cts +1 -1
- package/highlevel/types/stories/interactive/input.d.ts +1 -1
- package/highlevel/types/stories/interactive/location.d.cts +1 -1
- package/highlevel/types/stories/interactive/location.d.ts +1 -1
- package/highlevel/types/stories/interactive/reaction.d.cts +1 -1
- package/highlevel/types/stories/interactive/reaction.d.ts +1 -1
- package/highlevel/types/stories/interactive/star-gift.d.cts +1 -1
- package/highlevel/types/stories/interactive/star-gift.d.ts +1 -1
- package/highlevel/types/stories/interactive/url.d.cts +1 -1
- package/highlevel/types/stories/interactive/url.d.ts +1 -1
- package/highlevel/types/stories/interactive/venue.d.cts +1 -1
- package/highlevel/types/stories/interactive/venue.d.ts +1 -1
- package/highlevel/types/stories/interactive/weather.d.cts +1 -1
- package/highlevel/types/stories/interactive/weather.d.ts +1 -1
- package/highlevel/types/stories/peer-stories.cjs +4 -4
- package/highlevel/types/stories/peer-stories.d.cts +1 -1
- package/highlevel/types/stories/peer-stories.d.ts +1 -1
- package/highlevel/types/stories/peer-stories.js +4 -4
- package/highlevel/types/stories/stealth-mode.d.cts +1 -1
- package/highlevel/types/stories/stealth-mode.d.ts +1 -1
- package/highlevel/types/stories/story-interactions.d.cts +1 -1
- package/highlevel/types/stories/story-interactions.d.ts +1 -1
- package/highlevel/types/stories/story-viewer.cjs +3 -4
- package/highlevel/types/stories/story-viewer.d.cts +3 -3
- package/highlevel/types/stories/story-viewer.d.ts +3 -3
- package/highlevel/types/stories/story-viewer.js +3 -4
- package/highlevel/types/stories/story.d.cts +1 -1
- package/highlevel/types/stories/story.d.ts +1 -1
- package/highlevel/types/updates/bot-chat-join-request.d.cts +1 -1
- package/highlevel/types/updates/bot-chat-join-request.d.ts +1 -1
- package/highlevel/types/updates/bot-reaction.d.cts +1 -1
- package/highlevel/types/updates/bot-reaction.d.ts +1 -1
- package/highlevel/types/updates/bot-stopped.d.cts +1 -1
- package/highlevel/types/updates/bot-stopped.d.ts +1 -1
- package/highlevel/types/updates/business-message.d.cts +1 -1
- package/highlevel/types/updates/business-message.d.ts +1 -1
- package/highlevel/types/updates/callback-query.d.cts +1 -1
- package/highlevel/types/updates/callback-query.d.ts +1 -1
- package/highlevel/types/updates/chat-join-request.d.cts +1 -1
- package/highlevel/types/updates/chat-join-request.d.ts +1 -1
- package/highlevel/types/updates/chat-member-update.cjs +2 -2
- package/highlevel/types/updates/chat-member-update.d.cts +1 -1
- package/highlevel/types/updates/chat-member-update.d.ts +1 -1
- package/highlevel/types/updates/chat-member-update.js +2 -2
- package/highlevel/types/updates/chosen-inline-result.d.cts +1 -1
- package/highlevel/types/updates/chosen-inline-result.d.ts +1 -1
- package/highlevel/types/updates/delete-business-message-update.d.cts +1 -1
- package/highlevel/types/updates/delete-business-message-update.d.ts +1 -1
- package/highlevel/types/updates/delete-message-update.d.cts +1 -1
- package/highlevel/types/updates/delete-message-update.d.ts +1 -1
- package/highlevel/types/updates/delete-story-update.d.cts +1 -1
- package/highlevel/types/updates/delete-story-update.d.ts +1 -1
- package/highlevel/types/updates/history-read-update.d.cts +1 -1
- package/highlevel/types/updates/history-read-update.d.ts +1 -1
- package/highlevel/types/updates/inline-query.d.cts +1 -1
- package/highlevel/types/updates/inline-query.d.ts +1 -1
- package/highlevel/types/updates/poll-update.d.cts +1 -1
- package/highlevel/types/updates/poll-update.d.ts +1 -1
- package/highlevel/types/updates/poll-vote.d.cts +1 -1
- package/highlevel/types/updates/poll-vote.d.ts +1 -1
- package/highlevel/types/updates/pre-checkout-query.d.cts +1 -1
- package/highlevel/types/updates/pre-checkout-query.d.ts +1 -1
- package/highlevel/types/updates/story-update.d.cts +1 -1
- package/highlevel/types/updates/story-update.d.ts +1 -1
- package/highlevel/types/updates/user-status-update.d.cts +1 -1
- package/highlevel/types/updates/user-status-update.d.ts +1 -1
- package/highlevel/types/updates/user-typing-update.d.cts +1 -1
- package/highlevel/types/updates/user-typing-update.d.ts +1 -1
- package/highlevel/updates/manager.cjs +8 -9
- package/highlevel/updates/manager.d.cts +4 -2
- package/highlevel/updates/manager.d.ts +4 -2
- package/highlevel/updates/manager.js +8 -9
- package/highlevel/updates/types.d.cts +1 -1
- package/highlevel/updates/types.d.ts +1 -1
- package/highlevel/updates/utils.d.cts +1 -1
- package/highlevel/updates/utils.d.ts +1 -1
- package/highlevel/utils/convert-file-id.d.cts +1 -1
- package/highlevel/utils/convert-file-id.d.ts +1 -1
- package/highlevel/utils/file-utils.d.cts +1 -1
- package/highlevel/utils/file-utils.d.ts +1 -1
- package/highlevel/utils/inline-utils.d.cts +1 -1
- package/highlevel/utils/inline-utils.d.ts +1 -1
- package/highlevel/utils/peer-utils.cjs +4 -4
- package/highlevel/utils/peer-utils.d.cts +1 -1
- package/highlevel/utils/peer-utils.d.ts +1 -1
- package/highlevel/utils/peer-utils.js +4 -4
- package/highlevel/worker/errors.cjs +3 -3
- package/highlevel/worker/errors.js +3 -3
- package/highlevel/worker/invoker.cjs +67 -9
- package/highlevel/worker/invoker.d.cts +9 -1
- package/highlevel/worker/invoker.d.ts +9 -1
- package/highlevel/worker/invoker.js +67 -9
- package/highlevel/worker/invoker.test.d.cts +1 -0
- package/highlevel/worker/invoker.test.d.ts +1 -0
- package/highlevel/worker/port.cjs +50 -16
- package/highlevel/worker/port.d.cts +9 -5
- package/highlevel/worker/port.d.ts +9 -5
- package/highlevel/worker/port.js +51 -17
- package/highlevel/worker/protocol.cjs +19 -7
- package/highlevel/worker/protocol.d.cts +28 -4
- package/highlevel/worker/protocol.d.ts +28 -4
- package/highlevel/worker/protocol.js +19 -7
- package/highlevel/worker/protocol.test.d.cts +1 -0
- package/highlevel/worker/protocol.test.d.ts +1 -0
- package/highlevel/worker/storage.cjs +4 -1
- package/highlevel/worker/storage.d.cts +2 -1
- package/highlevel/worker/storage.d.ts +2 -1
- package/highlevel/worker/storage.js +4 -1
- package/highlevel/worker/timers.cjs +19 -0
- package/highlevel/worker/timers.d.cts +11 -0
- package/highlevel/worker/timers.d.ts +11 -0
- package/highlevel/worker/timers.js +14 -0
- package/highlevel/worker/timers.test.d.cts +1 -0
- package/highlevel/worker/timers.test.d.ts +1 -0
- package/highlevel/worker/worker.cjs +266 -53
- package/highlevel/worker/worker.d.cts +30 -2
- package/highlevel/worker/worker.d.ts +30 -2
- package/highlevel/worker/worker.js +267 -54
- package/highlevel/worker/worker.test.d.cts +1 -0
- package/highlevel/worker/worker.test.d.ts +1 -0
- package/index.cjs +4 -11
- package/index.d.cts +2 -2
- package/index.d.ts +2 -2
- package/index.js +4 -5
- package/methods.cjs +0 -2
- package/methods.js +0 -2
- package/network/auth-key.d.cts +1 -1
- package/network/auth-key.d.ts +1 -1
- package/network/authorization.cjs +2 -2
- package/network/authorization.js +2 -2
- package/network/client.cjs +6 -7
- package/network/client.d.cts +1 -12
- package/network/client.d.ts +1 -12
- package/network/client.js +4 -5
- package/network/config-manager.d.cts +1 -1
- package/network/config-manager.d.ts +1 -1
- package/network/middlewares/internal-errors.cjs +8 -8
- package/network/middlewares/internal-errors.js +8 -8
- package/network/middlewares/on-error.d.cts +1 -1
- package/network/middlewares/on-error.d.ts +1 -1
- package/network/middlewares/on-method.d.cts +1 -1
- package/network/middlewares/on-method.d.ts +1 -1
- package/network/mtproto-session.cjs +0 -3
- package/network/mtproto-session.d.cts +1 -2
- package/network/mtproto-session.d.ts +1 -2
- package/network/mtproto-session.js +0 -3
- package/network/mtproxy/index.d.cts +1 -1
- package/network/mtproxy/index.d.ts +1 -1
- package/network/multi-session-connection.d.cts +1 -1
- package/network/multi-session-connection.d.ts +1 -1
- package/network/network-manager.cjs +40 -2
- package/network/network-manager.d.cts +12 -3
- package/network/network-manager.d.ts +12 -3
- package/network/network-manager.js +41 -3
- package/network/persistent-connection.d.cts +1 -1
- package/network/persistent-connection.d.ts +1 -1
- package/network/server-salt.d.cts +1 -1
- package/network/server-salt.d.ts +1 -1
- package/network/session-connection.cjs +10 -17
- package/network/session-connection.d.cts +1 -3
- package/network/session-connection.d.ts +1 -3
- package/network/session-connection.js +10 -17
- package/network/transports/abstract.d.cts +1 -1
- package/network/transports/abstract.d.ts +1 -1
- package/network/transports/intermediate.cjs +0 -2
- package/network/transports/intermediate.js +0 -2
- package/package.json +9 -6
- package/storage/service/base.d.cts +1 -1
- package/storage/service/base.d.ts +1 -1
- package/storage/service/future-salts.d.cts +1 -1
- package/storage/service/future-salts.d.ts +1 -1
- package/storage/sqlite/driver.cjs +0 -22
- package/storage/sqlite/driver.d.cts +0 -3
- package/storage/sqlite/driver.d.ts +0 -3
- package/storage/sqlite/driver.js +0 -22
- package/storage/sqlite/repository/kv.cjs +5 -47
- package/storage/sqlite/repository/kv.js +5 -47
- package/storage/sqlite/repository/peers.cjs +0 -3
- package/storage/sqlite/repository/peers.js +0 -3
- package/storage/storage.cjs +1 -3
- package/storage/storage.js +1 -3
- package/tl/api-schema.json +1 -0
- package/tl/app-config.json +1 -0
- package/tl/binary/reader.cjs +5248 -0
- package/tl/binary/reader.d.cts +3 -0
- package/tl/binary/reader.d.ts +3 -0
- package/tl/binary/reader.js +5243 -0
- package/tl/binary/rsa-keys.cjs +9 -0
- package/tl/binary/rsa-keys.d.cts +38 -0
- package/tl/binary/rsa-keys.d.ts +38 -0
- package/tl/binary/rsa-keys.js +4 -0
- package/tl/binary/writer.cjs +18718 -0
- package/tl/binary/writer.d.cts +4 -0
- package/tl/binary/writer.d.ts +4 -0
- package/tl/binary/writer.js +18713 -0
- package/tl/compat/reader.cjs +313 -0
- package/tl/compat/reader.d.cts +1 -0
- package/tl/compat/reader.d.ts +1 -0
- package/tl/compat/reader.js +308 -0
- package/tl/index.d.cts +58614 -0
- package/tl/index.d.ts +58614 -0
- package/tl/inner-mtp.cjs +63 -0
- package/tl/inner-mtp.js +58 -0
- package/tl/inner-tl.cjs +1261 -0
- package/tl/inner-tl.js +1256 -0
- package/tl/mtp-schema.json +1 -0
- package/tl/raw-errors.json +1 -0
- package/utils/binary/compat.cjs +10 -10
- package/utils/binary/compat.d.cts +1 -1
- package/utils/binary/compat.d.ts +1 -1
- package/utils/binary/compat.js +5 -5
- package/utils/binary/serialization.cjs +7 -7
- package/utils/binary/serialization.d.cts +1 -1
- package/utils/binary/serialization.d.ts +1 -1
- package/utils/binary/serialization.js +5 -5
- package/utils/crypto/keys.cjs +5 -5
- package/utils/crypto/keys.d.cts +1 -1
- package/utils/crypto/keys.d.ts +1 -1
- package/utils/crypto/keys.js +1 -1
- package/utils/crypto/password.d.cts +1 -1
- package/utils/crypto/password.d.ts +1 -1
- package/utils/date-entity-format.d.cts +1 -1
- package/utils/date-entity-format.d.ts +1 -1
- package/utils/index.d.cts +2 -6
- package/utils/index.d.ts +2 -6
- package/utils/links/bots.d.cts +1 -1
- package/utils/links/bots.d.ts +1 -1
- package/utils/logger.cjs +2 -2
- package/utils/logger.js +2 -2
- package/utils/peer-utils.d.cts +1 -1
- package/utils/peer-utils.d.ts +1 -1
- package/utils/tl-json.d.cts +1 -1
- package/utils/tl-json.d.ts +1 -1
- package/utils/type-assertions.d.cts +1 -1
- package/utils/type-assertions.d.ts +1 -1
- package/utils.cjs +4 -18
- package/utils.js +2 -10
- package/highlevel/methods/chats/get-nearby-chats.cjs +0 -37
- package/highlevel/methods/chats/get-nearby-chats.d.cts +0 -9
- package/highlevel/methods/chats/get-nearby-chats.d.ts +0 -9
- package/highlevel/methods/chats/get-nearby-chats.js +0 -32
- package/highlevel/methods/messages/_business-connection.cjs +0 -42
- package/highlevel/methods/messages/_business-connection.d.cts +0 -8
- package/highlevel/methods/messages/_business-connection.d.ts +0 -8
- package/highlevel/methods/messages/_business-connection.js +0 -37
- package/highlevel/types/peers/chat-location.cjs +0 -30
- package/highlevel/types/peers/chat-location.d.cts +0 -17
- package/highlevel/types/peers/chat-location.d.ts +0 -17
- package/highlevel/types/peers/chat-location.js +0 -25
- package/utils/error-reporting.cjs +0 -23
- package/utils/error-reporting.d.cts +0 -3
- package/utils/error-reporting.d.ts +0 -3
- package/utils/error-reporting.js +0 -18
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
|
+
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
|
+
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
|
+
}
|
|
6
|
+
"use strict";
|
|
7
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
|
+
var m = {
|
|
9
|
+
880997154: function(r) {
|
|
10
|
+
var flags = r.uint();
|
|
11
|
+
return { _: "starGiftUnique_layer197", id: r.long(), title: r.string(), slug: r.string(), num: r.int(), ownerId: flags & 1 ? r.int53() : void 0, ownerName: flags & 2 ? r.string() : void 0, attributes: r.vector(r.object), availabilityIssued: r.int(), availabilityTotal: r.int() };
|
|
12
|
+
},
|
|
13
|
+
2459656605: function(r) {
|
|
14
|
+
return { _: "emojiStatus_layer197", documentId: r.long() };
|
|
15
|
+
},
|
|
16
|
+
3713469397: function(r) {
|
|
17
|
+
var flags = r.uint();
|
|
18
|
+
return { _: "messageMediaDocument_layer197", nopremium: !!(flags & 8), spoiler: !!(flags & 16), video: !!(flags & 64), round: !!(flags & 128), voice: !!(flags & 256), document: flags & 1 ? r.object() : void 0, altDocuments: flags & 32 ? r.vector(r.object) : void 0, ttlSeconds: flags & 4 ? r.int() : void 0 };
|
|
19
|
+
},
|
|
20
|
+
2683549784: function(r) {
|
|
21
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
22
|
+
return { _: "channelFull_layer197", 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), 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 };
|
|
23
|
+
},
|
|
24
|
+
638024601: function(r) {
|
|
25
|
+
var flags = r.uint();
|
|
26
|
+
return { _: "messageActionStarGiftUnique_layer197", upgrade: !!(flags & 1), transferred: !!(flags & 2), saved: !!(flags & 4), refunded: !!(flags & 32), gift: r.object(), canExportAt: flags & 8 ? r.int() : void 0, transferStars: flags & 16 ? r.long() : void 0 };
|
|
27
|
+
},
|
|
28
|
+
3639931047: function(r) {
|
|
29
|
+
var flags = r.uint();
|
|
30
|
+
return { _: "messageActionStarGift_layer197", nameHidden: !!(flags & 1), saved: !!(flags & 4), converted: !!(flags & 8), upgraded: !!(flags & 32), refunded: !!(flags & 512), canUpgrade: !!(flags & 1024), 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 };
|
|
31
|
+
},
|
|
32
|
+
4076764746: function(r) {
|
|
33
|
+
var flags = r.uint();
|
|
34
|
+
return { _: "starGiftUnique_layer198", id: r.long(), title: r.string(), slug: r.string(), num: r.int(), ownerId: flags & 1 ? r.object() : void 0, ownerName: flags & 2 ? r.string() : void 0, ownerAddress: flags & 4 ? r.string() : void 0, attributes: r.vector(r.object), availabilityIssued: r.int(), availabilityTotal: r.int() };
|
|
35
|
+
},
|
|
36
|
+
1301765052: function(r) {
|
|
37
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
38
|
+
return { _: "userFull_layer199", blocked: !!(flags & 1), phoneCallsAvailable: !!(flags & 16), phoneCallsPrivate: !!(flags & 32), canPinMessage: !!(flags & 128), hasScheduled: !!(flags & 4096), videoCallsAvailable: !!(flags & 8192), voiceMessagesForbidden: !!(flags & 1048576), translationsDisabled: !!(flags & 8388608), storiesPinnedAvailable: !!(flags & 67108864), blockedMyStoriesFrom: !!(flags & 134217728), wallpaperOverridden: !!(flags & 268435456), contactRequirePremium: !!(flags & 536870912), readDatesPrivate: !!(flags & 1073741824), sponsoredEnabled: !!(flags2 & 128), canViewRevenue: !!(flags2 & 512), botCanManageEmojiStatus: !!(flags2 & 1024), id: r.int53(), about: flags & 2 ? r.string() : void 0, settings: r.object(), personalPhoto: flags & 2097152 ? r.object() : void 0, profilePhoto: flags & 4 ? r.object() : void 0, fallbackPhoto: flags & 4194304 ? r.object() : void 0, notifySettings: r.object(), botInfo: flags & 8 ? r.object() : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, commonChatsCount: r.int(), folderId: flags & 2048 ? r.int() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, themeEmoticon: flags & 32768 ? r.string() : void 0, privateForwardName: flags & 65536 ? r.string() : void 0, botGroupAdminRights: flags & 131072 ? r.object() : void 0, botBroadcastAdminRights: flags & 262144 ? r.object() : void 0, premiumGifts: flags & 524288 ? r.vector(r.object) : void 0, wallpaper: flags & 16777216 ? r.object() : void 0, stories: flags & 33554432 ? r.object() : void 0, businessWorkHours: flags2 & 1 ? r.object() : void 0, businessLocation: flags2 & 2 ? r.object() : void 0, businessGreetingMessage: flags2 & 4 ? r.object() : void 0, businessAwayMessage: flags2 & 8 ? r.object() : void 0, businessIntro: flags2 & 16 ? r.object() : void 0, birthday: flags2 & 32 ? r.object() : void 0, personalChannelId: flags2 & 64 ? r.int53() : void 0, personalChannelMessage: flags2 & 64 ? r.int() : void 0, stargiftsCount: flags2 & 256 ? r.int() : void 0, starrefProgram: flags2 & 2048 ? r.object() : void 0, botVerification: flags2 & 4096 ? r.object() : void 0 };
|
|
39
|
+
},
|
|
40
|
+
1958953753: function(r) {
|
|
41
|
+
var flags = r.uint();
|
|
42
|
+
return { _: "premiumGiftOption_layer199", months: r.int(), currency: r.string(), amount: r.long(), botUrl: r.string(), storeProduct: flags & 1 ? r.string() : void 0 };
|
|
43
|
+
},
|
|
44
|
+
1262928766: function(r) {
|
|
45
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
46
|
+
return { _: "user_layer199", 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), 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.int() : 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 };
|
|
47
|
+
},
|
|
48
|
+
3758725303: function(r) {
|
|
49
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
50
|
+
return { _: "channel_layer199", 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), 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.int() : 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 };
|
|
51
|
+
},
|
|
52
|
+
2533211113: function(r) {
|
|
53
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
54
|
+
return { _: "message_layer199", 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), id: r.int(), fromId: flags & 256 ? r.object() : void 0, fromBoostsApplied: flags & 536870912 ? r.int() : 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, 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 };
|
|
55
|
+
},
|
|
56
|
+
3525529248: function(r) {
|
|
57
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
58
|
+
return { _: "userFull_layer200", blocked: !!(flags & 1), phoneCallsAvailable: !!(flags & 16), phoneCallsPrivate: !!(flags & 32), canPinMessage: !!(flags & 128), hasScheduled: !!(flags & 4096), videoCallsAvailable: !!(flags & 8192), voiceMessagesForbidden: !!(flags & 1048576), translationsDisabled: !!(flags & 8388608), storiesPinnedAvailable: !!(flags & 67108864), blockedMyStoriesFrom: !!(flags & 134217728), wallpaperOverridden: !!(flags & 268435456), contactRequirePremium: !!(flags & 536870912), readDatesPrivate: !!(flags & 1073741824), sponsoredEnabled: !!(flags2 & 128), canViewRevenue: !!(flags2 & 512), botCanManageEmojiStatus: !!(flags2 & 1024), id: r.int53(), about: flags & 2 ? r.string() : void 0, settings: r.object(), personalPhoto: flags & 2097152 ? r.object() : void 0, profilePhoto: flags & 4 ? r.object() : void 0, fallbackPhoto: flags & 4194304 ? r.object() : void 0, notifySettings: r.object(), botInfo: flags & 8 ? r.object() : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, commonChatsCount: r.int(), folderId: flags & 2048 ? r.int() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, themeEmoticon: flags & 32768 ? r.string() : void 0, privateForwardName: flags & 65536 ? r.string() : void 0, botGroupAdminRights: flags & 131072 ? r.object() : void 0, botBroadcastAdminRights: flags & 262144 ? r.object() : void 0, wallpaper: flags & 16777216 ? r.object() : void 0, stories: flags & 33554432 ? r.object() : void 0, businessWorkHours: flags2 & 1 ? r.object() : void 0, businessLocation: flags2 & 2 ? r.object() : void 0, businessGreetingMessage: flags2 & 4 ? r.object() : void 0, businessAwayMessage: flags2 & 8 ? r.object() : void 0, businessIntro: flags2 & 16 ? r.object() : void 0, birthday: flags2 & 32 ? r.object() : void 0, personalChannelId: flags2 & 64 ? r.int53() : void 0, personalChannelMessage: flags2 & 64 ? r.int() : void 0, stargiftsCount: flags2 & 256 ? r.int() : void 0, starrefProgram: flags2 & 2048 ? r.object() : void 0, botVerification: flags2 & 4096 ? r.object() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0 };
|
|
59
|
+
},
|
|
60
|
+
1549979985: function(r) {
|
|
61
|
+
var flags = r.uint();
|
|
62
|
+
return { _: "starGiftUnique_layer202", id: r.long(), title: r.string(), slug: r.string(), num: r.int(), ownerId: flags & 1 ? r.object() : void 0, ownerName: flags & 2 ? r.string() : void 0, ownerAddress: flags & 4 ? r.string() : void 0, attributes: r.vector(r.object), availabilityIssued: r.int(), availabilityTotal: r.int(), giftAddress: flags & 8 ? r.string() : void 0 };
|
|
63
|
+
},
|
|
64
|
+
46953416: function(r) {
|
|
65
|
+
var flags = r.uint();
|
|
66
|
+
return { _: "starGift_layer202", limited: !!(flags & 1), soldOut: !!(flags & 2), birthday: !!(flags & 4), id: r.long(), sticker: r.object(), stars: r.long(), availabilityRemains: flags & 1 ? r.int() : void 0, availabilityTotal: flags & 1 ? r.int() : void 0, convertStars: r.long(), firstSaleDate: flags & 2 ? r.int() : void 0, lastSaleDate: flags & 2 ? r.int() : void 0, upgradeStars: flags & 8 ? r.long() : void 0 };
|
|
67
|
+
},
|
|
68
|
+
2900347777: function(r) {
|
|
69
|
+
var flags = r.uint();
|
|
70
|
+
return { _: "messageActionStarGiftUnique_layer202", upgrade: !!(flags & 1), transferred: !!(flags & 2), saved: !!(flags & 4), refunded: !!(flags & 32), 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 };
|
|
71
|
+
},
|
|
72
|
+
2950871097: function(r) {
|
|
73
|
+
return { _: "phoneCallDiscardReasonAllowGroupCall_layer202", encryptedKey: r.bytes() };
|
|
74
|
+
},
|
|
75
|
+
1954681982: function(r) {
|
|
76
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
77
|
+
return { _: "channel_layer203", 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), 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.int() : 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 };
|
|
78
|
+
},
|
|
79
|
+
3168211993: function(r) {
|
|
80
|
+
return { _: "messageActionPaidMessagesPrice_layer203", stars: r.long() };
|
|
81
|
+
},
|
|
82
|
+
1389789291: function(r) {
|
|
83
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
84
|
+
return { _: "channelFull_layer204", 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 };
|
|
85
|
+
},
|
|
86
|
+
3553789248: function(r) {
|
|
87
|
+
var flags = r.uint();
|
|
88
|
+
return { _: "messageService_layer204", out: !!(flags & 2), mentioned: !!(flags & 16), mediaUnread: !!(flags & 32), reactionsArePossible: !!(flags & 512), silent: !!(flags & 8192), post: !!(flags & 16384), legacy: !!(flags & 524288), id: r.int(), fromId: flags & 256 ? r.object() : void 0, peerId: r.object(), replyTo: flags & 8 ? r.object() : void 0, date: r.int(), action: r.object(), reactions: flags & 1048576 ? r.object() : void 0, ttlPeriod: flags & 33554432 ? r.int() : void 0 };
|
|
89
|
+
},
|
|
90
|
+
3938245965: function(r) {
|
|
91
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
92
|
+
return { _: "message_layer204", 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), id: r.int(), fromId: flags & 256 ? r.object() : void 0, fromBoostsApplied: flags & 536870912 ? r.int() : 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, 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 };
|
|
93
|
+
},
|
|
94
|
+
1678891913: function(r) {
|
|
95
|
+
var flags = r.uint();
|
|
96
|
+
return { _: "starGiftUnique_layer206", id: r.long(), title: r.string(), slug: r.string(), num: r.int(), ownerId: flags & 1 ? r.object() : void 0, ownerName: flags & 2 ? r.string() : void 0, ownerAddress: flags & 4 ? r.string() : void 0, attributes: r.vector(r.object), availabilityIssued: r.int(), availabilityTotal: r.int(), giftAddress: flags & 8 ? r.string() : void 0, resellStars: flags & 16 ? r.long() : void 0 };
|
|
97
|
+
},
|
|
98
|
+
3324693032: function(r) {
|
|
99
|
+
var flags = r.uint();
|
|
100
|
+
return { _: "starGift_layer206", limited: !!(flags & 1), soldOut: !!(flags & 2), birthday: !!(flags & 4), id: r.long(), sticker: r.object(), stars: r.long(), availabilityRemains: flags & 1 ? r.int() : void 0, availabilityTotal: flags & 1 ? r.int() : void 0, availabilityResale: flags & 16 ? r.long() : void 0, convertStars: r.long(), firstSaleDate: flags & 2 ? r.int() : void 0, lastSaleDate: flags & 2 ? r.int() : void 0, upgradeStars: flags & 8 ? r.long() : void 0, resellMinStars: flags & 16 ? r.long() : void 0, title: flags & 32 ? r.string() : void 0 };
|
|
101
|
+
},
|
|
102
|
+
2948336091: function(r) {
|
|
103
|
+
var flags = r.uint();
|
|
104
|
+
return { _: "messageReplyHeader_layer206", 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 };
|
|
105
|
+
},
|
|
106
|
+
2582085701: function(r) {
|
|
107
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
108
|
+
return { _: "userFull_layer209", blocked: !!(flags & 1), phoneCallsAvailable: !!(flags & 16), phoneCallsPrivate: !!(flags & 32), canPinMessage: !!(flags & 128), hasScheduled: !!(flags & 4096), videoCallsAvailable: !!(flags & 8192), voiceMessagesForbidden: !!(flags & 1048576), translationsDisabled: !!(flags & 8388608), storiesPinnedAvailable: !!(flags & 67108864), blockedMyStoriesFrom: !!(flags & 134217728), wallpaperOverridden: !!(flags & 268435456), contactRequirePremium: !!(flags & 536870912), readDatesPrivate: !!(flags & 1073741824), sponsoredEnabled: !!(flags2 & 128), canViewRevenue: !!(flags2 & 512), botCanManageEmojiStatus: !!(flags2 & 1024), displayGiftsButton: !!(flags2 & 65536), id: r.int53(), about: flags & 2 ? r.string() : void 0, settings: r.object(), personalPhoto: flags & 2097152 ? r.object() : void 0, profilePhoto: flags & 4 ? r.object() : void 0, fallbackPhoto: flags & 4194304 ? r.object() : void 0, notifySettings: r.object(), botInfo: flags & 8 ? r.object() : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, commonChatsCount: r.int(), folderId: flags & 2048 ? r.int() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, themeEmoticon: flags & 32768 ? r.string() : void 0, privateForwardName: flags & 65536 ? r.string() : void 0, botGroupAdminRights: flags & 131072 ? r.object() : void 0, botBroadcastAdminRights: flags & 262144 ? r.object() : void 0, wallpaper: flags & 16777216 ? r.object() : void 0, stories: flags & 33554432 ? r.object() : void 0, businessWorkHours: flags2 & 1 ? r.object() : void 0, businessLocation: flags2 & 2 ? r.object() : void 0, businessGreetingMessage: flags2 & 4 ? r.object() : void 0, businessAwayMessage: flags2 & 8 ? r.object() : void 0, businessIntro: flags2 & 16 ? r.object() : void 0, birthday: flags2 & 32 ? r.object() : void 0, personalChannelId: flags2 & 64 ? r.int53() : void 0, personalChannelMessage: flags2 & 64 ? r.int() : void 0, stargiftsCount: flags2 & 256 ? r.int() : void 0, starrefProgram: flags2 & 2048 ? r.object() : void 0, botVerification: flags2 & 4096 ? r.object() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, disallowedGifts: flags2 & 32768 ? r.object() : void 0 };
|
|
109
|
+
},
|
|
110
|
+
2139438098: function(r) {
|
|
111
|
+
var flags = r.uint();
|
|
112
|
+
return { _: "starGift_layer209", limited: !!(flags & 1), soldOut: !!(flags & 2), birthday: !!(flags & 4), id: r.long(), sticker: r.object(), stars: r.long(), availabilityRemains: flags & 1 ? r.int() : void 0, availabilityTotal: flags & 1 ? r.int() : void 0, availabilityResale: flags & 16 ? r.long() : void 0, convertStars: r.long(), firstSaleDate: flags & 2 ? r.int() : void 0, lastSaleDate: flags & 2 ? r.int() : void 0, upgradeStars: flags & 8 ? r.long() : void 0, resellMinStars: flags & 16 ? r.long() : void 0, title: flags & 32 ? r.string() : void 0, releasedBy: flags & 64 ? r.object() : void 0 };
|
|
113
|
+
},
|
|
114
|
+
702447806: function(r) {
|
|
115
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
116
|
+
return { _: "userFull_layer210", blocked: !!(flags & 1), phoneCallsAvailable: !!(flags & 16), phoneCallsPrivate: !!(flags & 32), canPinMessage: !!(flags & 128), hasScheduled: !!(flags & 4096), videoCallsAvailable: !!(flags & 8192), voiceMessagesForbidden: !!(flags & 1048576), translationsDisabled: !!(flags & 8388608), storiesPinnedAvailable: !!(flags & 67108864), blockedMyStoriesFrom: !!(flags & 134217728), wallpaperOverridden: !!(flags & 268435456), contactRequirePremium: !!(flags & 536870912), readDatesPrivate: !!(flags & 1073741824), sponsoredEnabled: !!(flags2 & 128), canViewRevenue: !!(flags2 & 512), botCanManageEmojiStatus: !!(flags2 & 1024), displayGiftsButton: !!(flags2 & 65536), id: r.int53(), about: flags & 2 ? r.string() : void 0, settings: r.object(), personalPhoto: flags & 2097152 ? r.object() : void 0, profilePhoto: flags & 4 ? r.object() : void 0, fallbackPhoto: flags & 4194304 ? r.object() : void 0, notifySettings: r.object(), botInfo: flags & 8 ? r.object() : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, commonChatsCount: r.int(), folderId: flags & 2048 ? r.int() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, themeEmoticon: flags & 32768 ? r.string() : void 0, privateForwardName: flags & 65536 ? r.string() : void 0, botGroupAdminRights: flags & 131072 ? r.object() : void 0, botBroadcastAdminRights: flags & 262144 ? r.object() : void 0, wallpaper: flags & 16777216 ? r.object() : void 0, stories: flags & 33554432 ? r.object() : void 0, businessWorkHours: flags2 & 1 ? r.object() : void 0, businessLocation: flags2 & 2 ? r.object() : void 0, businessGreetingMessage: flags2 & 4 ? r.object() : void 0, businessAwayMessage: flags2 & 8 ? r.object() : void 0, businessIntro: flags2 & 16 ? r.object() : void 0, birthday: flags2 & 32 ? r.object() : void 0, personalChannelId: flags2 & 64 ? r.int53() : void 0, personalChannelMessage: flags2 & 64 ? r.int() : void 0, stargiftsCount: flags2 & 256 ? r.int() : void 0, starrefProgram: flags2 & 2048 ? r.object() : void 0, botVerification: flags2 & 4096 ? r.object() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, disallowedGifts: flags2 & 32768 ? r.object() : void 0, starsRating: flags2 & 131072 ? r.object() : void 0 };
|
|
117
|
+
},
|
|
118
|
+
2041735716: function(r) {
|
|
119
|
+
var flags = r.uint();
|
|
120
|
+
return { _: "storyItem_layer210", pinned: !!(flags & 32), public: !!(flags & 128), closeFriends: !!(flags & 256), min: !!(flags & 512), noforwards: !!(flags & 1024), edited: !!(flags & 2048), contacts: !!(flags & 4096), selectedContacts: !!(flags & 8192), out: !!(flags & 65536), id: r.int(), date: r.int(), fromId: flags & 262144 ? r.object() : void 0, fwdFrom: flags & 131072 ? r.object() : void 0, expireDate: r.int(), caption: flags & 1 ? r.string() : void 0, entities: flags & 2 ? r.vector(r.object) : void 0, media: r.object(), mediaAreas: flags & 16384 ? r.vector(r.object) : void 0, privacy: flags & 4 ? r.vector(r.object) : void 0, views: flags & 8 ? r.object() : void 0, sentReaction: flags & 32768 ? r.object() : void 0 };
|
|
121
|
+
},
|
|
122
|
+
775611918: function(r) {
|
|
123
|
+
var flags = r.uint();
|
|
124
|
+
return { _: "messageActionStarGiftUnique_layer210", upgrade: !!(flags & 1), transferred: !!(flags & 2), saved: !!(flags & 4), refunded: !!(flags & 32), 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, resaleStars: flags & 256 ? r.long() : void 0, canTransferAt: flags & 512 ? r.int() : void 0, canResellAt: flags & 1024 ? r.int() : void 0 };
|
|
125
|
+
},
|
|
126
|
+
4130830510: function(r) {
|
|
127
|
+
var flags = r.uint();
|
|
128
|
+
return { _: "starGiftUnique_layer210", requirePremium: !!(flags & 64), id: r.long(), title: r.string(), slug: r.string(), num: r.int(), ownerId: flags & 1 ? r.object() : void 0, ownerName: flags & 2 ? r.string() : void 0, ownerAddress: flags & 4 ? r.string() : void 0, attributes: r.vector(r.object), availabilityIssued: r.int(), availabilityTotal: r.int(), giftAddress: flags & 8 ? r.string() : void 0, resellStars: flags & 16 ? r.long() : void 0, releasedBy: flags & 32 ? r.object() : void 0 };
|
|
129
|
+
},
|
|
130
|
+
2120470047: function(r) {
|
|
131
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
132
|
+
return { _: "userFull_layer211", blocked: !!(flags & 1), phoneCallsAvailable: !!(flags & 16), phoneCallsPrivate: !!(flags & 32), canPinMessage: !!(flags & 128), hasScheduled: !!(flags & 4096), videoCallsAvailable: !!(flags & 8192), voiceMessagesForbidden: !!(flags & 1048576), translationsDisabled: !!(flags & 8388608), storiesPinnedAvailable: !!(flags & 67108864), blockedMyStoriesFrom: !!(flags & 134217728), wallpaperOverridden: !!(flags & 268435456), contactRequirePremium: !!(flags & 536870912), readDatesPrivate: !!(flags & 1073741824), sponsoredEnabled: !!(flags2 & 128), canViewRevenue: !!(flags2 & 512), botCanManageEmojiStatus: !!(flags2 & 1024), displayGiftsButton: !!(flags2 & 65536), id: r.int53(), about: flags & 2 ? r.string() : void 0, settings: r.object(), personalPhoto: flags & 2097152 ? r.object() : void 0, profilePhoto: flags & 4 ? r.object() : void 0, fallbackPhoto: flags & 4194304 ? r.object() : void 0, notifySettings: r.object(), botInfo: flags & 8 ? r.object() : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, commonChatsCount: r.int(), folderId: flags & 2048 ? r.int() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, themeEmoticon: flags & 32768 ? r.string() : void 0, privateForwardName: flags & 65536 ? r.string() : void 0, botGroupAdminRights: flags & 131072 ? r.object() : void 0, botBroadcastAdminRights: flags & 262144 ? r.object() : void 0, wallpaper: flags & 16777216 ? r.object() : void 0, stories: flags & 33554432 ? r.object() : void 0, businessWorkHours: flags2 & 1 ? r.object() : void 0, businessLocation: flags2 & 2 ? r.object() : void 0, businessGreetingMessage: flags2 & 4 ? r.object() : void 0, businessAwayMessage: flags2 & 8 ? r.object() : void 0, businessIntro: flags2 & 16 ? r.object() : void 0, birthday: flags2 & 32 ? r.object() : void 0, personalChannelId: flags2 & 64 ? r.int53() : void 0, personalChannelMessage: flags2 & 64 ? r.int() : void 0, stargiftsCount: flags2 & 256 ? r.int() : void 0, starrefProgram: flags2 & 2048 ? r.object() : void 0, botVerification: flags2 & 4096 ? r.object() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, disallowedGifts: flags2 & 32768 ? r.object() : void 0, starsRating: flags2 & 131072 ? r.object() : void 0, starsMyPendingRating: flags2 & 262144 ? r.object() : void 0, starsMyPendingRatingDate: flags2 & 262144 ? r.int() : void 0 };
|
|
133
|
+
},
|
|
134
|
+
3765709278: function(r) {
|
|
135
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
136
|
+
return { _: "channelFull_layer211", 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 };
|
|
137
|
+
},
|
|
138
|
+
975654224: function(r) {
|
|
139
|
+
var flags = r.uint();
|
|
140
|
+
return { _: "starGiftUnique_layer211", requirePremium: !!(flags & 64), resaleTonOnly: !!(flags & 128), id: r.long(), title: r.string(), slug: r.string(), num: r.int(), ownerId: flags & 1 ? r.object() : void 0, ownerName: flags & 2 ? r.string() : void 0, ownerAddress: flags & 4 ? r.string() : void 0, attributes: r.vector(r.object), availabilityIssued: r.int(), availabilityTotal: r.int(), giftAddress: flags & 8 ? r.string() : void 0, resellAmount: flags & 16 ? r.vector(r.object) : void 0, releasedBy: flags & 32 ? r.object() : void 0 };
|
|
141
|
+
},
|
|
142
|
+
12386139: function(r) {
|
|
143
|
+
var flags = r.uint();
|
|
144
|
+
return { _: "starGift_layer211", limited: !!(flags & 1), soldOut: !!(flags & 2), birthday: !!(flags & 4), requirePremium: !!(flags & 128), limitedPerUser: !!(flags & 256), id: r.long(), sticker: r.object(), stars: r.long(), availabilityRemains: flags & 1 ? r.int() : void 0, availabilityTotal: flags & 1 ? r.int() : void 0, availabilityResale: flags & 16 ? r.long() : void 0, convertStars: r.long(), firstSaleDate: flags & 2 ? r.int() : void 0, lastSaleDate: flags & 2 ? r.int() : void 0, upgradeStars: flags & 8 ? r.long() : void 0, resellMinStars: flags & 16 ? r.long() : void 0, title: flags & 32 ? r.string() : void 0, releasedBy: flags & 64 ? r.object() : void 0, perUserTotal: flags & 256 ? r.int() : void 0, perUserRemains: flags & 256 ? r.int() : void 0 };
|
|
145
|
+
},
|
|
146
|
+
1192749220: function(r) {
|
|
147
|
+
var flags = r.uint();
|
|
148
|
+
return { _: "messageActionStarGift_layer211", nameHidden: !!(flags & 1), saved: !!(flags & 4), converted: !!(flags & 8), upgraded: !!(flags & 32), refunded: !!(flags & 512), canUpgrade: !!(flags & 1024), 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 };
|
|
149
|
+
},
|
|
150
|
+
2860016453: function(r) {
|
|
151
|
+
return { _: "messageActionSetChatTheme_layer211", emoticon: r.string() };
|
|
152
|
+
},
|
|
153
|
+
3312956845: function(r) {
|
|
154
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
155
|
+
return { _: "userFull_layer214", blocked: !!(flags & 1), phoneCallsAvailable: !!(flags & 16), phoneCallsPrivate: !!(flags & 32), canPinMessage: !!(flags & 128), hasScheduled: !!(flags & 4096), videoCallsAvailable: !!(flags & 8192), voiceMessagesForbidden: !!(flags & 1048576), translationsDisabled: !!(flags & 8388608), storiesPinnedAvailable: !!(flags & 67108864), blockedMyStoriesFrom: !!(flags & 134217728), wallpaperOverridden: !!(flags & 268435456), contactRequirePremium: !!(flags & 536870912), readDatesPrivate: !!(flags & 1073741824), sponsoredEnabled: !!(flags2 & 128), canViewRevenue: !!(flags2 & 512), botCanManageEmojiStatus: !!(flags2 & 1024), displayGiftsButton: !!(flags2 & 65536), id: r.int53(), about: flags & 2 ? r.string() : void 0, settings: r.object(), personalPhoto: flags & 2097152 ? r.object() : void 0, profilePhoto: flags & 4 ? r.object() : void 0, fallbackPhoto: flags & 4194304 ? r.object() : void 0, notifySettings: r.object(), botInfo: flags & 8 ? r.object() : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, commonChatsCount: r.int(), folderId: flags & 2048 ? r.int() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, theme: flags & 32768 ? r.object() : void 0, privateForwardName: flags & 65536 ? r.string() : void 0, botGroupAdminRights: flags & 131072 ? r.object() : void 0, botBroadcastAdminRights: flags & 262144 ? r.object() : void 0, wallpaper: flags & 16777216 ? r.object() : void 0, stories: flags & 33554432 ? r.object() : void 0, businessWorkHours: flags2 & 1 ? r.object() : void 0, businessLocation: flags2 & 2 ? r.object() : void 0, businessGreetingMessage: flags2 & 4 ? r.object() : void 0, businessAwayMessage: flags2 & 8 ? r.object() : void 0, businessIntro: flags2 & 16 ? r.object() : void 0, birthday: flags2 & 32 ? r.object() : void 0, personalChannelId: flags2 & 64 ? r.int53() : void 0, personalChannelMessage: flags2 & 64 ? r.int() : void 0, stargiftsCount: flags2 & 256 ? r.int() : void 0, starrefProgram: flags2 & 2048 ? r.object() : void 0, botVerification: flags2 & 4096 ? r.object() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, disallowedGifts: flags2 & 32768 ? r.object() : void 0, starsRating: flags2 & 131072 ? r.object() : void 0, starsMyPendingRating: flags2 & 262144 ? r.object() : void 0, starsMyPendingRatingDate: flags2 & 262144 ? r.int() : void 0, mainTab: flags2 & 1048576 ? r.object() : void 0, savedMusic: flags2 & 2097152 ? r.object() : void 0 };
|
|
156
|
+
},
|
|
157
|
+
4197492935: function(r) {
|
|
158
|
+
return { _: "emojiStatusUntil_layer214", documentId: r.long(), until: r.int() };
|
|
159
|
+
},
|
|
160
|
+
468707429: function(r) {
|
|
161
|
+
var flags = r.uint();
|
|
162
|
+
return { _: "starGiftUnique_layer214", requirePremium: !!(flags & 64), resaleTonOnly: !!(flags & 128), themeAvailable: !!(flags & 512), id: r.long(), giftId: r.long(), title: r.string(), slug: r.string(), num: r.int(), ownerId: flags & 1 ? r.object() : void 0, ownerName: flags & 2 ? r.string() : void 0, ownerAddress: flags & 4 ? r.string() : void 0, attributes: r.vector(r.object), availabilityIssued: r.int(), availabilityTotal: r.int(), giftAddress: flags & 8 ? r.string() : void 0, resellAmount: flags & 16 ? r.vector(r.object) : void 0, releasedBy: flags & 32 ? r.object() : void 0, valueAmount: flags & 256 ? r.long() : void 0, valueCurrency: flags & 256 ? r.string() : void 0, themePeer: flags & 1024 ? r.object() : void 0 };
|
|
163
|
+
},
|
|
164
|
+
888627955: function(r) {
|
|
165
|
+
var flags = r.uint();
|
|
166
|
+
return { _: "messageActionStarGiftUnique_layer214", upgrade: !!(flags & 1), transferred: !!(flags & 2), saved: !!(flags & 4), refunded: !!(flags & 32), prepaidUpgrade: !!(flags & 2048), 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 };
|
|
167
|
+
},
|
|
168
|
+
1287725239: function(r) {
|
|
169
|
+
return { _: "todoCompletion_layer216", id: r.int(), completedBy: r.int53(), date: r.int() };
|
|
170
|
+
},
|
|
171
|
+
2158777283: function(r) {
|
|
172
|
+
var flags = r.uint();
|
|
173
|
+
return { _: "starGift_layer216", limited: !!(flags & 1), soldOut: !!(flags & 2), birthday: !!(flags & 4), requirePremium: !!(flags & 128), limitedPerUser: !!(flags & 256), id: r.long(), sticker: r.object(), stars: r.long(), availabilityRemains: flags & 1 ? r.int() : void 0, availabilityTotal: flags & 1 ? r.int() : void 0, availabilityResale: flags & 16 ? r.long() : void 0, convertStars: r.long(), firstSaleDate: flags & 2 ? r.int() : void 0, lastSaleDate: flags & 2 ? r.int() : void 0, upgradeStars: flags & 8 ? r.long() : void 0, resellMinStars: flags & 16 ? r.long() : void 0, title: flags & 32 ? r.string() : void 0, releasedBy: flags & 64 ? r.object() : void 0, perUserTotal: flags & 256 ? r.int() : void 0, perUserRemains: flags & 256 ? r.int() : void 0, lockedUntilDate: flags & 512 ? r.int() : void 0, peerColorAvailable: !!(flags & 1024) };
|
|
174
|
+
},
|
|
175
|
+
4268249941: function(r) {
|
|
176
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
177
|
+
return { _: "channel_layer216", 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.int() : 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 };
|
|
178
|
+
},
|
|
179
|
+
34280482: function(r) {
|
|
180
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
181
|
+
return { _: "user_layer216", 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), 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.int() : 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, botForumView: !!(flags2 & 65536) };
|
|
182
|
+
},
|
|
183
|
+
4065191930: function(r) {
|
|
184
|
+
var flags = r.uint();
|
|
185
|
+
return { _: "messageActionStarGift_layer216", nameHidden: !!(flags & 1), saved: !!(flags & 4), converted: !!(flags & 8), upgraded: !!(flags & 32), refunded: !!(flags & 512), canUpgrade: !!(flags & 1024), prepaidUpgrade: !!(flags & 8192), upgradeSeparate: !!(flags & 65536), 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 };
|
|
186
|
+
},
|
|
187
|
+
1456486804: function(r) {
|
|
188
|
+
var flags = r.uint();
|
|
189
|
+
return { _: "messageActionGiftCode_layer216", viaGiveaway: !!(flags & 1), unclaimed: !!(flags & 32), boostPeer: flags & 2 ? r.object() : void 0, months: r.int(), slug: r.string(), currency: flags & 4 ? r.string() : void 0, amount: flags & 4 ? r.long() : void 0, cryptoCurrency: flags & 8 ? r.string() : void 0, cryptoAmount: flags & 8 ? r.long() : void 0, message: flags & 16 ? r.object() : void 0 };
|
|
190
|
+
},
|
|
191
|
+
1818391802: function(r) {
|
|
192
|
+
var flags = r.uint();
|
|
193
|
+
return { _: "messageActionGiftPremium_layer216", currency: r.string(), amount: r.long(), months: r.int(), cryptoCurrency: flags & 1 ? r.string() : void 0, cryptoAmount: flags & 1 ? r.long() : void 0, message: flags & 2 ? r.object() : void 0 };
|
|
194
|
+
},
|
|
195
|
+
2551566024: function(r) {
|
|
196
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
197
|
+
return { _: "message_layer216", 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, 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, 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 };
|
|
198
|
+
},
|
|
199
|
+
55150251: function(r) {
|
|
200
|
+
return { _: "webPageAttributeStarGiftAuction_layer218", gift: r.object(), endDate: r.int(), centerColor: r.int(), edgeColor: r.int(), textColor: r.int() };
|
|
201
|
+
},
|
|
202
|
+
2965337115: function(r) {
|
|
203
|
+
var flags = r.uint();
|
|
204
|
+
return { _: "starGiftUnique_layer218", requirePremium: !!(flags & 64), resaleTonOnly: !!(flags & 128), themeAvailable: !!(flags & 512), id: r.long(), giftId: r.long(), title: r.string(), slug: r.string(), num: r.int(), ownerId: flags & 1 ? r.object() : void 0, ownerName: flags & 2 ? r.string() : void 0, ownerAddress: flags & 4 ? r.string() : void 0, attributes: r.vector(r.object), availabilityIssued: r.int(), availabilityTotal: r.int(), giftAddress: flags & 8 ? r.string() : void 0, resellAmount: flags & 16 ? r.vector(r.object) : void 0, releasedBy: flags & 32 ? r.object() : void 0, valueAmount: flags & 256 ? r.long() : void 0, valueCurrency: flags & 256 ? r.string() : void 0, themePeer: flags & 1024 ? r.object() : void 0, peerColor: flags & 2048 ? r.object() : void 0, hostId: flags & 4096 ? r.object() : void 0 };
|
|
205
|
+
},
|
|
206
|
+
463097215: function(r) {
|
|
207
|
+
var flags = r.uint();
|
|
208
|
+
return { _: "starGift_layer218", limited: !!(flags & 1), soldOut: !!(flags & 2), birthday: !!(flags & 4), requirePremium: !!(flags & 128), limitedPerUser: !!(flags & 256), peerColorAvailable: !!(flags & 1024), auction: !!(flags & 2048), id: r.long(), sticker: r.object(), stars: r.long(), availabilityRemains: flags & 1 ? r.int() : void 0, availabilityTotal: flags & 1 ? r.int() : void 0, availabilityResale: flags & 16 ? r.long() : void 0, convertStars: r.long(), firstSaleDate: flags & 2 ? r.int() : void 0, lastSaleDate: flags & 2 ? r.int() : void 0, upgradeStars: flags & 8 ? r.long() : void 0, resellMinStars: flags & 16 ? r.long() : void 0, title: flags & 32 ? r.string() : void 0, releasedBy: flags & 64 ? r.object() : void 0, perUserTotal: flags & 256 ? r.int() : void 0, perUserRemains: flags & 256 ? r.int() : void 0, lockedUntilDate: flags & 512 ? r.int() : void 0, auctionSlug: flags & 2048 ? r.string() : void 0, giftsPerRound: flags & 2048 ? r.int() : void 0 };
|
|
209
|
+
},
|
|
210
|
+
3680068944: function(r) {
|
|
211
|
+
var flags = r.uint();
|
|
212
|
+
return { _: "messageActionStarGift_layer218", 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 };
|
|
213
|
+
},
|
|
214
|
+
1065280907: function(r) {
|
|
215
|
+
return { _: "messageMediaDice_layer220", value: r.int(), emoticon: r.string() };
|
|
216
|
+
},
|
|
217
|
+
3106895567: function(r) {
|
|
218
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
219
|
+
return { _: "message_layer220", 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, 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, 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 };
|
|
220
|
+
},
|
|
221
|
+
1453155529: function(r) {
|
|
222
|
+
var flags = r.uint();
|
|
223
|
+
return { _: "starGiftUnique_layer221", requirePremium: !!(flags & 64), resaleTonOnly: !!(flags & 128), themeAvailable: !!(flags & 512), id: r.long(), giftId: r.long(), title: r.string(), slug: r.string(), num: r.int(), ownerId: flags & 1 ? r.object() : void 0, ownerName: flags & 2 ? r.string() : void 0, ownerAddress: flags & 4 ? r.string() : void 0, attributes: r.vector(r.object), availabilityIssued: r.int(), availabilityTotal: r.int(), giftAddress: flags & 8 ? r.string() : void 0, resellAmount: flags & 16 ? r.vector(r.object) : void 0, releasedBy: flags & 32 ? r.object() : void 0, valueAmount: flags & 256 ? r.long() : void 0, valueCurrency: flags & 256 ? r.string() : void 0, valueUsdAmount: flags & 256 ? r.long() : void 0, themePeer: flags & 1024 ? r.object() : void 0, peerColor: flags & 2048 ? r.object() : void 0, hostId: flags & 4096 ? r.object() : void 0, offerMinStars: flags & 8192 ? r.int() : void 0 };
|
|
224
|
+
},
|
|
225
|
+
3644687772: function(r) {
|
|
226
|
+
return { _: "starGiftAttributeBackdrop_layer221", name: r.string(), backdropId: r.int(), centerColor: r.int(), edgeColor: r.int(), patternColor: r.int(), textColor: r.int(), rarityPermille: r.int() };
|
|
227
|
+
},
|
|
228
|
+
330104601: function(r) {
|
|
229
|
+
return { _: "starGiftAttributePattern_layer221", name: r.string(), document: r.object(), rarityPermille: r.int() };
|
|
230
|
+
},
|
|
231
|
+
970559507: function(r) {
|
|
232
|
+
return { _: "starGiftAttributeModel_layer221", name: r.string(), document: r.object(), rarityPermille: r.int() };
|
|
233
|
+
},
|
|
234
|
+
2507310403: function(r) {
|
|
235
|
+
var flags = r.uint();
|
|
236
|
+
return { _: "messageActionStarGiftUnique_layer221", upgrade: !!(flags & 1), transferred: !!(flags & 2), saved: !!(flags & 4), refunded: !!(flags & 32), prepaidUpgrade: !!(flags & 2048), assigned: !!(flags & 8192), fromOffer: !!(flags & 16384), 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 };
|
|
237
|
+
},
|
|
238
|
+
1976723854: function(r) {
|
|
239
|
+
return { _: "keyboardButtonCopy_layer221", text: r.string(), copyText: r.string() };
|
|
240
|
+
},
|
|
241
|
+
3378916613: function(r) {
|
|
242
|
+
var flags = r.uint();
|
|
243
|
+
return { _: "inputKeyboardButtonRequestPeer_layer221", nameRequested: !!(flags & 1), usernameRequested: !!(flags & 2), photoRequested: !!(flags & 4), text: r.string(), buttonId: r.int(), peerType: r.object(), maxQuantity: r.int() };
|
|
244
|
+
},
|
|
245
|
+
1406648280: function(r) {
|
|
246
|
+
return { _: "keyboardButtonRequestPeer_layer221", text: r.string(), buttonId: r.int(), peerType: r.object(), maxQuantity: r.int() };
|
|
247
|
+
},
|
|
248
|
+
2696958044: function(r) {
|
|
249
|
+
return { _: "keyboardButtonSimpleWebView_layer221", text: r.string(), url: r.string() };
|
|
250
|
+
},
|
|
251
|
+
326529584: function(r) {
|
|
252
|
+
return { _: "keyboardButtonWebView_layer221", text: r.string(), url: r.string() };
|
|
253
|
+
},
|
|
254
|
+
814112961: function(r) {
|
|
255
|
+
return { _: "keyboardButtonUserProfile_layer221", text: r.string(), userId: r.int53() };
|
|
256
|
+
},
|
|
257
|
+
3918005115: function(r) {
|
|
258
|
+
return { _: "inputKeyboardButtonUserProfile_layer221", text: r.string(), userId: r.object() };
|
|
259
|
+
},
|
|
260
|
+
3150401885: function(r) {
|
|
261
|
+
var flags = r.uint();
|
|
262
|
+
return { _: "keyboardButtonRequestPoll_layer221", quiz: flags & 1 ? r.boolean() : void 0, text: r.string() };
|
|
263
|
+
},
|
|
264
|
+
3492708308: function(r) {
|
|
265
|
+
var flags = r.uint();
|
|
266
|
+
return { _: "inputKeyboardButtonUrlAuth_layer221", requestWriteAccess: !!(flags & 1), text: r.string(), fwdText: flags & 2 ? r.string() : void 0, url: r.string(), bot: r.object() };
|
|
267
|
+
},
|
|
268
|
+
280464681: function(r) {
|
|
269
|
+
var flags = r.uint();
|
|
270
|
+
return { _: "keyboardButtonUrlAuth_layer221", text: r.string(), fwdText: flags & 1 ? r.string() : void 0, url: r.string(), buttonId: r.int() };
|
|
271
|
+
},
|
|
272
|
+
2950250427: function(r) {
|
|
273
|
+
return { _: "keyboardButtonBuy_layer221", text: r.string() };
|
|
274
|
+
},
|
|
275
|
+
1358175439: function(r) {
|
|
276
|
+
return { _: "keyboardButtonGame_layer221", text: r.string() };
|
|
277
|
+
},
|
|
278
|
+
2478439349: function(r) {
|
|
279
|
+
var flags = r.uint();
|
|
280
|
+
return { _: "keyboardButtonSwitchInline_layer221", samePeer: !!(flags & 1), text: r.string(), query: r.string(), peerTypes: flags & 2 ? r.vector(r.object) : void 0 };
|
|
281
|
+
},
|
|
282
|
+
4235815743: function(r) {
|
|
283
|
+
return { _: "keyboardButtonRequestGeoLocation_layer221", text: r.string() };
|
|
284
|
+
},
|
|
285
|
+
2976541737: function(r) {
|
|
286
|
+
return { _: "keyboardButtonRequestPhone_layer221", text: r.string() };
|
|
287
|
+
},
|
|
288
|
+
901503851: function(r) {
|
|
289
|
+
var flags = r.uint();
|
|
290
|
+
return { _: "keyboardButtonCallback_layer221", requiresPassword: !!(flags & 1), text: r.string(), data: r.bytes() };
|
|
291
|
+
},
|
|
292
|
+
629866245: function(r) {
|
|
293
|
+
return { _: "keyboardButtonUrl_layer221", text: r.string(), url: r.string() };
|
|
294
|
+
},
|
|
295
|
+
2734311552: function(r) {
|
|
296
|
+
return { _: "keyboardButton_layer221", text: r.string() };
|
|
297
|
+
},
|
|
298
|
+
2694004571: function(r) {
|
|
299
|
+
return { _: "chatParticipantAdmin_layer222", userId: r.int53(), inviterId: r.int53(), date: r.int() };
|
|
300
|
+
},
|
|
301
|
+
3832270564: function(r) {
|
|
302
|
+
return { _: "chatParticipantCreator_layer222", userId: r.int53() };
|
|
303
|
+
},
|
|
304
|
+
3224190983: function(r) {
|
|
305
|
+
return { _: "chatParticipant_layer222", userId: r.int53(), inviterId: r.int53(), date: r.int() };
|
|
306
|
+
},
|
|
307
|
+
2629079273: function(r) {
|
|
308
|
+
var flags = r.uint(), flags2 = r.uint();
|
|
309
|
+
return { _: "message_layer222", 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, 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, 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 };
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
const __tlReaderMapCompat = m;
|
|
313
|
+
exports.__tlReaderMapCompat = __tlReaderMapCompat;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __tlReaderMapCompat: Record<number, (r: unknown) => unknown>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __tlReaderMapCompat: Record<number, (r: unknown) => unknown>
|