@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
|
@@ -452,6 +452,34 @@ export interface ActionPaidMessagesRefunded {
|
|
|
452
452
|
/** Count of messages refunded */
|
|
453
453
|
count: number;
|
|
454
454
|
}
|
|
455
|
-
|
|
455
|
+
/** One or more items in a todo list were completed or uncompleted */
|
|
456
|
+
export interface ActionTodoCompletions {
|
|
457
|
+
readonly type: 'todo_completions';
|
|
458
|
+
/** IDs of items that were marked as completed */
|
|
459
|
+
completed: number[];
|
|
460
|
+
/** IDs of items that were marked as non-completed */
|
|
461
|
+
uncompleted: number[];
|
|
462
|
+
}
|
|
463
|
+
/** One or more items were added to a todo list */
|
|
464
|
+
export interface ActionTodoAppendTasks {
|
|
465
|
+
readonly type: 'todo_append_tasks';
|
|
466
|
+
/** Items that were added to the list */
|
|
467
|
+
list: tl.RawTodoItem[];
|
|
468
|
+
}
|
|
469
|
+
/** A TON gift was sent */
|
|
470
|
+
export interface ActionTonGift {
|
|
471
|
+
readonly type: 'ton_gift';
|
|
472
|
+
/** Currency for {@link amount} */
|
|
473
|
+
currency: string;
|
|
474
|
+
/** Amount of the gift in fiat currency */
|
|
475
|
+
amount: tl.Long;
|
|
476
|
+
/** Crypto currency in which it was paid for */
|
|
477
|
+
cryptoCurrency: string;
|
|
478
|
+
/** Amount of the gift in the crypto currency */
|
|
479
|
+
cryptoAmount: tl.Long;
|
|
480
|
+
/** Transaction ID */
|
|
481
|
+
transactionId?: string;
|
|
482
|
+
}
|
|
483
|
+
export type MessageAction = ActionChatCreated | ActionChannelCreated | ActionChatMigrateTo | ActionChannelMigrateFrom | ActionMessagePinned | ActionHistoryCleared | ActionGameScore | ActionContactJoined | ActionTitleChanged | ActionPhotoChanged | ActionPhotoDeleted | ActionUsersAdded | ActionUserLeft | ActionUserRemoved | ActionUserJoinedLink | ActionPaymentReceived | ActionPaymentSent | ActionCall | ActionScreenshotTaken | ActionBotAllowed | ActionGeoProximity | ActionGroupCallStarted | ActionGroupCallEnded | ActionGroupCallScheduled | ActionGroupInvite | ActionTtlChanged | ActionTopicCreated | ActionTopicEdited | ActionCustom | ActionThemeChanged | ActionUserJoinedApproved | ActionWebviewDataSent | ActionWebviewDataReceived | ActionPremiumGifted | ActionPhotoSuggested | ActionPeerSent | ActionPeerChosen | ActionWallpaperChanged | ActionGiftCode | ActionGiveawayStarted | ActionGiveawayEnded | ActionBoostApply | ActionPaymentRefunded | ActionStarGifted | ActionStarsPrize | ActionStarGift | ActionPaidMessagesPaid | ActionPaidMessagesRefunded | ActionTodoCompletions | ActionTodoAppendTasks | ActionTonGift | null;
|
|
456
484
|
/** @internal */
|
|
457
485
|
export declare function _messageActionFromTl(this: Message, act: tl.TypeMessageAction): MessageAction;
|
|
@@ -452,6 +452,34 @@ export interface ActionPaidMessagesRefunded {
|
|
|
452
452
|
/** Count of messages refunded */
|
|
453
453
|
count: number;
|
|
454
454
|
}
|
|
455
|
-
|
|
455
|
+
/** One or more items in a todo list were completed or uncompleted */
|
|
456
|
+
export interface ActionTodoCompletions {
|
|
457
|
+
readonly type: 'todo_completions';
|
|
458
|
+
/** IDs of items that were marked as completed */
|
|
459
|
+
completed: number[];
|
|
460
|
+
/** IDs of items that were marked as non-completed */
|
|
461
|
+
uncompleted: number[];
|
|
462
|
+
}
|
|
463
|
+
/** One or more items were added to a todo list */
|
|
464
|
+
export interface ActionTodoAppendTasks {
|
|
465
|
+
readonly type: 'todo_append_tasks';
|
|
466
|
+
/** Items that were added to the list */
|
|
467
|
+
list: tl.RawTodoItem[];
|
|
468
|
+
}
|
|
469
|
+
/** A TON gift was sent */
|
|
470
|
+
export interface ActionTonGift {
|
|
471
|
+
readonly type: 'ton_gift';
|
|
472
|
+
/** Currency for {@link amount} */
|
|
473
|
+
currency: string;
|
|
474
|
+
/** Amount of the gift in fiat currency */
|
|
475
|
+
amount: tl.Long;
|
|
476
|
+
/** Crypto currency in which it was paid for */
|
|
477
|
+
cryptoCurrency: string;
|
|
478
|
+
/** Amount of the gift in the crypto currency */
|
|
479
|
+
cryptoAmount: tl.Long;
|
|
480
|
+
/** Transaction ID */
|
|
481
|
+
transactionId?: string;
|
|
482
|
+
}
|
|
483
|
+
export type MessageAction = ActionChatCreated | ActionChannelCreated | ActionChatMigrateTo | ActionChannelMigrateFrom | ActionMessagePinned | ActionHistoryCleared | ActionGameScore | ActionContactJoined | ActionTitleChanged | ActionPhotoChanged | ActionPhotoDeleted | ActionUsersAdded | ActionUserLeft | ActionUserRemoved | ActionUserJoinedLink | ActionPaymentReceived | ActionPaymentSent | ActionCall | ActionScreenshotTaken | ActionBotAllowed | ActionGeoProximity | ActionGroupCallStarted | ActionGroupCallEnded | ActionGroupCallScheduled | ActionGroupInvite | ActionTtlChanged | ActionTopicCreated | ActionTopicEdited | ActionCustom | ActionThemeChanged | ActionUserJoinedApproved | ActionWebviewDataSent | ActionWebviewDataReceived | ActionPremiumGifted | ActionPhotoSuggested | ActionPeerSent | ActionPeerChosen | ActionWallpaperChanged | ActionGiftCode | ActionGiveawayStarted | ActionGiveawayEnded | ActionBoostApply | ActionPaymentRefunded | ActionStarGifted | ActionStarsPrize | ActionStarGift | ActionPaidMessagesPaid | ActionPaidMessagesRefunded | ActionTodoCompletions | ActionTodoAppendTasks | ActionTonGift | null;
|
|
456
484
|
/** @internal */
|
|
457
485
|
export declare function _messageActionFromTl(this: Message, act: tl.TypeMessageAction): MessageAction;
|
|
@@ -331,6 +331,26 @@ function _messageActionFromTl(act) {
|
|
|
331
331
|
stars: act.stars,
|
|
332
332
|
count: act.count
|
|
333
333
|
};
|
|
334
|
+
case "messageActionTodoCompletions":
|
|
335
|
+
return {
|
|
336
|
+
type: "todo_completions",
|
|
337
|
+
completed: act.completed,
|
|
338
|
+
uncompleted: act.incompleted
|
|
339
|
+
};
|
|
340
|
+
case "messageActionTodoAppendTasks":
|
|
341
|
+
return {
|
|
342
|
+
type: "todo_append_tasks",
|
|
343
|
+
list: act.list
|
|
344
|
+
};
|
|
345
|
+
case "messageActionGiftTon":
|
|
346
|
+
return {
|
|
347
|
+
type: "ton_gift",
|
|
348
|
+
currency: act.currency,
|
|
349
|
+
amount: act.amount,
|
|
350
|
+
cryptoCurrency: act.cryptoCurrency,
|
|
351
|
+
cryptoAmount: act.cryptoAmount,
|
|
352
|
+
transactionId: act.transactionId
|
|
353
|
+
};
|
|
334
354
|
default:
|
|
335
355
|
return null;
|
|
336
356
|
}
|
|
@@ -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";
|
|
@@ -16,6 +16,7 @@ const paidMedia = require("../media/paid-media.cjs");
|
|
|
16
16
|
const photo = require("../media/photo.cjs");
|
|
17
17
|
const poll = require("../media/poll.cjs");
|
|
18
18
|
const story = require("../media/story.cjs");
|
|
19
|
+
const todo = require("../media/todo.cjs");
|
|
19
20
|
const venue = require("../media/venue.cjs");
|
|
20
21
|
const webPage = require("../media/web-page.cjs");
|
|
21
22
|
function _messageMediaFromTl(peers, m) {
|
|
@@ -66,6 +67,11 @@ function _messageMediaFromTl(peers, m) {
|
|
|
66
67
|
});
|
|
67
68
|
return new paidMedia.PaidMedia(m, extended);
|
|
68
69
|
}
|
|
70
|
+
case "messageMediaToDo":
|
|
71
|
+
if (!peers) {
|
|
72
|
+
throw new errors.MtTypeAssertionError("can't create todo without peers index", "PeersIndex", "null");
|
|
73
|
+
}
|
|
74
|
+
return new todo.TodoList(m, peers);
|
|
69
75
|
default:
|
|
70
76
|
return null;
|
|
71
77
|
}
|
|
@@ -14,10 +14,11 @@ import { PaidMedia } from '../media/paid-media.js';
|
|
|
14
14
|
import { Photo } from '../media/photo.js';
|
|
15
15
|
import { Poll } from '../media/poll.js';
|
|
16
16
|
import { MediaStory } from '../media/story.js';
|
|
17
|
+
import { TodoList } from '../media/todo.js';
|
|
17
18
|
import { Venue } from '../media/venue.js';
|
|
18
19
|
import { WebPageMedia } from '../media/web-page.js';
|
|
19
20
|
/** A media inside of a {@link Message} */
|
|
20
|
-
export type MessageMedia = Photo | Dice | Contact | Audio | Voice | Sticker | Document | Video | Location | LiveLocation | Game | WebPageMedia | Venue | Poll | Invoice | MediaStory | PaidMedia | null;
|
|
21
|
+
export type MessageMedia = Photo | Dice | Contact | Audio | Voice | Sticker | Document | Video | Location | LiveLocation | Game | WebPageMedia | Venue | Poll | Invoice | MediaStory | PaidMedia | TodoList | null;
|
|
21
22
|
export type MessageMediaType = Exclude<MessageMedia, null>['type'];
|
|
22
23
|
/** @internal */
|
|
23
24
|
export declare function _messageMediaFromTl(peers: PeersIndex | null, m: tl.TypeMessageMedia): MessageMedia;
|
|
@@ -14,10 +14,11 @@ import { PaidMedia } from '../media/paid-media.js';
|
|
|
14
14
|
import { Photo } from '../media/photo.js';
|
|
15
15
|
import { Poll } from '../media/poll.js';
|
|
16
16
|
import { MediaStory } from '../media/story.js';
|
|
17
|
+
import { TodoList } from '../media/todo.js';
|
|
17
18
|
import { Venue } from '../media/venue.js';
|
|
18
19
|
import { WebPageMedia } from '../media/web-page.js';
|
|
19
20
|
/** A media inside of a {@link Message} */
|
|
20
|
-
export type MessageMedia = Photo | Dice | Contact | Audio | Voice | Sticker | Document | Video | Location | LiveLocation | Game | WebPageMedia | Venue | Poll | Invoice | MediaStory | PaidMedia | null;
|
|
21
|
+
export type MessageMedia = Photo | Dice | Contact | Audio | Voice | Sticker | Document | Video | Location | LiveLocation | Game | WebPageMedia | Venue | Poll | Invoice | MediaStory | PaidMedia | TodoList | null;
|
|
21
22
|
export type MessageMediaType = Exclude<MessageMedia, null>['type'];
|
|
22
23
|
/** @internal */
|
|
23
24
|
export declare function _messageMediaFromTl(peers: PeersIndex | null, m: tl.TypeMessageMedia): MessageMedia;
|
|
@@ -9,6 +9,7 @@ import { PaidMedia as PaidMedia$2 } from "../media/paid-media.js";
|
|
|
9
9
|
import { Photo as Photo$2 } from "../media/photo.js";
|
|
10
10
|
import { Poll as Poll$2 } from "../media/poll.js";
|
|
11
11
|
import { MediaStory as MediaStory$1 } from "../media/story.js";
|
|
12
|
+
import { TodoList as TodoList$2 } from "../media/todo.js";
|
|
12
13
|
import { Venue as Venue$2 } from "../media/venue.js";
|
|
13
14
|
import { WebPageMedia as WebPageMedia$2 } from "../media/web-page.js";
|
|
14
15
|
function _messageMediaFromTl(peers, m) {
|
|
@@ -59,6 +60,11 @@ function _messageMediaFromTl(peers, m) {
|
|
|
59
60
|
});
|
|
60
61
|
return new PaidMedia$2(m, extended);
|
|
61
62
|
}
|
|
63
|
+
case "messageMediaToDo":
|
|
64
|
+
if (!peers) {
|
|
65
|
+
throw new MtTypeAssertionError("can't create todo without peers index", "PeersIndex", "null");
|
|
66
|
+
}
|
|
67
|
+
return new TodoList$2(m, peers);
|
|
62
68
|
default:
|
|
63
69
|
return null;
|
|
64
70
|
}
|
|
@@ -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";
|
|
@@ -20,6 +20,7 @@ const messageMedia = require("./message-media.cjs");
|
|
|
20
20
|
const messageReactions = require("./message-reactions.cjs");
|
|
21
21
|
const messageReplies = require("./message-replies.cjs");
|
|
22
22
|
const repliedMessage = require("./replied-message.cjs");
|
|
23
|
+
const suggestedPost = require("./suggested-post.cjs");
|
|
23
24
|
const inspectable = require("../../utils/inspectable.cjs");
|
|
24
25
|
const factories = require("../bots/keyboards/factories.cjs");
|
|
25
26
|
class Message {
|
|
@@ -426,6 +427,22 @@ class Message {
|
|
|
426
427
|
get sendPrice() {
|
|
427
428
|
return this.raw._ === "message" ? this.raw.paidMessageStars ?? null : null;
|
|
428
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* If this message was a paid suggested post, the type of payment
|
|
432
|
+
* (either `stars` or `ton`)
|
|
433
|
+
*/
|
|
434
|
+
get suggestedPaid() {
|
|
435
|
+
if (this.raw._ !== "message") return null;
|
|
436
|
+
if (this.raw.paidSuggestedPostStars) return "stars";
|
|
437
|
+
if (this.raw.paidSuggestedPostTon) return "ton";
|
|
438
|
+
return null;
|
|
439
|
+
}
|
|
440
|
+
/** If this is/was a suggested post, information about it */
|
|
441
|
+
get suggestedPost() {
|
|
442
|
+
if (this.raw._ !== "message") return null;
|
|
443
|
+
if (!this.raw.suggestedPost) return null;
|
|
444
|
+
return new suggestedPost.SuggestedPostInfo(this.raw.suggestedPost);
|
|
445
|
+
}
|
|
429
446
|
/**
|
|
430
447
|
* Generated permalink to this message, only for groups and channels
|
|
431
448
|
*
|
|
@@ -452,7 +469,8 @@ const Message$1 = /* @__PURE__ */ memoize.memoizeGetters(Message, [
|
|
|
452
469
|
"media",
|
|
453
470
|
"markup",
|
|
454
471
|
"reactions",
|
|
455
|
-
"factCheck"
|
|
472
|
+
"factCheck",
|
|
473
|
+
"suggestedPost"
|
|
456
474
|
]);
|
|
457
475
|
const Message$2 = /* @__PURE__ */ inspectable.makeInspectable(Message$1, ["isScheduled"], ["link"]);
|
|
458
476
|
exports.Message = Message$2;
|
|
@@ -12,6 +12,7 @@ import { MessageForwardInfo } from './message-forward.js';
|
|
|
12
12
|
import { MessageReactions } from './message-reactions.js';
|
|
13
13
|
import { MessageRepliesInfo } from './message-replies.js';
|
|
14
14
|
import { RepliedMessageInfo } from './replied-message.js';
|
|
15
|
+
import { SuggestedPostInfo } from './suggested-post.js';
|
|
15
16
|
/**
|
|
16
17
|
* A Telegram message.
|
|
17
18
|
*/
|
|
@@ -249,6 +250,13 @@ export declare class Message {
|
|
|
249
250
|
get videoProcessingPending(): boolean;
|
|
250
251
|
/** If this message was paid, the number of stars spent sending it */
|
|
251
252
|
get sendPrice(): tl.Long | null;
|
|
253
|
+
/**
|
|
254
|
+
* If this message was a paid suggested post, the type of payment
|
|
255
|
+
* (either `stars` or `ton`)
|
|
256
|
+
*/
|
|
257
|
+
get suggestedPaid(): 'ton' | 'stars' | null;
|
|
258
|
+
/** If this is/was a suggested post, information about it */
|
|
259
|
+
get suggestedPost(): SuggestedPostInfo | null;
|
|
252
260
|
/**
|
|
253
261
|
* Generated permalink to this message, only for groups and channels
|
|
254
262
|
*
|
|
@@ -12,6 +12,7 @@ import { MessageForwardInfo } from './message-forward.js';
|
|
|
12
12
|
import { MessageReactions } from './message-reactions.js';
|
|
13
13
|
import { MessageRepliesInfo } from './message-replies.js';
|
|
14
14
|
import { RepliedMessageInfo } from './replied-message.js';
|
|
15
|
+
import { SuggestedPostInfo } from './suggested-post.js';
|
|
15
16
|
/**
|
|
16
17
|
* A Telegram message.
|
|
17
18
|
*/
|
|
@@ -249,6 +250,13 @@ export declare class Message {
|
|
|
249
250
|
get videoProcessingPending(): boolean;
|
|
250
251
|
/** If this message was paid, the number of stars spent sending it */
|
|
251
252
|
get sendPrice(): tl.Long | null;
|
|
253
|
+
/**
|
|
254
|
+
* If this message was a paid suggested post, the type of payment
|
|
255
|
+
* (either `stars` or `ton`)
|
|
256
|
+
*/
|
|
257
|
+
get suggestedPaid(): 'ton' | 'stars' | null;
|
|
258
|
+
/** If this is/was a suggested post, information about it */
|
|
259
|
+
get suggestedPost(): SuggestedPostInfo | null;
|
|
252
260
|
/**
|
|
253
261
|
* Generated permalink to this message, only for groups and channels
|
|
254
262
|
*
|
|
@@ -13,6 +13,7 @@ import { _messageMediaFromTl } from "./message-media.js";
|
|
|
13
13
|
import { MessageReactions as MessageReactions$2 } from "./message-reactions.js";
|
|
14
14
|
import { MessageRepliesInfo as MessageRepliesInfo$2 } from "./message-replies.js";
|
|
15
15
|
import { RepliedMessageInfo as RepliedMessageInfo$2 } from "./replied-message.js";
|
|
16
|
+
import { SuggestedPostInfo as SuggestedPostInfo$1 } from "./suggested-post.js";
|
|
16
17
|
import { makeInspectable } from "../../utils/inspectable.js";
|
|
17
18
|
import { _rowsTo2d } from "../bots/keyboards/factories.js";
|
|
18
19
|
class Message {
|
|
@@ -419,6 +420,22 @@ class Message {
|
|
|
419
420
|
get sendPrice() {
|
|
420
421
|
return this.raw._ === "message" ? this.raw.paidMessageStars ?? null : null;
|
|
421
422
|
}
|
|
423
|
+
/**
|
|
424
|
+
* If this message was a paid suggested post, the type of payment
|
|
425
|
+
* (either `stars` or `ton`)
|
|
426
|
+
*/
|
|
427
|
+
get suggestedPaid() {
|
|
428
|
+
if (this.raw._ !== "message") return null;
|
|
429
|
+
if (this.raw.paidSuggestedPostStars) return "stars";
|
|
430
|
+
if (this.raw.paidSuggestedPostTon) return "ton";
|
|
431
|
+
return null;
|
|
432
|
+
}
|
|
433
|
+
/** If this is/was a suggested post, information about it */
|
|
434
|
+
get suggestedPost() {
|
|
435
|
+
if (this.raw._ !== "message") return null;
|
|
436
|
+
if (!this.raw.suggestedPost) return null;
|
|
437
|
+
return new SuggestedPostInfo$1(this.raw.suggestedPost);
|
|
438
|
+
}
|
|
422
439
|
/**
|
|
423
440
|
* Generated permalink to this message, only for groups and channels
|
|
424
441
|
*
|
|
@@ -445,7 +462,8 @@ const Message$1 = /* @__PURE__ */ memoizeGetters(Message, [
|
|
|
445
462
|
"media",
|
|
446
463
|
"markup",
|
|
447
464
|
"reactions",
|
|
448
|
-
"factCheck"
|
|
465
|
+
"factCheck",
|
|
466
|
+
"suggestedPost"
|
|
449
467
|
]);
|
|
450
468
|
const Message$2 = /* @__PURE__ */ makeInspectable(Message$1, ["isScheduled"], ["link"]);
|
|
451
469
|
export {
|
|
@@ -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,29 @@
|
|
|
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 inspectable = require("../../utils/inspectable.cjs");
|
|
9
|
+
class SuggestedPostInfo {
|
|
10
|
+
constructor(raw) {
|
|
11
|
+
this.raw = raw;
|
|
12
|
+
}
|
|
13
|
+
/** Current status of the post */
|
|
14
|
+
get status() {
|
|
15
|
+
if (this.raw.accepted) return "approved";
|
|
16
|
+
if (this.raw.rejected) return "rejected";
|
|
17
|
+
return "pending";
|
|
18
|
+
}
|
|
19
|
+
/** Price of the post */
|
|
20
|
+
get price() {
|
|
21
|
+
return this.raw.price;
|
|
22
|
+
}
|
|
23
|
+
/** Date when the post will be scheduled */
|
|
24
|
+
get scheduleDate() {
|
|
25
|
+
return this.raw.scheduleDate ? new Date(this.raw.scheduleDate * 1e3) : void 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const SuggestedPostInfo$1 = /* @__PURE__ */ inspectable.makeInspectable(SuggestedPostInfo);
|
|
29
|
+
exports.SuggestedPostInfo = SuggestedPostInfo$1;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
export declare class SuggestedPostInfo {
|
|
3
|
+
readonly raw: tl.TypeSuggestedPost;
|
|
4
|
+
constructor(raw: tl.TypeSuggestedPost);
|
|
5
|
+
/** Current status of the post */
|
|
6
|
+
get status(): 'pending' | 'approved' | 'rejected';
|
|
7
|
+
/** Price of the post */
|
|
8
|
+
get price(): tl.TypeStarsAmount | undefined;
|
|
9
|
+
/** Date when the post will be scheduled */
|
|
10
|
+
get scheduleDate(): Date | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
export declare class SuggestedPostInfo {
|
|
3
|
+
readonly raw: tl.TypeSuggestedPost;
|
|
4
|
+
constructor(raw: tl.TypeSuggestedPost);
|
|
5
|
+
/** Current status of the post */
|
|
6
|
+
get status(): 'pending' | 'approved' | 'rejected';
|
|
7
|
+
/** Price of the post */
|
|
8
|
+
get price(): tl.TypeStarsAmount | undefined;
|
|
9
|
+
/** Date when the post will be scheduled */
|
|
10
|
+
get scheduleDate(): Date | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { makeInspectable } from "../../utils/inspectable.js";
|
|
2
|
+
class SuggestedPostInfo {
|
|
3
|
+
constructor(raw) {
|
|
4
|
+
this.raw = raw;
|
|
5
|
+
}
|
|
6
|
+
/** Current status of the post */
|
|
7
|
+
get status() {
|
|
8
|
+
if (this.raw.accepted) return "approved";
|
|
9
|
+
if (this.raw.rejected) return "rejected";
|
|
10
|
+
return "pending";
|
|
11
|
+
}
|
|
12
|
+
/** Price of the post */
|
|
13
|
+
get price() {
|
|
14
|
+
return this.raw.price;
|
|
15
|
+
}
|
|
16
|
+
/** Date when the post will be scheduled */
|
|
17
|
+
get scheduleDate() {
|
|
18
|
+
return this.raw.scheduleDate ? new Date(this.raw.scheduleDate * 1e3) : void 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const SuggestedPostInfo$1 = /* @__PURE__ */ makeInspectable(SuggestedPostInfo);
|
|
22
|
+
export {
|
|
23
|
+
SuggestedPostInfo$1 as SuggestedPostInfo
|
|
24
|
+
};
|
|
@@ -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";
|