@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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[@mtcute/core] CommonJS
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS bundles are deprecated. They will be removed completely in one of the upcoming releases. No support is provided for CommonJS users. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
|
|
4
4
|
console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
|
|
5
5
|
}
|
|
6
6
|
"use strict";
|
|
@@ -6,7 +6,7 @@ export declare class StarsStatus {
|
|
|
6
6
|
readonly peers: PeersIndex;
|
|
7
7
|
constructor(raw: tl.payments.RawStarsStatus);
|
|
8
8
|
/** Current Telegram Stars balance */
|
|
9
|
-
get balance(): tl.
|
|
9
|
+
get balance(): tl.TypeStarsAmount;
|
|
10
10
|
/**
|
|
11
11
|
* History of Telegram Stars transactions
|
|
12
12
|
*/
|
|
@@ -6,7 +6,7 @@ export declare class StarsStatus {
|
|
|
6
6
|
readonly peers: PeersIndex;
|
|
7
7
|
constructor(raw: tl.payments.RawStarsStatus);
|
|
8
8
|
/** Current Telegram Stars balance */
|
|
9
|
-
get balance(): tl.
|
|
9
|
+
get balance(): tl.TypeStarsAmount;
|
|
10
10
|
/**
|
|
11
11
|
* History of Telegram Stars transactions
|
|
12
12
|
*/
|
|
@@ -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";
|
|
@@ -29,18 +29,21 @@ class StarsTransaction {
|
|
|
29
29
|
* Whether this transaction is outgoing or incoming
|
|
30
30
|
*/
|
|
31
31
|
get direction() {
|
|
32
|
-
let isNegative = this.raw.
|
|
32
|
+
let isNegative = this.raw.amount.amount.isNegative();
|
|
33
33
|
if (this.raw.refund) isNegative = !isNegative;
|
|
34
34
|
return isNegative ? "outgoing" : "incoming";
|
|
35
35
|
}
|
|
36
|
-
/** Absolute amount of stars in the transaction */
|
|
36
|
+
/** Absolute amount of stars/TON in the transaction */
|
|
37
37
|
get amount() {
|
|
38
|
-
let res = this.raw.
|
|
38
|
+
let res = this.raw.amount;
|
|
39
39
|
if (res.amount.isNegative()) {
|
|
40
|
-
res = {
|
|
40
|
+
res = res._ === "starsAmount" ? {
|
|
41
41
|
...res,
|
|
42
42
|
nanos: Math.abs(res.nanos),
|
|
43
43
|
amount: res.amount.negate()
|
|
44
|
+
} : {
|
|
45
|
+
_: "starsTonAmount",
|
|
46
|
+
amount: res.amount.negate()
|
|
44
47
|
};
|
|
45
48
|
}
|
|
46
49
|
return res;
|
|
@@ -161,6 +164,21 @@ class StarsTransaction {
|
|
|
161
164
|
period: this.raw.subscriptionPeriod
|
|
162
165
|
};
|
|
163
166
|
}
|
|
167
|
+
if (this.raw.starrefCommissionPermille) {
|
|
168
|
+
return {
|
|
169
|
+
type: "bot_referral",
|
|
170
|
+
peer: peer$1,
|
|
171
|
+
commission: this.raw.starrefCommissionPermille
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
if (this.raw.adsProceedsFromDate && this.raw.adsProceedsToDate) {
|
|
175
|
+
return {
|
|
176
|
+
type: "ads_proceeds",
|
|
177
|
+
peer: peer$1,
|
|
178
|
+
fromDate: new Date(this.raw.adsProceedsFromDate * 1e3),
|
|
179
|
+
toDate: new Date(this.raw.adsProceedsToDate * 1e3)
|
|
180
|
+
};
|
|
181
|
+
}
|
|
164
182
|
if (peer$1.type === "user") {
|
|
165
183
|
if (this.raw.gift && !peer$1.isBot) {
|
|
166
184
|
return { type: "gift", user: peer$1 };
|
|
@@ -26,6 +26,8 @@ import { StarGift } from './stars-gift.js';
|
|
|
26
26
|
* - `premium_gift`: This transaction is a payment for a premium gift to a user
|
|
27
27
|
* - `api_*`: This transaction is a payment for paid API features
|
|
28
28
|
* - `api_floodskip`: This transaction is a payment for a paid bot broadcast
|
|
29
|
+
* - `bot_referral`: This transaction is proceeds from a bot referral program
|
|
30
|
+
* - `ads_proceeds`: This transaction is proceeds from Telegram Ads
|
|
29
31
|
*/
|
|
30
32
|
export type StarsTransactionType = {
|
|
31
33
|
type: 'unsupported';
|
|
@@ -148,6 +150,20 @@ export type StarsTransactionType = {
|
|
|
148
150
|
type: 'api_floodskip';
|
|
149
151
|
/** The number of billed API calls */
|
|
150
152
|
count: number;
|
|
153
|
+
} | {
|
|
154
|
+
type: 'bot_referral';
|
|
155
|
+
/** Related bot */
|
|
156
|
+
peer: Peer;
|
|
157
|
+
/** Commission in permille */
|
|
158
|
+
commission: number;
|
|
159
|
+
} | {
|
|
160
|
+
type: 'ads_proceeds';
|
|
161
|
+
/** Related peer */
|
|
162
|
+
peer: Peer;
|
|
163
|
+
/** Start of the period */
|
|
164
|
+
fromDate: Date;
|
|
165
|
+
/** End of the period */
|
|
166
|
+
toDate: Date;
|
|
151
167
|
};
|
|
152
168
|
export declare class StarsTransaction {
|
|
153
169
|
readonly raw: tl.RawStarsTransaction;
|
|
@@ -161,8 +177,8 @@ export declare class StarsTransaction {
|
|
|
161
177
|
* Whether this transaction is outgoing or incoming
|
|
162
178
|
*/
|
|
163
179
|
get direction(): 'incoming' | 'outgoing';
|
|
164
|
-
/** Absolute amount of stars in the transaction */
|
|
165
|
-
get amount(): tl.
|
|
180
|
+
/** Absolute amount of stars/TON in the transaction */
|
|
181
|
+
get amount(): tl.TypeStarsAmount;
|
|
166
182
|
/** Date of the transaction */
|
|
167
183
|
get date(): Date;
|
|
168
184
|
/** Type of this transaction */
|
|
@@ -26,6 +26,8 @@ import { StarGift } from './stars-gift.js';
|
|
|
26
26
|
* - `premium_gift`: This transaction is a payment for a premium gift to a user
|
|
27
27
|
* - `api_*`: This transaction is a payment for paid API features
|
|
28
28
|
* - `api_floodskip`: This transaction is a payment for a paid bot broadcast
|
|
29
|
+
* - `bot_referral`: This transaction is proceeds from a bot referral program
|
|
30
|
+
* - `ads_proceeds`: This transaction is proceeds from Telegram Ads
|
|
29
31
|
*/
|
|
30
32
|
export type StarsTransactionType = {
|
|
31
33
|
type: 'unsupported';
|
|
@@ -148,6 +150,20 @@ export type StarsTransactionType = {
|
|
|
148
150
|
type: 'api_floodskip';
|
|
149
151
|
/** The number of billed API calls */
|
|
150
152
|
count: number;
|
|
153
|
+
} | {
|
|
154
|
+
type: 'bot_referral';
|
|
155
|
+
/** Related bot */
|
|
156
|
+
peer: Peer;
|
|
157
|
+
/** Commission in permille */
|
|
158
|
+
commission: number;
|
|
159
|
+
} | {
|
|
160
|
+
type: 'ads_proceeds';
|
|
161
|
+
/** Related peer */
|
|
162
|
+
peer: Peer;
|
|
163
|
+
/** Start of the period */
|
|
164
|
+
fromDate: Date;
|
|
165
|
+
/** End of the period */
|
|
166
|
+
toDate: Date;
|
|
151
167
|
};
|
|
152
168
|
export declare class StarsTransaction {
|
|
153
169
|
readonly raw: tl.RawStarsTransaction;
|
|
@@ -161,8 +177,8 @@ export declare class StarsTransaction {
|
|
|
161
177
|
* Whether this transaction is outgoing or incoming
|
|
162
178
|
*/
|
|
163
179
|
get direction(): 'incoming' | 'outgoing';
|
|
164
|
-
/** Absolute amount of stars in the transaction */
|
|
165
|
-
get amount(): tl.
|
|
180
|
+
/** Absolute amount of stars/TON in the transaction */
|
|
181
|
+
get amount(): tl.TypeStarsAmount;
|
|
166
182
|
/** Date of the transaction */
|
|
167
183
|
get date(): Date;
|
|
168
184
|
/** Type of this transaction */
|
|
@@ -22,18 +22,21 @@ class StarsTransaction {
|
|
|
22
22
|
* Whether this transaction is outgoing or incoming
|
|
23
23
|
*/
|
|
24
24
|
get direction() {
|
|
25
|
-
let isNegative = this.raw.
|
|
25
|
+
let isNegative = this.raw.amount.amount.isNegative();
|
|
26
26
|
if (this.raw.refund) isNegative = !isNegative;
|
|
27
27
|
return isNegative ? "outgoing" : "incoming";
|
|
28
28
|
}
|
|
29
|
-
/** Absolute amount of stars in the transaction */
|
|
29
|
+
/** Absolute amount of stars/TON in the transaction */
|
|
30
30
|
get amount() {
|
|
31
|
-
let res = this.raw.
|
|
31
|
+
let res = this.raw.amount;
|
|
32
32
|
if (res.amount.isNegative()) {
|
|
33
|
-
res = {
|
|
33
|
+
res = res._ === "starsAmount" ? {
|
|
34
34
|
...res,
|
|
35
35
|
nanos: Math.abs(res.nanos),
|
|
36
36
|
amount: res.amount.negate()
|
|
37
|
+
} : {
|
|
38
|
+
_: "starsTonAmount",
|
|
39
|
+
amount: res.amount.negate()
|
|
37
40
|
};
|
|
38
41
|
}
|
|
39
42
|
return res;
|
|
@@ -154,6 +157,21 @@ class StarsTransaction {
|
|
|
154
157
|
period: this.raw.subscriptionPeriod
|
|
155
158
|
};
|
|
156
159
|
}
|
|
160
|
+
if (this.raw.starrefCommissionPermille) {
|
|
161
|
+
return {
|
|
162
|
+
type: "bot_referral",
|
|
163
|
+
peer,
|
|
164
|
+
commission: this.raw.starrefCommissionPermille
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
if (this.raw.adsProceedsFromDate && this.raw.adsProceedsToDate) {
|
|
168
|
+
return {
|
|
169
|
+
type: "ads_proceeds",
|
|
170
|
+
peer,
|
|
171
|
+
fromDate: new Date(this.raw.adsProceedsFromDate * 1e3),
|
|
172
|
+
toDate: new Date(this.raw.adsProceedsToDate * 1e3)
|
|
173
|
+
};
|
|
174
|
+
}
|
|
157
175
|
if (peer.type === "user") {
|
|
158
176
|
if (this.raw.gift && !peer.isBot) {
|
|
159
177
|
return { type: "gift", user: peer };
|
|
@@ -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";
|