@mtcute/core 0.24.3 → 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 +2 -2
- package/highlevel/methods/messages/send-copy.js +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";
|
|
@@ -115,6 +115,11 @@ function paid(params) {
|
|
|
115
115
|
ret.type = "paid";
|
|
116
116
|
return ret;
|
|
117
117
|
}
|
|
118
|
+
function todo(params) {
|
|
119
|
+
const ret = params;
|
|
120
|
+
ret.type = "todo";
|
|
121
|
+
return ret;
|
|
122
|
+
}
|
|
118
123
|
function auto(file, params = {}) {
|
|
119
124
|
const ret = params;
|
|
120
125
|
ret.type = "auto";
|
|
@@ -137,6 +142,7 @@ exports.poll = poll;
|
|
|
137
142
|
exports.quiz = quiz;
|
|
138
143
|
exports.sticker = sticker;
|
|
139
144
|
exports.story = story;
|
|
145
|
+
exports.todo = todo;
|
|
140
146
|
exports.venue = venue;
|
|
141
147
|
exports.video = video;
|
|
142
148
|
exports.voice = voice;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tl } from '@mtcute/tl';
|
|
2
2
|
import { InputFileLike } from '../../files/utils.js';
|
|
3
|
-
import { CaptionMixin, InputMediaAudio, InputMediaAuto, InputMediaContact, InputMediaDice, InputMediaDocument, InputMediaGame, InputMediaGeo, InputMediaGeoLive, InputMediaInvoice, InputMediaLike, InputMediaPaidMedia, InputMediaPhoto, InputMediaPoll, InputMediaQuiz, InputMediaSticker, InputMediaStory, InputMediaVenue, InputMediaVideo, InputMediaVoice, InputMediaWebpage } from './types.js';
|
|
3
|
+
import { CaptionMixin, InputMediaAudio, InputMediaAuto, InputMediaContact, InputMediaDice, InputMediaDocument, InputMediaGame, InputMediaGeo, InputMediaGeoLive, InputMediaInvoice, InputMediaLike, InputMediaPaidMedia, InputMediaPhoto, InputMediaPoll, InputMediaQuiz, InputMediaSticker, InputMediaStory, InputMediaTodoList, InputMediaVenue, InputMediaVideo, InputMediaVoice, InputMediaWebpage } from './types.js';
|
|
4
4
|
/** Omit `type` and `file` from the given type */
|
|
5
5
|
export type OmitTypeAndFile<T extends InputMediaLike, K extends keyof T = never> = Omit<T, 'type' | 'file' | K>;
|
|
6
6
|
/**
|
|
@@ -128,6 +128,7 @@ export declare function story(params: OmitTypeAndFile<InputMediaStory>): InputMe
|
|
|
128
128
|
*/
|
|
129
129
|
export declare function webpage(url: string, params?: OmitTypeAndFile<InputMediaWebpage, 'url'>): InputMediaWebpage;
|
|
130
130
|
export declare function paid(params: OmitTypeAndFile<InputMediaPaidMedia>): InputMediaPaidMedia;
|
|
131
|
+
export declare function todo(params: OmitTypeAndFile<InputMediaTodoList>): InputMediaTodoList;
|
|
131
132
|
/**
|
|
132
133
|
* Create a document to be sent, which subtype
|
|
133
134
|
* is inferred automatically by file contents.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tl } from '@mtcute/tl';
|
|
2
2
|
import { InputFileLike } from '../../files/utils.js';
|
|
3
|
-
import { CaptionMixin, InputMediaAudio, InputMediaAuto, InputMediaContact, InputMediaDice, InputMediaDocument, InputMediaGame, InputMediaGeo, InputMediaGeoLive, InputMediaInvoice, InputMediaLike, InputMediaPaidMedia, InputMediaPhoto, InputMediaPoll, InputMediaQuiz, InputMediaSticker, InputMediaStory, InputMediaVenue, InputMediaVideo, InputMediaVoice, InputMediaWebpage } from './types.js';
|
|
3
|
+
import { CaptionMixin, InputMediaAudio, InputMediaAuto, InputMediaContact, InputMediaDice, InputMediaDocument, InputMediaGame, InputMediaGeo, InputMediaGeoLive, InputMediaInvoice, InputMediaLike, InputMediaPaidMedia, InputMediaPhoto, InputMediaPoll, InputMediaQuiz, InputMediaSticker, InputMediaStory, InputMediaTodoList, InputMediaVenue, InputMediaVideo, InputMediaVoice, InputMediaWebpage } from './types.js';
|
|
4
4
|
/** Omit `type` and `file` from the given type */
|
|
5
5
|
export type OmitTypeAndFile<T extends InputMediaLike, K extends keyof T = never> = Omit<T, 'type' | 'file' | K>;
|
|
6
6
|
/**
|
|
@@ -128,6 +128,7 @@ export declare function story(params: OmitTypeAndFile<InputMediaStory>): InputMe
|
|
|
128
128
|
*/
|
|
129
129
|
export declare function webpage(url: string, params?: OmitTypeAndFile<InputMediaWebpage, 'url'>): InputMediaWebpage;
|
|
130
130
|
export declare function paid(params: OmitTypeAndFile<InputMediaPaidMedia>): InputMediaPaidMedia;
|
|
131
|
+
export declare function todo(params: OmitTypeAndFile<InputMediaTodoList>): InputMediaTodoList;
|
|
131
132
|
/**
|
|
132
133
|
* Create a document to be sent, which subtype
|
|
133
134
|
* is inferred automatically by file contents.
|
|
@@ -108,6 +108,11 @@ function paid(params) {
|
|
|
108
108
|
ret.type = "paid";
|
|
109
109
|
return ret;
|
|
110
110
|
}
|
|
111
|
+
function todo(params) {
|
|
112
|
+
const ret = params;
|
|
113
|
+
ret.type = "todo";
|
|
114
|
+
return ret;
|
|
115
|
+
}
|
|
111
116
|
function auto(file, params = {}) {
|
|
112
117
|
const ret = params;
|
|
113
118
|
ret.type = "auto";
|
|
@@ -131,6 +136,7 @@ export {
|
|
|
131
136
|
quiz,
|
|
132
137
|
sticker,
|
|
133
138
|
story,
|
|
139
|
+
todo,
|
|
134
140
|
venue,
|
|
135
141
|
video,
|
|
136
142
|
voice,
|
|
@@ -512,6 +512,17 @@ export interface InputMediaPaidMedia extends CaptionMixin {
|
|
|
512
512
|
*/
|
|
513
513
|
payload?: string;
|
|
514
514
|
}
|
|
515
|
+
export interface InputMediaTodoList {
|
|
516
|
+
type: 'todo';
|
|
517
|
+
/** Whether other people in the chat can add items to the list */
|
|
518
|
+
othersCanAppend?: boolean;
|
|
519
|
+
/** Whether other people in the chat can mark items as completed in the list */
|
|
520
|
+
othersCanComplete?: boolean;
|
|
521
|
+
/** Title of the list */
|
|
522
|
+
title: InputText;
|
|
523
|
+
/** Items in the list */
|
|
524
|
+
items: InputText[];
|
|
525
|
+
}
|
|
515
526
|
/**
|
|
516
527
|
* Input media that can be sent somewhere.
|
|
517
528
|
*
|
|
@@ -521,4 +532,4 @@ export interface InputMediaPaidMedia extends CaptionMixin {
|
|
|
521
532
|
*
|
|
522
533
|
* @link InputMedia
|
|
523
534
|
*/
|
|
524
|
-
export type InputMediaLike = InputMediaAudio | InputMediaVoice | InputMediaDocument | InputMediaPhoto | InputMediaVideo | InputMediaAuto | InputMediaSticker | InputMediaVenue | InputMediaGeo | InputMediaGeoLive | InputMediaDice | InputMediaContact | InputMediaGame | InputMediaInvoice | InputMediaPoll | InputMediaQuiz | InputMediaStory | InputMediaWebpage | InputMediaPaidMedia | tl.TypeInputMedia;
|
|
535
|
+
export type InputMediaLike = InputMediaAudio | InputMediaVoice | InputMediaDocument | InputMediaPhoto | InputMediaVideo | InputMediaAuto | InputMediaSticker | InputMediaVenue | InputMediaGeo | InputMediaGeoLive | InputMediaDice | InputMediaContact | InputMediaGame | InputMediaInvoice | InputMediaPoll | InputMediaQuiz | InputMediaStory | InputMediaWebpage | InputMediaPaidMedia | InputMediaTodoList | tl.TypeInputMedia;
|
|
@@ -512,6 +512,17 @@ export interface InputMediaPaidMedia extends CaptionMixin {
|
|
|
512
512
|
*/
|
|
513
513
|
payload?: string;
|
|
514
514
|
}
|
|
515
|
+
export interface InputMediaTodoList {
|
|
516
|
+
type: 'todo';
|
|
517
|
+
/** Whether other people in the chat can add items to the list */
|
|
518
|
+
othersCanAppend?: boolean;
|
|
519
|
+
/** Whether other people in the chat can mark items as completed in the list */
|
|
520
|
+
othersCanComplete?: boolean;
|
|
521
|
+
/** Title of the list */
|
|
522
|
+
title: InputText;
|
|
523
|
+
/** Items in the list */
|
|
524
|
+
items: InputText[];
|
|
525
|
+
}
|
|
515
526
|
/**
|
|
516
527
|
* Input media that can be sent somewhere.
|
|
517
528
|
*
|
|
@@ -521,4 +532,4 @@ export interface InputMediaPaidMedia extends CaptionMixin {
|
|
|
521
532
|
*
|
|
522
533
|
* @link InputMedia
|
|
523
534
|
*/
|
|
524
|
-
export type InputMediaLike = InputMediaAudio | InputMediaVoice | InputMediaDocument | InputMediaPhoto | InputMediaVideo | InputMediaAuto | InputMediaSticker | InputMediaVenue | InputMediaGeo | InputMediaGeoLive | InputMediaDice | InputMediaContact | InputMediaGame | InputMediaInvoice | InputMediaPoll | InputMediaQuiz | InputMediaStory | InputMediaWebpage | InputMediaPaidMedia | tl.TypeInputMedia;
|
|
535
|
+
export type InputMediaLike = InputMediaAudio | InputMediaVoice | InputMediaDocument | InputMediaPhoto | InputMediaVideo | InputMediaAuto | InputMediaSticker | InputMediaVenue | InputMediaGeo | InputMediaGeoLive | InputMediaDice | InputMediaContact | InputMediaGame | InputMediaInvoice | InputMediaPoll | InputMediaQuiz | InputMediaStory | InputMediaWebpage | InputMediaPaidMedia | InputMediaTodoList | tl.TypeInputMedia;
|
|
@@ -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,73 @@
|
|
|
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
|
+
const memoize = require("../../utils/memoize.cjs");
|
|
10
|
+
const user = require("../peers/user.cjs");
|
|
11
|
+
class TodoItem {
|
|
12
|
+
constructor(raw, _peers, completion) {
|
|
13
|
+
this.raw = raw;
|
|
14
|
+
this._peers = _peers;
|
|
15
|
+
this.completion = completion;
|
|
16
|
+
}
|
|
17
|
+
get id() {
|
|
18
|
+
return this.raw.id;
|
|
19
|
+
}
|
|
20
|
+
get text() {
|
|
21
|
+
return this.raw.title;
|
|
22
|
+
}
|
|
23
|
+
get isCompleted() {
|
|
24
|
+
return this.completion != null;
|
|
25
|
+
}
|
|
26
|
+
get completedBy() {
|
|
27
|
+
if (!this.completion) return null;
|
|
28
|
+
const peer = this._peers.user(this.completion.completedBy);
|
|
29
|
+
if (!peer) return null;
|
|
30
|
+
return new user.User(peer);
|
|
31
|
+
}
|
|
32
|
+
get completedDate() {
|
|
33
|
+
if (!this.completion) return null;
|
|
34
|
+
return new Date(this.completion.date * 1e3);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const TodoItem$1 = /* @__PURE__ */ inspectable.makeInspectable(TodoItem);
|
|
38
|
+
const TodoItem$2 = /* @__PURE__ */ memoize.memoizeGetters(TodoItem$1, ["completedBy", "completedDate"]);
|
|
39
|
+
class TodoList {
|
|
40
|
+
constructor(raw, _peers) {
|
|
41
|
+
this.raw = raw;
|
|
42
|
+
this._peers = _peers;
|
|
43
|
+
}
|
|
44
|
+
type = "todo";
|
|
45
|
+
get othersCanAppend() {
|
|
46
|
+
return this.raw.todo.othersCanAppend;
|
|
47
|
+
}
|
|
48
|
+
get othersCanComplete() {
|
|
49
|
+
return this.raw.todo.othersCanComplete;
|
|
50
|
+
}
|
|
51
|
+
get title() {
|
|
52
|
+
return this.raw.todo.title;
|
|
53
|
+
}
|
|
54
|
+
get items() {
|
|
55
|
+
const completionsMap = /* @__PURE__ */ new Map();
|
|
56
|
+
this.raw.completions?.forEach((c) => {
|
|
57
|
+
if (c._ === "todoCompletion") {
|
|
58
|
+
completionsMap.set(c.id, c);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return this.raw.todo.list.map((i) => new TodoItem(i, this._peers, completionsMap.get(i.id)));
|
|
62
|
+
}
|
|
63
|
+
get inputMedia() {
|
|
64
|
+
return {
|
|
65
|
+
_: "inputMediaTodo",
|
|
66
|
+
todo: this.raw.todo
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const TodoList$1 = /* @__PURE__ */ inspectable.makeInspectable(TodoList);
|
|
71
|
+
const TodoList$2 = /* @__PURE__ */ memoize.memoizeGetters(TodoList$1, ["items"]);
|
|
72
|
+
exports.TodoItem = TodoItem$2;
|
|
73
|
+
exports.TodoList = TodoList$2;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { TextWithEntities } from '../misc/entities.js';
|
|
3
|
+
import { PeersIndex } from '../peers/peers-index.js';
|
|
4
|
+
import { User } from '../peers/user.js';
|
|
5
|
+
export declare class TodoItem {
|
|
6
|
+
readonly raw: tl.TypeTodoItem;
|
|
7
|
+
readonly _peers: PeersIndex;
|
|
8
|
+
readonly completion: tl.RawTodoCompletion | undefined;
|
|
9
|
+
constructor(raw: tl.TypeTodoItem, _peers: PeersIndex, completion: tl.RawTodoCompletion | undefined);
|
|
10
|
+
get id(): number;
|
|
11
|
+
get text(): TextWithEntities;
|
|
12
|
+
get isCompleted(): boolean;
|
|
13
|
+
get completedBy(): User | null;
|
|
14
|
+
get completedDate(): Date | null;
|
|
15
|
+
}
|
|
16
|
+
export declare class TodoList {
|
|
17
|
+
readonly raw: tl.RawMessageMediaToDo;
|
|
18
|
+
readonly _peers: PeersIndex;
|
|
19
|
+
readonly type: "todo";
|
|
20
|
+
constructor(raw: tl.RawMessageMediaToDo, _peers: PeersIndex);
|
|
21
|
+
get othersCanAppend(): boolean;
|
|
22
|
+
get othersCanComplete(): boolean;
|
|
23
|
+
get title(): TextWithEntities;
|
|
24
|
+
get items(): TodoItem[];
|
|
25
|
+
get inputMedia(): tl.TypeInputMedia;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { TextWithEntities } from '../misc/entities.js';
|
|
3
|
+
import { PeersIndex } from '../peers/peers-index.js';
|
|
4
|
+
import { User } from '../peers/user.js';
|
|
5
|
+
export declare class TodoItem {
|
|
6
|
+
readonly raw: tl.TypeTodoItem;
|
|
7
|
+
readonly _peers: PeersIndex;
|
|
8
|
+
readonly completion: tl.RawTodoCompletion | undefined;
|
|
9
|
+
constructor(raw: tl.TypeTodoItem, _peers: PeersIndex, completion: tl.RawTodoCompletion | undefined);
|
|
10
|
+
get id(): number;
|
|
11
|
+
get text(): TextWithEntities;
|
|
12
|
+
get isCompleted(): boolean;
|
|
13
|
+
get completedBy(): User | null;
|
|
14
|
+
get completedDate(): Date | null;
|
|
15
|
+
}
|
|
16
|
+
export declare class TodoList {
|
|
17
|
+
readonly raw: tl.RawMessageMediaToDo;
|
|
18
|
+
readonly _peers: PeersIndex;
|
|
19
|
+
readonly type: "todo";
|
|
20
|
+
constructor(raw: tl.RawMessageMediaToDo, _peers: PeersIndex);
|
|
21
|
+
get othersCanAppend(): boolean;
|
|
22
|
+
get othersCanComplete(): boolean;
|
|
23
|
+
get title(): TextWithEntities;
|
|
24
|
+
get items(): TodoItem[];
|
|
25
|
+
get inputMedia(): tl.TypeInputMedia;
|
|
26
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { makeInspectable } from "../../utils/inspectable.js";
|
|
2
|
+
import { memoizeGetters } from "../../utils/memoize.js";
|
|
3
|
+
import { User as User$2 } from "../peers/user.js";
|
|
4
|
+
class TodoItem {
|
|
5
|
+
constructor(raw, _peers, completion) {
|
|
6
|
+
this.raw = raw;
|
|
7
|
+
this._peers = _peers;
|
|
8
|
+
this.completion = completion;
|
|
9
|
+
}
|
|
10
|
+
get id() {
|
|
11
|
+
return this.raw.id;
|
|
12
|
+
}
|
|
13
|
+
get text() {
|
|
14
|
+
return this.raw.title;
|
|
15
|
+
}
|
|
16
|
+
get isCompleted() {
|
|
17
|
+
return this.completion != null;
|
|
18
|
+
}
|
|
19
|
+
get completedBy() {
|
|
20
|
+
if (!this.completion) return null;
|
|
21
|
+
const peer = this._peers.user(this.completion.completedBy);
|
|
22
|
+
if (!peer) return null;
|
|
23
|
+
return new User$2(peer);
|
|
24
|
+
}
|
|
25
|
+
get completedDate() {
|
|
26
|
+
if (!this.completion) return null;
|
|
27
|
+
return new Date(this.completion.date * 1e3);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const TodoItem$1 = /* @__PURE__ */ makeInspectable(TodoItem);
|
|
31
|
+
const TodoItem$2 = /* @__PURE__ */ memoizeGetters(TodoItem$1, ["completedBy", "completedDate"]);
|
|
32
|
+
class TodoList {
|
|
33
|
+
constructor(raw, _peers) {
|
|
34
|
+
this.raw = raw;
|
|
35
|
+
this._peers = _peers;
|
|
36
|
+
}
|
|
37
|
+
type = "todo";
|
|
38
|
+
get othersCanAppend() {
|
|
39
|
+
return this.raw.todo.othersCanAppend;
|
|
40
|
+
}
|
|
41
|
+
get othersCanComplete() {
|
|
42
|
+
return this.raw.todo.othersCanComplete;
|
|
43
|
+
}
|
|
44
|
+
get title() {
|
|
45
|
+
return this.raw.todo.title;
|
|
46
|
+
}
|
|
47
|
+
get items() {
|
|
48
|
+
const completionsMap = /* @__PURE__ */ new Map();
|
|
49
|
+
this.raw.completions?.forEach((c) => {
|
|
50
|
+
if (c._ === "todoCompletion") {
|
|
51
|
+
completionsMap.set(c.id, c);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return this.raw.todo.list.map((i) => new TodoItem(i, this._peers, completionsMap.get(i.id)));
|
|
55
|
+
}
|
|
56
|
+
get inputMedia() {
|
|
57
|
+
return {
|
|
58
|
+
_: "inputMediaTodo",
|
|
59
|
+
todo: this.raw.todo
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const TodoList$1 = /* @__PURE__ */ makeInspectable(TodoList);
|
|
64
|
+
const TodoList$2 = /* @__PURE__ */ memoizeGetters(TodoList$1, ["items"]);
|
|
65
|
+
export {
|
|
66
|
+
TodoItem$2 as TodoItem,
|
|
67
|
+
TodoList$2 as TodoList
|
|
68
|
+
};
|
|
@@ -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";
|
|
@@ -338,6 +338,26 @@ function _messageActionFromTl(act) {
|
|
|
338
338
|
stars: act.stars,
|
|
339
339
|
count: act.count
|
|
340
340
|
};
|
|
341
|
+
case "messageActionTodoCompletions":
|
|
342
|
+
return {
|
|
343
|
+
type: "todo_completions",
|
|
344
|
+
completed: act.completed,
|
|
345
|
+
uncompleted: act.incompleted
|
|
346
|
+
};
|
|
347
|
+
case "messageActionTodoAppendTasks":
|
|
348
|
+
return {
|
|
349
|
+
type: "todo_append_tasks",
|
|
350
|
+
list: act.list
|
|
351
|
+
};
|
|
352
|
+
case "messageActionGiftTon":
|
|
353
|
+
return {
|
|
354
|
+
type: "ton_gift",
|
|
355
|
+
currency: act.currency,
|
|
356
|
+
amount: act.amount,
|
|
357
|
+
cryptoCurrency: act.cryptoCurrency,
|
|
358
|
+
cryptoAmount: act.cryptoAmount,
|
|
359
|
+
transactionId: act.transactionId
|
|
360
|
+
};
|
|
341
361
|
default:
|
|
342
362
|
return null;
|
|
343
363
|
}
|