@mtcute/core 0.19.0 → 0.19.2
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 +12 -4
- package/client.js +10 -2
- package/highlevel/base.cjs +3 -3
- package/highlevel/base.d.cts +1 -1
- package/highlevel/base.d.ts +1 -1
- package/highlevel/base.js +1 -1
- package/highlevel/client.d.cts +55 -0
- package/highlevel/client.d.ts +55 -0
- package/highlevel/client.types.d.cts +1 -1
- package/highlevel/client.types.d.ts +1 -1
- package/highlevel/managers/app-config-manager.cjs +2 -2
- package/highlevel/managers/timers.cjs +2 -2
- package/highlevel/methods/auth/check-password.cjs +2 -2
- package/highlevel/methods/auth/get-password-hint.cjs +2 -2
- package/highlevel/methods/auth/log-out.cjs +2 -2
- package/highlevel/methods/auth/recover-password.cjs +2 -2
- package/highlevel/methods/auth/resend-code.cjs +2 -2
- package/highlevel/methods/auth/run.cjs +2 -2
- package/highlevel/methods/auth/send-code.cjs +3 -3
- package/highlevel/methods/auth/send-code.js +1 -1
- package/highlevel/methods/auth/send-recovery-code.cjs +2 -2
- package/highlevel/methods/auth/sign-in-bot.cjs +3 -3
- package/highlevel/methods/auth/sign-in-bot.js +1 -1
- package/highlevel/methods/auth/sign-in-qr.cjs +13 -10
- package/highlevel/methods/auth/sign-in-qr.js +11 -8
- package/highlevel/methods/auth/sign-in.cjs +2 -2
- package/highlevel/methods/auth/start-test.cjs +2 -2
- package/highlevel/methods/auth/start.cjs +2 -2
- package/highlevel/methods/auth/utils.cjs +2 -2
- package/highlevel/methods/bots/answer-callback-query.cjs +2 -2
- package/highlevel/methods/bots/answer-inline-query.cjs +2 -2
- package/highlevel/methods/bots/answer-pre-checkout-query.cjs +2 -2
- package/highlevel/methods/bots/delete-my-commands.cjs +2 -2
- package/highlevel/methods/bots/get-bot-info.cjs +2 -2
- package/highlevel/methods/bots/get-bot-menu-button.cjs +2 -2
- package/highlevel/methods/bots/get-callback-answer.cjs +2 -2
- package/highlevel/methods/bots/get-game-high-scores.cjs +2 -2
- package/highlevel/methods/bots/get-my-commands.cjs +2 -2
- package/highlevel/methods/bots/normalize-command-scope.cjs +2 -2
- package/highlevel/methods/bots/open-webview.cjs +2 -2
- package/highlevel/methods/bots/prepare-inline-message.cjs +2 -2
- package/highlevel/methods/bots/set-bot-info.cjs +2 -2
- package/highlevel/methods/bots/set-bot-menu-button.cjs +2 -2
- package/highlevel/methods/bots/set-game-score.cjs +2 -2
- package/highlevel/methods/bots/set-my-commands.cjs +2 -2
- package/highlevel/methods/bots/set-my-default-rights.cjs +2 -2
- package/highlevel/methods/bots/toggle-emoji-status-permission.cjs +2 -2
- package/highlevel/methods/chats/add-chat-members.cjs +2 -2
- package/highlevel/methods/chats/archive-chats.cjs +2 -2
- package/highlevel/methods/chats/ban-chat-member.cjs +2 -2
- package/highlevel/methods/chats/batched-queries.cjs +2 -2
- package/highlevel/methods/chats/create-channel.cjs +2 -2
- package/highlevel/methods/chats/create-group.cjs +2 -2
- package/highlevel/methods/chats/create-supergroup.cjs +2 -2
- package/highlevel/methods/chats/delete-channel.cjs +2 -2
- package/highlevel/methods/chats/delete-chat-photo.cjs +2 -2
- package/highlevel/methods/chats/delete-group.cjs +2 -2
- package/highlevel/methods/chats/delete-history.cjs +2 -2
- package/highlevel/methods/chats/delete-user-history.cjs +2 -2
- package/highlevel/methods/chats/edit-admin-rights.cjs +2 -2
- package/highlevel/methods/chats/get-chat-event-log.cjs +2 -2
- package/highlevel/methods/chats/get-chat-member.cjs +2 -2
- package/highlevel/methods/chats/get-chat-members.cjs +2 -2
- package/highlevel/methods/chats/get-chat-preview.cjs +2 -2
- package/highlevel/methods/chats/get-chat.cjs +2 -2
- package/highlevel/methods/chats/get-full-chat.cjs +2 -2
- package/highlevel/methods/chats/get-full-user.cjs +2 -2
- package/highlevel/methods/chats/get-nearby-chats.cjs +2 -2
- package/highlevel/methods/chats/get-similar-channels.cjs +2 -2
- package/highlevel/methods/chats/get-user.cjs +2 -2
- package/highlevel/methods/chats/iter-chat-event-log.cjs +2 -2
- package/highlevel/methods/chats/iter-chat-members.cjs +2 -2
- package/highlevel/methods/chats/join-chat.cjs +2 -2
- package/highlevel/methods/chats/kick-chat-member.cjs +2 -2
- package/highlevel/methods/chats/leave-chat.cjs +2 -2
- package/highlevel/methods/chats/mark-chat-unread.cjs +2 -2
- package/highlevel/methods/chats/open-chat.cjs +2 -2
- package/highlevel/methods/chats/reorder-usernames.cjs +2 -2
- package/highlevel/methods/chats/restrict-chat-member.cjs +2 -2
- package/highlevel/methods/chats/save-draft.cjs +2 -2
- package/highlevel/methods/chats/set-chat-color.cjs +2 -2
- package/highlevel/methods/chats/set-chat-default-permissions.cjs +2 -2
- package/highlevel/methods/chats/set-chat-description.cjs +2 -2
- package/highlevel/methods/chats/set-chat-photo.cjs +2 -2
- package/highlevel/methods/chats/set-chat-title.cjs +2 -2
- package/highlevel/methods/chats/set-chat-ttl.cjs +2 -2
- package/highlevel/methods/chats/set-chat-username.cjs +2 -2
- package/highlevel/methods/chats/set-slow-mode.cjs +2 -2
- package/highlevel/methods/chats/toggle-content-protection.cjs +2 -2
- package/highlevel/methods/chats/toggle-fragment-username.cjs +2 -2
- package/highlevel/methods/chats/toggle-join-requests.cjs +2 -2
- package/highlevel/methods/chats/toggle-join-to-send.cjs +2 -2
- package/highlevel/methods/chats/unarchive-chats.cjs +2 -2
- package/highlevel/methods/chats/unban-chat-member.cjs +2 -2
- package/highlevel/methods/contacts/add-contact.cjs +2 -2
- package/highlevel/methods/contacts/delete-contacts.cjs +2 -2
- package/highlevel/methods/contacts/get-contacts.cjs +2 -2
- package/highlevel/methods/contacts/import-contacts.cjs +2 -2
- package/highlevel/methods/dialogs/create-folder.cjs +2 -2
- package/highlevel/methods/dialogs/delete-folder.cjs +2 -2
- package/highlevel/methods/dialogs/edit-folder.cjs +3 -3
- package/highlevel/methods/dialogs/edit-folder.js +1 -1
- package/highlevel/methods/dialogs/find-dialogs.cjs +2 -2
- package/highlevel/methods/dialogs/find-folder.cjs +3 -3
- package/highlevel/methods/dialogs/find-folder.js +1 -1
- package/highlevel/methods/dialogs/get-chatlist-preview.cjs +2 -2
- package/highlevel/methods/dialogs/get-folders.cjs +3 -3
- package/highlevel/methods/dialogs/get-folders.js +1 -1
- package/highlevel/methods/dialogs/get-peer-dialogs.cjs +2 -2
- package/highlevel/methods/dialogs/iter-dialogs.cjs +3 -3
- package/highlevel/methods/dialogs/iter-dialogs.js +1 -1
- package/highlevel/methods/dialogs/join-chatlist.cjs +2 -2
- package/highlevel/methods/dialogs/set-folders-order.cjs +2 -2
- package/highlevel/methods/files/download-buffer.cjs +2 -2
- package/highlevel/methods/files/download-iterable.cjs +2 -2
- package/highlevel/methods/files/download-stream.cjs +2 -2
- package/highlevel/methods/files/normalize-file-to-document.cjs +2 -2
- package/highlevel/methods/files/normalize-input-file.cjs +2 -2
- package/highlevel/methods/files/normalize-input-media.cjs +2 -2
- package/highlevel/methods/files/upload-file.cjs +2 -2
- package/highlevel/methods/files/upload-media.cjs +2 -2
- package/highlevel/methods/forums/create-forum-topic.cjs +2 -2
- package/highlevel/methods/forums/delete-forum-topic-history.cjs +2 -2
- package/highlevel/methods/forums/edit-forum-topic.cjs +2 -2
- package/highlevel/methods/forums/get-forum-topics-by-id.cjs +2 -2
- package/highlevel/methods/forums/get-forum-topics.cjs +2 -2
- package/highlevel/methods/forums/iter-forum-topics.cjs +2 -2
- package/highlevel/methods/forums/reorder-pinned-forum-topics.cjs +2 -2
- package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +2 -2
- package/highlevel/methods/forums/toggle-forum-topic-pinned.cjs +2 -2
- package/highlevel/methods/forums/toggle-forum.cjs +2 -2
- package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +2 -2
- package/highlevel/methods/invite-links/create-invite-link.cjs +2 -2
- package/highlevel/methods/invite-links/edit-invite-link.cjs +2 -2
- package/highlevel/methods/invite-links/export-invite-link.cjs +2 -2
- package/highlevel/methods/invite-links/get-invite-link-members.cjs +2 -2
- package/highlevel/methods/invite-links/get-invite-link.cjs +2 -2
- package/highlevel/methods/invite-links/get-invite-links.cjs +2 -2
- package/highlevel/methods/invite-links/get-primary-invite-link.cjs +2 -2
- package/highlevel/methods/invite-links/hide-all-join-requests.cjs +2 -2
- package/highlevel/methods/invite-links/hide-join-request.cjs +2 -2
- package/highlevel/methods/invite-links/iter-invite-link-members.cjs +2 -2
- package/highlevel/methods/invite-links/iter-invite-links.cjs +2 -2
- package/highlevel/methods/invite-links/revoke-invite-link.cjs +2 -2
- package/highlevel/methods/messages/_business-connection.cjs +2 -2
- package/highlevel/methods/messages/close-poll.cjs +2 -2
- package/highlevel/methods/messages/delete-messages.cjs +2 -2
- package/highlevel/methods/messages/delete-scheduled-messages.cjs +2 -2
- package/highlevel/methods/messages/edit-inline-message.cjs +2 -2
- package/highlevel/methods/messages/edit-message.cjs +2 -2
- package/highlevel/methods/messages/find-in-update.cjs +2 -2
- package/highlevel/methods/messages/forward-messages.cjs +2 -2
- package/highlevel/methods/messages/get-all-scheduled-messages.cjs +2 -2
- package/highlevel/methods/messages/get-available-effects.cjs +2 -2
- package/highlevel/methods/messages/get-callback-query-message.cjs +2 -2
- package/highlevel/methods/messages/get-discussion-message.cjs +2 -2
- package/highlevel/methods/messages/get-fact-check.cjs +2 -2
- package/highlevel/methods/messages/get-history.cjs +2 -2
- package/highlevel/methods/messages/get-message-by-link.cjs +2 -2
- package/highlevel/methods/messages/get-message-group.cjs +2 -2
- package/highlevel/methods/messages/get-message-reactions.cjs +2 -2
- package/highlevel/methods/messages/get-messages-unsafe.cjs +2 -2
- package/highlevel/methods/messages/get-messages.cjs +2 -2
- package/highlevel/methods/messages/get-reaction-users.cjs +2 -2
- package/highlevel/methods/messages/get-reply-to.cjs +2 -2
- package/highlevel/methods/messages/get-scheduled-messages.cjs +2 -2
- package/highlevel/methods/messages/iter-history.cjs +2 -2
- package/highlevel/methods/messages/iter-reaction-users.cjs +2 -2
- package/highlevel/methods/messages/iter-search-global.cjs +2 -2
- package/highlevel/methods/messages/iter-search-messages.cjs +2 -2
- package/highlevel/methods/messages/pin-message.cjs +2 -2
- package/highlevel/methods/messages/read-history.cjs +3 -5
- package/highlevel/methods/messages/read-history.js +1 -3
- package/highlevel/methods/messages/read-reactions.cjs +2 -2
- package/highlevel/methods/messages/search-global.cjs +2 -2
- package/highlevel/methods/messages/search-hashtag.cjs +2 -2
- package/highlevel/methods/messages/search-messages.cjs +2 -2
- package/highlevel/methods/messages/send-answer.cjs +2 -2
- package/highlevel/methods/messages/send-comment.cjs +2 -2
- package/highlevel/methods/messages/send-common.cjs +2 -2
- package/highlevel/methods/messages/send-copy-group.cjs +2 -2
- package/highlevel/methods/messages/send-copy.cjs +2 -2
- package/highlevel/methods/messages/send-media-group.cjs +2 -2
- package/highlevel/methods/messages/send-media.cjs +2 -2
- package/highlevel/methods/messages/send-paid-reaction.cjs +2 -2
- package/highlevel/methods/messages/send-quote.cjs +2 -2
- package/highlevel/methods/messages/send-reaction.cjs +2 -2
- package/highlevel/methods/messages/send-reply.cjs +2 -2
- package/highlevel/methods/messages/send-scheduled.cjs +2 -2
- package/highlevel/methods/messages/send-text.cjs +2 -2
- package/highlevel/methods/messages/send-typing.cjs +2 -2
- package/highlevel/methods/messages/send-vote.cjs +2 -2
- package/highlevel/methods/messages/set-typing.cjs +2 -2
- package/highlevel/methods/messages/translate-message.cjs +2 -2
- package/highlevel/methods/messages/translate-text.cjs +2 -2
- package/highlevel/methods/messages/unpin-all-messages.cjs +2 -2
- package/highlevel/methods/messages/unpin-message.cjs +2 -2
- package/highlevel/methods/misc/chain-id.cjs +2 -2
- package/highlevel/methods/misc/get-collectible-info.cjs +2 -2
- package/highlevel/methods/misc/init-takeout-session.cjs +2 -2
- package/highlevel/methods/misc/normalize-privacy-rules.cjs +2 -2
- package/highlevel/methods/misc/normalize-text.cjs +2 -2
- package/highlevel/methods/misc/with-params.cjs +2 -2
- package/highlevel/methods/password/change-cloud-password.cjs +2 -2
- package/highlevel/methods/password/enable-cloud-password.cjs +2 -2
- package/highlevel/methods/password/password-email.cjs +2 -2
- package/highlevel/methods/password/remove-cloud-password.cjs +2 -2
- package/highlevel/methods/premium/accept-star-gift.cjs +3 -8
- package/highlevel/methods/premium/accept-star-gift.d.cts +4 -2
- package/highlevel/methods/premium/accept-star-gift.d.ts +4 -2
- package/highlevel/methods/premium/accept-star-gift.js +1 -6
- package/highlevel/methods/premium/apply-boost.cjs +2 -2
- package/highlevel/methods/premium/can-apply-boost.cjs +2 -2
- package/highlevel/methods/premium/create-business-chat-link.cjs +2 -2
- package/highlevel/methods/premium/edit-business-chat-link.cjs +2 -2
- package/highlevel/methods/premium/get-boost-stats.cjs +2 -2
- package/highlevel/methods/premium/get-boosts.cjs +2 -2
- package/highlevel/methods/premium/get-business-chat-links.cjs +2 -2
- package/highlevel/methods/premium/get-business-connection.cjs +2 -2
- package/highlevel/methods/premium/get-my-boost-slots.cjs +2 -2
- package/highlevel/methods/premium/get-star-gift-options.cjs +9 -3
- package/highlevel/methods/premium/get-star-gift-options.js +7 -1
- package/highlevel/methods/premium/get-star-gifts.cjs +2 -2
- package/highlevel/methods/premium/get-stars-transactions.cjs +2 -2
- package/highlevel/methods/premium/iter-boosters.cjs +2 -2
- package/highlevel/methods/premium/iter-star-gifts.cjs +2 -2
- package/highlevel/methods/premium/iter-stars-transactions.cjs +2 -2
- package/highlevel/methods/premium/send-star-gift.cjs +12 -4
- package/highlevel/methods/premium/send-star-gift.d.cts +2 -0
- package/highlevel/methods/premium/send-star-gift.d.ts +2 -0
- package/highlevel/methods/premium/send-star-gift.js +10 -2
- package/highlevel/methods/premium/set-business-intro.cjs +2 -2
- package/highlevel/methods/premium/set-business-work-hours.cjs +2 -2
- package/highlevel/methods/premium/transfer-star-gift.cjs +31 -0
- package/highlevel/methods/premium/transfer-star-gift.d.cts +24 -0
- package/highlevel/methods/premium/transfer-star-gift.d.ts +24 -0
- package/highlevel/methods/premium/transfer-star-gift.js +26 -0
- package/highlevel/methods/premium/upgrade-star-gift.cjs +30 -0
- package/highlevel/methods/premium/upgrade-star-gift.d.cts +26 -0
- package/highlevel/methods/premium/upgrade-star-gift.d.ts +26 -0
- package/highlevel/methods/premium/upgrade-star-gift.js +25 -0
- package/highlevel/methods/stickers/_utils.cjs +2 -2
- package/highlevel/methods/stickers/add-sticker-to-set.cjs +2 -2
- package/highlevel/methods/stickers/create-sticker-set.cjs +2 -2
- package/highlevel/methods/stickers/delete-sticker-from-set.cjs +2 -2
- package/highlevel/methods/stickers/get-custom-emojis.cjs +2 -2
- package/highlevel/methods/stickers/get-installed-stickers.cjs +2 -2
- package/highlevel/methods/stickers/get-my-sticker-sets.cjs +2 -2
- package/highlevel/methods/stickers/get-sticker-set.cjs +2 -2
- package/highlevel/methods/stickers/move-sticker-in-set.cjs +2 -2
- package/highlevel/methods/stickers/replace-sticker-in-set.cjs +2 -2
- package/highlevel/methods/stickers/set-chat-sticker-set.cjs +2 -2
- package/highlevel/methods/stickers/set-sticker-set-thumb.cjs +2 -2
- package/highlevel/methods/stories/can-send-story.cjs +2 -2
- package/highlevel/methods/stories/delete-stories.cjs +2 -2
- package/highlevel/methods/stories/edit-story.cjs +2 -2
- package/highlevel/methods/stories/find-in-update.cjs +2 -2
- package/highlevel/methods/stories/get-all-stories.cjs +2 -2
- package/highlevel/methods/stories/get-peer-stories.cjs +2 -2
- package/highlevel/methods/stories/get-profile-stories.cjs +2 -2
- package/highlevel/methods/stories/get-stories-by-id.cjs +2 -2
- package/highlevel/methods/stories/get-stories-interactions.cjs +2 -2
- package/highlevel/methods/stories/get-story-link.cjs +2 -2
- package/highlevel/methods/stories/get-story-viewers.cjs +2 -2
- package/highlevel/methods/stories/hide-my-stories-views.cjs +2 -2
- package/highlevel/methods/stories/increment-stories-views.cjs +2 -2
- package/highlevel/methods/stories/iter-all-stories.cjs +2 -2
- package/highlevel/methods/stories/iter-profile-stories.cjs +2 -2
- package/highlevel/methods/stories/iter-story-viewers.cjs +2 -2
- package/highlevel/methods/stories/read-stories.cjs +2 -2
- package/highlevel/methods/stories/send-story-reaction.cjs +2 -2
- package/highlevel/methods/stories/send-story.cjs +2 -2
- package/highlevel/methods/stories/toggle-peer-stories-archived.cjs +2 -2
- package/highlevel/methods/stories/toggle-stories-pinned.cjs +2 -2
- package/highlevel/methods/users/block-user.cjs +2 -2
- package/highlevel/methods/users/delete-profile-photos.cjs +2 -2
- package/highlevel/methods/users/edit-close-friends.cjs +2 -2
- package/highlevel/methods/users/get-common-chats.cjs +2 -2
- package/highlevel/methods/users/get-global-ttl.cjs +2 -2
- package/highlevel/methods/users/get-me.cjs +2 -2
- package/highlevel/methods/users/get-my-username.cjs +2 -2
- package/highlevel/methods/users/get-profile-photo.cjs +2 -2
- package/highlevel/methods/users/get-profile-photos.cjs +2 -2
- package/highlevel/methods/users/get-users.cjs +2 -2
- package/highlevel/methods/users/is-peer-available.cjs +2 -2
- package/highlevel/methods/users/iter-profile-photos.cjs +2 -2
- package/highlevel/methods/users/resolve-peer-many.cjs +2 -2
- package/highlevel/methods/users/resolve-peer.cjs +2 -2
- package/highlevel/methods/users/set-emoji-status.cjs +2 -2
- package/highlevel/methods/users/set-global-ttl.cjs +2 -2
- package/highlevel/methods/users/set-my-birthday.cjs +2 -2
- package/highlevel/methods/users/set-my-profile-photo.cjs +2 -2
- package/highlevel/methods/users/set-my-username.cjs +2 -2
- package/highlevel/methods/users/set-online.cjs +2 -2
- package/highlevel/methods/users/unblock-user.cjs +2 -2
- package/highlevel/methods/users/update-profile.cjs +2 -2
- package/highlevel/methods.d.cts +2 -0
- package/highlevel/methods.d.ts +2 -0
- package/highlevel/storage/service/current-user.cjs +2 -2
- package/highlevel/storage/service/peers.cjs +2 -2
- package/highlevel/storage/service/ref-messages.cjs +2 -2
- package/highlevel/storage/service/updates.cjs +2 -2
- package/highlevel/storage/storage.cjs +2 -2
- package/highlevel/types/auth/sent-code.cjs +2 -2
- package/highlevel/types/bots/command-scope/inner.cjs +2 -2
- package/highlevel/types/bots/game-high-score.cjs +2 -2
- package/highlevel/types/bots/inline-message/factories.cjs +2 -2
- package/highlevel/types/bots/inline-result/factories.cjs +2 -2
- package/highlevel/types/bots/keyboards/builder.cjs +2 -2
- package/highlevel/types/bots/keyboards/factories.cjs +2 -2
- package/highlevel/types/bots/webview.cjs +2 -2
- package/highlevel/types/conversation.cjs +2 -2
- package/highlevel/types/errors.cjs +2 -2
- package/highlevel/types/files/file-location.cjs +2 -2
- package/highlevel/types/files/uploaded-file.cjs +2 -2
- package/highlevel/types/files/web-document.cjs +2 -2
- package/highlevel/types/index.d.cts +0 -1
- package/highlevel/types/index.d.ts +0 -1
- package/highlevel/types/media/audio.cjs +2 -2
- package/highlevel/types/media/contact.cjs +2 -2
- package/highlevel/types/media/dice.cjs +2 -2
- package/highlevel/types/media/document-utils.cjs +2 -2
- package/highlevel/types/media/document.cjs +2 -2
- package/highlevel/types/media/extended-media.cjs +2 -2
- package/highlevel/types/media/game.cjs +2 -2
- package/highlevel/types/media/input-media/factories.cjs +2 -2
- package/highlevel/types/media/invoice.cjs +2 -2
- package/highlevel/types/media/location.cjs +2 -2
- package/highlevel/types/media/paid-media.cjs +2 -2
- package/highlevel/types/media/photo.cjs +2 -2
- package/highlevel/types/media/poll.cjs +2 -2
- package/highlevel/types/media/sticker.cjs +2 -2
- package/highlevel/types/media/story.cjs +2 -2
- package/highlevel/types/media/thumbnail.cjs +2 -2
- package/highlevel/types/media/venue.cjs +2 -2
- package/highlevel/types/media/video.cjs +2 -2
- package/highlevel/types/media/voice.cjs +2 -2
- package/highlevel/types/media/web-page.cjs +2 -2
- package/highlevel/types/messages/dialog.cjs +5 -3
- package/highlevel/types/messages/dialog.js +3 -1
- package/highlevel/types/messages/draft-message.cjs +2 -2
- package/highlevel/types/messages/fact-check.cjs +2 -2
- package/highlevel/types/messages/input-message-id.cjs +2 -2
- package/highlevel/types/messages/message-action.cjs +11 -6
- package/highlevel/types/messages/message-action.d.cts +14 -3
- package/highlevel/types/messages/message-action.d.ts +14 -3
- package/highlevel/types/messages/message-action.js +9 -4
- package/highlevel/types/messages/message-effect.cjs +2 -2
- package/highlevel/types/messages/message-entity.cjs +2 -2
- package/highlevel/types/messages/message-forward.cjs +2 -2
- package/highlevel/types/messages/message-media.cjs +2 -2
- package/highlevel/types/messages/message-reactions.cjs +2 -2
- package/highlevel/types/messages/message-replies.cjs +2 -2
- package/highlevel/types/messages/message.cjs +13 -3
- package/highlevel/types/messages/message.d.cts +7 -0
- package/highlevel/types/messages/message.d.ts +7 -0
- package/highlevel/types/messages/message.js +11 -1
- package/highlevel/types/messages/replied-message.cjs +2 -2
- package/highlevel/types/messages/search-filters.cjs +2 -2
- package/highlevel/types/misc/collectible-info.cjs +2 -2
- package/highlevel/types/misc/entities.cjs +2 -2
- package/highlevel/types/misc/input-privacy-rule/allow.cjs +2 -2
- package/highlevel/types/misc/input-privacy-rule/bundle.cjs +2 -2
- package/highlevel/types/misc/input-privacy-rule/disallow.cjs +2 -2
- package/highlevel/types/misc/sticker-set.cjs +2 -2
- package/highlevel/types/misc/takeout-session.cjs +2 -2
- package/highlevel/types/peers/bot-info.cjs +5 -2
- package/highlevel/types/peers/bot-info.d.cts +1 -0
- package/highlevel/types/peers/bot-info.d.ts +1 -0
- package/highlevel/types/peers/bot-info.js +3 -0
- package/highlevel/types/peers/bot-verification.cjs +27 -0
- package/highlevel/types/peers/bot-verification.d.cts +12 -0
- package/highlevel/types/peers/bot-verification.d.ts +12 -0
- package/highlevel/types/peers/bot-verification.js +22 -0
- package/highlevel/types/peers/chat-colors.cjs +2 -2
- package/highlevel/types/peers/chat-event/actions.cjs +2 -2
- package/highlevel/types/peers/chat-event/filters.cjs +2 -2
- package/highlevel/types/peers/chat-event/index.cjs +2 -2
- package/highlevel/types/peers/chat-invite-link-member.cjs +2 -2
- package/highlevel/types/peers/chat-invite-link.cjs +2 -2
- package/highlevel/types/peers/chat-location.cjs +2 -2
- package/highlevel/types/peers/chat-member.cjs +2 -2
- package/highlevel/types/peers/chat-permissions.cjs +2 -2
- package/highlevel/types/peers/chat-photo.cjs +2 -2
- package/highlevel/types/peers/chat-preview.cjs +10 -2
- package/highlevel/types/peers/chat-preview.d.cts +6 -0
- package/highlevel/types/peers/chat-preview.d.ts +6 -0
- package/highlevel/types/peers/chat-preview.js +8 -0
- package/highlevel/types/peers/chat.cjs +10 -2
- package/highlevel/types/peers/chat.d.cts +5 -0
- package/highlevel/types/peers/chat.d.ts +5 -0
- package/highlevel/types/peers/chat.js +8 -0
- package/highlevel/types/peers/chatlist-preview.cjs +3 -3
- package/highlevel/types/peers/chatlist-preview.d.cts +2 -1
- package/highlevel/types/peers/chatlist-preview.d.ts +2 -1
- package/highlevel/types/peers/chatlist-preview.js +1 -1
- package/highlevel/types/peers/forum-topic.cjs +2 -2
- package/highlevel/types/peers/full-chat.cjs +10 -3
- package/highlevel/types/peers/full-chat.d.cts +3 -0
- package/highlevel/types/peers/full-chat.d.ts +3 -0
- package/highlevel/types/peers/full-chat.js +8 -1
- package/highlevel/types/peers/full-user.cjs +10 -3
- package/highlevel/types/peers/full-user.d.cts +3 -0
- package/highlevel/types/peers/full-user.d.ts +3 -0
- package/highlevel/types/peers/full-user.js +8 -1
- package/highlevel/types/peers/index.d.cts +1 -0
- package/highlevel/types/peers/index.d.ts +1 -0
- package/highlevel/types/peers/peer.cjs +2 -2
- package/highlevel/types/peers/peers-index.cjs +2 -2
- package/highlevel/types/peers/user.cjs +9 -2
- package/highlevel/types/peers/user.d.cts +5 -0
- package/highlevel/types/peers/user.d.ts +5 -0
- package/highlevel/types/peers/user.js +7 -0
- package/highlevel/types/premium/boost-slot.cjs +2 -2
- package/highlevel/types/premium/boost-stats.cjs +2 -2
- package/highlevel/types/premium/boost.cjs +2 -2
- package/highlevel/types/premium/business-account.cjs +2 -2
- package/highlevel/types/premium/business-chat-link.cjs +2 -2
- package/highlevel/types/premium/business-connection.cjs +2 -2
- package/highlevel/types/premium/business-intro.cjs +2 -2
- package/highlevel/types/premium/business-location.cjs +2 -2
- package/highlevel/types/premium/business-work-hours.cjs +2 -2
- package/highlevel/types/premium/index.d.cts +1 -0
- package/highlevel/types/premium/index.d.ts +1 -0
- package/highlevel/types/premium/stars-gift-unique.cjs +148 -0
- package/highlevel/types/premium/stars-gift-unique.d.cts +70 -0
- package/highlevel/types/premium/stars-gift-unique.d.ts +70 -0
- package/highlevel/types/premium/stars-gift-unique.js +143 -0
- package/highlevel/types/premium/stars-gift.cjs +33 -4
- package/highlevel/types/premium/stars-gift.d.cts +19 -4
- package/highlevel/types/premium/stars-gift.d.ts +19 -4
- package/highlevel/types/premium/stars-gift.js +31 -2
- package/highlevel/types/premium/stars-status.cjs +2 -2
- package/highlevel/types/premium/stars-transaction.cjs +34 -17
- package/highlevel/types/premium/stars-transaction.d.cts +15 -0
- package/highlevel/types/premium/stars-transaction.d.ts +15 -0
- package/highlevel/types/premium/stars-transaction.js +32 -15
- package/highlevel/types/reactions/emoji-status.cjs +2 -2
- package/highlevel/types/reactions/peer-reaction.cjs +2 -2
- package/highlevel/types/reactions/reaction-count.cjs +2 -2
- package/highlevel/types/reactions/types.cjs +2 -2
- package/highlevel/types/stories/all-stories.cjs +2 -2
- package/highlevel/types/stories/interactive/base.cjs +2 -2
- package/highlevel/types/stories/interactive/channel-post.cjs +2 -2
- package/highlevel/types/stories/interactive/index.cjs +2 -2
- package/highlevel/types/stories/interactive/input.cjs +2 -2
- package/highlevel/types/stories/interactive/location.cjs +2 -2
- package/highlevel/types/stories/interactive/reaction.cjs +2 -2
- package/highlevel/types/stories/interactive/url.cjs +2 -2
- package/highlevel/types/stories/interactive/venue.cjs +2 -2
- package/highlevel/types/stories/interactive/weather.cjs +2 -2
- package/highlevel/types/stories/peer-stories.cjs +2 -2
- package/highlevel/types/stories/stealth-mode.cjs +2 -2
- package/highlevel/types/stories/story-interactions.cjs +2 -2
- package/highlevel/types/stories/story-viewer.cjs +2 -2
- package/highlevel/types/stories/story.cjs +2 -2
- package/highlevel/types/updates/bot-chat-join-request.cjs +2 -2
- package/highlevel/types/updates/bot-reaction.cjs +2 -2
- package/highlevel/types/updates/bot-stopped.cjs +2 -2
- package/highlevel/types/updates/business-message.cjs +2 -3
- package/highlevel/types/updates/business-message.d.cts +0 -1
- package/highlevel/types/updates/business-message.d.ts +0 -1
- package/highlevel/types/updates/business-message.js +0 -1
- package/highlevel/types/updates/callback-query.cjs +2 -2
- package/highlevel/types/updates/chat-join-request.cjs +2 -2
- package/highlevel/types/updates/chat-member-update.cjs +2 -2
- package/highlevel/types/updates/chosen-inline-result.cjs +2 -2
- package/highlevel/types/updates/delete-business-message-update.cjs +2 -2
- package/highlevel/types/updates/delete-message-update.cjs +2 -2
- package/highlevel/types/updates/delete-story-update.cjs +2 -2
- package/highlevel/types/updates/history-read-update.cjs +2 -2
- package/highlevel/types/updates/inline-query.cjs +2 -2
- package/highlevel/types/updates/parse-update.cjs +2 -2
- package/highlevel/types/updates/poll-update.cjs +2 -2
- package/highlevel/types/updates/poll-vote.cjs +2 -2
- package/highlevel/types/updates/pre-checkout-query.cjs +2 -2
- package/highlevel/types/updates/story-update.cjs +2 -2
- package/highlevel/types/updates/user-status-update.cjs +2 -2
- package/highlevel/types/updates/user-typing-update.cjs +2 -2
- package/highlevel/updates/manager.cjs +2 -2
- package/highlevel/updates/parsed.cjs +2 -2
- package/highlevel/updates/types.cjs +2 -2
- package/highlevel/updates/utils.cjs +2 -2
- package/highlevel/utils/convert-file-id.cjs +2 -2
- package/highlevel/utils/entities.cjs +2 -2
- package/highlevel/utils/file-type.cjs +2 -2
- package/highlevel/utils/file-utils.cjs +2 -2
- package/highlevel/utils/inline-utils.cjs +2 -2
- package/highlevel/utils/inspectable.cjs +2 -2
- package/highlevel/utils/memoize.cjs +2 -2
- package/highlevel/utils/misc-utils.cjs +2 -2
- package/highlevel/utils/peer-utils.cjs +2 -2
- package/highlevel/utils/query-batcher.cjs +2 -2
- package/highlevel/utils/rps-meter.cjs +2 -2
- package/highlevel/utils/stream-utils.cjs +2 -2
- package/highlevel/utils/string-session.cjs +2 -2
- package/highlevel/utils/voice-utils.cjs +2 -2
- package/highlevel/worker/app-config.cjs +2 -2
- package/highlevel/worker/errors.cjs +2 -2
- package/highlevel/worker/invoker.cjs +2 -2
- package/highlevel/worker/port.cjs +4 -4
- package/highlevel/worker/port.d.cts +1 -1
- package/highlevel/worker/port.d.ts +1 -1
- package/highlevel/worker/port.js +2 -2
- package/highlevel/worker/protocol.cjs +2 -2
- package/highlevel/worker/storage.cjs +2 -2
- package/highlevel/worker/worker.cjs +2 -2
- package/index.cjs +9 -5
- package/index.js +7 -3
- package/methods.cjs +6 -2
- package/methods.js +4 -0
- package/network/auth-key.cjs +2 -2
- package/network/authorization.cjs +2 -2
- package/network/client.cjs +2 -2
- package/network/config-manager.cjs +2 -2
- package/network/middlewares/bundle.cjs +2 -2
- package/network/middlewares/default.cjs +2 -2
- package/network/middlewares/flood-waiter.cjs +2 -2
- package/network/middlewares/internal-errors.cjs +2 -2
- package/network/middlewares/on-error.cjs +2 -2
- package/network/middlewares/on-method.cjs +2 -2
- package/network/mtproto-session.cjs +2 -2
- package/network/mtproxy/_fake-tls.cjs +2 -2
- package/network/mtproxy/index.cjs +2 -2
- package/network/multi-session-connection.cjs +2 -2
- package/network/network-manager.cjs +3 -3
- package/network/network-manager.js +1 -1
- package/network/persistent-connection.cjs +2 -2
- package/network/server-salt.cjs +2 -2
- package/network/session-connection.cjs +2 -2
- package/network/transports/abstract.cjs +2 -2
- package/network/transports/intermediate.cjs +2 -2
- package/network/transports/obfuscated.cjs +2 -2
- package/package.json +4 -5
- package/storage/driver.cjs +2 -2
- package/storage/memory/driver.cjs +2 -2
- package/storage/memory/index.cjs +2 -2
- package/storage/memory/repository/auth-keys.cjs +2 -2
- package/storage/memory/repository/kv.cjs +2 -2
- package/storage/memory/repository/peers.cjs +2 -2
- package/storage/memory/repository/ref-messages.cjs +2 -2
- package/storage/service/auth-keys.cjs +2 -2
- package/storage/service/base.cjs +2 -2
- package/storage/service/default-dcs.cjs +2 -2
- package/storage/service/future-salts.cjs +2 -2
- package/storage/sqlite/driver.cjs +2 -2
- package/storage/sqlite/index.cjs +2 -2
- package/storage/sqlite/repository/auth-keys.cjs +2 -2
- package/storage/sqlite/repository/kv.cjs +2 -2
- package/storage/sqlite/repository/peers.cjs +2 -2
- package/storage/sqlite/repository/ref-messages.cjs +2 -2
- package/storage/storage.cjs +2 -2
- package/types/errors.cjs +2 -2
- package/types/utils.cjs +2 -2
- package/utils/abort-signal.cjs +2 -2
- package/utils/bigint-utils.cjs +2 -2
- package/utils/binary/asn1-parser.cjs +2 -2
- package/utils/crypto/abstract.cjs +2 -2
- package/utils/crypto/factorization.cjs +2 -2
- package/utils/crypto/keys.cjs +2 -2
- package/utils/crypto/miller-rabin.cjs +2 -2
- package/utils/crypto/mtproto.cjs +2 -2
- package/utils/crypto/password.cjs +2 -2
- package/utils/dcs.cjs +2 -2
- package/utils/early-timer.cjs +2 -2
- package/utils/error-reporting.cjs +2 -2
- package/utils/function-utils.cjs +2 -2
- package/utils/linked-list.cjs +2 -2
- package/utils/links/bots.cjs +2 -2
- package/utils/links/bundle.cjs +2 -2
- package/utils/links/calls.cjs +2 -2
- package/utils/links/chat.cjs +2 -2
- package/utils/links/common.cjs +2 -2
- package/utils/links/misc.cjs +2 -2
- package/utils/links/proxy.cjs +2 -2
- package/utils/links/stickers.cjs +2 -2
- package/utils/links/user.cjs +2 -2
- package/utils/logger.cjs +2 -2
- package/utils/long-utils.cjs +2 -2
- package/utils/misc-utils.cjs +2 -2
- package/utils/peer-utils.cjs +2 -2
- package/utils/sorted-array.cjs +2 -2
- package/utils/tl-json.cjs +2 -2
- package/utils/type-assertions.cjs +2 -2
- package/utils.cjs +2 -2
- package/worker.cjs +2 -2
- package/highlevel/types/calls/discard-reason.cjs +0 -38
- package/highlevel/types/calls/discard-reason.d.cts +0 -13
- package/highlevel/types/calls/discard-reason.d.ts +0 -13
- package/highlevel/types/calls/discard-reason.js +0 -33
- package/highlevel/types/calls/index.d.cts +0 -1
- package/highlevel/types/calls/index.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
8
|
const memoize = require("../../utils/memoize.cjs");
|
|
9
9
|
const photo = require("../media/photo.cjs");
|
|
10
|
+
const botVerification = require("./bot-verification.cjs");
|
|
10
11
|
const user = require("./user.cjs");
|
|
11
12
|
const inspectable = require("../../utils/inspectable.cjs");
|
|
12
13
|
class ChatPreview {
|
|
@@ -64,6 +65,13 @@ class ChatPreview {
|
|
|
64
65
|
get withApproval() {
|
|
65
66
|
return this.invite.requestNeeded;
|
|
66
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
70
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
71
|
+
*/
|
|
72
|
+
get customVerification() {
|
|
73
|
+
return this.invite.botVerification ? new botVerification.BotVerification(this.invite.botVerification) : null;
|
|
74
|
+
}
|
|
67
75
|
}
|
|
68
76
|
const ChatPreview$1 = /* @__PURE__ */ memoize.memoizeGetters(ChatPreview, ["photo", "someMembers"]);
|
|
69
77
|
const ChatPreview$2 = /* @__PURE__ */ inspectable.makeInspectable(ChatPreview$1, ["link"]);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { tl } from '@mtcute/tl';
|
|
2
2
|
import { Photo } from '../media/photo.js';
|
|
3
|
+
import { BotVerification } from './bot-verification.js';
|
|
3
4
|
import { User } from './user.js';
|
|
4
5
|
/**
|
|
5
6
|
* Chat type. Can be:
|
|
@@ -52,4 +53,9 @@ export declare class ChatPreview {
|
|
|
52
53
|
* to wait for admin approval.
|
|
53
54
|
*/
|
|
54
55
|
get withApproval(): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
58
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
59
|
+
*/
|
|
60
|
+
get customVerification(): BotVerification | null;
|
|
55
61
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { tl } from '@mtcute/tl';
|
|
2
2
|
import { Photo } from '../media/photo.js';
|
|
3
|
+
import { BotVerification } from './bot-verification.js';
|
|
3
4
|
import { User } from './user.js';
|
|
4
5
|
/**
|
|
5
6
|
* Chat type. Can be:
|
|
@@ -52,4 +53,9 @@ export declare class ChatPreview {
|
|
|
52
53
|
* to wait for admin approval.
|
|
53
54
|
*/
|
|
54
55
|
get withApproval(): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
58
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
59
|
+
*/
|
|
60
|
+
get customVerification(): BotVerification | null;
|
|
55
61
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { memoizeGetters } from "../../utils/memoize.js";
|
|
2
2
|
import { Photo as Photo$2 } from "../media/photo.js";
|
|
3
|
+
import { BotVerification as BotVerification$1 } from "./bot-verification.js";
|
|
3
4
|
import { User as User$2 } from "./user.js";
|
|
4
5
|
import { makeInspectable } from "../../utils/inspectable.js";
|
|
5
6
|
class ChatPreview {
|
|
@@ -57,6 +58,13 @@ class ChatPreview {
|
|
|
57
58
|
get withApproval() {
|
|
58
59
|
return this.invite.requestNeeded;
|
|
59
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
63
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
64
|
+
*/
|
|
65
|
+
get customVerification() {
|
|
66
|
+
return this.invite.botVerification ? new BotVerification$1(this.invite.botVerification) : null;
|
|
67
|
+
}
|
|
60
68
|
}
|
|
61
69
|
const ChatPreview$1 = /* @__PURE__ */ memoizeGetters(ChatPreview, ["photo", "someMembers"]);
|
|
62
70
|
const ChatPreview$2 = /* @__PURE__ */ makeInspectable(ChatPreview$1, ["link"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -334,6 +334,14 @@ class Chat {
|
|
|
334
334
|
if (!this.raw.emojiStatus || this.raw.emojiStatus._ === "emojiStatusEmpty") return null;
|
|
335
335
|
return new emojiStatus.EmojiStatus(this.raw.emojiStatus);
|
|
336
336
|
}
|
|
337
|
+
/**
|
|
338
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
339
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
340
|
+
*/
|
|
341
|
+
get customVerificationEmojiId() {
|
|
342
|
+
if (this.raw._ !== "channel") return null;
|
|
343
|
+
return this.raw.botVerificationIcon ?? null;
|
|
344
|
+
}
|
|
337
345
|
/**
|
|
338
346
|
* Color that should be used when rendering the header of
|
|
339
347
|
* the user's profile
|
|
@@ -188,6 +188,11 @@ export declare class Chat {
|
|
|
188
188
|
* Chat's emoji status, if any.
|
|
189
189
|
*/
|
|
190
190
|
get emojiStatus(): EmojiStatus | null;
|
|
191
|
+
/**
|
|
192
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
193
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
194
|
+
*/
|
|
195
|
+
get customVerificationEmojiId(): tl.Long | null;
|
|
191
196
|
/**
|
|
192
197
|
* Color that should be used when rendering the header of
|
|
193
198
|
* the user's profile
|
|
@@ -188,6 +188,11 @@ export declare class Chat {
|
|
|
188
188
|
* Chat's emoji status, if any.
|
|
189
189
|
*/
|
|
190
190
|
get emojiStatus(): EmojiStatus | null;
|
|
191
|
+
/**
|
|
192
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
193
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
194
|
+
*/
|
|
195
|
+
get customVerificationEmojiId(): tl.Long | null;
|
|
191
196
|
/**
|
|
192
197
|
* Color that should be used when rendering the header of
|
|
193
198
|
* the user's profile
|
|
@@ -327,6 +327,14 @@ class Chat {
|
|
|
327
327
|
if (!this.raw.emojiStatus || this.raw.emojiStatus._ === "emojiStatusEmpty") return null;
|
|
328
328
|
return new EmojiStatus$1(this.raw.emojiStatus);
|
|
329
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
332
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
333
|
+
*/
|
|
334
|
+
get customVerificationEmojiId() {
|
|
335
|
+
if (this.raw._ !== "channel") return null;
|
|
336
|
+
return this.raw.botVerificationIcon ?? null;
|
|
337
|
+
}
|
|
330
338
|
/**
|
|
331
339
|
* Color that should be used when rendering the header of
|
|
332
340
|
* the user's profile
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -25,7 +25,7 @@ class ChatlistPreview {
|
|
|
25
25
|
}
|
|
26
26
|
/** Title of the chatlist (only available for non-joined chatlists) */
|
|
27
27
|
get title() {
|
|
28
|
-
return this.raw._ === "chatlists.chatlistInvite" ? this.raw.title : "";
|
|
28
|
+
return this.raw._ === "chatlists.chatlistInvite" ? this.raw.title : { text: "", entities: [] };
|
|
29
29
|
}
|
|
30
30
|
/** Emoji representing an icon of the chatlist (may only be available for non-joined chatlists) */
|
|
31
31
|
get emoji() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { TextWithEntities } from '../misc/entities.js';
|
|
2
3
|
import { Peer } from './peer.js';
|
|
3
4
|
import { PeersIndex } from './peers-index.js';
|
|
4
5
|
/**
|
|
@@ -13,7 +14,7 @@ export declare class ChatlistPreview {
|
|
|
13
14
|
/** If we joined the chatlist, ID of the folder representing it */
|
|
14
15
|
get folderId(): number | null;
|
|
15
16
|
/** Title of the chatlist (only available for non-joined chatlists) */
|
|
16
|
-
get title():
|
|
17
|
+
get title(): TextWithEntities;
|
|
17
18
|
/** Emoji representing an icon of the chatlist (may only be available for non-joined chatlists) */
|
|
18
19
|
get emoji(): string | null;
|
|
19
20
|
/** List of all chats contained in the chatlist */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { TextWithEntities } from '../misc/entities.js';
|
|
2
3
|
import { Peer } from './peer.js';
|
|
3
4
|
import { PeersIndex } from './peers-index.js';
|
|
4
5
|
/**
|
|
@@ -13,7 +14,7 @@ export declare class ChatlistPreview {
|
|
|
13
14
|
/** If we joined the chatlist, ID of the folder representing it */
|
|
14
15
|
get folderId(): number | null;
|
|
15
16
|
/** Title of the chatlist (only available for non-joined chatlists) */
|
|
16
|
-
get title():
|
|
17
|
+
get title(): TextWithEntities;
|
|
17
18
|
/** Emoji representing an icon of the chatlist (may only be available for non-joined chatlists) */
|
|
18
19
|
get emoji(): string | null;
|
|
19
20
|
/** List of all chats contained in the chatlist */
|
|
@@ -18,7 +18,7 @@ class ChatlistPreview {
|
|
|
18
18
|
}
|
|
19
19
|
/** Title of the chatlist (only available for non-joined chatlists) */
|
|
20
20
|
get title() {
|
|
21
|
-
return this.raw._ === "chatlists.chatlistInvite" ? this.raw.title : "";
|
|
21
|
+
return this.raw._ === "chatlists.chatlistInvite" ? this.raw.title : { text: "", entities: [] };
|
|
22
22
|
}
|
|
23
23
|
/** Emoji representing an icon of the chatlist (may only be available for non-joined chatlists) */
|
|
24
24
|
get emoji() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -11,6 +11,7 @@ const photo = require("../media/photo.cjs");
|
|
|
11
11
|
const stickerSet = require("../misc/sticker-set.cjs");
|
|
12
12
|
const peerStories = require("../stories/peer-stories.cjs");
|
|
13
13
|
const botInfo = require("./bot-info.cjs");
|
|
14
|
+
const botVerification = require("./bot-verification.cjs");
|
|
14
15
|
const chatInviteLink = require("./chat-invite-link.cjs");
|
|
15
16
|
const chatLocation = require("./chat-location.cjs");
|
|
16
17
|
const chat = require("./chat.cjs");
|
|
@@ -292,6 +293,11 @@ class FullChat extends chat.Chat {
|
|
|
292
293
|
if (this.full._ !== "channelFull" || !this.full.stories) return null;
|
|
293
294
|
return new peerStories.PeerStories(this.full.stories, this.peers);
|
|
294
295
|
}
|
|
296
|
+
/** Information about a bot-issued verification (if any) */
|
|
297
|
+
get botVerification() {
|
|
298
|
+
if (this.full._ !== "channelFull" || !this.full.botVerification) return null;
|
|
299
|
+
return new botVerification.BotVerification(this.full.botVerification);
|
|
300
|
+
}
|
|
295
301
|
}
|
|
296
302
|
const FullChat$1 = /* @__PURE__ */ memoize.memoizeGetters(FullChat, [
|
|
297
303
|
"fullPhoto",
|
|
@@ -302,7 +308,8 @@ const FullChat$1 = /* @__PURE__ */ memoize.memoizeGetters(FullChat, [
|
|
|
302
308
|
"botInfo",
|
|
303
309
|
"linkedChat",
|
|
304
310
|
"recentRequesters",
|
|
305
|
-
"stories"
|
|
311
|
+
"stories",
|
|
312
|
+
"botVerification"
|
|
306
313
|
]);
|
|
307
314
|
const FullChat$2 = /* @__PURE__ */ inspectable.makeInspectable(FullChat$1);
|
|
308
315
|
exports.FullChat = FullChat$2;
|
|
@@ -3,6 +3,7 @@ import { Photo } from '../media/photo.js';
|
|
|
3
3
|
import { StickerSet } from '../misc/sticker-set.js';
|
|
4
4
|
import { PeerStories } from '../stories/peer-stories.js';
|
|
5
5
|
import { BotInfo } from './bot-info.js';
|
|
6
|
+
import { BotVerification } from './bot-verification.js';
|
|
6
7
|
import { ChatInviteLink } from './chat-invite-link.js';
|
|
7
8
|
import { ChatLocation } from './chat-location.js';
|
|
8
9
|
import { Chat } from './chat.js';
|
|
@@ -158,4 +159,6 @@ export declare class FullChat extends Chat {
|
|
|
158
159
|
get maxReactions(): number | null;
|
|
159
160
|
/** Channel stories */
|
|
160
161
|
get stories(): PeerStories | null;
|
|
162
|
+
/** Information about a bot-issued verification (if any) */
|
|
163
|
+
get botVerification(): BotVerification | null;
|
|
161
164
|
}
|
|
@@ -3,6 +3,7 @@ import { Photo } from '../media/photo.js';
|
|
|
3
3
|
import { StickerSet } from '../misc/sticker-set.js';
|
|
4
4
|
import { PeerStories } from '../stories/peer-stories.js';
|
|
5
5
|
import { BotInfo } from './bot-info.js';
|
|
6
|
+
import { BotVerification } from './bot-verification.js';
|
|
6
7
|
import { ChatInviteLink } from './chat-invite-link.js';
|
|
7
8
|
import { ChatLocation } from './chat-location.js';
|
|
8
9
|
import { Chat } from './chat.js';
|
|
@@ -158,4 +159,6 @@ export declare class FullChat extends Chat {
|
|
|
158
159
|
get maxReactions(): number | null;
|
|
159
160
|
/** Channel stories */
|
|
160
161
|
get stories(): PeerStories | null;
|
|
162
|
+
/** Information about a bot-issued verification (if any) */
|
|
163
|
+
get botVerification(): BotVerification | null;
|
|
161
164
|
}
|
|
@@ -4,6 +4,7 @@ import { Photo as Photo$2 } from "../media/photo.js";
|
|
|
4
4
|
import { StickerSet as StickerSet$2 } from "../misc/sticker-set.js";
|
|
5
5
|
import { PeerStories as PeerStories$2 } from "../stories/peer-stories.js";
|
|
6
6
|
import { BotInfo as BotInfo$2 } from "./bot-info.js";
|
|
7
|
+
import { BotVerification as BotVerification$1 } from "./bot-verification.js";
|
|
7
8
|
import { ChatInviteLink as ChatInviteLink$2 } from "./chat-invite-link.js";
|
|
8
9
|
import { ChatLocation as ChatLocation$2 } from "./chat-location.js";
|
|
9
10
|
import { Chat as Chat$2 } from "./chat.js";
|
|
@@ -285,6 +286,11 @@ class FullChat extends Chat$2 {
|
|
|
285
286
|
if (this.full._ !== "channelFull" || !this.full.stories) return null;
|
|
286
287
|
return new PeerStories$2(this.full.stories, this.peers);
|
|
287
288
|
}
|
|
289
|
+
/** Information about a bot-issued verification (if any) */
|
|
290
|
+
get botVerification() {
|
|
291
|
+
if (this.full._ !== "channelFull" || !this.full.botVerification) return null;
|
|
292
|
+
return new BotVerification$1(this.full.botVerification);
|
|
293
|
+
}
|
|
288
294
|
}
|
|
289
295
|
const FullChat$1 = /* @__PURE__ */ memoizeGetters(FullChat, [
|
|
290
296
|
"fullPhoto",
|
|
@@ -295,7 +301,8 @@ const FullChat$1 = /* @__PURE__ */ memoizeGetters(FullChat, [
|
|
|
295
301
|
"botInfo",
|
|
296
302
|
"linkedChat",
|
|
297
303
|
"recentRequesters",
|
|
298
|
-
"stories"
|
|
304
|
+
"stories",
|
|
305
|
+
"botVerification"
|
|
299
306
|
]);
|
|
300
307
|
const FullChat$2 = /* @__PURE__ */ makeInspectable(FullChat$1);
|
|
301
308
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -9,6 +9,7 @@ const inspectable = require("../../utils/inspectable.cjs");
|
|
|
9
9
|
const memoize = require("../../utils/memoize.cjs");
|
|
10
10
|
const photo = require("../media/photo.cjs");
|
|
11
11
|
const businessAccount = require("../premium/business-account.cjs");
|
|
12
|
+
const botVerification = require("./bot-verification.cjs");
|
|
12
13
|
const chat = require("./chat.cjs");
|
|
13
14
|
const peersIndex = require("./peers-index.cjs");
|
|
14
15
|
const user = require("./user.cjs");
|
|
@@ -202,6 +203,11 @@ class FullUser extends user.User {
|
|
|
202
203
|
}
|
|
203
204
|
return null;
|
|
204
205
|
}
|
|
206
|
+
/** Information about a bot-issued verification (if any) */
|
|
207
|
+
get botVerification() {
|
|
208
|
+
if (!this.full.botVerification) return null;
|
|
209
|
+
return new botVerification.BotVerification(this.full.botVerification);
|
|
210
|
+
}
|
|
205
211
|
}
|
|
206
212
|
const FullUser$1 = /* @__PURE__ */ memoize.memoizeGetters(FullUser, [
|
|
207
213
|
"fullPhoto",
|
|
@@ -209,7 +215,8 @@ const FullUser$1 = /* @__PURE__ */ memoize.memoizeGetters(FullUser, [
|
|
|
209
215
|
"realPhoto",
|
|
210
216
|
"publicPhoto",
|
|
211
217
|
"personalChannel",
|
|
212
|
-
"business"
|
|
218
|
+
"business",
|
|
219
|
+
"botVerification"
|
|
213
220
|
]);
|
|
214
221
|
const FullUser$2 = /* @__PURE__ */ inspectable.makeInspectable(FullUser$1);
|
|
215
222
|
exports.FullUser = FullUser$2;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { tl } from '@mtcute/tl';
|
|
2
2
|
import { Photo } from '../media/photo.js';
|
|
3
3
|
import { BusinessAccount } from '../premium/business-account.js';
|
|
4
|
+
import { BotVerification } from './bot-verification.js';
|
|
4
5
|
import { Chat } from './chat.js';
|
|
5
6
|
import { PeersIndex } from './peers-index.js';
|
|
6
7
|
import { User } from './user.js';
|
|
@@ -112,4 +113,6 @@ export declare class FullUser extends User {
|
|
|
112
113
|
* If this is a business account, information about the business.
|
|
113
114
|
*/
|
|
114
115
|
get business(): BusinessAccount | null;
|
|
116
|
+
/** Information about a bot-issued verification (if any) */
|
|
117
|
+
get botVerification(): BotVerification | null;
|
|
115
118
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { tl } from '@mtcute/tl';
|
|
2
2
|
import { Photo } from '../media/photo.js';
|
|
3
3
|
import { BusinessAccount } from '../premium/business-account.js';
|
|
4
|
+
import { BotVerification } from './bot-verification.js';
|
|
4
5
|
import { Chat } from './chat.js';
|
|
5
6
|
import { PeersIndex } from './peers-index.js';
|
|
6
7
|
import { User } from './user.js';
|
|
@@ -112,4 +113,6 @@ export declare class FullUser extends User {
|
|
|
112
113
|
* If this is a business account, information about the business.
|
|
113
114
|
*/
|
|
114
115
|
get business(): BusinessAccount | null;
|
|
116
|
+
/** Information about a bot-issued verification (if any) */
|
|
117
|
+
get botVerification(): BotVerification | null;
|
|
115
118
|
}
|
|
@@ -2,6 +2,7 @@ import { makeInspectable } from "../../utils/inspectable.js";
|
|
|
2
2
|
import { memoizeGetters } from "../../utils/memoize.js";
|
|
3
3
|
import { Photo as Photo$2 } from "../media/photo.js";
|
|
4
4
|
import { BusinessAccount as BusinessAccount$2 } from "../premium/business-account.js";
|
|
5
|
+
import { BotVerification as BotVerification$1 } from "./bot-verification.js";
|
|
5
6
|
import { Chat as Chat$2 } from "./chat.js";
|
|
6
7
|
import { PeersIndex } from "./peers-index.js";
|
|
7
8
|
import { User as User$2 } from "./user.js";
|
|
@@ -195,6 +196,11 @@ class FullUser extends User$2 {
|
|
|
195
196
|
}
|
|
196
197
|
return null;
|
|
197
198
|
}
|
|
199
|
+
/** Information about a bot-issued verification (if any) */
|
|
200
|
+
get botVerification() {
|
|
201
|
+
if (!this.full.botVerification) return null;
|
|
202
|
+
return new BotVerification$1(this.full.botVerification);
|
|
203
|
+
}
|
|
198
204
|
}
|
|
199
205
|
const FullUser$1 = /* @__PURE__ */ memoizeGetters(FullUser, [
|
|
200
206
|
"fullPhoto",
|
|
@@ -202,7 +208,8 @@ const FullUser$1 = /* @__PURE__ */ memoizeGetters(FullUser, [
|
|
|
202
208
|
"realPhoto",
|
|
203
209
|
"publicPhoto",
|
|
204
210
|
"personalChannel",
|
|
205
|
-
"business"
|
|
211
|
+
"business",
|
|
212
|
+
"botVerification"
|
|
206
213
|
]);
|
|
207
214
|
const FullUser$2 = /* @__PURE__ */ makeInspectable(FullUser$1);
|
|
208
215
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -111,6 +111,13 @@ class User {
|
|
|
111
111
|
get isVerified() {
|
|
112
112
|
return this.raw.verified;
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
116
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
117
|
+
*/
|
|
118
|
+
get customVerificationEmojiId() {
|
|
119
|
+
return this.raw.botVerificationIcon ?? null;
|
|
120
|
+
}
|
|
114
121
|
/**
|
|
115
122
|
* Whether this user has been restricted. Bots only.
|
|
116
123
|
* See {@link restrictionReason} for details
|
|
@@ -84,6 +84,11 @@ export declare class User {
|
|
|
84
84
|
get isBotEditable(): boolean;
|
|
85
85
|
/** Whether this user has been verified by Telegram */
|
|
86
86
|
get isVerified(): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
89
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
90
|
+
*/
|
|
91
|
+
get customVerificationEmojiId(): tl.Long | null;
|
|
87
92
|
/**
|
|
88
93
|
* Whether this user has been restricted. Bots only.
|
|
89
94
|
* See {@link restrictionReason} for details
|
|
@@ -84,6 +84,11 @@ export declare class User {
|
|
|
84
84
|
get isBotEditable(): boolean;
|
|
85
85
|
/** Whether this user has been verified by Telegram */
|
|
86
86
|
get isVerified(): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
89
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
90
|
+
*/
|
|
91
|
+
get customVerificationEmojiId(): tl.Long | null;
|
|
87
92
|
/**
|
|
88
93
|
* Whether this user has been restricted. Bots only.
|
|
89
94
|
* See {@link restrictionReason} for details
|
|
@@ -104,6 +104,13 @@ class User {
|
|
|
104
104
|
get isVerified() {
|
|
105
105
|
return this.raw.verified;
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* If non-null, this user was verified by a bot, and this field contains
|
|
109
|
+
* the ID of the custom emoji to display as the verification icon.
|
|
110
|
+
*/
|
|
111
|
+
get customVerificationEmojiId() {
|
|
112
|
+
return this.raw.botVerificationIcon ?? null;
|
|
113
|
+
}
|
|
107
114
|
/**
|
|
108
115
|
* Whether this user has been restricted. Bots only.
|
|
109
116
|
* See {@link restrictionReason} for details
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
|
|
2
2
|
globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
|
|
3
|
-
console.warn("[mtcute
|
|
4
|
-
console.warn("[mtcute
|
|
3
|
+
console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. 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
5
|
}
|
|
6
6
|
"use strict";
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|