@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,520 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { MaybeArray } from '../../../../types/utils.js';
|
|
3
|
+
import { InputText } from '../../../types/misc/entities.js';
|
|
4
|
+
import { InputFileLike } from '../../files/index.js';
|
|
5
|
+
import { InputPeerLike } from '../../peers/index.js';
|
|
6
|
+
import { VenueSource } from '../venue.js';
|
|
7
|
+
export interface CaptionMixin {
|
|
8
|
+
/**
|
|
9
|
+
* Caption of the media
|
|
10
|
+
*/
|
|
11
|
+
caption?: InputText;
|
|
12
|
+
}
|
|
13
|
+
export interface FileMixin {
|
|
14
|
+
/**
|
|
15
|
+
* File to be sent
|
|
16
|
+
*/
|
|
17
|
+
file: InputFileLike;
|
|
18
|
+
/**
|
|
19
|
+
* Override file name for the file.
|
|
20
|
+
*
|
|
21
|
+
* Only applicable to newly uploaded files.
|
|
22
|
+
*/
|
|
23
|
+
fileName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Override MIME type for the file
|
|
26
|
+
*
|
|
27
|
+
* Only applicable to newly uploaded files.
|
|
28
|
+
*/
|
|
29
|
+
fileMime?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Override file size for the file
|
|
32
|
+
*
|
|
33
|
+
* Only applicable to newly uploaded files.
|
|
34
|
+
*/
|
|
35
|
+
fileSize?: number;
|
|
36
|
+
/**
|
|
37
|
+
* TTL for the media in seconds.
|
|
38
|
+
*
|
|
39
|
+
* Only applicable to some media types
|
|
40
|
+
*/
|
|
41
|
+
ttlSeconds?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Automatically detect media type based on file contents.
|
|
45
|
+
*
|
|
46
|
+
* Photo type is only inferred for reused files,
|
|
47
|
+
* newly uploaded photos with `auto` will be
|
|
48
|
+
* uploaded as a document
|
|
49
|
+
*/
|
|
50
|
+
export interface InputMediaAuto extends FileMixin, CaptionMixin {
|
|
51
|
+
type: 'auto';
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* An audio file or voice message to be sent
|
|
55
|
+
*/
|
|
56
|
+
export interface InputMediaAudio extends FileMixin, CaptionMixin {
|
|
57
|
+
type: 'audio';
|
|
58
|
+
/**
|
|
59
|
+
* Thumbnail of the audio file album cover.
|
|
60
|
+
*
|
|
61
|
+
* The thumbnail should be in JPEG format and less than 200 KB in size.
|
|
62
|
+
* A thumbnail's width and height should not exceed 320 pixels.
|
|
63
|
+
* Thumbnails can't be reused and can be only uploaded as a new file.
|
|
64
|
+
*
|
|
65
|
+
* Only applicable to newly uploaded files.
|
|
66
|
+
*/
|
|
67
|
+
thumb?: InputFileLike;
|
|
68
|
+
/**
|
|
69
|
+
* Duration of the audio in seconds
|
|
70
|
+
*
|
|
71
|
+
* Only applicable to newly uploaded files.
|
|
72
|
+
*/
|
|
73
|
+
duration?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Performer of the audio
|
|
76
|
+
*
|
|
77
|
+
* Only applicable to newly uploaded files.
|
|
78
|
+
*/
|
|
79
|
+
performer?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Title of the audio
|
|
82
|
+
*
|
|
83
|
+
* Only applicable to newly uploaded files.
|
|
84
|
+
*/
|
|
85
|
+
title?: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Voice message to be sent
|
|
89
|
+
*/
|
|
90
|
+
export interface InputMediaVoice extends FileMixin, CaptionMixin {
|
|
91
|
+
type: 'voice';
|
|
92
|
+
/**
|
|
93
|
+
* Duration of the voice message in seconds
|
|
94
|
+
*
|
|
95
|
+
* Only applicable to newly uploaded files.
|
|
96
|
+
*/
|
|
97
|
+
duration?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Waveform of the voice message.
|
|
100
|
+
*
|
|
101
|
+
* Represented with integers in range [0, 31],
|
|
102
|
+
* usually has length of 100.
|
|
103
|
+
* Generated by the server if omitted.
|
|
104
|
+
*
|
|
105
|
+
* Only applicable to newly uploaded files.
|
|
106
|
+
*/
|
|
107
|
+
waveform?: number[];
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A generic file to be sent
|
|
111
|
+
*/
|
|
112
|
+
export interface InputMediaDocument extends FileMixin, CaptionMixin {
|
|
113
|
+
type: 'document';
|
|
114
|
+
/**
|
|
115
|
+
* Thumbnail of the document.
|
|
116
|
+
*
|
|
117
|
+
* The thumbnail should be in JPEG format and less than 200 KB in size.
|
|
118
|
+
* A thumbnail's width and height should not exceed 320 pixels.
|
|
119
|
+
* Thumbnails can't be reused and can be only uploaded as a new file.
|
|
120
|
+
*
|
|
121
|
+
* Only applicable to newly uploaded files.
|
|
122
|
+
*/
|
|
123
|
+
thumb?: InputFileLike;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* A photo to be sent
|
|
127
|
+
*/
|
|
128
|
+
export interface InputMediaPhoto extends FileMixin, CaptionMixin {
|
|
129
|
+
type: 'photo';
|
|
130
|
+
/**
|
|
131
|
+
* Whether this photo should be hidden with a spoiler
|
|
132
|
+
*/
|
|
133
|
+
spoiler?: boolean;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* A sticker to be sent
|
|
137
|
+
*/
|
|
138
|
+
export interface InputMediaSticker extends FileMixin, CaptionMixin {
|
|
139
|
+
type: 'sticker';
|
|
140
|
+
/**
|
|
141
|
+
* Whether this sticker is animated?
|
|
142
|
+
*
|
|
143
|
+
* Note that animated stickers must be in TGS
|
|
144
|
+
* format, which is Lottie JSON compressed using GZip
|
|
145
|
+
*
|
|
146
|
+
* Only applicable to newly uploaded files.
|
|
147
|
+
*
|
|
148
|
+
* @default false
|
|
149
|
+
*/
|
|
150
|
+
isAnimated?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* An emoji representing this sticker
|
|
153
|
+
*
|
|
154
|
+
* Only applicable to newly uploaded files,
|
|
155
|
+
* for some reason doesn't work with animated stickers.
|
|
156
|
+
*/
|
|
157
|
+
alt?: string;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* A video to be sent
|
|
161
|
+
*/
|
|
162
|
+
export interface InputMediaVideo extends FileMixin, CaptionMixin {
|
|
163
|
+
type: 'video';
|
|
164
|
+
/**
|
|
165
|
+
* Thumbnail of the video.
|
|
166
|
+
*
|
|
167
|
+
* The thumbnail should be in JPEG format and less than 200 KB in size.
|
|
168
|
+
* A thumbnail's width and height should not exceed 320 pixels.
|
|
169
|
+
* Thumbnails can't be reused and can be only uploaded as a new file.
|
|
170
|
+
*
|
|
171
|
+
* Only applicable to newly uploaded files.
|
|
172
|
+
*/
|
|
173
|
+
thumb?: InputFileLike;
|
|
174
|
+
/**
|
|
175
|
+
* Width of the video in pixels
|
|
176
|
+
*
|
|
177
|
+
* Only applicable to newly uploaded files.
|
|
178
|
+
*/
|
|
179
|
+
width?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Height of the video in pixels
|
|
182
|
+
*
|
|
183
|
+
* Only applicable to newly uploaded files.
|
|
184
|
+
*/
|
|
185
|
+
height?: number;
|
|
186
|
+
/**
|
|
187
|
+
* Duration of the video in seconds
|
|
188
|
+
*
|
|
189
|
+
* Only applicable to newly uploaded files.
|
|
190
|
+
*/
|
|
191
|
+
duration?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Whether the video is suitable for streaming
|
|
194
|
+
*
|
|
195
|
+
* Only applicable to newly uploaded files.
|
|
196
|
+
*/
|
|
197
|
+
supportsStreaming?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Whether this video is an animated GIF
|
|
200
|
+
*
|
|
201
|
+
* Only applicable to newly uploaded files.
|
|
202
|
+
*/
|
|
203
|
+
isAnimated?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Whether this video is a round message (aka video note)
|
|
206
|
+
*
|
|
207
|
+
* Only applicable to newly uploaded files.
|
|
208
|
+
*/
|
|
209
|
+
isRound?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Whether this video should be hidden with a spoiler
|
|
212
|
+
*/
|
|
213
|
+
spoiler?: boolean;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* A geolocation to be sent
|
|
217
|
+
*/
|
|
218
|
+
export interface InputMediaGeo extends CaptionMixin {
|
|
219
|
+
type: 'geo';
|
|
220
|
+
/**
|
|
221
|
+
* Latitude of the geolocation
|
|
222
|
+
*/
|
|
223
|
+
latitude: number;
|
|
224
|
+
/**
|
|
225
|
+
* Longitude of the geolocation
|
|
226
|
+
*/
|
|
227
|
+
longitude: number;
|
|
228
|
+
/**
|
|
229
|
+
* The estimated horizontal accuracy of the
|
|
230
|
+
* geolocation, in meters (0-1500)
|
|
231
|
+
*/
|
|
232
|
+
accuracy?: number;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* A live geolocation to be sent
|
|
236
|
+
*/
|
|
237
|
+
export interface InputMediaGeoLive extends Omit<InputMediaGeo, 'type'> {
|
|
238
|
+
type: 'geo_live';
|
|
239
|
+
/**
|
|
240
|
+
* Whether sending of the geolocation has stopped
|
|
241
|
+
*/
|
|
242
|
+
stopped?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Direction in which the location moves, in degrees (1-360)
|
|
245
|
+
*/
|
|
246
|
+
heading?: number;
|
|
247
|
+
/**
|
|
248
|
+
* Validity period of the live location
|
|
249
|
+
*/
|
|
250
|
+
period?: number;
|
|
251
|
+
/**
|
|
252
|
+
* Maximum distance to another chat member for proximity
|
|
253
|
+
* alerts, in meters (0-100000)
|
|
254
|
+
*/
|
|
255
|
+
proximityNotificationRadius?: number;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* An animated dice with a random value to be sent
|
|
259
|
+
*
|
|
260
|
+
* For convenience, known dice emojis are available
|
|
261
|
+
* as static members of {@link Dice}.
|
|
262
|
+
*
|
|
263
|
+
* Note that dice result value is generated randomly on the server,
|
|
264
|
+
* you can't influence it in any way!
|
|
265
|
+
*/
|
|
266
|
+
export interface InputMediaDice extends CaptionMixin {
|
|
267
|
+
type: 'dice';
|
|
268
|
+
/**
|
|
269
|
+
* Emoji representing a dice
|
|
270
|
+
*/
|
|
271
|
+
emoji: string;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* A venue to be sent
|
|
275
|
+
*/
|
|
276
|
+
export interface InputMediaVenue extends CaptionMixin {
|
|
277
|
+
type: 'venue';
|
|
278
|
+
/**
|
|
279
|
+
* Latitude of the geolocation
|
|
280
|
+
*/
|
|
281
|
+
latitude: number;
|
|
282
|
+
/**
|
|
283
|
+
* Longitude of the geolocation
|
|
284
|
+
*/
|
|
285
|
+
longitude: number;
|
|
286
|
+
/**
|
|
287
|
+
* Venue name
|
|
288
|
+
*/
|
|
289
|
+
title: string;
|
|
290
|
+
/**
|
|
291
|
+
* Venue address
|
|
292
|
+
*/
|
|
293
|
+
address: string;
|
|
294
|
+
/**
|
|
295
|
+
* When available, source from where this venue was acquired
|
|
296
|
+
*/
|
|
297
|
+
source?: VenueSource;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* A contact to be sent
|
|
301
|
+
*/
|
|
302
|
+
export interface InputMediaContact extends CaptionMixin {
|
|
303
|
+
type: 'contact';
|
|
304
|
+
/**
|
|
305
|
+
* Contact's phone number
|
|
306
|
+
*/
|
|
307
|
+
phone: string;
|
|
308
|
+
/**
|
|
309
|
+
* Contact's first name
|
|
310
|
+
*/
|
|
311
|
+
firstName: string;
|
|
312
|
+
/**
|
|
313
|
+
* Contact's last name
|
|
314
|
+
*/
|
|
315
|
+
lastName?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Additional data about the contact
|
|
318
|
+
* as a vCard (0-2048 bytes)
|
|
319
|
+
*/
|
|
320
|
+
vcard?: string;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* A game to be sent
|
|
324
|
+
*/
|
|
325
|
+
export interface InputMediaGame extends CaptionMixin {
|
|
326
|
+
type: 'game';
|
|
327
|
+
/**
|
|
328
|
+
* Game's short name, or a TL object with an input game
|
|
329
|
+
*/
|
|
330
|
+
game: string | tl.TypeInputGame;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* An invoice to be sent (see https://core.telegram.org/bots/payments)
|
|
334
|
+
*/
|
|
335
|
+
export interface InputMediaInvoice extends CaptionMixin {
|
|
336
|
+
type: 'invoice';
|
|
337
|
+
/**
|
|
338
|
+
* Product name (1-32 chars)
|
|
339
|
+
*/
|
|
340
|
+
title: string;
|
|
341
|
+
/**
|
|
342
|
+
* Product description (1-255 chars)
|
|
343
|
+
*/
|
|
344
|
+
description: string;
|
|
345
|
+
/**
|
|
346
|
+
* The invoice itself
|
|
347
|
+
*/
|
|
348
|
+
invoice: tl.TypeInvoice;
|
|
349
|
+
/**
|
|
350
|
+
* Bot-defined invoice payload (1-128 bytes).
|
|
351
|
+
*
|
|
352
|
+
* Will not be displayed to the user and can be used
|
|
353
|
+
* for internal processes
|
|
354
|
+
*/
|
|
355
|
+
payload: Uint8Array;
|
|
356
|
+
/**
|
|
357
|
+
* Payments provider token, obtained from
|
|
358
|
+
* [@BotFather](//t.me/botfather)
|
|
359
|
+
*/
|
|
360
|
+
token: string;
|
|
361
|
+
/**
|
|
362
|
+
* Data about the invoice as a plain JS object, which
|
|
363
|
+
* will be shared with the payment provider. A detailed
|
|
364
|
+
* description of required fields should be provided by
|
|
365
|
+
* the payment provider.
|
|
366
|
+
*/
|
|
367
|
+
providerData: unknown;
|
|
368
|
+
/**
|
|
369
|
+
* Start parameter for the bot
|
|
370
|
+
*/
|
|
371
|
+
startParam: string;
|
|
372
|
+
/**
|
|
373
|
+
* Product photo. Can be a photo of the goods or a marketing image for a service.
|
|
374
|
+
*
|
|
375
|
+
* Can be a URL, or a TL object with input web document
|
|
376
|
+
*/
|
|
377
|
+
photo?: string | tl.TypeInputWebDocument;
|
|
378
|
+
/**
|
|
379
|
+
* Extended media (i.e. media that will be available once the invoice is paid)
|
|
380
|
+
*/
|
|
381
|
+
extendedMedia?: InputMediaLike;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* A simple poll to be sent
|
|
385
|
+
*
|
|
386
|
+
* > **Note**: when using user account,
|
|
387
|
+
* > the poll can't be sent to PMs, only to channels/groups,
|
|
388
|
+
* > otherwise there will be `MEDIA_INVALID` error.
|
|
389
|
+
*/
|
|
390
|
+
export interface InputMediaPoll extends CaptionMixin {
|
|
391
|
+
type: 'poll';
|
|
392
|
+
/**
|
|
393
|
+
* Question of the poll (1-255 chars for users, 1-300 chars for bots)
|
|
394
|
+
*/
|
|
395
|
+
question: InputText;
|
|
396
|
+
/**
|
|
397
|
+
* Answers of the poll.
|
|
398
|
+
*
|
|
399
|
+
* You can either provide a string, or a
|
|
400
|
+
* TL object representing an answer.
|
|
401
|
+
* Strings will be transformed to TL
|
|
402
|
+
* objects, with a single=byte incrementing
|
|
403
|
+
* `option` value.
|
|
404
|
+
*/
|
|
405
|
+
answers: (InputText | tl.TypePollAnswer)[];
|
|
406
|
+
/**
|
|
407
|
+
* Whether this is poll is closed
|
|
408
|
+
* (i.e. nobody can vote anymore)
|
|
409
|
+
*/
|
|
410
|
+
closed?: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Whether this is a public poll
|
|
413
|
+
* (i.e. users who have voted are visible to everyone)
|
|
414
|
+
*/
|
|
415
|
+
public?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Whether users can select multiple answers
|
|
418
|
+
* as an answer
|
|
419
|
+
*/
|
|
420
|
+
multiple?: boolean;
|
|
421
|
+
/**
|
|
422
|
+
* Amount of time in seconds the poll will be active after creation (5-600).
|
|
423
|
+
*
|
|
424
|
+
* Can't be used together with `closeDate`.
|
|
425
|
+
*/
|
|
426
|
+
closePeriod?: number;
|
|
427
|
+
/**
|
|
428
|
+
* Point in time when the poll will be automatically closed.
|
|
429
|
+
*
|
|
430
|
+
* Must be at least 5 and no more than 600 seconds in the future,
|
|
431
|
+
* can't be used together with `closePeriod`.
|
|
432
|
+
*
|
|
433
|
+
* When `number` is used, UNIX time in ms is expected
|
|
434
|
+
*/
|
|
435
|
+
closeDate?: number | Date;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* A quiz to be sent.
|
|
439
|
+
*
|
|
440
|
+
* Quiz is an extended version of a poll, but quizzes have
|
|
441
|
+
* correct answers, and votes can't be retracted from them
|
|
442
|
+
*/
|
|
443
|
+
export interface InputMediaQuiz extends Omit<InputMediaPoll, 'type'> {
|
|
444
|
+
type: 'quiz';
|
|
445
|
+
/**
|
|
446
|
+
* Correct answer ID(s) or index(es).
|
|
447
|
+
*
|
|
448
|
+
* > **Note**: even though quizzes can actually
|
|
449
|
+
* > only have exactly one correct answer,
|
|
450
|
+
* > the API itself has the possibility to pass
|
|
451
|
+
* > multiple or zero correct answers,
|
|
452
|
+
* > but that would result in `QUIZ_CORRECT_ANSWERS_TOO_MUCH`
|
|
453
|
+
* > and `QUIZ_CORRECT_ANSWERS_EMPTY` errors respectively.
|
|
454
|
+
* >
|
|
455
|
+
* > But since the API has that option, we also provide it,
|
|
456
|
+
* > maybe to future-proof this :shrug:
|
|
457
|
+
*/
|
|
458
|
+
correct: MaybeArray<number | Uint8Array>;
|
|
459
|
+
/**
|
|
460
|
+
* Explanation of the quiz solution
|
|
461
|
+
*/
|
|
462
|
+
solution?: InputText;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* A story to be sent
|
|
466
|
+
*/
|
|
467
|
+
export interface InputMediaStory extends CaptionMixin {
|
|
468
|
+
type: 'story';
|
|
469
|
+
/**
|
|
470
|
+
* Owner of the story
|
|
471
|
+
*/
|
|
472
|
+
peer: InputPeerLike;
|
|
473
|
+
/**
|
|
474
|
+
* ID of the story
|
|
475
|
+
*/
|
|
476
|
+
id: number;
|
|
477
|
+
}
|
|
478
|
+
/** A webpage to be sent */
|
|
479
|
+
export interface InputMediaWebpage extends CaptionMixin {
|
|
480
|
+
type: 'webpage';
|
|
481
|
+
/**
|
|
482
|
+
* Whether the link must be present in the message
|
|
483
|
+
* for the preview to appear
|
|
484
|
+
*/
|
|
485
|
+
required?: boolean;
|
|
486
|
+
/**
|
|
487
|
+
* By default, size of the media in the preview
|
|
488
|
+
* is determined based on content type.
|
|
489
|
+
*
|
|
490
|
+
* You can override this behaviour by passing the wanted size here
|
|
491
|
+
*/
|
|
492
|
+
size?: 'large' | 'small';
|
|
493
|
+
/** Webpage URL */
|
|
494
|
+
url: string;
|
|
495
|
+
}
|
|
496
|
+
export interface InputMediaPaidMedia extends CaptionMixin {
|
|
497
|
+
type: 'paid';
|
|
498
|
+
/**
|
|
499
|
+
* Media to be sent
|
|
500
|
+
*/
|
|
501
|
+
media: MaybeArray<InputMediaLike>;
|
|
502
|
+
/**
|
|
503
|
+
* Amount of stars that should be paid for the media
|
|
504
|
+
*/
|
|
505
|
+
starsAmount: number | tl.Long;
|
|
506
|
+
/**
|
|
507
|
+
* Custom payload (for bots only)
|
|
508
|
+
*/
|
|
509
|
+
payload?: string;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Input media that can be sent somewhere.
|
|
513
|
+
*
|
|
514
|
+
* Note that meta-fields (like `duration`) are only
|
|
515
|
+
* applicable if `file` is {@link UploadFileLike},
|
|
516
|
+
* otherwise they are ignored.
|
|
517
|
+
*
|
|
518
|
+
* @link InputMedia
|
|
519
|
+
*/
|
|
520
|
+
export type InputMediaLike = InputMediaAudio | InputMediaVoice | InputMediaDocument | InputMediaPhoto | InputMediaVideo | InputMediaAuto | InputMediaSticker | InputMediaVenue | InputMediaGeo | InputMediaGeoLive | InputMediaDice | InputMediaContact | InputMediaGame | InputMediaInvoice | InputMediaPoll | InputMediaQuiz | InputMediaStory | InputMediaWebpage | InputMediaPaidMedia | tl.TypeInputMedia;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { MessageMedia } from '../messages/message-media.js';
|
|
3
|
+
import { WebDocument } from '../files/web-document.js';
|
|
4
|
+
import { ExtendedMediaPreview } from './extended-media.js';
|
|
5
|
+
/**
|
|
6
|
+
* Information about invoice's extended media.
|
|
7
|
+
* - `none`: there is no extended media in this invoice
|
|
8
|
+
* - `preview`: there is only a preview of this invoice's media ({@link Invoice.extendedMediaPreview})
|
|
9
|
+
* - `full`: there is a full version of this invoice's media available ({@link Invoice.extendedMedia})
|
|
10
|
+
*/
|
|
11
|
+
export type InvoiceExtendedMediaState = 'none' | 'preview' | 'full';
|
|
12
|
+
/**
|
|
13
|
+
* An invoice
|
|
14
|
+
*/
|
|
15
|
+
export declare class Invoice {
|
|
16
|
+
readonly raw: tl.RawMessageMediaInvoice;
|
|
17
|
+
private readonly _extendedMedia?;
|
|
18
|
+
readonly type: "invoice";
|
|
19
|
+
constructor(raw: tl.RawMessageMediaInvoice, _extendedMedia?: MessageMedia | undefined);
|
|
20
|
+
/**
|
|
21
|
+
* Whether the shipping address was requested
|
|
22
|
+
*/
|
|
23
|
+
isShippingAddressRequested(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether this is an example (test) invoice
|
|
26
|
+
*/
|
|
27
|
+
isTest(): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Product name, 1-32 characters
|
|
30
|
+
*/
|
|
31
|
+
get title(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Product description, 1-255 characters
|
|
34
|
+
*/
|
|
35
|
+
get description(): string;
|
|
36
|
+
/**
|
|
37
|
+
* URL of the product photo for the invoice
|
|
38
|
+
*/
|
|
39
|
+
get photo(): WebDocument | null;
|
|
40
|
+
/**
|
|
41
|
+
* Message ID of receipt
|
|
42
|
+
*/
|
|
43
|
+
get receiptMessageId(): number | null;
|
|
44
|
+
/**
|
|
45
|
+
* Three-letter ISO 4217 currency code
|
|
46
|
+
*/
|
|
47
|
+
get currency(): string;
|
|
48
|
+
/**
|
|
49
|
+
* Total price in the smallest units of the currency
|
|
50
|
+
* (integer, not float/double). For example, for a price
|
|
51
|
+
* of `US$ 1.45` `amount = 145`.
|
|
52
|
+
*
|
|
53
|
+
* See the exp parameter in [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
|
|
54
|
+
* it shows the number of digits past the decimal point
|
|
55
|
+
* for each currency (2 for the majority of currencies).
|
|
56
|
+
*/
|
|
57
|
+
get amount(): tl.Long;
|
|
58
|
+
/**
|
|
59
|
+
* Unique bot deep-linking parameter that can be used to generate this invoice
|
|
60
|
+
*/
|
|
61
|
+
get startParam(): string;
|
|
62
|
+
/**
|
|
63
|
+
* If this invoice has extended media
|
|
64
|
+
*/
|
|
65
|
+
get extendedMediaState(): InvoiceExtendedMediaState;
|
|
66
|
+
/**
|
|
67
|
+
* Get the invoice's extended media preview.
|
|
68
|
+
* Only available if {@link extendedMediaState} is `preview`.
|
|
69
|
+
* Otherwise, throws an error.
|
|
70
|
+
*/
|
|
71
|
+
get extendedMediaPreview(): ExtendedMediaPreview;
|
|
72
|
+
/**
|
|
73
|
+
* Get the invoice's extended media.
|
|
74
|
+
* Only available if {@link extendedMediaState} is `full`.
|
|
75
|
+
* Otherwise, throws an error.
|
|
76
|
+
*/
|
|
77
|
+
get extendedMedia(): MessageMedia;
|
|
78
|
+
/**
|
|
79
|
+
* Input media TL object generated from this object,
|
|
80
|
+
* to be used inside {@link InputMediaLike} and
|
|
81
|
+
* {@link TelegramClient.sendMedia}.
|
|
82
|
+
*
|
|
83
|
+
* Invoice can't provide an input media, since some
|
|
84
|
+
* of the data is not available to the user,
|
|
85
|
+
* which is required to send it. This getter
|
|
86
|
+
* is only provided to allow using `msg.media.inputMedia`
|
|
87
|
+
*/
|
|
88
|
+
get inputMedia(): tl.TypeInputMedia;
|
|
89
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { tl } from '@mtcute/tl';
|
|
2
|
+
import { FileLocation } from '../files/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* A point on the map
|
|
5
|
+
*/
|
|
6
|
+
export declare class RawLocation {
|
|
7
|
+
readonly geo: tl.RawGeoPoint;
|
|
8
|
+
constructor(geo: tl.RawGeoPoint);
|
|
9
|
+
/**
|
|
10
|
+
* Geo point latitude
|
|
11
|
+
*/
|
|
12
|
+
get latitude(): number;
|
|
13
|
+
/**
|
|
14
|
+
* Geo point longitude
|
|
15
|
+
*/
|
|
16
|
+
get longitude(): number;
|
|
17
|
+
/**
|
|
18
|
+
* Accuracy radius in meters.
|
|
19
|
+
*/
|
|
20
|
+
get radius(): number;
|
|
21
|
+
/**
|
|
22
|
+
* Create {@link FileLocation} containing
|
|
23
|
+
* server-generated image with the map preview
|
|
24
|
+
*/
|
|
25
|
+
preview(params?: {
|
|
26
|
+
/**
|
|
27
|
+
* Map width in pixels before applying scale (16-1024)
|
|
28
|
+
*
|
|
29
|
+
* @default `128`
|
|
30
|
+
*/
|
|
31
|
+
width?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Map height in pixels before applying scale (16-1024)
|
|
34
|
+
*
|
|
35
|
+
* @default `128`
|
|
36
|
+
*/
|
|
37
|
+
height?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Map zoom level (13-20)
|
|
40
|
+
*
|
|
41
|
+
* @default `15`
|
|
42
|
+
*/
|
|
43
|
+
zoom?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Map scale (1-3)
|
|
46
|
+
*
|
|
47
|
+
* @default `1`
|
|
48
|
+
*/
|
|
49
|
+
scale?: number;
|
|
50
|
+
}): FileLocation;
|
|
51
|
+
/**
|
|
52
|
+
* Input media TL object generated from this object,
|
|
53
|
+
* to be used inside {@link InputMediaLike} and
|
|
54
|
+
* {@link TelegramClient.sendMedia}
|
|
55
|
+
*/
|
|
56
|
+
get inputMedia(): tl.TypeInputMedia;
|
|
57
|
+
}
|
|
58
|
+
export declare class Location extends RawLocation {
|
|
59
|
+
readonly type: "location";
|
|
60
|
+
}
|
|
61
|
+
export declare class LiveLocation extends RawLocation {
|
|
62
|
+
readonly live: tl.RawMessageMediaGeoLive;
|
|
63
|
+
readonly type: "live_location";
|
|
64
|
+
constructor(live: tl.RawMessageMediaGeoLive);
|
|
65
|
+
/**
|
|
66
|
+
* A direction in which the location moves, in degrees; 1-360
|
|
67
|
+
*/
|
|
68
|
+
get heading(): number | null;
|
|
69
|
+
/**
|
|
70
|
+
* Validity period of provided geolocation
|
|
71
|
+
*/
|
|
72
|
+
get period(): number;
|
|
73
|
+
/**
|
|
74
|
+
* Input media TL object generated from this object,
|
|
75
|
+
* to be used inside {@link InputMediaLike} and
|
|
76
|
+
* {@link TelegramClient.sendMedia}
|
|
77
|
+
*
|
|
78
|
+
* Note that using this will result in an
|
|
79
|
+
* independent live geolocation, which
|
|
80
|
+
* will not be auto-updated with the current
|
|
81
|
+
*/
|
|
82
|
+
get inputMedia(): tl.TypeInputMedia;
|
|
83
|
+
}
|