@mtcute/core 0.18.0-rc.5 → 0.18.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.d.cts +1 -0
- package/highlevel/base.d.cts +115 -0
- package/highlevel/base.test.d.cts +1 -0
- package/highlevel/client.d.cts +5045 -0
- package/highlevel/client.types.d.cts +61 -0
- package/highlevel/index.d.cts +4 -0
- package/highlevel/managers/app-config-manager.d.cts +11 -0
- package/highlevel/managers/timers.d.cts +10 -0
- package/highlevel/methods/_imports.d.cts +1 -0
- package/highlevel/methods/_init.d.cts +1 -0
- package/highlevel/methods/auth/check-password.d.cts +10 -0
- package/highlevel/methods/auth/get-password-hint.d.cts +7 -0
- package/highlevel/methods/auth/log-out.d.cts +17 -0
- package/highlevel/methods/auth/recover-password.d.cts +12 -0
- package/highlevel/methods/auth/resend-code.d.cts +16 -0
- package/highlevel/methods/auth/run.d.cts +16 -0
- package/highlevel/methods/auth/send-code.d.cts +18 -0
- package/highlevel/methods/auth/send-recovery-code.d.cts +7 -0
- package/highlevel/methods/auth/sign-in-bot.d.cts +10 -0
- package/highlevel/methods/auth/sign-in-qr.d.cts +33 -0
- package/highlevel/methods/auth/sign-in.d.cts +19 -0
- package/highlevel/methods/auth/start-test.d.cts +30 -0
- package/highlevel/methods/auth/start.d.cts +89 -0
- package/highlevel/methods/auth/utils.d.cts +9 -0
- package/highlevel/methods/bots/answer-callback-query.d.cts +41 -0
- package/highlevel/methods/bots/answer-inline-query.d.cts +88 -0
- package/highlevel/methods/bots/answer-pre-checkout-query.d.cts +12 -0
- package/highlevel/methods/bots/delete-my-commands.d.cts +22 -0
- package/highlevel/methods/bots/get-bot-info.d.cts +18 -0
- package/highlevel/methods/bots/get-bot-menu-button.d.cts +7 -0
- package/highlevel/methods/bots/get-callback-answer.d.cts +41 -0
- package/highlevel/methods/bots/get-game-high-scores.d.cts +17 -0
- package/highlevel/methods/bots/get-my-commands.d.cts +21 -0
- package/highlevel/methods/bots/normalize-command-scope.d.cts +5 -0
- package/highlevel/methods/bots/open-webview.d.cts +73 -0
- package/highlevel/methods/bots/prepare-inline-message.d.cts +32 -0
- package/highlevel/methods/bots/set-bot-info.d.cts +23 -0
- package/highlevel/methods/bots/set-bot-menu-button.d.cts +7 -0
- package/highlevel/methods/bots/set-game-score.d.cts +54 -0
- package/highlevel/methods/bots/set-my-commands.d.cts +26 -0
- package/highlevel/methods/bots/set-my-default-rights.d.cts +11 -0
- package/highlevel/methods/bots/toggle-emoji-status-permission.d.cts +11 -0
- package/highlevel/methods/chats/add-chat-members.d.cts +20 -0
- package/highlevel/methods/chats/archive-chats.d.cts +9 -0
- package/highlevel/methods/chats/ban-chat-member.d.cts +24 -0
- package/highlevel/methods/chats/batched-queries.d.cts +11 -0
- package/highlevel/methods/chats/create-channel.d.cts +17 -0
- package/highlevel/methods/chats/create-group.d.cts +33 -0
- package/highlevel/methods/chats/create-supergroup.d.cts +27 -0
- package/highlevel/methods/chats/delete-channel.d.cts +8 -0
- package/highlevel/methods/chats/delete-chat-photo.d.cts +10 -0
- package/highlevel/methods/chats/delete-group.d.cts +8 -0
- package/highlevel/methods/chats/delete-history.d.cts +22 -0
- package/highlevel/methods/chats/delete-user-history.d.cts +16 -0
- package/highlevel/methods/chats/edit-admin-rights.d.cts +16 -0
- package/highlevel/methods/chats/get-chat-event-log.d.cts +61 -0
- package/highlevel/methods/chats/get-chat-member.d.cts +15 -0
- package/highlevel/methods/chats/get-chat-members.d.cts +51 -0
- package/highlevel/methods/chats/get-chat-preview.d.cts +12 -0
- package/highlevel/methods/chats/get-chat.d.cts +11 -0
- package/highlevel/methods/chats/get-full-chat.d.cts +11 -0
- package/highlevel/methods/chats/get-full-user.d.cts +8 -0
- package/highlevel/methods/chats/get-nearby-chats.d.cts +9 -0
- package/highlevel/methods/chats/get-similar-channels.d.cts +12 -0
- package/highlevel/methods/chats/get-user.d.cts +8 -0
- package/highlevel/methods/chats/iter-chat-event-log.d.cts +26 -0
- package/highlevel/methods/chats/iter-chat-members.d.cts +22 -0
- package/highlevel/methods/chats/join-chat.d.cts +14 -0
- package/highlevel/methods/chats/kick-chat-member.d.cts +15 -0
- package/highlevel/methods/chats/leave-chat.d.cts +13 -0
- package/highlevel/methods/chats/mark-chat-unread.d.cts +8 -0
- package/highlevel/methods/chats/open-chat.d.cts +26 -0
- package/highlevel/methods/chats/reorder-usernames.d.cts +8 -0
- package/highlevel/methods/chats/restrict-chat-member.d.cts +28 -0
- package/highlevel/methods/chats/save-draft.d.cts +10 -0
- package/highlevel/methods/chats/set-chat-color.d.cts +38 -0
- package/highlevel/methods/chats/set-chat-default-permissions.d.cts +16 -0
- package/highlevel/methods/chats/set-chat-description.d.cts +11 -0
- package/highlevel/methods/chats/set-chat-photo.d.cts +20 -0
- package/highlevel/methods/chats/set-chat-title.d.cts +11 -0
- package/highlevel/methods/chats/set-chat-ttl.d.cts +9 -0
- package/highlevel/methods/chats/set-chat-username.d.cts +11 -0
- package/highlevel/methods/chats/set-slow-mode.d.cts +12 -0
- package/highlevel/methods/chats/toggle-content-protection.d.cts +9 -0
- package/highlevel/methods/chats/toggle-fragment-username.d.cts +20 -0
- package/highlevel/methods/chats/toggle-join-requests.d.cts +12 -0
- package/highlevel/methods/chats/toggle-join-to-send.d.cts +12 -0
- package/highlevel/methods/chats/unarchive-chats.d.cts +9 -0
- package/highlevel/methods/chats/unban-chat-member.d.cts +16 -0
- package/highlevel/methods/contacts/add-contact.d.cts +28 -0
- package/highlevel/methods/contacts/delete-contacts.d.cts +12 -0
- package/highlevel/methods/contacts/get-contacts.d.cts +6 -0
- package/highlevel/methods/contacts/import-contacts.d.cts +9 -0
- package/highlevel/methods/dialogs/create-folder.d.cts +13 -0
- package/highlevel/methods/dialogs/delete-folder.d.cts +8 -0
- package/highlevel/methods/dialogs/edit-folder.d.cts +18 -0
- package/highlevel/methods/dialogs/find-dialogs.d.cts +12 -0
- package/highlevel/methods/dialogs/find-folder.d.cts +19 -0
- package/highlevel/methods/dialogs/get-chatlist-preview.d.cts +8 -0
- package/highlevel/methods/dialogs/get-folders.d.cts +9 -0
- package/highlevel/methods/dialogs/get-peer-dialogs.d.cts +10 -0
- package/highlevel/methods/dialogs/iter-dialogs.d.cts +103 -0
- package/highlevel/methods/dialogs/join-chatlist.d.cts +15 -0
- package/highlevel/methods/dialogs/set-folders-order.d.cts +7 -0
- package/highlevel/methods/files/download-buffer.d.cts +11 -0
- package/highlevel/methods/files/download-file.d.cts +1 -0
- package/highlevel/methods/files/download-iterable.cjs +9 -7
- package/highlevel/methods/files/download-iterable.d.cts +10 -0
- package/highlevel/methods/files/download-iterable.js +9 -7
- package/highlevel/methods/files/download-node-stream.d.cts +1 -0
- package/highlevel/methods/files/download-stream.d.cts +9 -0
- package/highlevel/methods/files/normalize-file-to-document.d.cts +9 -0
- package/highlevel/methods/files/normalize-input-file.d.cts +13 -0
- package/highlevel/methods/files/normalize-input-media.d.cts +12 -0
- package/highlevel/methods/files/upload-file.d.cts +72 -0
- package/highlevel/methods/files/upload-media.d.cts +28 -0
- package/highlevel/methods/forums/create-forum-topic.d.cts +36 -0
- package/highlevel/methods/forums/delete-forum-topic-history.d.cts +15 -0
- package/highlevel/methods/forums/edit-forum-topic.d.cts +34 -0
- package/highlevel/methods/forums/get-forum-topics-by-id.d.cts +9 -0
- package/highlevel/methods/forums/get-forum-topics.d.cts +28 -0
- package/highlevel/methods/forums/iter-forum-topics.d.cts +20 -0
- package/highlevel/methods/forums/reorder-pinned-forum-topics.d.cts +19 -0
- package/highlevel/methods/forums/toggle-forum-topic-closed.d.cts +22 -0
- package/highlevel/methods/forums/toggle-forum-topic-pinned.d.cts +15 -0
- package/highlevel/methods/forums/toggle-forum.d.cts +11 -0
- package/highlevel/methods/forums/toggle-general-topic-hidden.d.cts +20 -0
- package/highlevel/methods/invite-links/create-invite-link.d.cts +38 -0
- package/highlevel/methods/invite-links/edit-invite-link.d.cts +36 -0
- package/highlevel/methods/invite-links/export-invite-link.d.cts +12 -0
- package/highlevel/methods/invite-links/get-invite-link-members.d.cts +45 -0
- package/highlevel/methods/invite-links/get-invite-link.d.cts +9 -0
- package/highlevel/methods/invite-links/get-invite-links.d.cts +39 -0
- package/highlevel/methods/invite-links/get-primary-invite-link.d.cts +8 -0
- package/highlevel/methods/invite-links/hide-all-join-requests.d.cts +13 -0
- package/highlevel/methods/invite-links/hide-join-request.d.cts +13 -0
- package/highlevel/methods/invite-links/iter-invite-link-members.d.cts +25 -0
- package/highlevel/methods/invite-links/iter-invite-links.d.cts +27 -0
- package/highlevel/methods/invite-links/revoke-invite-link.d.cts +13 -0
- package/highlevel/methods/messages/_business-connection.d.cts +8 -0
- package/highlevel/methods/messages/close-poll.d.cts +15 -0
- package/highlevel/methods/messages/delete-messages.d.cts +29 -0
- package/highlevel/methods/messages/delete-scheduled-messages.d.cts +9 -0
- package/highlevel/methods/messages/edit-inline-message.d.cts +51 -0
- package/highlevel/methods/messages/edit-message.d.cts +55 -0
- package/highlevel/methods/messages/find-in-update.d.cts +13 -0
- package/highlevel/methods/messages/forward-messages.d.cts +84 -0
- package/highlevel/methods/messages/get-all-scheduled-messages.d.cts +8 -0
- package/highlevel/methods/messages/get-available-effects.d.cts +6 -0
- package/highlevel/methods/messages/get-callback-query-message.d.cts +14 -0
- package/highlevel/methods/messages/get-discussion-message.d.cts +21 -0
- package/highlevel/methods/messages/get-fact-check.d.cts +11 -0
- package/highlevel/methods/messages/get-history.d.cts +59 -0
- package/highlevel/methods/messages/get-message-by-link.d.cts +6 -0
- package/highlevel/methods/messages/get-message-group.d.cts +9 -0
- package/highlevel/methods/messages/get-message-reactions.d.cts +28 -0
- package/highlevel/methods/messages/get-messages-unsafe.d.cts +19 -0
- package/highlevel/methods/messages/get-messages.d.cts +17 -0
- package/highlevel/methods/messages/get-reaction-users.d.cts +24 -0
- package/highlevel/methods/messages/get-reply-to.d.cts +10 -0
- package/highlevel/methods/messages/get-scheduled-messages.d.cts +13 -0
- package/highlevel/methods/messages/iter-history.d.cts +23 -0
- package/highlevel/methods/messages/iter-reaction-users.d.cts +26 -0
- package/highlevel/methods/messages/iter-search-global.d.cts +27 -0
- package/highlevel/methods/messages/iter-search-messages.d.cts +26 -0
- package/highlevel/methods/messages/pin-message.d.cts +21 -0
- package/highlevel/methods/messages/read-history.d.cts +24 -0
- package/highlevel/methods/messages/read-reactions.d.cts +14 -0
- package/highlevel/methods/messages/search-global.d.cts +51 -0
- package/highlevel/methods/messages/search-hashtag.d.cts +44 -0
- package/highlevel/methods/messages/search-messages.d.cts +93 -0
- package/highlevel/methods/messages/send-answer.d.cts +12 -0
- package/highlevel/methods/messages/send-comment.d.cts +39 -0
- package/highlevel/methods/messages/send-common.d.cts +122 -0
- package/highlevel/methods/messages/send-copy-group.d.cts +21 -0
- package/highlevel/methods/messages/send-copy.d.cts +32 -0
- package/highlevel/methods/messages/send-media-group.d.cts +35 -0
- package/highlevel/methods/messages/send-media.d.cts +48 -0
- package/highlevel/methods/messages/send-paid-reaction.d.cts +24 -0
- package/highlevel/methods/messages/send-quote.d.cts +33 -0
- package/highlevel/methods/messages/send-reaction.d.cts +21 -0
- package/highlevel/methods/messages/send-reply.d.cts +12 -0
- package/highlevel/methods/messages/send-scheduled.d.cts +14 -0
- package/highlevel/methods/messages/send-text.d.cts +31 -0
- package/highlevel/methods/messages/send-text.test.d.cts +1 -0
- package/highlevel/methods/messages/send-typing.d.cts +32 -0
- package/highlevel/methods/messages/send-vote.d.cts +15 -0
- package/highlevel/methods/messages/set-typing.d.cts +33 -0
- package/highlevel/methods/messages/translate-message.d.cts +11 -0
- package/highlevel/methods/messages/translate-text.d.cts +9 -0
- package/highlevel/methods/messages/unpin-all-messages.d.cts +18 -0
- package/highlevel/methods/messages/unpin-message.d.cts +12 -0
- package/highlevel/methods/misc/chain-id.d.cts +4 -0
- package/highlevel/methods/misc/get-collectible-info.d.cts +6 -0
- package/highlevel/methods/misc/init-takeout-session.d.cts +9 -0
- package/highlevel/methods/misc/normalize-privacy-rules.d.cts +8 -0
- package/highlevel/methods/misc/normalize-text.d.cts +5 -0
- package/highlevel/methods/misc/with-params.d.cts +10 -0
- package/highlevel/methods/password/change-cloud-password.d.cts +12 -0
- package/highlevel/methods/password/enable-cloud-password.d.cts +17 -0
- package/highlevel/methods/password/password-email.d.cts +15 -0
- package/highlevel/methods/password/remove-cloud-password.d.cts +7 -0
- package/highlevel/methods/premium/accept-star-gift.d.cts +16 -0
- package/highlevel/methods/premium/apply-boost.d.cts +8 -0
- package/highlevel/methods/premium/can-apply-boost.d.cts +29 -0
- package/highlevel/methods/premium/create-business-chat-link.d.cts +12 -0
- package/highlevel/methods/premium/edit-business-chat-link.d.cts +20 -0
- package/highlevel/methods/premium/get-boost-stats.d.cts +9 -0
- package/highlevel/methods/premium/get-boosts.d.cts +18 -0
- package/highlevel/methods/premium/get-business-chat-links.d.cts +6 -0
- package/highlevel/methods/premium/get-business-connection.d.cts +8 -0
- package/highlevel/methods/premium/get-my-boost-slots.d.cts +9 -0
- package/highlevel/methods/premium/get-star-gift-options.d.cts +6 -0
- package/highlevel/methods/premium/get-star-gifts.d.cts +22 -0
- package/highlevel/methods/premium/get-stars-transactions.d.cts +34 -0
- package/highlevel/methods/premium/iter-boosters.d.cts +24 -0
- package/highlevel/methods/premium/iter-star-gifts.d.cts +26 -0
- package/highlevel/methods/premium/iter-stars-transactions.d.cts +29 -0
- package/highlevel/methods/premium/send-star-gift.d.cts +35 -0
- package/highlevel/methods/premium/set-business-intro.d.cts +22 -0
- package/highlevel/methods/premium/set-business-work-hours.d.cts +18 -0
- package/highlevel/methods/stickers/_utils.d.cts +10 -0
- package/highlevel/methods/stickers/add-sticker-to-set.d.cts +21 -0
- package/highlevel/methods/stickers/create-sticker-set.d.cts +66 -0
- package/highlevel/methods/stickers/delete-sticker-from-set.d.cts +15 -0
- package/highlevel/methods/stickers/get-custom-emojis.d.cts +14 -0
- package/highlevel/methods/stickers/get-installed-stickers.d.cts +10 -0
- package/highlevel/methods/stickers/get-my-sticker-sets.d.cts +13 -0
- package/highlevel/methods/stickers/get-sticker-set.d.cts +8 -0
- package/highlevel/methods/stickers/move-sticker-in-set.d.cts +17 -0
- package/highlevel/methods/stickers/replace-sticker-in-set.d.cts +24 -0
- package/highlevel/methods/stickers/set-chat-sticker-set.d.cts +11 -0
- package/highlevel/methods/stickers/set-sticker-set-thumb.d.cts +20 -0
- package/highlevel/methods/stories/can-send-story.d.cts +13 -0
- package/highlevel/methods/stories/delete-stories.d.cts +20 -0
- package/highlevel/methods/stories/edit-story.d.cts +38 -0
- package/highlevel/methods/stories/find-in-update.d.cts +5 -0
- package/highlevel/methods/stories/get-all-stories.d.cts +15 -0
- package/highlevel/methods/stories/get-peer-stories.d.cts +8 -0
- package/highlevel/methods/stories/get-profile-stories.d.cts +25 -0
- package/highlevel/methods/stories/get-stories-by-id.d.cts +10 -0
- package/highlevel/methods/stories/get-stories-interactions.d.cts +9 -0
- package/highlevel/methods/stories/get-story-link.d.cts +11 -0
- package/highlevel/methods/stories/get-story-viewers.d.cts +33 -0
- package/highlevel/methods/stories/hide-my-stories-views.d.cts +21 -0
- package/highlevel/methods/stories/increment-stories-views.d.cts +13 -0
- package/highlevel/methods/stories/iter-all-stories.d.cts +16 -0
- package/highlevel/methods/stories/iter-profile-stories.d.cts +21 -0
- package/highlevel/methods/stories/iter-story-viewers.d.cts +22 -0
- package/highlevel/methods/stories/read-stories.d.cts +11 -0
- package/highlevel/methods/stories/send-story-reaction.d.cts +14 -0
- package/highlevel/methods/stories/send-story.d.cts +51 -0
- package/highlevel/methods/stories/toggle-peer-stories-archived.d.cts +8 -0
- package/highlevel/methods/stories/toggle-stories-pinned.d.cts +24 -0
- package/highlevel/methods/users/block-user.d.cts +8 -0
- package/highlevel/methods/users/delete-profile-photos.d.cts +9 -0
- package/highlevel/methods/users/edit-close-friends.d.cts +14 -0
- package/highlevel/methods/users/get-common-chats.d.cts +9 -0
- package/highlevel/methods/users/get-global-ttl.d.cts +5 -0
- package/highlevel/methods/users/get-me.d.cts +6 -0
- package/highlevel/methods/users/get-my-username.d.cts +8 -0
- package/highlevel/methods/users/get-profile-photo.d.cts +11 -0
- package/highlevel/methods/users/get-profile-photos.d.cts +22 -0
- package/highlevel/methods/users/get-users.d.cts +12 -0
- package/highlevel/methods/users/get-users.test.d.cts +1 -0
- package/highlevel/methods/users/is-peer-available.d.cts +20 -0
- package/highlevel/methods/users/iter-profile-photos.d.cts +23 -0
- package/highlevel/methods/users/resolve-peer-many.d.cts +26 -0
- package/highlevel/methods/users/resolve-peer.d.cts +20 -0
- package/highlevel/methods/users/resolve-peer.test.d.cts +1 -0
- package/highlevel/methods/users/set-emoji-status.d.cts +32 -0
- package/highlevel/methods/users/set-global-ttl.d.cts +8 -0
- package/highlevel/methods/users/set-my-birthday.d.cts +12 -0
- package/highlevel/methods/users/set-my-profile-photo.d.cts +16 -0
- package/highlevel/methods/users/set-my-username.d.cts +11 -0
- package/highlevel/methods/users/set-online.d.cts +19 -0
- package/highlevel/methods/users/unblock-user.d.cts +8 -0
- package/highlevel/methods/users/update-profile.d.cts +23 -0
- package/highlevel/methods.d.cts +291 -0
- package/highlevel/storage/index.d.cts +4 -0
- package/highlevel/storage/provider.d.cts +7 -0
- package/highlevel/storage/repository/peers.d.cts +44 -0
- package/highlevel/storage/repository/ref-messages.d.cts +20 -0
- package/highlevel/storage/service/current-user.d.cts +23 -0
- package/highlevel/storage/service/peers.d.cts +23 -0
- package/highlevel/storage/service/ref-messages.d.cts +15 -0
- package/highlevel/storage/service/updates.d.cts +16 -0
- package/highlevel/storage/storage.d.cts +27 -0
- package/highlevel/types/auth/index.d.cts +1 -0
- package/highlevel/types/auth/sent-code.d.cts +56 -0
- package/highlevel/types/bots/command-scope/index.d.cts +10 -0
- package/highlevel/types/bots/command-scope/inner.d.cts +54 -0
- package/highlevel/types/bots/game-high-score.d.cts +23 -0
- package/highlevel/types/bots/index.d.cts +6 -0
- package/highlevel/types/bots/inline-message/factories.d.cts +47 -0
- package/highlevel/types/bots/inline-message/index.d.cts +3 -0
- package/highlevel/types/bots/inline-message/types.d.cts +114 -0
- package/highlevel/types/bots/inline-result/factories.d.cts +97 -0
- package/highlevel/types/bots/inline-result/index.d.cts +3 -0
- package/highlevel/types/bots/inline-result/types.d.cts +417 -0
- package/highlevel/types/bots/keyboards/builder.d.cts +38 -0
- package/highlevel/types/bots/keyboards/builder.test.d.cts +1 -0
- package/highlevel/types/bots/keyboards/factories.d.cts +208 -0
- package/highlevel/types/bots/keyboards/index.d.cts +15 -0
- package/highlevel/types/bots/keyboards/keyboards.test.d.cts +1 -0
- package/highlevel/types/bots/keyboards/types.d.cts +34 -0
- package/highlevel/types/bots/webview.d.cts +114 -0
- package/highlevel/types/calls/discard-reason.d.cts +13 -0
- package/highlevel/types/calls/index.d.cts +1 -0
- package/highlevel/types/conversation.d.cts +210 -0
- package/highlevel/types/errors.d.cts +33 -0
- package/highlevel/types/files/file-location.d.cts +48 -0
- package/highlevel/types/files/index.d.cts +4 -0
- package/highlevel/types/files/uploaded-file.d.cts +24 -0
- package/highlevel/types/files/utils.d.cts +89 -0
- package/highlevel/types/files/web-document.d.cts +32 -0
- package/highlevel/types/index.d.cts +15 -0
- package/highlevel/types/media/audio.d.cts +31 -0
- package/highlevel/types/media/contact.d.cts +31 -0
- package/highlevel/types/media/dice.d.cts +155 -0
- package/highlevel/types/media/document-utils.d.cts +11 -0
- package/highlevel/types/media/document.d.cts +75 -0
- package/highlevel/types/media/extended-media.d.cts +20 -0
- package/highlevel/types/media/game.d.cts +38 -0
- package/highlevel/types/media/index.d.cts +19 -0
- package/highlevel/types/media/input-media/factories.d.cts +142 -0
- package/highlevel/types/media/input-media/index.d.cts +3 -0
- package/highlevel/types/media/input-media/types.d.cts +520 -0
- package/highlevel/types/media/invoice.d.cts +89 -0
- package/highlevel/types/media/location.d.cts +83 -0
- package/highlevel/types/media/paid-media.d.cts +33 -0
- package/highlevel/types/media/photo.d.cts +72 -0
- package/highlevel/types/media/poll.d.cts +110 -0
- package/highlevel/types/media/sticker.d.cts +123 -0
- package/highlevel/types/media/story.d.cts +33 -0
- package/highlevel/types/media/thumbnail.d.cts +70 -0
- package/highlevel/types/media/venue.d.cts +58 -0
- package/highlevel/types/media/video.d.cts +48 -0
- package/highlevel/types/media/voice.d.cts +23 -0
- package/highlevel/types/media/web-page.d.cts +151 -0
- package/highlevel/types/messages/dialog.d.cts +110 -0
- package/highlevel/types/messages/draft-message.d.cts +29 -0
- package/highlevel/types/messages/fact-check.d.cts +30 -0
- package/highlevel/types/messages/index.d.cts +14 -0
- package/highlevel/types/messages/input-message-id.d.cts +20 -0
- package/highlevel/types/messages/message-action.d.cts +420 -0
- package/highlevel/types/messages/message-effect.d.cts +20 -0
- package/highlevel/types/messages/message-entity.d.cts +89 -0
- package/highlevel/types/messages/message-forward.d.cts +39 -0
- package/highlevel/types/messages/message-media.d.cts +23 -0
- package/highlevel/types/messages/message-reactions.d.cts +31 -0
- package/highlevel/types/messages/message-replies.d.cts +42 -0
- package/highlevel/types/messages/message.d.cts +249 -0
- package/highlevel/types/messages/replied-message.d.cts +103 -0
- package/highlevel/types/messages/search-filters.d.cts +82 -0
- package/highlevel/types/misc/app-config.d.cts +887 -0
- package/highlevel/types/misc/collectible-info.d.cts +27 -0
- package/highlevel/types/misc/entities.d.cts +22 -0
- package/highlevel/types/misc/index.d.cts +6 -0
- package/highlevel/types/misc/input-privacy-rule/allow.d.cts +22 -0
- package/highlevel/types/misc/input-privacy-rule/bundle.d.cts +3 -0
- package/highlevel/types/misc/input-privacy-rule/disallow.d.cts +20 -0
- package/highlevel/types/misc/input-privacy-rule/index.d.cts +3 -0
- package/highlevel/types/misc/input-privacy-rule/types.d.cts +11 -0
- package/highlevel/types/misc/sticker-set.d.cts +154 -0
- package/highlevel/types/misc/takeout-session.d.cts +49 -0
- package/highlevel/types/peers/bot-info.d.cts +21 -0
- package/highlevel/types/peers/chat-colors.d.cts +25 -0
- package/highlevel/types/peers/chat-event/actions.d.cts +279 -0
- package/highlevel/types/peers/chat-event/filters.d.cts +10 -0
- package/highlevel/types/peers/chat-event/index.d.cts +27 -0
- package/highlevel/types/peers/chat-invite-link-member.d.cts +33 -0
- package/highlevel/types/peers/chat-invite-link.d.cts +72 -0
- package/highlevel/types/peers/chat-location.d.cts +17 -0
- package/highlevel/types/peers/chat-member.d.cts +86 -0
- package/highlevel/types/peers/chat-permissions.d.cts +127 -0
- package/highlevel/types/peers/chat-photo.d.cts +39 -0
- package/highlevel/types/peers/chat-preview.d.cts +55 -0
- package/highlevel/types/peers/chat.d.cts +250 -0
- package/highlevel/types/peers/chatlist-preview.d.cts +21 -0
- package/highlevel/types/peers/forum-topic.d.cts +96 -0
- package/highlevel/types/peers/full-chat.cjs +1 -1
- package/highlevel/types/peers/full-chat.d.cts +161 -0
- package/highlevel/types/peers/full-chat.js +1 -1
- package/highlevel/types/peers/full-user.d.cts +115 -0
- package/highlevel/types/peers/index.d.cts +19 -0
- package/highlevel/types/peers/index.d.ts +1 -0
- package/highlevel/types/peers/peer.d.cts +49 -0
- package/highlevel/types/peers/peers-index.d.cts +15 -0
- package/highlevel/types/peers/peers-index.test.d.cts +1 -0
- package/highlevel/types/peers/typing-status.d.cts +26 -0
- package/highlevel/types/peers/user.d.cts +268 -0
- package/highlevel/types/peers/user.test.d.cts +1 -0
- package/highlevel/types/premium/boost-slot.d.cts +37 -0
- package/highlevel/types/premium/boost-stats.d.cts +54 -0
- package/highlevel/types/premium/boost.d.cts +56 -0
- package/highlevel/types/premium/boost.d.ts +1 -2
- package/highlevel/types/premium/business-account.d.cts +19 -0
- package/highlevel/types/premium/business-chat-link.d.cts +19 -0
- package/highlevel/types/premium/business-connection.d.cts +23 -0
- package/highlevel/types/premium/business-intro.d.cts +22 -0
- package/highlevel/types/premium/business-location.d.cts +10 -0
- package/highlevel/types/premium/business-work-hours.d.cts +42 -0
- package/highlevel/types/premium/business-work-hours.test.d.cts +1 -0
- package/highlevel/types/premium/index.d.cts +12 -0
- package/highlevel/types/premium/index.d.ts +1 -0
- package/highlevel/types/premium/stars-gift.d.cts +68 -0
- package/highlevel/types/premium/stars-status.d.cts +16 -0
- package/highlevel/types/premium/stars-status.d.ts +1 -1
- package/highlevel/types/premium/stars-transaction.cjs +7 -3
- package/highlevel/types/premium/stars-transaction.d.cts +134 -0
- package/highlevel/types/premium/stars-transaction.d.ts +1 -1
- package/highlevel/types/premium/stars-transaction.js +7 -3
- package/highlevel/types/reactions/emoji-status.d.cts +12 -0
- package/highlevel/types/reactions/index.d.cts +4 -0
- package/highlevel/types/reactions/index.d.ts +2 -0
- package/highlevel/types/reactions/peer-reaction.d.cts +53 -0
- package/highlevel/types/reactions/reaction-count.d.cts +25 -0
- package/highlevel/types/reactions/types.d.cts +16 -0
- package/highlevel/types/stories/all-stories.d.cts +28 -0
- package/highlevel/types/stories/index.d.cts +7 -0
- package/highlevel/types/stories/interactive/base.d.cts +16 -0
- package/highlevel/types/stories/interactive/channel-post.d.cts +17 -0
- package/highlevel/types/stories/interactive/index.d.cts +12 -0
- package/highlevel/types/stories/interactive/input.d.cts +68 -0
- package/highlevel/types/stories/interactive/location.d.cts +15 -0
- package/highlevel/types/stories/interactive/reaction.d.cts +21 -0
- package/highlevel/types/stories/interactive/url.d.cts +11 -0
- package/highlevel/types/stories/interactive/venue.d.cts +28 -0
- package/highlevel/types/stories/interactive/weather.d.cts +15 -0
- package/highlevel/types/stories/peer-stories.d.cts +20 -0
- package/highlevel/types/stories/stealth-mode.d.cts +9 -0
- package/highlevel/types/stories/story-interactions.d.cts +34 -0
- package/highlevel/types/stories/story-viewer.d.cts +75 -0
- package/highlevel/types/stories/story.d.cts +79 -0
- package/highlevel/types/updates/bot-chat-join-request.d.cts +42 -0
- package/highlevel/types/updates/bot-reaction.d.cts +71 -0
- package/highlevel/types/updates/bot-stopped.d.cts +28 -0
- package/highlevel/types/updates/business-message.d.cts +18 -0
- package/highlevel/types/updates/callback-query.d.cts +95 -0
- package/highlevel/types/updates/chat-join-request.d.cts +30 -0
- package/highlevel/types/updates/chat-member-update.cjs +1 -0
- package/highlevel/types/updates/chat-member-update.d.cts +76 -0
- package/highlevel/types/updates/chat-member-update.js +1 -0
- package/highlevel/types/updates/chosen-inline-result.d.cts +50 -0
- package/highlevel/types/updates/delete-business-message-update.d.cts +21 -0
- package/highlevel/types/updates/delete-message-update.d.cts +16 -0
- package/highlevel/types/updates/delete-story-update.d.cts +18 -0
- package/highlevel/types/updates/history-read-update.d.cts +39 -0
- package/highlevel/types/updates/index.d.cts +107 -0
- package/highlevel/types/updates/inline-query.d.cts +42 -0
- package/highlevel/types/updates/parse-update.d.cts +4 -0
- package/highlevel/types/updates/poll-update.d.cts +39 -0
- package/highlevel/types/updates/poll-vote.d.cts +52 -0
- package/highlevel/types/updates/pre-checkout-query.d.cts +36 -0
- package/highlevel/types/updates/story-update.d.cts +22 -0
- package/highlevel/types/updates/user-status-update.d.cts +28 -0
- package/highlevel/types/updates/user-typing-update.d.cts +31 -0
- package/highlevel/types/utils.d.cts +12 -0
- package/highlevel/updates/index.d.cts +2 -0
- package/highlevel/updates/manager.d.cts +121 -0
- package/highlevel/updates/parsed.d.cts +26 -0
- package/highlevel/updates/types.d.cts +147 -0
- package/highlevel/updates/utils.d.cts +21 -0
- package/highlevel/utils/convert-file-id.d.cts +46 -0
- package/highlevel/utils/entities.d.cts +19 -0
- package/highlevel/utils/entities.test.d.cts +1 -0
- package/highlevel/utils/file-type.d.cts +2 -0
- package/highlevel/utils/file-type.test.d.cts +1 -0
- package/highlevel/utils/file-utils.d.cts +31 -0
- package/highlevel/utils/file-utils.test.d.cts +1 -0
- package/highlevel/utils/index.d.cts +11 -0
- package/highlevel/utils/inline-utils.d.cts +14 -0
- package/highlevel/utils/inline-utils.test.d.cts +1 -0
- package/highlevel/utils/inspectable.d.cts +9 -0
- package/highlevel/utils/inspectable.test.d.cts +1 -0
- package/highlevel/utils/memoize.d.cts +1 -0
- package/highlevel/utils/memoize.test.d.cts +1 -0
- package/highlevel/utils/misc-utils.d.cts +12 -0
- package/highlevel/utils/peer-utils.d.cts +11 -0
- package/highlevel/utils/peer-utils.test.d.cts +1 -0
- package/highlevel/utils/query-batcher.d.cts +49 -0
- package/highlevel/utils/query-batcher.test.d.cts +1 -0
- package/highlevel/utils/rps-meter.d.cts +9 -0
- package/highlevel/utils/stream-utils.d.cts +1 -0
- package/highlevel/utils/string-session.d.cts +16 -0
- package/highlevel/utils/string-session.test.d.cts +1 -0
- package/highlevel/utils/voice-utils.d.cts +14 -0
- package/highlevel/utils/voice-utils.test.d.cts +1 -0
- package/highlevel/worker/app-config.d.cts +9 -0
- package/highlevel/worker/errors.d.cts +8 -0
- package/highlevel/worker/index.d.cts +3 -0
- package/highlevel/worker/invoker.d.cts +18 -0
- package/highlevel/worker/port.d.cts +60 -0
- package/highlevel/worker/protocol.d.cts +57 -0
- package/highlevel/worker/storage.d.cts +39 -0
- package/highlevel/worker/worker.d.cts +15 -0
- package/index.cjs +8 -0
- package/index.d.cts +10 -0
- package/index.js +8 -0
- package/methods.d.cts +1 -0
- package/network/auth-key.d.cts +21 -0
- package/network/auth-key.test.d.cts +1 -0
- package/network/authorization.d.cts +9 -0
- package/network/client.d.cts +218 -0
- package/network/config-manager.d.cts +19 -0
- package/network/config-manager.test.d.cts +1 -0
- package/network/index.d.cts +6 -0
- package/network/middlewares/bundle.d.cts +3 -0
- package/network/middlewares/default.d.cts +8 -0
- package/network/middlewares/flood-waiter.d.cts +37 -0
- package/network/middlewares/index.d.cts +4 -0
- package/network/middlewares/index.d.ts +2 -0
- package/network/middlewares/internal-errors.d.cts +17 -0
- package/network/middlewares/on-error.d.cts +30 -0
- package/network/middlewares/on-method.d.cts +39 -0
- package/network/mtproto-session.d.cts +127 -0
- package/network/mtproxy/_fake-tls.d.cts +22 -0
- package/network/mtproxy/index.d.cts +42 -0
- package/network/multi-session-connection.cjs +25 -43
- package/network/multi-session-connection.d.cts +43 -0
- package/network/multi-session-connection.d.ts +5 -5
- package/network/multi-session-connection.js +25 -43
- package/network/network-manager.cjs +7 -20
- package/network/network-manager.d.cts +256 -0
- package/network/network-manager.js +7 -20
- package/network/persistent-connection.cjs +8 -0
- package/network/persistent-connection.d.cts +55 -0
- package/network/persistent-connection.d.ts +3 -1
- package/network/persistent-connection.js +8 -0
- package/network/server-salt.d.cts +12 -0
- package/network/session-connection.cjs +35 -18
- package/network/session-connection.d.cts +94 -0
- package/network/session-connection.d.ts +5 -3
- package/network/session-connection.js +35 -18
- package/network/transports/abstract.d.cts +47 -0
- package/network/transports/index.d.cts +3 -0
- package/network/transports/intermediate.d.cts +23 -0
- package/network/transports/intermediate.test.d.cts +1 -0
- package/network/transports/obfuscated.d.cts +23 -0
- package/network/transports/obfuscated.test.d.cts +1 -0
- package/package.json +13 -13
- package/storage/driver.d.cts +58 -0
- package/storage/index.d.cts +6 -0
- package/storage/memory/driver.d.cts +6 -0
- package/storage/memory/index.d.cts +22 -0
- package/storage/memory/memory.test.d.cts +1 -0
- package/storage/memory/repository/auth-keys.d.cts +19 -0
- package/storage/memory/repository/kv.d.cts +11 -0
- package/storage/memory/repository/peers.d.cts +18 -0
- package/storage/memory/repository/ref-messages.d.cts +16 -0
- package/storage/provider.d.cts +10 -0
- package/storage/repository/auth-keys.d.cts +41 -0
- package/storage/repository/index.d.cts +2 -0
- package/storage/repository/key-value.d.cts +10 -0
- package/storage/service/auth-keys.d.cts +9 -0
- package/storage/service/auth-keys.test.d.cts +1 -0
- package/storage/service/base.d.cts +19 -0
- package/storage/service/default-dcs.d.cts +10 -0
- package/storage/service/future-salts.d.cts +11 -0
- package/storage/service/updates.test.d.cts +1 -0
- package/storage/service/utils.test-utils.d.cts +2 -0
- package/storage/sqlite/driver.d.cts +24 -0
- package/storage/sqlite/index.d.cts +17 -0
- package/storage/sqlite/repository/auth-keys.d.cts +20 -0
- package/storage/sqlite/repository/kv.d.cts +14 -0
- package/storage/sqlite/repository/peers.d.cts +19 -0
- package/storage/sqlite/repository/ref-messages.d.cts +16 -0
- package/storage/sqlite/types.d.cts +18 -0
- package/storage/storage.d.cts +55 -0
- package/types/errors.d.cts +53 -0
- package/types/index.d.cts +4 -0
- package/types/peers.d.cts +4 -0
- package/types/platform.d.cts +15 -0
- package/types/utils.d.cts +9 -0
- package/utils/abort-signal.d.cts +1 -0
- package/utils/bigint-utils.d.cts +18 -0
- package/utils/bigint-utils.test.d.cts +1 -0
- package/utils/binary/asn1-parser.d.cts +17 -0
- package/utils/crypto/abstract.d.cts +29 -0
- package/utils/crypto/factorization.d.cts +6 -0
- package/utils/crypto/factorization.test.d.cts +1 -0
- package/utils/crypto/index.d.cts +6 -0
- package/utils/crypto/keys.d.cts +27 -0
- package/utils/crypto/keys.test.d.cts +1 -0
- package/utils/crypto/miller-rabin.d.cts +2 -0
- package/utils/crypto/miller-rabin.test.d.cts +1 -0
- package/utils/crypto/mtproto.d.cts +31 -0
- package/utils/crypto/mtproto.test.d.cts +1 -0
- package/utils/crypto/password.d.cts +29 -0
- package/utils/crypto/password.test.d.cts +1 -0
- package/utils/dcs.d.cts +18 -0
- package/utils/early-timer.d.cts +41 -0
- package/utils/error-reporting.d.cts +3 -0
- package/utils/function-utils.d.cts +22 -0
- package/utils/function-utils.test.d.cts +1 -0
- package/utils/index.d.cts +20 -0
- package/utils/linked-list.d.cts +21 -0
- package/utils/linked-list.test.d.cts +1 -0
- package/utils/links/bots.d.cts +72 -0
- package/utils/links/bots.test.d.cts +1 -0
- package/utils/links/bundle.d.cts +7 -0
- package/utils/links/calls.d.cts +17 -0
- package/utils/links/chat.d.cts +47 -0
- package/utils/links/chat.test.d.cts +1 -0
- package/utils/links/common.d.cts +31 -0
- package/utils/links/index.d.cts +2 -0
- package/utils/links/misc.d.cts +26 -0
- package/utils/links/misc.test.d.cts +1 -0
- package/utils/links/proxy.d.cts +18 -0
- package/utils/links/proxy.test.d.cts +1 -0
- package/utils/links/stickers.d.cts +10 -0
- package/utils/links/user.d.cts +28 -0
- package/utils/links/user.test.d.cts +1 -0
- package/utils/logger.d.cts +54 -0
- package/utils/logger.test.d.cts +1 -0
- package/utils/long-utils.d.cts +67 -0
- package/utils/long-utils.test.d.cts +1 -0
- package/utils/misc-utils.d.cts +2 -0
- package/utils/peer-utils.d.cts +29 -0
- package/utils/peer-utils.test.d.cts +1 -0
- package/utils/sorted-array.d.cts +17 -0
- package/utils/sorted-array.test.d.cts +1 -0
- package/utils/timers.d.cts +1 -0
- package/utils/tl-json.d.cts +13 -0
- package/utils/tl-json.test.d.cts +1 -0
- package/utils/type-assertions.d.cts +29 -0
- package/utils/type-assertions.test.d.cts +1 -0
- package/utils.d.cts +1 -0
- package/worker.d.cts +1 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { MessageEntity } from '../messages/message-entity.js';
|
|
3
|
+
import { EmojiStatus } from '../reactions/emoji-status.js';
|
|
4
|
+
import { ChatColors } from './chat-colors.js';
|
|
5
|
+
import { ChatPermissions } from './chat-permissions.js';
|
|
6
|
+
import { ChatPhoto } from './chat-photo.js';
|
|
7
|
+
/**
|
|
8
|
+
* Chat type. Can be:
|
|
9
|
+
* - `group`: Legacy/basic group
|
|
10
|
+
* - `supergroup`: Supergroup
|
|
11
|
+
* - `channel`: Broadcast channel
|
|
12
|
+
* - `gigagroup`: Gigagroup aka Broadcast group
|
|
13
|
+
*/
|
|
14
|
+
export type ChatType = 'group' | 'supergroup' | 'channel' | 'gigagroup';
|
|
15
|
+
/**
|
|
16
|
+
* A chat.
|
|
17
|
+
*/
|
|
18
|
+
export declare class Chat {
|
|
19
|
+
readonly type: "chat";
|
|
20
|
+
/**
|
|
21
|
+
* Raw peer object that this {@link Chat} represents.
|
|
22
|
+
*/
|
|
23
|
+
readonly raw: tl.RawChat | tl.RawChannel | tl.RawChatForbidden | tl.RawChannelForbidden;
|
|
24
|
+
constructor(peer: tl.TypeChat);
|
|
25
|
+
/** Marked ID of this chat */
|
|
26
|
+
get id(): number;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this chat's information is incomplete.
|
|
29
|
+
*
|
|
30
|
+
* This usually only happens in large chats, where
|
|
31
|
+
* the server sometimes sends only a part of the chat's
|
|
32
|
+
* information. Basic info like name and profile photo
|
|
33
|
+
* are always available, but other fields may be omitted
|
|
34
|
+
* despite being available.
|
|
35
|
+
*
|
|
36
|
+
* For a rough list of fields that may be missing, see the
|
|
37
|
+
* official docs for [channel](https://core.telegram.org/constructor/channel)
|
|
38
|
+
* and [user](https://core.telegram.org/constructor/user).
|
|
39
|
+
*
|
|
40
|
+
* This currently only ever happens for non-bot users, so if you are building
|
|
41
|
+
* a normal bot, you can safely ignore this field.
|
|
42
|
+
*
|
|
43
|
+
* To fetch the "complete" chat information, use one of these methods:
|
|
44
|
+
* - {@link TelegramClient.getChat}
|
|
45
|
+
* - {@link TelegramClient.getFullChat}.
|
|
46
|
+
*
|
|
47
|
+
* Learn more: [Incomplete peers](https://mtcute.dev/guide/topics/peers.html#incomplete-peers)
|
|
48
|
+
*/
|
|
49
|
+
get isMin(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Chat's input peer for advanced use-cases.
|
|
52
|
+
*
|
|
53
|
+
* > **Note**: for {@link min} chats, this method will return
|
|
54
|
+
* > `mtcute.dummyInputPeerMin*`, which are actually not a valid input peer,
|
|
55
|
+
* > These are used to indicate that the user is incomplete, and a message
|
|
56
|
+
* > reference is needed to resolve the peer.
|
|
57
|
+
* >
|
|
58
|
+
* > Such objects are handled by {@link TelegramClient.resolvePeer} method,
|
|
59
|
+
* so prefer using it whenever you need an input peer.
|
|
60
|
+
*/
|
|
61
|
+
get inputPeer(): tl.TypeInputPeer;
|
|
62
|
+
/** Type of chat */
|
|
63
|
+
get chatType(): ChatType;
|
|
64
|
+
/**
|
|
65
|
+
* Whether this chat is a group chat (i.e. not a channel)
|
|
66
|
+
*/
|
|
67
|
+
get isGroup(): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether this chat has been verified by Telegram.
|
|
70
|
+
* Supergroups, channels and groups only
|
|
71
|
+
*/
|
|
72
|
+
get isVerified(): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether this chat has been restricted.
|
|
75
|
+
* See {@link restrictions} for details
|
|
76
|
+
*/
|
|
77
|
+
get isRestricted(): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Whether this chat is owned by the current user.
|
|
80
|
+
* Supergroups, channels and groups only
|
|
81
|
+
*/
|
|
82
|
+
get isCreator(): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Whether current user has admin rights in this chat.
|
|
85
|
+
* Supergroups, channels and groups only.
|
|
86
|
+
*/
|
|
87
|
+
get isAdmin(): boolean;
|
|
88
|
+
/** Whether this chat has been flagged for scam */
|
|
89
|
+
get isScam(): boolean;
|
|
90
|
+
/** Whether this chat has been flagged for impersonation */
|
|
91
|
+
get isFake(): boolean;
|
|
92
|
+
/** Whether this peer is a forum supergroup */
|
|
93
|
+
get isForum(): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the chat is not available (e.g. because the user was banned from there).
|
|
96
|
+
*
|
|
97
|
+
* **Note**: This method checks if the underlying peer is [`chatForbidden`](https://core.telegram.org/constructor/chatForbidden)
|
|
98
|
+
* or [`channelForbidden`](https://core.telegram.org/constructor/channelForbidden).
|
|
99
|
+
* In some cases this field might be `false` *even if* the user is not a member of the chat,
|
|
100
|
+
* and calling `.getChat()` will throw `CHANNEL_PRIVATE`.
|
|
101
|
+
* In particular, this seems to be the case for `.forward.sender` of {@link Message} objects.
|
|
102
|
+
*
|
|
103
|
+
* Consider also checking for {@link isLikelyUnavailable}.
|
|
104
|
+
*/
|
|
105
|
+
get isBanned(): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the chat is likely not available (e.g. because the user was banned from there),
|
|
108
|
+
* or the channel is private and the user is not a member of it.
|
|
109
|
+
*/
|
|
110
|
+
get isLikelyUnavailable(): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Whether the current user is a member of the chat.
|
|
113
|
+
*
|
|
114
|
+
* For users, this is always `true`.
|
|
115
|
+
*/
|
|
116
|
+
get isMember(): boolean;
|
|
117
|
+
/** Whether this chat has a call/livestrean active */
|
|
118
|
+
get hasCall(): boolean;
|
|
119
|
+
/** Whether this chat has a call/livestream, and there's at least one member in it */
|
|
120
|
+
get hasCallMembers(): boolean;
|
|
121
|
+
/** Whether you have hidden (arhived) this chat's stories */
|
|
122
|
+
get storiesHidden(): boolean;
|
|
123
|
+
get storiesUnavailable(): boolean;
|
|
124
|
+
/** Whether this group is a channel/supergroup with join requests enabled */
|
|
125
|
+
get hasJoinRequests(): boolean;
|
|
126
|
+
/** Whether this group is a supergroup with join-to-send rule enabled */
|
|
127
|
+
get hasJoinToSend(): boolean;
|
|
128
|
+
/** Whether this group has content protection (i.e. disabled forwards) */
|
|
129
|
+
get hasContentProtection(): boolean;
|
|
130
|
+
/** Whether this channel has profile signatures (i.e. "Super Channel") */
|
|
131
|
+
get hasProfileSignatures(): boolean;
|
|
132
|
+
/** Whether this channel has author signatures enabled under posts */
|
|
133
|
+
get hasSignatures(): boolean;
|
|
134
|
+
/** Chat title */
|
|
135
|
+
get title(): string;
|
|
136
|
+
/** Chat username (if available) */
|
|
137
|
+
get username(): string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Usernames (including collectibles), for private chats, bots, supergroups and channels if available
|
|
140
|
+
*/
|
|
141
|
+
get usernames(): ReadonlyArray<tl.RawUsername> | null;
|
|
142
|
+
/**
|
|
143
|
+
* Get the display name of the chat.
|
|
144
|
+
*
|
|
145
|
+
* Basically an alias to {@link title}, exists for consistency with {@link User}.
|
|
146
|
+
*/
|
|
147
|
+
get displayName(): string;
|
|
148
|
+
/**
|
|
149
|
+
* Chat photo, if any.
|
|
150
|
+
* Suitable for downloads only.
|
|
151
|
+
*
|
|
152
|
+
* If full chat information is available, prefer {@link FullChat#fullPhoto} instead.
|
|
153
|
+
*/
|
|
154
|
+
get photo(): ChatPhoto | null;
|
|
155
|
+
/**
|
|
156
|
+
* The list of reasons why this chat might be unavailable to some users.
|
|
157
|
+
* This field is available only in case {@link isRestricted} is `true`
|
|
158
|
+
*/
|
|
159
|
+
get restrictions(): ReadonlyArray<tl.RawRestrictionReason> | null;
|
|
160
|
+
/**
|
|
161
|
+
* Current user's permissions, for supergroups.
|
|
162
|
+
*/
|
|
163
|
+
get permissions(): ChatPermissions | null;
|
|
164
|
+
/**
|
|
165
|
+
* Default chat member permissions, for groups and supergroups.
|
|
166
|
+
*/
|
|
167
|
+
get defaultPermissions(): ChatPermissions | null;
|
|
168
|
+
/**
|
|
169
|
+
* Admin rights of the current user in this chat, if any.`
|
|
170
|
+
*/
|
|
171
|
+
get adminRights(): tl.RawChatAdminRights | null;
|
|
172
|
+
/**
|
|
173
|
+
* Distance in meters of this group chat from your location
|
|
174
|
+
* Returned only in {@link TelegramClient.getNearbyChats}
|
|
175
|
+
*/
|
|
176
|
+
readonly distance?: number;
|
|
177
|
+
/**
|
|
178
|
+
* Maximum ID of stories this chat has (or 0 if none)
|
|
179
|
+
*/
|
|
180
|
+
get storiesMaxId(): number;
|
|
181
|
+
/**
|
|
182
|
+
* Color that should be used when rendering replies to
|
|
183
|
+
* the messages and web previews sent by this chat,
|
|
184
|
+
* as well as to render the chat title
|
|
185
|
+
*/
|
|
186
|
+
get color(): ChatColors;
|
|
187
|
+
/**
|
|
188
|
+
* Chat's emoji status, if any.
|
|
189
|
+
*/
|
|
190
|
+
get emojiStatus(): EmojiStatus | null;
|
|
191
|
+
/**
|
|
192
|
+
* Color that should be used when rendering the header of
|
|
193
|
+
* the user's profile
|
|
194
|
+
*/
|
|
195
|
+
get profileColors(): ChatColors;
|
|
196
|
+
/** Boosts level this chat has (0 if none or is not a channel) */
|
|
197
|
+
get boostsLevel(): number;
|
|
198
|
+
/**
|
|
199
|
+
* If a subscription to this channel was bought using Telegram Stars,
|
|
200
|
+
* this field will contain the date when the subscription will expire.
|
|
201
|
+
*/
|
|
202
|
+
get subscriptionUntilDate(): Date | null;
|
|
203
|
+
/** Date when the current user joined this chat (if available) */
|
|
204
|
+
get joinDate(): Date | null;
|
|
205
|
+
/** Date when the chat was created (if available) */
|
|
206
|
+
get creationDate(): Date | null;
|
|
207
|
+
/**
|
|
208
|
+
* Date when the current user will be unbanned (if available)
|
|
209
|
+
*
|
|
210
|
+
* Returns `null` if the user is not banned, or if the ban is permanent
|
|
211
|
+
*/
|
|
212
|
+
get bannedUntilDate(): Date | null;
|
|
213
|
+
/** Number of members in this chat (if available) */
|
|
214
|
+
get membersCount(): number | null;
|
|
215
|
+
/**
|
|
216
|
+
* If this chat is a basic group that has been migrated to a supergroup,
|
|
217
|
+
* this field will contain the input peer of that supergroup.
|
|
218
|
+
*/
|
|
219
|
+
get migratedTo(): tl.TypeInputChannel | null;
|
|
220
|
+
/**
|
|
221
|
+
* If this chat is a basic group that has been migrated to a supergroup,
|
|
222
|
+
* this field will contain the marked ID of that supergroup.
|
|
223
|
+
*/
|
|
224
|
+
get migratedToId(): number | null;
|
|
225
|
+
/**
|
|
226
|
+
* Create a mention for the chat.
|
|
227
|
+
*
|
|
228
|
+
* If this is a user, works just like {@link User.mention}.
|
|
229
|
+
* Otherwise, if the chat has a username, a `@username` is created
|
|
230
|
+
* (or text link, if `text` is passed). If it does not, chat title is
|
|
231
|
+
* simply returned without additional formatting.
|
|
232
|
+
*
|
|
233
|
+
* When available and `text` is omitted, this method will return `@username`.
|
|
234
|
+
* Otherwise, text mention is created for the given (or default) parse mode
|
|
235
|
+
*
|
|
236
|
+
* Use `null` as `text` (first parameter) to force create a text
|
|
237
|
+
* mention with display name, even if there is a username.
|
|
238
|
+
*
|
|
239
|
+
* > **Note**: This method doesn't format anything on its own.
|
|
240
|
+
* > Instead, it returns a {@link MessageEntity} that can later
|
|
241
|
+
* > be used with `html` or `md` template tags, or `unparse` method directly.
|
|
242
|
+
*
|
|
243
|
+
* @param text Text of the mention.
|
|
244
|
+
* @example
|
|
245
|
+
* ```typescript
|
|
246
|
+
* msg.replyText(html`Hello, ${msg.chat.mention()`)
|
|
247
|
+
* ```
|
|
248
|
+
*/
|
|
249
|
+
mention(text?: string | null): string | MessageEntity;
|
|
250
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { Peer } from './peer.js';
|
|
3
|
+
import { PeersIndex } from './peers-index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Information about a chatlist
|
|
6
|
+
*/
|
|
7
|
+
export declare class ChatlistPreview {
|
|
8
|
+
readonly raw: tl.chatlists.TypeChatlistInvite;
|
|
9
|
+
readonly peers: PeersIndex;
|
|
10
|
+
constructor(raw: tl.chatlists.TypeChatlistInvite);
|
|
11
|
+
/** Whether the current user has already joined this chatlist */
|
|
12
|
+
get isJoined(): boolean;
|
|
13
|
+
/** If we joined the chatlist, ID of the folder representing it */
|
|
14
|
+
get folderId(): number | null;
|
|
15
|
+
/** Title of the chatlist (only available for non-joined chatlists) */
|
|
16
|
+
get title(): string;
|
|
17
|
+
/** Emoji representing an icon of the chatlist (may only be available for non-joined chatlists) */
|
|
18
|
+
get emoji(): string | null;
|
|
19
|
+
/** List of all chats contained in the chatlist */
|
|
20
|
+
get chats(): Peer[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { Peer } from './peer.js';
|
|
3
|
+
import { DraftMessage, Message } from '../messages/index.js';
|
|
4
|
+
import { PeersIndex } from './peers-index.js';
|
|
5
|
+
export declare class ForumTopic {
|
|
6
|
+
readonly raw: tl.RawForumTopic;
|
|
7
|
+
readonly _peers: PeersIndex;
|
|
8
|
+
readonly _messages?: Map<number, tl.TypeMessage> | undefined;
|
|
9
|
+
static COLOR_BLUE: number;
|
|
10
|
+
static COLOR_YELLOW: number;
|
|
11
|
+
static COLOR_PURPLE: number;
|
|
12
|
+
static COLOR_GREEN: number;
|
|
13
|
+
static COLOR_PINK: number;
|
|
14
|
+
static COLOR_RED: number;
|
|
15
|
+
constructor(raw: tl.RawForumTopic, _peers: PeersIndex, _messages?: Map<number, tl.TypeMessage> | undefined);
|
|
16
|
+
static parseTlForumTopics(topics: tl.messages.TypeForumTopics): ForumTopic[];
|
|
17
|
+
/**
|
|
18
|
+
* Whether the topic was created by the current user
|
|
19
|
+
*/
|
|
20
|
+
get isMy(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the topic is closed
|
|
23
|
+
*/
|
|
24
|
+
get isClosed(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the topic is pinned
|
|
27
|
+
*/
|
|
28
|
+
get isPinned(): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether this constructor is a reduced version of the full topic information.
|
|
31
|
+
*
|
|
32
|
+
* If `true`, only {@link isMy}, {@link isClosed}, {@link id}, {@link date},
|
|
33
|
+
* {@link title}, {@link iconColor}, {@link iconCustomEmoji} and {@link creator}
|
|
34
|
+
* parameters will contain valid information.
|
|
35
|
+
*/
|
|
36
|
+
get isShort(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* ID of the topic
|
|
39
|
+
*/
|
|
40
|
+
get id(): number;
|
|
41
|
+
/**
|
|
42
|
+
* Date when the topic was created
|
|
43
|
+
*/
|
|
44
|
+
get date(): Date;
|
|
45
|
+
/**
|
|
46
|
+
* Title of the topic
|
|
47
|
+
*/
|
|
48
|
+
get title(): string;
|
|
49
|
+
/**
|
|
50
|
+
* Color of the topic's icon, used as a fallback
|
|
51
|
+
* in case {@link iconEmoji} is not set.
|
|
52
|
+
*
|
|
53
|
+
* One of the static `COLOR_*` fields.
|
|
54
|
+
*/
|
|
55
|
+
get iconColor(): number | null;
|
|
56
|
+
/**
|
|
57
|
+
* Emoji used as the topic's icon.
|
|
58
|
+
*/
|
|
59
|
+
get iconCustomEmoji(): tl.Long | null;
|
|
60
|
+
/**
|
|
61
|
+
* Creator of the topic
|
|
62
|
+
*/
|
|
63
|
+
get creator(): Peer;
|
|
64
|
+
/**
|
|
65
|
+
* The latest message sent in this topic
|
|
66
|
+
*/
|
|
67
|
+
get lastMessage(): Message;
|
|
68
|
+
/**
|
|
69
|
+
* ID of the last read outgoing message in this topic
|
|
70
|
+
*/
|
|
71
|
+
get lastReadIngoing(): number;
|
|
72
|
+
/**
|
|
73
|
+
* ID of the last read ingoing message in this topic
|
|
74
|
+
*/
|
|
75
|
+
get lastReadOutgoing(): number;
|
|
76
|
+
/**
|
|
77
|
+
* ID of the last read message in this topic
|
|
78
|
+
*/
|
|
79
|
+
get lastRead(): number;
|
|
80
|
+
/**
|
|
81
|
+
* Number of unread messages in the topic
|
|
82
|
+
*/
|
|
83
|
+
get unreadCount(): number;
|
|
84
|
+
/**
|
|
85
|
+
* Number of unread mentions in the topic
|
|
86
|
+
*/
|
|
87
|
+
get unreadMentionsCount(): number;
|
|
88
|
+
/**
|
|
89
|
+
* Number of unread reactions in the topic
|
|
90
|
+
*/
|
|
91
|
+
get unreadReactionsCount(): number;
|
|
92
|
+
/**
|
|
93
|
+
* Draft message in the topic
|
|
94
|
+
*/
|
|
95
|
+
get draftMessage(): DraftMessage | null;
|
|
96
|
+
}
|
|
@@ -277,7 +277,7 @@ class FullChat extends chat.Chat {
|
|
|
277
277
|
/** Users who have recently requested to join the chat (only visible to admins) */
|
|
278
278
|
get recentRequesters() {
|
|
279
279
|
if (this.full._ !== "channelFull" || !this.full.recentRequesters) return [];
|
|
280
|
-
return this.full.recentRequesters.map((it) => new user.User(this.peers.user(it
|
|
280
|
+
return this.full.recentRequesters.map((it) => new user.User(this.peers.user(it)));
|
|
281
281
|
}
|
|
282
282
|
/** Reactions available in this chat */
|
|
283
283
|
get availableReactions() {
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { Photo } from '../media/photo.js';
|
|
3
|
+
import { StickerSet } from '../misc/sticker-set.js';
|
|
4
|
+
import { PeerStories } from '../stories/peer-stories.js';
|
|
5
|
+
import { BotInfo } from './bot-info.js';
|
|
6
|
+
import { ChatInviteLink } from './chat-invite-link.js';
|
|
7
|
+
import { ChatLocation } from './chat-location.js';
|
|
8
|
+
import { Chat } from './chat.js';
|
|
9
|
+
import { PeersIndex } from './peers-index.js';
|
|
10
|
+
import { User } from './user.js';
|
|
11
|
+
/**
|
|
12
|
+
* Full information about a particular chat.
|
|
13
|
+
*/
|
|
14
|
+
export declare class FullChat extends Chat {
|
|
15
|
+
readonly peers: PeersIndex;
|
|
16
|
+
readonly full: tl.TypeChatFull;
|
|
17
|
+
constructor(obj: tl.messages.RawChatFull);
|
|
18
|
+
/** Whether this chat is archived */
|
|
19
|
+
get isArchived(): boolean;
|
|
20
|
+
/** Whether paid reactions are enabled for this channel */
|
|
21
|
+
get hasPaidReactions(): boolean;
|
|
22
|
+
/** Whether this channel has hidden participants */
|
|
23
|
+
get hasHiddenParticipants(): boolean;
|
|
24
|
+
/** Whether the current user can change the chat's username */
|
|
25
|
+
get canSetUsername(): boolean;
|
|
26
|
+
/** Whether the current user can change the chat's sticker set */
|
|
27
|
+
get canSetStickers(): boolean;
|
|
28
|
+
/** Whether the history before we joined the chat is hidden */
|
|
29
|
+
get hasHiddenHistory(): boolean;
|
|
30
|
+
/** Whether there are scheduled messages in this chat */
|
|
31
|
+
get hasScheduledMessages(): boolean;
|
|
32
|
+
/** Whether the current user can view the chat's statistics */
|
|
33
|
+
get canViewStats(): boolean;
|
|
34
|
+
/** Whether the current user can view the chat's participants list */
|
|
35
|
+
get canViewParticipants(): boolean;
|
|
36
|
+
/** Whether the current user can delete the chat */
|
|
37
|
+
get canDeleteChat(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the current user has blocked any anonumous admin of the supergroup.
|
|
40
|
+
* If set, you won't receive mentions from them, nor their replies in `@replies`
|
|
41
|
+
*/
|
|
42
|
+
get isBlocked(): boolean;
|
|
43
|
+
/** Whether the native antispam is enabled for this channel */
|
|
44
|
+
get hasNativeAntispam(): boolean;
|
|
45
|
+
/** Whether the real-time translations popup should not be shown for this channel */
|
|
46
|
+
get hasTranslationsDisabled(): boolean;
|
|
47
|
+
/** Whether this chat has pinned stories */
|
|
48
|
+
get hasPinnedStories(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether ads on this channels were disabled
|
|
51
|
+
* (this flag is only visible to channel owner)
|
|
52
|
+
*/
|
|
53
|
+
get hasAdsDisabled(): boolean;
|
|
54
|
+
/** Whether sending paid media is available in this channel */
|
|
55
|
+
get isPaidMediaAvailable(): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Full information about this chat's photo, if any.
|
|
58
|
+
*
|
|
59
|
+
* Unlike {@link Chat.photo}, this field contains additional information
|
|
60
|
+
* about the photo, such as its date, more sizes, and is the only
|
|
61
|
+
* way to get the animated profile photo.
|
|
62
|
+
*
|
|
63
|
+
* This field takes into account any personal/fallback photo
|
|
64
|
+
* that the user may have set
|
|
65
|
+
*/
|
|
66
|
+
get fullPhoto(): Photo | null;
|
|
67
|
+
/**
|
|
68
|
+
* Bio of the other party in a private chat, or description of a
|
|
69
|
+
* group, supergroup or channel.
|
|
70
|
+
*/
|
|
71
|
+
get bio(): string;
|
|
72
|
+
/**
|
|
73
|
+
* Chat's primary invite link, if available
|
|
74
|
+
*/
|
|
75
|
+
get inviteLink(): ChatInviteLink | null;
|
|
76
|
+
/**
|
|
77
|
+
* For supergroups, information about the group sticker set.
|
|
78
|
+
*/
|
|
79
|
+
get stickerSet(): StickerSet | null;
|
|
80
|
+
/**
|
|
81
|
+
* For supergroups, information about the group emoji set.
|
|
82
|
+
*/
|
|
83
|
+
get emojiSet(): StickerSet | null;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the group sticker set can be changed by you.
|
|
86
|
+
*/
|
|
87
|
+
get canSetStickerSet(): boolean | null;
|
|
88
|
+
/**
|
|
89
|
+
* Number of boosts applied by the current user to this chat.
|
|
90
|
+
*/
|
|
91
|
+
get boostsApplied(): number;
|
|
92
|
+
/**
|
|
93
|
+
* Number of boosts required for the user to be unrestricted in this chat.
|
|
94
|
+
*/
|
|
95
|
+
get boostsForUnrestrict(): number;
|
|
96
|
+
/** Whether the current user can view Telegram Stars revenue for this chat */
|
|
97
|
+
get canViewStarsRevenue(): boolean;
|
|
98
|
+
/** Whether the current user can view ad revenue for this chat */
|
|
99
|
+
get canViewAdRevenue(): boolean;
|
|
100
|
+
/** Number of admins in the chat (0 if not available) */
|
|
101
|
+
get adminsCount(): number;
|
|
102
|
+
/** Number of users kicked from the chat (if available) */
|
|
103
|
+
get kickedCount(): number | null;
|
|
104
|
+
/** Number of users kicked from the chat (if available) */
|
|
105
|
+
get bannedCount(): number | null;
|
|
106
|
+
/** Number of members of the chat that are currently online */
|
|
107
|
+
get onlineCount(): number;
|
|
108
|
+
/** ID of the last read incoming message in the chat */
|
|
109
|
+
get readInboxMaxId(): number;
|
|
110
|
+
/** ID of the last read outgoing message in the chat */
|
|
111
|
+
get readOutboxMaxId(): number;
|
|
112
|
+
/** Number of unread messages in the chat */
|
|
113
|
+
get unreadCount(): number;
|
|
114
|
+
/** Notification settings for this chat */
|
|
115
|
+
get notificationsSettings(): tl.TypePeerNotifySettings | null;
|
|
116
|
+
/** Information about bots in this chat */
|
|
117
|
+
get botInfo(): BotInfo[];
|
|
118
|
+
/**
|
|
119
|
+
* For supergroups, ID of the basic group from which this supergroup was upgraded,
|
|
120
|
+
* and the identifier of the last message from the original group.
|
|
121
|
+
*/
|
|
122
|
+
get migratedFrom(): {
|
|
123
|
+
chatId: number;
|
|
124
|
+
msgId: number;
|
|
125
|
+
} | null;
|
|
126
|
+
/** For supergroups with hidden history, ID of the first message visible to the current user */
|
|
127
|
+
get historyMinId(): number;
|
|
128
|
+
/** ID of the last pinned message in the chat */
|
|
129
|
+
get pinnedMsgId(): number | null;
|
|
130
|
+
/**
|
|
131
|
+
* Location of the chat.
|
|
132
|
+
*/
|
|
133
|
+
get location(): ChatLocation | null;
|
|
134
|
+
/**
|
|
135
|
+
* Information about a linked chat:
|
|
136
|
+
* - for channels: the discussion group
|
|
137
|
+
* - for supergroups: the linked channel
|
|
138
|
+
*/
|
|
139
|
+
get linkedChat(): Chat | null;
|
|
140
|
+
/**
|
|
141
|
+
* TTL of all messages in this chat, in seconds
|
|
142
|
+
*/
|
|
143
|
+
get ttlPeriod(): number | null;
|
|
144
|
+
/** Slowmode delay for this chat, if any */
|
|
145
|
+
get slowmodeSeconds(): number | null;
|
|
146
|
+
/**
|
|
147
|
+
* For supergroups with slow mode, date of the next time the current user
|
|
148
|
+
* will be able to send a message. `null` if they can send messages now.
|
|
149
|
+
*/
|
|
150
|
+
get slowmodeNextSendDate(): Date | null;
|
|
151
|
+
/** Number of pending join requests in the chat (only visible to admins) */
|
|
152
|
+
get pendingJoinRequests(): number;
|
|
153
|
+
/** Users who have recently requested to join the chat (only visible to admins) */
|
|
154
|
+
get recentRequesters(): User[];
|
|
155
|
+
/** Reactions available in this chat */
|
|
156
|
+
get availableReactions(): tl.TypeChatReactions | null;
|
|
157
|
+
/** Maximum number of unique reactions on a single message in this chat, if any */
|
|
158
|
+
get maxReactions(): number | null;
|
|
159
|
+
/** Channel stories */
|
|
160
|
+
get stories(): PeerStories | null;
|
|
161
|
+
}
|
|
@@ -270,7 +270,7 @@ class FullChat extends Chat$2 {
|
|
|
270
270
|
/** Users who have recently requested to join the chat (only visible to admins) */
|
|
271
271
|
get recentRequesters() {
|
|
272
272
|
if (this.full._ !== "channelFull" || !this.full.recentRequesters) return [];
|
|
273
|
-
return this.full.recentRequesters.map((it) => new User$2(this.peers.user(it
|
|
273
|
+
return this.full.recentRequesters.map((it) => new User$2(this.peers.user(it)));
|
|
274
274
|
}
|
|
275
275
|
/** Reactions available in this chat */
|
|
276
276
|
get availableReactions() {
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { Photo } from '../media/photo.js';
|
|
3
|
+
import { BusinessAccount } from '../premium/business-account.js';
|
|
4
|
+
import { Chat } from './chat.js';
|
|
5
|
+
import { PeersIndex } from './peers-index.js';
|
|
6
|
+
import { User } from './user.js';
|
|
7
|
+
/**
|
|
8
|
+
* Full information about a particular user.
|
|
9
|
+
*/
|
|
10
|
+
export declare class FullUser extends User {
|
|
11
|
+
readonly peers: PeersIndex;
|
|
12
|
+
readonly full: tl.TypeUserFull;
|
|
13
|
+
constructor(obj: tl.users.TypeUserFull);
|
|
14
|
+
/** Whether this chat is archived */
|
|
15
|
+
get isArchived(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Whether this user has restricted sending them voice/video messages.
|
|
18
|
+
*/
|
|
19
|
+
get hasBlockedVoices(): boolean;
|
|
20
|
+
/** Whether the user is blocked by the current user */
|
|
21
|
+
get isBlocked(): boolean;
|
|
22
|
+
/** Whether the user can make/accept calls */
|
|
23
|
+
get hasCallsAvailable(): boolean;
|
|
24
|
+
/** Whether the user can make/accept video calls */
|
|
25
|
+
get hasVideoCallsAvailable(): boolean;
|
|
26
|
+
/** Whether the current user can call this user */
|
|
27
|
+
get canCall(): boolean;
|
|
28
|
+
/** Whether the chat with this user has some scheduled messages */
|
|
29
|
+
get hasScheduled(): boolean;
|
|
30
|
+
/** Whether the real-time translations popup should not be shown for this channel */
|
|
31
|
+
get hasTranslationsDisabled(): boolean;
|
|
32
|
+
/** Whether this chat has pinned stories */
|
|
33
|
+
get hasPinnedStories(): boolean;
|
|
34
|
+
/** Whether the current user has blocked this user from seeing our stories */
|
|
35
|
+
get blockedMyStoriesFrom(): boolean;
|
|
36
|
+
/** Whether the chat with this user has a custom wallpaper */
|
|
37
|
+
get hasCustomWallpaper(): boolean;
|
|
38
|
+
/** Whether this user has hidden the exact read dates */
|
|
39
|
+
get hasHiddenReadDate(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* (Only for current user) Whether we have re-enabled sponsored messages,
|
|
42
|
+
* despite having Telegram Premium
|
|
43
|
+
*/
|
|
44
|
+
get hasSponsoredEnabled(): boolean;
|
|
45
|
+
/** Whether the current user can view ad revenue for this bot */
|
|
46
|
+
get canViewAdRevenue(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Full information about this chat's photo, if any.
|
|
49
|
+
*
|
|
50
|
+
* Unlike {@link Chat.photo}, this field contains additional information
|
|
51
|
+
* about the photo, such as its date, more sizes, and is the only
|
|
52
|
+
* way to get the animated profile photo.
|
|
53
|
+
*
|
|
54
|
+
* This field takes into account any personal/fallback photo
|
|
55
|
+
* that the user may have set
|
|
56
|
+
*/
|
|
57
|
+
get fullPhoto(): Photo | null;
|
|
58
|
+
/**
|
|
59
|
+
* A custom photo (set by the current user) that should be displayed
|
|
60
|
+
* instead of the actual chat photo.
|
|
61
|
+
*
|
|
62
|
+
* Currently only available for users.
|
|
63
|
+
*/
|
|
64
|
+
get personalPhoto(): Photo | null;
|
|
65
|
+
/**
|
|
66
|
+
* Actual profile photo of the user, bypassing the custom one.
|
|
67
|
+
*/
|
|
68
|
+
get realPhoto(): Photo | null;
|
|
69
|
+
/**
|
|
70
|
+
* A photo that the user has set to be shown
|
|
71
|
+
* in case their actual profile photo is not available
|
|
72
|
+
* due to privacy settings.
|
|
73
|
+
*
|
|
74
|
+
* Currently only available for users.
|
|
75
|
+
*/
|
|
76
|
+
get publicPhoto(): Photo | null;
|
|
77
|
+
/**
|
|
78
|
+
* Bio of the other party in a private chat, or description of a
|
|
79
|
+
* group, supergroup or channel.
|
|
80
|
+
*/
|
|
81
|
+
get bio(): string;
|
|
82
|
+
/** Number of star gifts the user has chosen to display on their profile */
|
|
83
|
+
get starGiftsCount(): number;
|
|
84
|
+
/** If this chat is a bot, whether the current user can manage its emoji status */
|
|
85
|
+
get canManageBotEmojiStatus(): boolean;
|
|
86
|
+
get peerSettings(): tl.TypePeerSettings | null;
|
|
87
|
+
/** Notification settings for this chat */
|
|
88
|
+
get notificationsSettings(): tl.TypePeerNotifySettings | null;
|
|
89
|
+
/** ID of the last pinned message in the chat with this user */
|
|
90
|
+
get pinnedMsgId(): number | null;
|
|
91
|
+
/** Number of common chats with this user */
|
|
92
|
+
get commonChatsCount(): number;
|
|
93
|
+
/** Anonymized text to be shown instead of the user's name when forwarding their messages */
|
|
94
|
+
get privateForwardName(): string | null;
|
|
95
|
+
/** Suggested admin rights for groups for this bot */
|
|
96
|
+
get botGroupAdminRights(): tl.TypeChatAdminRights | null;
|
|
97
|
+
/** Suggested admin rights for channels for this bot */
|
|
98
|
+
get botBroadcastAdminRights(): tl.TypeChatAdminRights | null;
|
|
99
|
+
/** Information about the user's birthday */
|
|
100
|
+
get birthday(): tl.RawBirthday | null;
|
|
101
|
+
/**
|
|
102
|
+
* Information about the user's personal channel.
|
|
103
|
+
*/
|
|
104
|
+
get personalChannel(): Chat | null;
|
|
105
|
+
/** ID of the last message in {@link personalChannel} */
|
|
106
|
+
get personalChannelMessageId(): number | null;
|
|
107
|
+
/**
|
|
108
|
+
* TTL of all messages in this chat, in seconds
|
|
109
|
+
*/
|
|
110
|
+
get ttlPeriod(): number | null;
|
|
111
|
+
/**
|
|
112
|
+
* If this is a business account, information about the business.
|
|
113
|
+
*/
|
|
114
|
+
get business(): BusinessAccount | null;
|
|
115
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './bot-info.js';
|
|
2
|
+
export * from './chat-colors.js';
|
|
3
|
+
export * from './chat-event/index.js';
|
|
4
|
+
export * from './chat-invite-link-member.js';
|
|
5
|
+
export * from './chat-invite-link.js';
|
|
6
|
+
export * from './chat-location.js';
|
|
7
|
+
export * from './chat-member.js';
|
|
8
|
+
export * from './chat-permissions.js';
|
|
9
|
+
export * from './chat-photo.js';
|
|
10
|
+
export * from './chat-preview.js';
|
|
11
|
+
export * from './chat.js';
|
|
12
|
+
export * from './chatlist-preview.js';
|
|
13
|
+
export * from './forum-topic.js';
|
|
14
|
+
export * from './full-chat.js';
|
|
15
|
+
export * from './full-user.js';
|
|
16
|
+
export * from './peer.js';
|
|
17
|
+
export * from './peers-index.js';
|
|
18
|
+
export * from './typing-status.js';
|
|
19
|
+
export * from './user.js';
|