@mtcute/core 0.24.4 → 0.25.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 +9 -1
- package/client.js +8 -0
- package/highlevel/base.cjs +2 -1
- package/highlevel/base.js +1 -0
- package/highlevel/client.d.cts +30 -0
- package/highlevel/client.d.ts +30 -0
- package/highlevel/managers/app-config-manager.cjs +1 -1
- package/highlevel/managers/timers.cjs +1 -1
- package/highlevel/methods/auth/check-password.cjs +1 -1
- package/highlevel/methods/auth/get-password-hint.cjs +1 -1
- package/highlevel/methods/auth/log-out.cjs +1 -1
- package/highlevel/methods/auth/recover-password.cjs +1 -1
- package/highlevel/methods/auth/resend-code.cjs +1 -1
- package/highlevel/methods/auth/run.cjs +1 -1
- package/highlevel/methods/auth/send-code.cjs +1 -1
- package/highlevel/methods/auth/send-recovery-code.cjs +1 -1
- package/highlevel/methods/auth/sign-in-bot.cjs +1 -1
- package/highlevel/methods/auth/sign-in-qr.cjs +1 -1
- package/highlevel/methods/auth/sign-in.cjs +1 -1
- package/highlevel/methods/auth/start-test.cjs +1 -1
- package/highlevel/methods/auth/start.cjs +1 -1
- package/highlevel/methods/auth/utils.cjs +1 -1
- package/highlevel/methods/bots/answer-callback-query.cjs +1 -1
- package/highlevel/methods/bots/answer-inline-query.cjs +1 -1
- package/highlevel/methods/bots/answer-pre-checkout-query.cjs +1 -1
- package/highlevel/methods/bots/delete-my-commands.cjs +1 -1
- package/highlevel/methods/bots/get-bot-info.cjs +1 -1
- package/highlevel/methods/bots/get-bot-menu-button.cjs +1 -1
- package/highlevel/methods/bots/get-callback-answer.cjs +1 -1
- package/highlevel/methods/bots/get-game-high-scores.cjs +1 -1
- package/highlevel/methods/bots/get-my-commands.cjs +1 -1
- package/highlevel/methods/bots/normalize-command-scope.cjs +1 -1
- package/highlevel/methods/bots/open-webview.cjs +1 -1
- package/highlevel/methods/bots/prepare-inline-message.cjs +1 -1
- package/highlevel/methods/bots/set-bot-info.cjs +1 -1
- package/highlevel/methods/bots/set-bot-menu-button.cjs +1 -1
- package/highlevel/methods/bots/set-game-score.cjs +1 -1
- package/highlevel/methods/bots/set-my-commands.cjs +1 -1
- package/highlevel/methods/bots/set-my-default-rights.cjs +1 -1
- package/highlevel/methods/bots/toggle-emoji-status-permission.cjs +1 -1
- package/highlevel/methods/chats/add-chat-members.cjs +1 -1
- package/highlevel/methods/chats/archive-chats.cjs +1 -1
- package/highlevel/methods/chats/ban-chat-member.cjs +1 -1
- package/highlevel/methods/chats/batched-queries.cjs +1 -1
- package/highlevel/methods/chats/create-channel.cjs +1 -1
- package/highlevel/methods/chats/create-group.cjs +1 -1
- package/highlevel/methods/chats/create-supergroup.cjs +1 -1
- package/highlevel/methods/chats/delete-channel.cjs +1 -1
- package/highlevel/methods/chats/delete-chat-photo.cjs +1 -1
- package/highlevel/methods/chats/delete-group.cjs +1 -1
- package/highlevel/methods/chats/delete-history.cjs +1 -1
- package/highlevel/methods/chats/delete-user-history.cjs +1 -1
- package/highlevel/methods/chats/edit-admin-rights.cjs +1 -1
- package/highlevel/methods/chats/get-chat-event-log.cjs +1 -1
- package/highlevel/methods/chats/get-chat-member.cjs +1 -1
- package/highlevel/methods/chats/get-chat-members.cjs +1 -1
- package/highlevel/methods/chats/get-chat-preview.cjs +1 -1
- package/highlevel/methods/chats/get-chat.cjs +1 -1
- package/highlevel/methods/chats/get-full-chat.cjs +1 -1
- package/highlevel/methods/chats/get-full-user.cjs +1 -1
- package/highlevel/methods/chats/get-message-author.cjs +1 -1
- package/highlevel/methods/chats/get-nearby-chats.cjs +1 -1
- package/highlevel/methods/chats/get-peer.cjs +1 -1
- package/highlevel/methods/chats/get-similar-channels.cjs +1 -1
- package/highlevel/methods/chats/get-user.cjs +1 -1
- package/highlevel/methods/chats/iter-chat-event-log.cjs +1 -1
- package/highlevel/methods/chats/iter-chat-members.cjs +1 -1
- package/highlevel/methods/chats/join-chat.cjs +1 -1
- package/highlevel/methods/chats/kick-chat-member.cjs +1 -1
- package/highlevel/methods/chats/leave-chat.cjs +1 -1
- package/highlevel/methods/chats/mark-chat-unread.cjs +1 -1
- package/highlevel/methods/chats/open-chat.cjs +1 -1
- package/highlevel/methods/chats/reorder-usernames.cjs +1 -1
- package/highlevel/methods/chats/restrict-chat-member.cjs +1 -1
- package/highlevel/methods/chats/save-draft.cjs +1 -1
- package/highlevel/methods/chats/set-chat-color.cjs +1 -1
- package/highlevel/methods/chats/set-chat-default-permissions.cjs +1 -1
- package/highlevel/methods/chats/set-chat-description.cjs +1 -1
- package/highlevel/methods/chats/set-chat-photo.cjs +1 -1
- package/highlevel/methods/chats/set-chat-title.cjs +1 -1
- package/highlevel/methods/chats/set-chat-ttl.cjs +1 -1
- package/highlevel/methods/chats/set-chat-username.cjs +1 -1
- package/highlevel/methods/chats/set-slow-mode.cjs +1 -1
- package/highlevel/methods/chats/toggle-content-protection.cjs +1 -1
- package/highlevel/methods/chats/toggle-fragment-username.cjs +1 -1
- package/highlevel/methods/chats/toggle-join-requests.cjs +1 -1
- package/highlevel/methods/chats/toggle-join-to-send.cjs +1 -1
- package/highlevel/methods/chats/unarchive-chats.cjs +1 -1
- package/highlevel/methods/chats/unban-chat-member.cjs +1 -1
- package/highlevel/methods/contacts/add-contact.cjs +1 -1
- package/highlevel/methods/contacts/delete-contacts.cjs +1 -1
- package/highlevel/methods/contacts/get-contacts.cjs +1 -1
- package/highlevel/methods/contacts/import-contacts.cjs +1 -1
- package/highlevel/methods/dialogs/create-folder.cjs +1 -1
- package/highlevel/methods/dialogs/delete-folder.cjs +1 -1
- package/highlevel/methods/dialogs/edit-folder.cjs +1 -1
- package/highlevel/methods/dialogs/find-dialogs.cjs +1 -1
- package/highlevel/methods/dialogs/find-folder.cjs +1 -1
- package/highlevel/methods/dialogs/get-chatlist-preview.cjs +1 -1
- package/highlevel/methods/dialogs/get-folders.cjs +1 -1
- package/highlevel/methods/dialogs/get-peer-dialogs.cjs +1 -1
- package/highlevel/methods/dialogs/iter-dialogs.cjs +1 -1
- package/highlevel/methods/dialogs/join-chatlist.cjs +1 -1
- package/highlevel/methods/dialogs/set-folders-order.cjs +1 -1
- package/highlevel/methods/files/download-buffer.cjs +1 -1
- package/highlevel/methods/files/download-iterable.cjs +1 -1
- package/highlevel/methods/files/download-stream.cjs +1 -1
- package/highlevel/methods/files/normalize-file-to-document.cjs +1 -1
- package/highlevel/methods/files/normalize-input-file.cjs +1 -1
- package/highlevel/methods/files/normalize-input-media.cjs +17 -1
- package/highlevel/methods/files/normalize-input-media.js +16 -0
- package/highlevel/methods/files/upload-file.cjs +1 -1
- package/highlevel/methods/files/upload-media.cjs +3 -2
- package/highlevel/methods/files/upload-media.js +2 -1
- package/highlevel/methods/forums/create-forum-topic.cjs +1 -1
- package/highlevel/methods/forums/delete-forum-topic-history.cjs +1 -1
- package/highlevel/methods/forums/edit-forum-topic.cjs +1 -1
- package/highlevel/methods/forums/get-forum-topics-by-id.cjs +1 -1
- package/highlevel/methods/forums/get-forum-topics.cjs +1 -1
- package/highlevel/methods/forums/iter-forum-topics.cjs +1 -1
- package/highlevel/methods/forums/reorder-pinned-forum-topics.cjs +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-pinned.cjs +1 -1
- package/highlevel/methods/forums/toggle-forum.cjs +1 -1
- package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +1 -1
- package/highlevel/methods/invite-links/create-invite-link.cjs +1 -1
- package/highlevel/methods/invite-links/edit-invite-link.cjs +1 -1
- package/highlevel/methods/invite-links/export-invite-link.cjs +1 -1
- package/highlevel/methods/invite-links/get-invite-link-members.cjs +1 -1
- package/highlevel/methods/invite-links/get-invite-link.cjs +1 -1
- package/highlevel/methods/invite-links/get-invite-links.cjs +1 -1
- package/highlevel/methods/invite-links/get-primary-invite-link.cjs +1 -1
- package/highlevel/methods/invite-links/hide-all-join-requests.cjs +1 -1
- package/highlevel/methods/invite-links/hide-join-request.cjs +1 -1
- package/highlevel/methods/invite-links/iter-invite-link-members.cjs +1 -1
- package/highlevel/methods/invite-links/iter-invite-links.cjs +1 -1
- package/highlevel/methods/invite-links/revoke-invite-link.cjs +1 -1
- package/highlevel/methods/messages/_business-connection.cjs +1 -1
- package/highlevel/methods/messages/append-todo-list.cjs +39 -0
- package/highlevel/methods/messages/append-todo-list.d.cts +17 -0
- package/highlevel/methods/messages/append-todo-list.d.ts +17 -0
- package/highlevel/methods/messages/append-todo-list.js +34 -0
- package/highlevel/methods/messages/close-poll.cjs +1 -1
- package/highlevel/methods/messages/delete-messages.cjs +1 -1
- package/highlevel/methods/messages/delete-scheduled-messages.cjs +1 -1
- package/highlevel/methods/messages/edit-inline-message.cjs +1 -1
- package/highlevel/methods/messages/edit-message.cjs +1 -1
- package/highlevel/methods/messages/find-in-update.cjs +1 -1
- package/highlevel/methods/messages/forward-messages.cjs +1 -1
- package/highlevel/methods/messages/get-all-scheduled-messages.cjs +1 -1
- package/highlevel/methods/messages/get-available-effects.cjs +1 -1
- package/highlevel/methods/messages/get-callback-query-message.cjs +1 -1
- package/highlevel/methods/messages/get-discussion-message.cjs +1 -1
- package/highlevel/methods/messages/get-fact-check.cjs +1 -1
- package/highlevel/methods/messages/get-history.cjs +1 -1
- package/highlevel/methods/messages/get-message-by-link.cjs +1 -1
- package/highlevel/methods/messages/get-message-group.cjs +1 -1
- package/highlevel/methods/messages/get-message-reactions.cjs +1 -1
- package/highlevel/methods/messages/get-messages-unsafe.cjs +1 -1
- package/highlevel/methods/messages/get-messages.cjs +1 -1
- package/highlevel/methods/messages/get-reaction-users.cjs +1 -1
- package/highlevel/methods/messages/get-reply-to.cjs +1 -1
- package/highlevel/methods/messages/get-scheduled-messages.cjs +1 -1
- package/highlevel/methods/messages/get-web-page-preview.cjs +1 -1
- package/highlevel/methods/messages/iter-history.cjs +1 -1
- package/highlevel/methods/messages/iter-reaction-users.cjs +1 -1
- package/highlevel/methods/messages/iter-search-global.cjs +1 -1
- package/highlevel/methods/messages/iter-search-messages.cjs +1 -1
- package/highlevel/methods/messages/pin-message.cjs +1 -1
- package/highlevel/methods/messages/read-history.cjs +1 -1
- package/highlevel/methods/messages/read-reactions.cjs +1 -1
- package/highlevel/methods/messages/search-global.cjs +1 -1
- package/highlevel/methods/messages/search-hashtag.cjs +1 -1
- package/highlevel/methods/messages/search-messages.cjs +1 -1
- package/highlevel/methods/messages/send-answer.cjs +1 -1
- package/highlevel/methods/messages/send-comment.cjs +1 -1
- package/highlevel/methods/messages/send-common.cjs +1 -1
- package/highlevel/methods/messages/send-copy-group.cjs +1 -1
- package/highlevel/methods/messages/send-copy.cjs +1 -1
- package/highlevel/methods/messages/send-media-group.cjs +1 -1
- package/highlevel/methods/messages/send-media.cjs +1 -1
- package/highlevel/methods/messages/send-paid-reaction.cjs +1 -1
- package/highlevel/methods/messages/send-quote.cjs +1 -1
- package/highlevel/methods/messages/send-reaction.cjs +1 -1
- package/highlevel/methods/messages/send-reply.cjs +1 -1
- package/highlevel/methods/messages/send-scheduled.cjs +1 -1
- package/highlevel/methods/messages/send-text.cjs +1 -1
- package/highlevel/methods/messages/send-typing.cjs +1 -1
- package/highlevel/methods/messages/send-vote.cjs +1 -1
- package/highlevel/methods/messages/set-typing.cjs +1 -1
- package/highlevel/methods/messages/toggle-todo-completed.cjs +23 -0
- package/highlevel/methods/messages/toggle-todo-completed.d.cts +19 -0
- package/highlevel/methods/messages/toggle-todo-completed.d.ts +19 -0
- package/highlevel/methods/messages/toggle-todo-completed.js +18 -0
- package/highlevel/methods/messages/translate-message.cjs +1 -1
- package/highlevel/methods/messages/translate-text.cjs +1 -1
- package/highlevel/methods/messages/unpin-all-messages.cjs +1 -1
- package/highlevel/methods/messages/unpin-message.cjs +1 -1
- package/highlevel/methods/misc/chain-id.cjs +1 -1
- package/highlevel/methods/misc/get-collectible-info.cjs +1 -1
- package/highlevel/methods/misc/init-takeout-session.cjs +1 -1
- package/highlevel/methods/misc/normalize-privacy-rules.cjs +1 -1
- package/highlevel/methods/misc/normalize-text.cjs +1 -1
- package/highlevel/methods/misc/with-params.cjs +1 -1
- package/highlevel/methods/password/change-cloud-password.cjs +1 -1
- package/highlevel/methods/password/enable-cloud-password.cjs +1 -1
- package/highlevel/methods/password/password-email.cjs +1 -1
- package/highlevel/methods/password/remove-cloud-password.cjs +1 -1
- package/highlevel/methods/premium/_normalize-input-star-gift.cjs +1 -1
- package/highlevel/methods/premium/accept-star-gift.cjs +1 -1
- package/highlevel/methods/premium/apply-boost.cjs +1 -1
- package/highlevel/methods/premium/buy-resale-gift.cjs +1 -1
- package/highlevel/methods/premium/can-apply-boost.cjs +1 -1
- package/highlevel/methods/premium/create-business-chat-link.cjs +1 -1
- package/highlevel/methods/premium/edit-business-chat-link.cjs +1 -1
- package/highlevel/methods/premium/get-boost-stats.cjs +1 -1
- package/highlevel/methods/premium/get-boosts.cjs +1 -1
- package/highlevel/methods/premium/get-business-chat-links.cjs +1 -1
- package/highlevel/methods/premium/get-business-connection.cjs +1 -1
- package/highlevel/methods/premium/get-my-boost-slots.cjs +1 -1
- package/highlevel/methods/premium/get-resale-star-gifts.cjs +1 -1
- package/highlevel/methods/premium/get-saved-star-gifts-by-id.cjs +1 -1
- package/highlevel/methods/premium/get-saved-star-gifts.cjs +1 -1
- package/highlevel/methods/premium/get-star-gift-options.cjs +1 -1
- package/highlevel/methods/premium/get-star-gift-withdrawal-url.cjs +1 -1
- package/highlevel/methods/premium/get-stars-transactions.cjs +1 -1
- package/highlevel/methods/premium/get-unique-star-gift.cjs +1 -1
- package/highlevel/methods/premium/iter-boosters.cjs +1 -1
- package/highlevel/methods/premium/iter-saved-star-gifts.cjs +1 -1
- package/highlevel/methods/premium/iter-stars-transactions.cjs +1 -1
- package/highlevel/methods/premium/pin-star-gift.cjs +1 -1
- package/highlevel/methods/premium/send-star-gift.cjs +1 -1
- package/highlevel/methods/premium/set-business-intro.cjs +1 -1
- package/highlevel/methods/premium/set-business-work-hours.cjs +1 -1
- package/highlevel/methods/premium/set-gift-resale-price.cjs +1 -1
- package/highlevel/methods/premium/transfer-star-gift.cjs +1 -1
- package/highlevel/methods/premium/upgrade-star-gift.cjs +1 -1
- package/highlevel/methods/stickers/_utils.cjs +1 -1
- package/highlevel/methods/stickers/add-sticker-to-set.cjs +1 -1
- package/highlevel/methods/stickers/create-sticker-set.cjs +1 -1
- package/highlevel/methods/stickers/delete-sticker-from-set.cjs +1 -1
- package/highlevel/methods/stickers/get-custom-emojis.cjs +1 -1
- package/highlevel/methods/stickers/get-installed-stickers.cjs +1 -1
- package/highlevel/methods/stickers/get-my-sticker-sets.cjs +1 -1
- package/highlevel/methods/stickers/get-sticker-set.cjs +1 -1
- package/highlevel/methods/stickers/move-sticker-in-set.cjs +1 -1
- package/highlevel/methods/stickers/replace-sticker-in-set.cjs +1 -1
- package/highlevel/methods/stickers/set-chat-sticker-set.cjs +1 -1
- package/highlevel/methods/stickers/set-sticker-set-thumb.cjs +1 -1
- package/highlevel/methods/stories/can-send-story.cjs +1 -1
- package/highlevel/methods/stories/delete-stories.cjs +1 -1
- package/highlevel/methods/stories/edit-story.cjs +1 -1
- package/highlevel/methods/stories/find-in-update.cjs +1 -1
- package/highlevel/methods/stories/get-all-stories.cjs +1 -1
- package/highlevel/methods/stories/get-peer-stories.cjs +1 -1
- package/highlevel/methods/stories/get-profile-stories.cjs +1 -1
- package/highlevel/methods/stories/get-stories-by-id.cjs +1 -1
- package/highlevel/methods/stories/get-stories-interactions.cjs +1 -1
- package/highlevel/methods/stories/get-story-link.cjs +1 -1
- package/highlevel/methods/stories/get-story-viewers.cjs +1 -1
- package/highlevel/methods/stories/hide-my-stories-views.cjs +1 -1
- package/highlevel/methods/stories/increment-stories-views.cjs +1 -1
- package/highlevel/methods/stories/iter-all-stories.cjs +1 -1
- package/highlevel/methods/stories/iter-profile-stories.cjs +1 -1
- package/highlevel/methods/stories/iter-story-viewers.cjs +1 -1
- package/highlevel/methods/stories/read-stories.cjs +1 -1
- package/highlevel/methods/stories/send-story-reaction.cjs +1 -1
- package/highlevel/methods/stories/send-story.cjs +1 -1
- package/highlevel/methods/stories/toggle-peer-stories-archived.cjs +1 -1
- package/highlevel/methods/stories/toggle-stories-pinned.cjs +1 -1
- package/highlevel/methods/users/block-user.cjs +1 -1
- package/highlevel/methods/users/delete-profile-photos.cjs +1 -1
- package/highlevel/methods/users/edit-close-friends.cjs +1 -1
- package/highlevel/methods/users/get-common-chats.cjs +1 -1
- package/highlevel/methods/users/get-global-ttl.cjs +1 -1
- package/highlevel/methods/users/get-me.cjs +1 -1
- package/highlevel/methods/users/get-my-username.cjs +1 -1
- package/highlevel/methods/users/get-peer-settings.cjs +1 -1
- package/highlevel/methods/users/get-profile-photo.cjs +1 -1
- package/highlevel/methods/users/get-profile-photos.cjs +1 -1
- package/highlevel/methods/users/get-users.cjs +1 -1
- package/highlevel/methods/users/is-peer-available.cjs +1 -1
- package/highlevel/methods/users/iter-profile-photos.cjs +1 -1
- package/highlevel/methods/users/resolve-peer-many.cjs +1 -1
- package/highlevel/methods/users/resolve-peer.cjs +1 -1
- package/highlevel/methods/users/resolve-phone-number.cjs +1 -1
- package/highlevel/methods/users/set-emoji-status.cjs +1 -1
- package/highlevel/methods/users/set-global-ttl.cjs +1 -1
- package/highlevel/methods/users/set-my-birthday.cjs +1 -1
- package/highlevel/methods/users/set-my-profile-photo.cjs +1 -1
- package/highlevel/methods/users/set-my-username.cjs +1 -1
- package/highlevel/methods/users/set-online.cjs +1 -1
- package/highlevel/methods/users/unblock-user.cjs +1 -1
- package/highlevel/methods/users/update-profile.cjs +1 -1
- package/highlevel/methods.d.cts +2 -0
- package/highlevel/methods.d.ts +2 -0
- package/highlevel/storage/service/current-user.cjs +1 -1
- package/highlevel/storage/service/peers.cjs +1 -1
- package/highlevel/storage/service/ref-messages.cjs +1 -1
- package/highlevel/storage/service/updates.cjs +1 -1
- package/highlevel/storage/storage.cjs +1 -1
- package/highlevel/types/auth/sent-code.cjs +1 -1
- package/highlevel/types/bots/command-scope/inner.cjs +1 -1
- package/highlevel/types/bots/game-high-score.cjs +1 -1
- package/highlevel/types/bots/inline-message/factories.cjs +1 -1
- package/highlevel/types/bots/inline-result/factories.cjs +1 -1
- package/highlevel/types/bots/keyboards/builder.cjs +1 -1
- package/highlevel/types/bots/keyboards/factories.cjs +1 -1
- package/highlevel/types/bots/webview.cjs +1 -1
- package/highlevel/types/conversation.cjs +1 -1
- package/highlevel/types/errors.cjs +1 -1
- package/highlevel/types/files/file-location.cjs +1 -1
- package/highlevel/types/files/uploaded-file.cjs +1 -1
- package/highlevel/types/files/web-document.cjs +1 -1
- package/highlevel/types/media/audio.cjs +1 -1
- package/highlevel/types/media/contact.cjs +1 -1
- package/highlevel/types/media/dice.cjs +1 -1
- package/highlevel/types/media/document-utils.cjs +1 -1
- package/highlevel/types/media/document.cjs +1 -1
- package/highlevel/types/media/extended-media.cjs +1 -1
- package/highlevel/types/media/game.cjs +1 -1
- package/highlevel/types/media/index.d.cts +1 -0
- package/highlevel/types/media/index.d.ts +1 -0
- package/highlevel/types/media/input-media/factories.cjs +7 -1
- package/highlevel/types/media/input-media/factories.d.cts +2 -1
- package/highlevel/types/media/input-media/factories.d.ts +2 -1
- package/highlevel/types/media/input-media/factories.js +6 -0
- package/highlevel/types/media/input-media/types.d.cts +12 -1
- package/highlevel/types/media/input-media/types.d.ts +12 -1
- package/highlevel/types/media/invoice.cjs +1 -1
- package/highlevel/types/media/location.cjs +1 -1
- package/highlevel/types/media/paid-media.cjs +1 -1
- package/highlevel/types/media/photo.cjs +1 -1
- package/highlevel/types/media/poll.cjs +1 -1
- package/highlevel/types/media/sticker.cjs +1 -1
- package/highlevel/types/media/story.cjs +1 -1
- package/highlevel/types/media/thumbnail.cjs +1 -1
- package/highlevel/types/media/todo.cjs +73 -0
- package/highlevel/types/media/todo.d.cts +26 -0
- package/highlevel/types/media/todo.d.ts +26 -0
- package/highlevel/types/media/todo.js +68 -0
- package/highlevel/types/media/venue.cjs +1 -1
- package/highlevel/types/media/video.cjs +1 -1
- package/highlevel/types/media/voice.cjs +1 -1
- package/highlevel/types/media/web-page.cjs +1 -1
- package/highlevel/types/messages/dialog.cjs +1 -1
- package/highlevel/types/messages/draft-message.cjs +1 -1
- package/highlevel/types/messages/fact-check.cjs +1 -1
- package/highlevel/types/messages/index.d.cts +1 -0
- package/highlevel/types/messages/index.d.ts +1 -0
- package/highlevel/types/messages/input-message-id.cjs +1 -1
- package/highlevel/types/messages/message-action.cjs +21 -1
- package/highlevel/types/messages/message-action.d.cts +29 -1
- package/highlevel/types/messages/message-action.d.ts +29 -1
- package/highlevel/types/messages/message-action.js +20 -0
- package/highlevel/types/messages/message-effect.cjs +1 -1
- package/highlevel/types/messages/message-entity.cjs +1 -1
- package/highlevel/types/messages/message-forward.cjs +1 -1
- package/highlevel/types/messages/message-media.cjs +7 -1
- package/highlevel/types/messages/message-media.d.cts +2 -1
- package/highlevel/types/messages/message-media.d.ts +2 -1
- package/highlevel/types/messages/message-media.js +6 -0
- package/highlevel/types/messages/message-reactions.cjs +1 -1
- package/highlevel/types/messages/message-replies.cjs +1 -1
- package/highlevel/types/messages/message.cjs +20 -2
- package/highlevel/types/messages/message.d.cts +8 -0
- package/highlevel/types/messages/message.d.ts +8 -0
- package/highlevel/types/messages/message.js +19 -1
- package/highlevel/types/messages/replied-message.cjs +1 -1
- package/highlevel/types/messages/search-filters.cjs +1 -1
- package/highlevel/types/messages/suggested-post.cjs +29 -0
- package/highlevel/types/messages/suggested-post.d.cts +11 -0
- package/highlevel/types/messages/suggested-post.d.ts +11 -0
- package/highlevel/types/messages/suggested-post.js +24 -0
- package/highlevel/types/misc/collectible-info.cjs +1 -1
- package/highlevel/types/misc/entities.cjs +1 -1
- package/highlevel/types/misc/input-privacy-rule/allow.cjs +1 -1
- package/highlevel/types/misc/input-privacy-rule/bundle.cjs +1 -1
- package/highlevel/types/misc/input-privacy-rule/disallow.cjs +1 -1
- package/highlevel/types/misc/sticker-set.cjs +1 -1
- package/highlevel/types/misc/takeout-session.cjs +1 -1
- package/highlevel/types/peers/bot-info.cjs +1 -1
- package/highlevel/types/peers/bot-verification.cjs +1 -1
- package/highlevel/types/peers/chat-colors.cjs +1 -1
- package/highlevel/types/peers/chat-event/actions.cjs +1 -1
- package/highlevel/types/peers/chat-event/filters.cjs +1 -1
- package/highlevel/types/peers/chat-event/index.cjs +1 -1
- package/highlevel/types/peers/chat-invite-link-member.cjs +1 -1
- package/highlevel/types/peers/chat-invite-link.cjs +1 -1
- package/highlevel/types/peers/chat-location.cjs +1 -1
- package/highlevel/types/peers/chat-member.cjs +1 -1
- package/highlevel/types/peers/chat-permissions.cjs +1 -1
- package/highlevel/types/peers/chat-photo.cjs +1 -1
- package/highlevel/types/peers/chat-preview.cjs +1 -1
- package/highlevel/types/peers/chat.cjs +1 -1
- package/highlevel/types/peers/chatlist-preview.cjs +1 -1
- package/highlevel/types/peers/forum-topic.cjs +1 -1
- package/highlevel/types/peers/full-chat.cjs +1 -1
- package/highlevel/types/peers/full-user.cjs +1 -1
- package/highlevel/types/peers/peer-settings.cjs +1 -1
- package/highlevel/types/peers/peer.cjs +1 -1
- package/highlevel/types/peers/peers-index.cjs +1 -1
- package/highlevel/types/peers/user.cjs +1 -1
- package/highlevel/types/premium/boost-slot.cjs +1 -1
- package/highlevel/types/premium/boost-stats.cjs +1 -1
- package/highlevel/types/premium/boost.cjs +1 -1
- package/highlevel/types/premium/business-account.cjs +1 -1
- package/highlevel/types/premium/business-chat-link.cjs +1 -1
- package/highlevel/types/premium/business-connection.cjs +1 -1
- package/highlevel/types/premium/business-intro.cjs +1 -1
- package/highlevel/types/premium/business-location.cjs +1 -1
- package/highlevel/types/premium/business-work-hours.cjs +1 -1
- package/highlevel/types/premium/saved-star-gift.cjs +1 -1
- package/highlevel/types/premium/stars-gift-unique.cjs +1 -1
- package/highlevel/types/premium/stars-gift.cjs +1 -1
- package/highlevel/types/premium/stars-status.cjs +1 -1
- 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.cjs +23 -5
- package/highlevel/types/premium/stars-transaction.d.cts +18 -2
- package/highlevel/types/premium/stars-transaction.d.ts +18 -2
- package/highlevel/types/premium/stars-transaction.js +22 -4
- package/highlevel/types/reactions/emoji-status.cjs +1 -1
- package/highlevel/types/reactions/peer-reaction.cjs +1 -1
- package/highlevel/types/reactions/reaction-count.cjs +1 -1
- package/highlevel/types/reactions/types.cjs +1 -1
- package/highlevel/types/stories/all-stories.cjs +1 -1
- package/highlevel/types/stories/interactive/base.cjs +1 -1
- package/highlevel/types/stories/interactive/channel-post.cjs +1 -1
- package/highlevel/types/stories/interactive/index.cjs +1 -1
- package/highlevel/types/stories/interactive/input.cjs +1 -1
- package/highlevel/types/stories/interactive/location.cjs +1 -1
- package/highlevel/types/stories/interactive/reaction.cjs +1 -1
- package/highlevel/types/stories/interactive/star-gift.cjs +1 -1
- package/highlevel/types/stories/interactive/url.cjs +1 -1
- package/highlevel/types/stories/interactive/venue.cjs +1 -1
- package/highlevel/types/stories/interactive/weather.cjs +1 -1
- package/highlevel/types/stories/peer-stories.cjs +1 -1
- package/highlevel/types/stories/stealth-mode.cjs +1 -1
- package/highlevel/types/stories/story-interactions.cjs +1 -1
- package/highlevel/types/stories/story-viewer.cjs +1 -1
- package/highlevel/types/stories/story.cjs +1 -1
- package/highlevel/types/updates/bot-chat-join-request.cjs +1 -1
- package/highlevel/types/updates/bot-reaction.cjs +1 -1
- package/highlevel/types/updates/bot-stopped.cjs +1 -1
- package/highlevel/types/updates/business-message.cjs +1 -1
- package/highlevel/types/updates/callback-query.cjs +1 -1
- package/highlevel/types/updates/chat-join-request.cjs +1 -1
- package/highlevel/types/updates/chat-member-update.cjs +1 -1
- package/highlevel/types/updates/chosen-inline-result.cjs +1 -1
- package/highlevel/types/updates/delete-business-message-update.cjs +1 -1
- package/highlevel/types/updates/delete-message-update.cjs +1 -1
- package/highlevel/types/updates/delete-story-update.cjs +1 -1
- package/highlevel/types/updates/history-read-update.cjs +1 -1
- package/highlevel/types/updates/inline-query.cjs +1 -1
- package/highlevel/types/updates/parse-update.cjs +1 -1
- package/highlevel/types/updates/poll-update.cjs +1 -1
- package/highlevel/types/updates/poll-vote.cjs +1 -1
- package/highlevel/types/updates/pre-checkout-query.cjs +1 -1
- package/highlevel/types/updates/story-update.cjs +1 -1
- package/highlevel/types/updates/user-status-update.cjs +1 -1
- package/highlevel/types/updates/user-typing-update.cjs +1 -1
- package/highlevel/updates/manager.cjs +1 -1
- package/highlevel/updates/parsed.cjs +1 -1
- package/highlevel/updates/types.cjs +1 -1
- package/highlevel/updates/utils.cjs +1 -1
- package/highlevel/utils/convert-file-id.cjs +1 -1
- package/highlevel/utils/entities.cjs +1 -1
- package/highlevel/utils/file-type.cjs +1 -1
- package/highlevel/utils/file-utils.cjs +1 -1
- package/highlevel/utils/inline-utils.cjs +1 -1
- package/highlevel/utils/inspectable.cjs +1 -1
- package/highlevel/utils/memoize.cjs +1 -1
- package/highlevel/utils/misc-utils.cjs +1 -1
- package/highlevel/utils/peer-utils.cjs +1 -1
- package/highlevel/utils/query-batcher.cjs +1 -1
- package/highlevel/utils/rps-meter.cjs +1 -1
- package/highlevel/utils/stream-utils.cjs +1 -1
- package/highlevel/utils/string-session.cjs +1 -1
- package/highlevel/utils/voice-utils.cjs +1 -1
- package/highlevel/worker/app-config.cjs +1 -1
- package/highlevel/worker/errors.cjs +1 -1
- package/highlevel/worker/invoker.cjs +1 -1
- package/highlevel/worker/port.cjs +1 -1
- package/highlevel/worker/protocol.cjs +1 -1
- package/highlevel/worker/storage.cjs +1 -1
- package/highlevel/worker/worker.cjs +1 -1
- package/index.cjs +6 -1
- package/index.js +5 -0
- package/methods.cjs +5 -1
- package/methods.js +4 -0
- package/network/auth-key.cjs +1 -1
- package/network/authorization.cjs +1 -1
- package/network/client.cjs +1 -1
- package/network/config-manager.cjs +1 -1
- package/network/middlewares/bundle.cjs +1 -1
- package/network/middlewares/default.cjs +1 -1
- package/network/middlewares/flood-waiter.cjs +1 -1
- package/network/middlewares/internal-errors.cjs +1 -1
- package/network/middlewares/on-error.cjs +1 -1
- package/network/middlewares/on-method.cjs +1 -1
- package/network/mtproto-session.cjs +1 -1
- package/network/mtproxy/_fake-tls.cjs +1 -1
- package/network/mtproxy/index.cjs +1 -1
- package/network/multi-session-connection.cjs +1 -1
- package/network/network-manager.cjs +2 -2
- package/network/network-manager.js +1 -1
- package/network/persistent-connection.cjs +1 -1
- package/network/server-salt.cjs +1 -1
- package/network/session-connection.cjs +2 -2
- package/network/session-connection.js +1 -1
- package/network/transports/abstract.cjs +1 -1
- package/network/transports/intermediate.cjs +1 -1
- package/network/transports/obfuscated.cjs +1 -1
- package/package.json +2 -2
- package/storage/driver.cjs +1 -1
- package/storage/memory/driver.cjs +1 -1
- package/storage/memory/index.cjs +1 -1
- package/storage/memory/repository/auth-keys.cjs +1 -1
- package/storage/memory/repository/kv.cjs +1 -1
- package/storage/memory/repository/peers.cjs +1 -1
- package/storage/memory/repository/ref-messages.cjs +1 -1
- package/storage/service/auth-keys.cjs +1 -1
- package/storage/service/base.cjs +1 -1
- package/storage/service/default-dcs.cjs +1 -1
- package/storage/service/future-salts.cjs +1 -1
- package/storage/sqlite/driver.cjs +1 -1
- package/storage/sqlite/index.cjs +1 -1
- package/storage/sqlite/repository/auth-keys.cjs +1 -1
- package/storage/sqlite/repository/kv.cjs +1 -1
- package/storage/sqlite/repository/peers.cjs +1 -1
- package/storage/sqlite/repository/ref-messages.cjs +1 -1
- package/storage/storage.cjs +1 -1
- package/types/errors.cjs +1 -1
- package/types/utils.cjs +1 -1
- package/utils/abort-signal.cjs +1 -1
- package/utils/bigint-utils.cjs +1 -1
- package/utils/binary/asn1-parser.cjs +1 -1
- package/utils/binary/compat.cjs +25 -7
- package/utils/binary/compat.js +24 -6
- package/utils/binary/serialization.cjs +1 -1
- package/utils/crypto/abstract.cjs +1 -1
- package/utils/crypto/factorization.cjs +1 -1
- package/utils/crypto/keys.cjs +1 -1
- package/utils/crypto/miller-rabin.cjs +1 -1
- package/utils/crypto/mtproto.cjs +1 -1
- package/utils/crypto/password.cjs +1 -1
- package/utils/dcs.cjs +1 -1
- package/utils/early-timer.cjs +1 -1
- package/utils/error-reporting.cjs +1 -1
- package/utils/function-utils.cjs +1 -1
- package/utils/links/bots.cjs +4 -1
- package/utils/links/bots.js +3 -0
- package/utils/links/bundle.cjs +1 -1
- package/utils/links/calls.cjs +1 -1
- package/utils/links/chat.cjs +1 -1
- package/utils/links/common.cjs +1 -1
- package/utils/links/misc.cjs +1 -1
- package/utils/links/proxy.cjs +1 -1
- package/utils/links/stickers.cjs +1 -1
- package/utils/links/user.cjs +1 -1
- package/utils/logger.cjs +1 -1
- package/utils/long-utils.cjs +1 -1
- package/utils/misc-utils.cjs +1 -1
- package/utils/peer-utils.cjs +1 -1
- package/utils/sorted-array.cjs +1 -1
- package/utils/tl-json.cjs +1 -1
- package/utils/type-assertions.cjs +1 -1
- package/utils.cjs +1 -1
- package/worker.cjs +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
const resolvePeer = require("../users/resolve-peer.cjs");
|
|
9
|
+
const findInUpdate = require("./find-in-update.cjs");
|
|
10
|
+
const inputMessageId = require("../../types/messages/input-message-id.cjs");
|
|
11
|
+
async function toggleTodoCompleted(client, params) {
|
|
12
|
+
const { shouldDispatch, completed, uncompleted } = params;
|
|
13
|
+
const { chatId, message } = inputMessageId.normalizeInputMessageId(params);
|
|
14
|
+
const res = await client.call({
|
|
15
|
+
_: "messages.toggleTodoCompleted",
|
|
16
|
+
peer: await resolvePeer.resolvePeer(client, chatId),
|
|
17
|
+
msgId: message,
|
|
18
|
+
completed: Array.isArray(completed) ? completed : [completed],
|
|
19
|
+
incompleted: Array.isArray(uncompleted) ? uncompleted : [uncompleted]
|
|
20
|
+
});
|
|
21
|
+
return findInUpdate._findMessageInUpdate(client, res, false, !shouldDispatch, true);
|
|
22
|
+
}
|
|
23
|
+
exports.toggleTodoCompleted = toggleTodoCompleted;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MaybeArray } from '@fuman/utils';
|
|
2
|
+
import { ITelegramClient } from '../../client.types.js';
|
|
3
|
+
import { InputMessageId, Message } from '../../types/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Toggle the completion status of a todo list item(s)
|
|
6
|
+
*
|
|
7
|
+
* @returns Service message about the toggled items, if any.
|
|
8
|
+
*/
|
|
9
|
+
export declare function toggleTodoCompleted(client: ITelegramClient, params: InputMessageId & {
|
|
10
|
+
/** Items to mark as completed */
|
|
11
|
+
completed: MaybeArray<number>;
|
|
12
|
+
/** Items to mark as uncompleted */
|
|
13
|
+
uncompleted: MaybeArray<number>;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to dispatch the new message event
|
|
16
|
+
* to the client's update handler.
|
|
17
|
+
*/
|
|
18
|
+
shouldDispatch?: true;
|
|
19
|
+
}): Promise<Message | null>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MaybeArray } from '@fuman/utils';
|
|
2
|
+
import { ITelegramClient } from '../../client.types.js';
|
|
3
|
+
import { InputMessageId, Message } from '../../types/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Toggle the completion status of a todo list item(s)
|
|
6
|
+
*
|
|
7
|
+
* @returns Service message about the toggled items, if any.
|
|
8
|
+
*/
|
|
9
|
+
export declare function toggleTodoCompleted(client: ITelegramClient, params: InputMessageId & {
|
|
10
|
+
/** Items to mark as completed */
|
|
11
|
+
completed: MaybeArray<number>;
|
|
12
|
+
/** Items to mark as uncompleted */
|
|
13
|
+
uncompleted: MaybeArray<number>;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to dispatch the new message event
|
|
16
|
+
* to the client's update handler.
|
|
17
|
+
*/
|
|
18
|
+
shouldDispatch?: true;
|
|
19
|
+
}): Promise<Message | null>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { resolvePeer } from "../users/resolve-peer.js";
|
|
2
|
+
import { _findMessageInUpdate } from "./find-in-update.js";
|
|
3
|
+
import { normalizeInputMessageId } from "../../types/messages/input-message-id.js";
|
|
4
|
+
async function toggleTodoCompleted(client, params) {
|
|
5
|
+
const { shouldDispatch, completed, uncompleted } = params;
|
|
6
|
+
const { chatId, message } = normalizeInputMessageId(params);
|
|
7
|
+
const res = await client.call({
|
|
8
|
+
_: "messages.toggleTodoCompleted",
|
|
9
|
+
peer: await resolvePeer(client, chatId),
|
|
10
|
+
msgId: message,
|
|
11
|
+
completed: Array.isArray(completed) ? completed : [completed],
|
|
12
|
+
incompleted: Array.isArray(uncompleted) ? uncompleted : [uncompleted]
|
|
13
|
+
});
|
|
14
|
+
return _findMessageInUpdate(client, res, false, !shouldDispatch, true);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
toggleTodoCompleted
|
|
18
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
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
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|