@mtkruto/node 0.1.132 → 0.1.133
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/esm/3_types.d.ts +3 -0
- package/esm/3_types.js +3 -0
- package/esm/4_constants.d.ts +2 -2
- package/esm/4_constants.js +2 -2
- package/esm/client/0_utilities.d.ts +2 -2
- package/esm/client/0_utilities.js +3 -5
- package/esm/client/3_types.d.ts +10 -5
- package/esm/client/4_composer.d.ts +4 -4
- package/esm/client/4_composer.js +13 -1
- package/esm/client/5_client.d.ts +36 -36
- package/esm/client/5_client.js +181 -177
- package/esm/tl/2_types.d.ts +313 -24
- package/esm/tl/2_types.js +982 -46
- package/esm/tl/3_functions.d.ts +95 -32
- package/esm/tl/3_functions.js +227 -66
- package/esm/types/0_chat_photo.d.ts +22 -21
- package/esm/types/0_giveaway_parameters.d.ts +9 -0
- package/esm/types/0_giveaway_parameters.js +9 -0
- package/esm/types/0_message_entity.d.ts +93 -74
- package/esm/types/0_reaction.d.ts +13 -10
- package/esm/types/0_reaction.js +16 -1
- package/esm/types/1_bot_command_scope.d.ts +32 -27
- package/esm/types/1_chat_p.d.ts +76 -68
- package/esm/types/1_giveaway.d.ts +8 -0
- package/esm/types/1_giveaway.js +7 -0
- package/esm/types/1_keyboard_button.d.ts +62 -56
- package/esm/types/1_keyboard_button.js +3 -0
- package/esm/types/1_message_reaction.d.ts +14 -0
- package/esm/types/1_message_reaction.js +22 -0
- package/esm/types/1_user.d.ts +2 -2
- package/esm/types/2_inline_keyboard_button.d.ts +44 -37
- package/esm/types/3_message.d.ts +170 -113
- package/esm/types/3_message.js +218 -121
- package/esm/types/4_chat.d.ts +32 -29
- package/package.json +1 -1
- package/script/3_types.d.ts +3 -0
- package/script/3_types.js +3 -0
- package/script/4_constants.d.ts +2 -2
- package/script/4_constants.js +2 -2
- package/script/client/0_utilities.d.ts +2 -2
- package/script/client/0_utilities.js +3 -5
- package/script/client/3_types.d.ts +10 -5
- package/script/client/4_composer.d.ts +4 -4
- package/script/client/4_composer.js +13 -1
- package/script/client/5_client.d.ts +36 -36
- package/script/client/5_client.js +180 -176
- package/script/tl/2_types.d.ts +313 -24
- package/script/tl/2_types.js +1169 -217
- package/script/tl/3_functions.d.ts +95 -32
- package/script/tl/3_functions.js +241 -77
- package/script/types/0_chat_photo.d.ts +22 -21
- package/script/types/0_giveaway_parameters.d.ts +9 -0
- package/script/types/0_giveaway_parameters.js +13 -0
- package/script/types/0_message_entity.d.ts +93 -74
- package/script/types/0_reaction.d.ts +13 -10
- package/script/types/0_reaction.js +19 -0
- package/script/types/1_bot_command_scope.d.ts +32 -27
- package/script/types/1_chat_p.d.ts +76 -68
- package/script/types/1_giveaway.d.ts +8 -0
- package/script/types/1_giveaway.js +11 -0
- package/script/types/1_keyboard_button.d.ts +62 -56
- package/script/types/1_keyboard_button.js +3 -0
- package/script/types/1_message_reaction.d.ts +14 -0
- package/script/types/1_message_reaction.js +26 -0
- package/script/types/1_user.d.ts +2 -2
- package/script/types/2_inline_keyboard_button.d.ts +44 -37
- package/script/types/3_message.d.ts +170 -113
- package/script/types/3_message.js +220 -122
- package/script/types/4_chat.d.ts +32 -29
package/script/tl/3_functions.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.account_updateUsername_ = exports.account_checkUsername_ = exports.account_reportPeer_ = exports.account_getWallPapers_ = exports.account_updateStatus_ = exports.account_updateProfile_ = exports.account_resetNotifySettings_ = exports.account_getNotifySettings_ = exports.account_updateNotifySettings_ = exports.account_unregisterDevice_ = exports.account_registerDevice_ = exports.auth_resetLoginEmail_ = exports.auth_requestFirebaseSms_ = exports.auth_importWebTokenAuthorization_ = exports.auth_checkRecoveryPassword_ = exports.auth_acceptLoginToken_ = exports.auth_importLoginToken_ = exports.auth_exportLoginToken_ = exports.auth_dropTempAuthKeys_ = exports.auth_cancelCode_ = exports.auth_resendCode_ = exports.auth_recoverPassword_ = exports.auth_requestPasswordRecovery_ = exports.auth_checkPassword_ = exports.auth_importBotAuthorization_ = exports.auth_bindTempAuthKey_ = exports.auth_importAuthorization_ = exports.auth_exportAuthorization_ = exports.auth_resetAuthorizations_ = exports.auth_logOut_ = exports.auth_signIn_ = exports.auth_signUp_ = exports.auth_sendCode_ = exports.invokeWithTakeout_ = exports.invokeWithMessagesRange_ = exports.invokeWithoutUpdates_ = exports.invokeWithLayer_ = exports.initConnection_ = exports.invokeAfterMsgs_ = exports.invokeAfterMsg_ = exports.destroy_auth_key_ = exports.destroy_session_ = exports.ping_delay_disconnect_ = exports.ping_ = exports.get_future_salts_ = exports.rpc_drop_answer_ = exports.set_client_DH_params_ = exports.req_DH_params_ = exports.req_pq_multi_ = exports.Function_ = void 0;
|
|
4
4
|
exports.account_getTheme_ = exports.account_installTheme_ = exports.account_saveTheme_ = exports.account_updateTheme_ = exports.account_createTheme_ = exports.account_uploadTheme_ = exports.account_saveAutoDownloadSettings_ = exports.account_getAutoDownloadSettings_ = exports.account_resetWallPapers_ = exports.account_installWallPaper_ = exports.account_saveWallPaper_ = exports.account_uploadWallPaper_ = exports.account_getWallPaper_ = exports.account_getNotifyExceptions_ = exports.account_setContactSignUpNotification_ = exports.account_getContactSignUpNotification_ = exports.account_cancelPasswordEmail_ = exports.account_resendPasswordEmail_ = exports.account_confirmPasswordEmail_ = exports.account_finishTakeoutSession_ = exports.account_initTakeoutSession_ = exports.account_verifyEmail_ = exports.account_sendVerifyEmailCode_ = exports.account_verifyPhone_ = exports.account_sendVerifyPhoneCode_ = exports.account_acceptAuthorization_ = exports.account_getAuthorizationForm_ = exports.account_deleteSecureValue_ = exports.account_saveSecureValue_ = exports.account_getSecureValue_ = exports.account_getAllSecureValues_ = exports.account_resetWebAuthorizations_ = exports.account_resetWebAuthorization_ = exports.account_getWebAuthorizations_ = exports.account_getTmpPassword_ = exports.account_confirmPhone_ = exports.account_sendConfirmPhoneCode_ = exports.account_updatePasswordSettings_ = exports.account_getPasswordSettings_ = exports.account_getPassword_ = exports.account_resetAuthorization_ = exports.account_getAuthorizations_ = exports.account_updateDeviceLocked_ = exports.account_changePhone_ = exports.account_sendChangePhoneCode_ = exports.account_setAccountTTL_ = exports.account_getAccountTTL_ = exports.account_deleteAccount_ = exports.account_setPrivacy_ = exports.account_getPrivacy_ = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.functions = exports.premium_getUserBoosts_ = exports.premium_getBoostsStatus_ = exports.premium_applyBoost_ = exports.premium_getMyBoosts_ = exports.premium_getBoostsList_ = exports.stories_togglePeerStoriesHidden_ = exports.stories_getChatsToSend_ = exports.stories_getPeerMaxIDs_ = exports.stories_getAllReadPeerStories_ = exports.stories_getPeerStories_ = exports.stories_sendReaction_ = exports.stories_activateStealthMode_ = exports.stories_report_ = exports.stories_exportStoryLink_ = exports.stories_getStoriesViews_ = exports.stories_getStoryViewsList_ = exports.stories_incrementStoryViews_ = exports.stories_readStories_ = exports.stories_toggleAllStoriesHidden_ = exports.stories_getStoriesByID_ = void 0;
|
|
5
|
+
exports.contacts_toggleTopPeers_ = exports.contacts_getSaved_ = exports.contacts_resetSaved_ = exports.contacts_resetTopPeerRating_ = exports.contacts_getTopPeers_ = exports.contacts_resolveUsername_ = exports.contacts_search_ = exports.contacts_getBlocked_ = exports.contacts_unblock_ = exports.contacts_block_ = exports.contacts_deleteByPhones_ = exports.contacts_deleteContacts_ = exports.contacts_importContacts_ = exports.contacts_getContacts_ = exports.contacts_getStatuses_ = exports.contacts_getContactIDs_ = exports.users_setSecureValueErrors_ = exports.users_getFullUser_ = exports.users_getUsers_ = exports.account_getChannelRestrictedStatusEmojis_ = exports.account_getChannelDefaultEmojiStatuses_ = exports.account_getDefaultBackgroundEmojis_ = exports.account_updateColor_ = exports.account_invalidateSignInCodes_ = exports.account_deleteAutoSaveExceptions_ = exports.account_saveAutoSaveSettings_ = exports.account_getAutoSaveSettings_ = exports.account_getDefaultGroupPhotoEmojis_ = exports.account_getDefaultProfilePhotoEmojis_ = exports.account_toggleUsername_ = exports.account_reorderUsernames_ = exports.account_clearRecentEmojiStatuses_ = exports.account_getRecentEmojiStatuses_ = exports.account_getDefaultEmojiStatuses_ = exports.account_updateEmojiStatus_ = exports.account_uploadRingtone_ = exports.account_saveRingtone_ = exports.account_getSavedRingtones_ = exports.account_changeAuthorizationSettings_ = exports.account_setAuthorizationTTL_ = exports.account_getChatThemes_ = exports.account_declinePasswordReset_ = exports.account_resetPassword_ = exports.account_reportProfilePhoto_ = exports.account_setGlobalPrivacySettings_ = exports.account_getGlobalPrivacySettings_ = exports.account_getMultiWallPapers_ = exports.account_getContentSettings_ = exports.account_setContentSettings_ = exports.account_getThemes_ = void 0;
|
|
6
|
+
exports.messages_getStickerSet_ = exports.messages_importChatInvite_ = exports.messages_checkChatInvite_ = exports.messages_exportChatInvite_ = exports.messages_getWebPagePreview_ = exports.messages_getAllStickers_ = exports.messages_getStickers_ = exports.messages_readMessageContents_ = exports.messages_reportEncryptedSpam_ = exports.messages_receivedQueue_ = exports.messages_sendEncryptedService_ = exports.messages_sendEncryptedFile_ = exports.messages_sendEncrypted_ = exports.messages_readEncryptedHistory_ = exports.messages_setEncryptedTyping_ = exports.messages_discardEncryption_ = exports.messages_acceptEncryption_ = exports.messages_requestEncryption_ = exports.messages_getDhConfig_ = exports.messages_createChat_ = exports.messages_deleteChatUser_ = exports.messages_addChatUser_ = exports.messages_editChatPhoto_ = exports.messages_editChatTitle_ = exports.messages_getFullChat_ = exports.messages_getChats_ = exports.messages_report_ = exports.messages_getPeerSettings_ = exports.messages_reportSpam_ = exports.messages_forwardMessages_ = exports.messages_sendMedia_ = exports.messages_sendMessage_ = exports.messages_setTyping_ = exports.messages_receivedMessages_ = exports.messages_deleteMessages_ = exports.messages_deleteHistory_ = exports.messages_readHistory_ = exports.messages_search_ = exports.messages_getHistory_ = exports.messages_getDialogs_ = exports.messages_getMessages_ = exports.contacts_setBlocked_ = exports.contacts_editCloseFriends_ = exports.contacts_importContactToken_ = exports.contacts_exportContactToken_ = exports.contacts_resolvePhone_ = exports.contacts_blockFromReplies_ = exports.contacts_getLocated_ = exports.contacts_acceptContact_ = exports.contacts_addContact_ = void 0;
|
|
7
|
+
exports.messages_uploadEncryptedFile_ = exports.messages_sendMultiMedia_ = exports.messages_getRecentLocations_ = exports.messages_readMentions_ = exports.messages_getUnreadMentions_ = exports.messages_faveSticker_ = exports.messages_getFavedStickers_ = exports.messages_sendScreenshotNotification_ = exports.messages_uploadMedia_ = exports.messages_setBotPrecheckoutResults_ = exports.messages_setBotShippingResults_ = exports.messages_getPinnedDialogs_ = exports.messages_reorderPinnedDialogs_ = exports.messages_toggleDialogPin_ = exports.messages_getWebPage_ = exports.messages_getCommonChats_ = exports.messages_getInlineGameHighScores_ = exports.messages_getGameHighScores_ = exports.messages_setInlineGameScore_ = exports.messages_setGameScore_ = exports.messages_getAttachedStickers_ = exports.messages_getMaskStickers_ = exports.messages_getArchivedStickers_ = exports.messages_clearRecentStickers_ = exports.messages_saveRecentSticker_ = exports.messages_getRecentStickers_ = exports.messages_readFeaturedStickers_ = exports.messages_getFeaturedStickers_ = exports.messages_getAllDrafts_ = exports.messages_saveDraft_ = exports.messages_getPeerDialogs_ = exports.messages_setBotCallbackAnswer_ = exports.messages_getBotCallbackAnswer_ = exports.messages_editInlineBotMessage_ = exports.messages_editMessage_ = exports.messages_getMessageEditData_ = exports.messages_sendInlineBotResult_ = exports.messages_setInlineBotResults_ = exports.messages_getInlineBotResults_ = exports.messages_saveGif_ = exports.messages_getSavedGifs_ = exports.messages_getDocumentByHash_ = exports.messages_reorderStickerSets_ = exports.messages_searchGlobal_ = exports.messages_migrateChat_ = exports.messages_editChatAdmin_ = exports.messages_getMessagesViews_ = exports.messages_startBot_ = exports.messages_uninstallStickerSet_ = exports.messages_installStickerSet_ = void 0;
|
|
8
|
+
exports.messages_setChatTheme_ = exports.messages_checkHistoryImportPeer_ = exports.messages_setHistoryTTL_ = exports.messages_getChatInviteImporters_ = exports.messages_getAdminsWithInvites_ = exports.messages_deleteExportedChatInvite_ = exports.messages_deleteRevokedExportedChatInvites_ = exports.messages_editExportedChatInvite_ = exports.messages_getExportedChatInvite_ = exports.messages_getExportedChatInvites_ = exports.messages_startHistoryImport_ = exports.messages_uploadImportedMedia_ = exports.messages_initHistoryImport_ = exports.messages_checkHistoryImport_ = exports.messages_deletePhoneCallHistory_ = exports.messages_deleteChat_ = exports.messages_unpinAllMessages_ = exports.messages_readDiscussion_ = exports.messages_getDiscussionMessage_ = exports.messages_getReplies_ = exports.messages_getOldFeaturedStickers_ = exports.messages_updateDialogFiltersOrder_ = exports.messages_updateDialogFilter_ = exports.messages_getSuggestedDialogFilters_ = exports.messages_getDialogFilters_ = exports.messages_toggleStickerSets_ = exports.messages_getPollVotes_ = exports.messages_deleteScheduledMessages_ = exports.messages_sendScheduledMessages_ = exports.messages_getScheduledMessages_ = exports.messages_getScheduledHistory_ = exports.messages_hidePeerSettingsBar_ = exports.messages_acceptUrlAuth_ = exports.messages_requestUrlAuth_ = exports.messages_getSearchCounters_ = exports.messages_getEmojiURL_ = exports.messages_getEmojiKeywordsLanguages_ = exports.messages_getEmojiKeywordsDifference_ = exports.messages_getEmojiKeywords_ = exports.messages_editChatDefaultBannedRights_ = exports.messages_editChatAbout_ = exports.messages_getOnlines_ = exports.messages_getPollResults_ = exports.messages_sendVote_ = exports.messages_updatePinnedMessage_ = exports.messages_clearAllDrafts_ = exports.messages_getDialogUnreadMarks_ = exports.messages_markDialogUnread_ = exports.messages_getSplitRanges_ = exports.messages_searchStickerSets_ = void 0;
|
|
9
|
+
exports.updates_getChannelDifference_ = exports.updates_getDifference_ = exports.updates_getState_ = exports.messages_searchEmojiStickerSets_ = exports.messages_setChatWallPaper_ = exports.messages_requestAppWebView_ = exports.messages_getBotApp_ = exports.messages_togglePeerTranslations_ = exports.messages_searchCustomEmoji_ = exports.messages_getEmojiProfilePhotoGroups_ = exports.messages_getEmojiStatusGroups_ = exports.messages_getEmojiGroups_ = exports.messages_sendBotRequestedPeer_ = exports.messages_getDefaultHistoryTTL_ = exports.messages_setDefaultHistoryTTL_ = exports.messages_getExtendedMedia_ = exports.messages_clearRecentReactions_ = exports.messages_getRecentReactions_ = exports.messages_getTopReactions_ = exports.messages_reportReaction_ = exports.messages_getFeaturedEmojiStickers_ = exports.messages_getEmojiStickers_ = exports.messages_getCustomEmojiDocuments_ = exports.messages_rateTranscribedAudio_ = exports.messages_transcribeAudio_ = exports.messages_sendWebViewData_ = exports.messages_sendWebViewResultMessage_ = exports.messages_requestSimpleWebView_ = exports.messages_prolongWebView_ = exports.messages_requestWebView_ = exports.messages_toggleBotInAttachMenu_ = exports.messages_getAttachMenuBot_ = exports.messages_getAttachMenuBots_ = exports.messages_searchSentMedia_ = exports.messages_readReactions_ = exports.messages_getUnreadReactions_ = exports.messages_translateText_ = exports.messages_setDefaultReaction_ = exports.messages_getAvailableReactions_ = exports.messages_setChatAvailableReactions_ = exports.messages_getMessageReactionsList_ = exports.messages_getMessagesReactions_ = exports.messages_sendReaction_ = exports.messages_saveDefaultSendAs_ = exports.messages_toggleNoForwards_ = exports.messages_hideAllChatJoinRequests_ = exports.messages_hideChatJoinRequest_ = exports.messages_getSearchResultsPositions_ = exports.messages_getSearchResultsCalendar_ = exports.messages_getMessageReadParticipants_ = void 0;
|
|
10
|
+
exports.channels_checkUsername_ = exports.channels_editPhoto_ = exports.channels_editTitle_ = exports.channels_editAdmin_ = exports.channels_createChannel_ = exports.channels_getFullChannel_ = exports.channels_getChannels_ = exports.channels_getParticipant_ = exports.channels_getParticipants_ = exports.channels_getMessages_ = exports.channels_reportSpam_ = exports.channels_deleteMessages_ = exports.channels_readHistory_ = exports.help_getPeerProfileColors_ = exports.help_getPeerColors_ = exports.help_getPremiumPromo_ = exports.help_getCountriesList_ = exports.help_dismissSuggestion_ = exports.help_hidePromoData_ = exports.help_getPromoData_ = exports.help_editUserInfo_ = exports.help_getUserInfo_ = exports.help_getSupportName_ = exports.help_getPassportConfig_ = exports.help_saveAppLog_ = exports.help_getAppConfig_ = exports.help_getDeepLinkInfo_ = exports.help_acceptTermsOfService_ = exports.help_getTermsOfServiceUpdate_ = exports.help_getRecentMeUrls_ = exports.help_getCdnConfig_ = exports.help_setBotUpdatesStatus_ = exports.help_getSupport_ = exports.help_getInviteText_ = exports.help_getAppUpdate_ = exports.help_getNearestDc_ = exports.help_getConfig_ = exports.upload_getFileHashes_ = exports.upload_getCdnFileHashes_ = exports.upload_reuploadCdnFile_ = exports.upload_getCdnFile_ = exports.upload_getWebFile_ = exports.upload_saveBigFilePart_ = exports.upload_getFile_ = exports.upload_saveFilePart_ = exports.photos_uploadContactProfilePhoto_ = exports.photos_getUserPhotos_ = exports.photos_deletePhotos_ = exports.photos_uploadProfilePhoto_ = exports.photos_updateProfilePhoto_ = void 0;
|
|
11
|
+
exports.bots_setBotCommands_ = exports.bots_answerWebhookJSONQuery_ = exports.bots_sendCustomRequest_ = exports.channels_updateEmojiStatus_ = exports.channels_getChannelRecommendations_ = exports.channels_toggleViewForumAsMessages_ = exports.channels_updateColor_ = exports.channels_clickSponsoredMessage_ = exports.channels_toggleParticipantsHidden_ = exports.channels_reportAntiSpamFalsePositive_ = exports.channels_toggleAntiSpam_ = exports.channels_reorderPinnedForumTopics_ = exports.channels_deleteTopicHistory_ = exports.channels_updatePinnedForumTopic_ = exports.channels_editForumTopic_ = exports.channels_getForumTopicsByID_ = exports.channels_getForumTopics_ = exports.channels_createForumTopic_ = exports.channels_toggleForum_ = exports.channels_deactivateAllUsernames_ = exports.channels_toggleUsername_ = exports.channels_reorderUsernames_ = exports.channels_toggleJoinRequest_ = exports.channels_toggleJoinToSend_ = exports.channels_deleteParticipantHistory_ = exports.channels_getSendAs_ = exports.channels_getSponsoredMessages_ = exports.channels_viewSponsoredMessage_ = exports.channels_convertToGigagroup_ = exports.channels_getInactiveChannels_ = exports.channels_toggleSlowMode_ = exports.channels_editLocation_ = exports.channels_editCreator_ = exports.channels_setDiscussionGroup_ = exports.channels_getGroupsForDiscussion_ = exports.channels_getLeftChannels_ = exports.channels_togglePreHistoryHidden_ = exports.channels_deleteHistory_ = exports.channels_readMessageContents_ = exports.channels_setStickers_ = exports.channels_getAdminLog_ = exports.channels_editBanned_ = exports.channels_getAdminedPublicChannels_ = exports.channels_toggleSignatures_ = exports.channels_exportMessageLink_ = exports.channels_deleteChannel_ = exports.channels_inviteToChannel_ = exports.channels_leaveChannel_ = exports.channels_joinChannel_ = exports.channels_updateUsername_ = void 0;
|
|
12
|
+
exports.phone_joinGroupCall_ = exports.phone_createGroupCall_ = exports.phone_sendSignalingData_ = exports.phone_saveCallDebug_ = exports.phone_setCallRating_ = exports.phone_discardCall_ = exports.phone_receivedCall_ = exports.phone_confirmCall_ = exports.phone_acceptCall_ = exports.phone_requestCall_ = exports.phone_getCallConfig_ = exports.stickers_deleteStickerSet_ = exports.stickers_renameStickerSet_ = exports.stickers_changeSticker_ = exports.stickers_suggestShortName_ = exports.stickers_checkShortName_ = exports.stickers_setStickerSetThumb_ = exports.stickers_addStickerToSet_ = exports.stickers_changeStickerPosition_ = exports.stickers_removeStickerFromSet_ = exports.stickers_createStickerSet_ = exports.payments_launchPrepaidGiveaway_ = exports.payments_getGiveawayInfo_ = exports.payments_applyGiftCode_ = exports.payments_checkGiftCode_ = exports.payments_getPremiumGiftCodeOptions_ = exports.payments_canPurchasePremium_ = exports.payments_assignPlayMarketTransaction_ = exports.payments_assignAppStoreTransaction_ = exports.payments_exportInvoice_ = exports.payments_getBankCardData_ = exports.payments_clearSavedInfo_ = exports.payments_getSavedInfo_ = exports.payments_sendPaymentForm_ = exports.payments_validateRequestedInfo_ = exports.payments_getPaymentReceipt_ = exports.payments_getPaymentForm_ = exports.bots_invokeWebViewCustomMethod_ = exports.bots_allowSendMessage_ = exports.bots_canSendMessage_ = exports.bots_toggleUsername_ = exports.bots_reorderUsernames_ = exports.bots_getBotInfo_ = exports.bots_setBotInfo_ = exports.bots_setBotGroupDefaultAdminRights_ = exports.bots_setBotBroadcastDefaultAdminRights_ = exports.bots_getBotMenuButton_ = exports.bots_setBotMenuButton_ = exports.bots_getBotCommands_ = exports.bots_resetBotCommands_ = void 0;
|
|
13
|
+
exports.stories_getAllStories_ = exports.stories_togglePinned_ = exports.stories_deleteStories_ = exports.stories_editStory_ = exports.stories_sendStory_ = exports.stories_canSendStory_ = exports.chatlists_leaveChatlist_ = exports.chatlists_getLeaveChatlistSuggestions_ = exports.chatlists_hideChatlistUpdates_ = exports.chatlists_joinChatlistUpdates_ = exports.chatlists_getChatlistUpdates_ = exports.chatlists_joinChatlistInvite_ = exports.chatlists_checkChatlistInvite_ = exports.chatlists_getExportedInvites_ = exports.chatlists_editExportedInvite_ = exports.chatlists_deleteExportedInvite_ = exports.chatlists_exportChatlistInvite_ = exports.stats_getStoryPublicForwards_ = exports.stats_getStoryStats_ = exports.stats_getMessageStats_ = exports.stats_getMessagePublicForwards_ = exports.stats_getMegagroupStats_ = exports.stats_loadAsyncGraph_ = exports.stats_getBroadcastStats_ = exports.folders_editPeerFolders_ = exports.langpack_getLanguage_ = exports.langpack_getLanguages_ = exports.langpack_getDifference_ = exports.langpack_getStrings_ = exports.langpack_getLangPack_ = exports.phone_saveCallLog_ = exports.phone_getGroupCallStreamRtmpUrl_ = exports.phone_getGroupCallStreamChannels_ = exports.phone_leaveGroupCallPresentation_ = exports.phone_joinGroupCallPresentation_ = exports.phone_saveDefaultGroupCallJoinAs_ = exports.phone_startScheduledGroupCall_ = exports.phone_toggleGroupCallStartSubscription_ = exports.phone_exportGroupCallInvite_ = exports.phone_getGroupCallJoinAs_ = exports.phone_editGroupCallTitle_ = exports.phone_editGroupCallParticipant_ = exports.phone_toggleGroupCallRecord_ = exports.phone_checkGroupCall_ = exports.phone_getGroupParticipants_ = exports.phone_getGroupCall_ = exports.phone_toggleGroupCallSettings_ = exports.phone_discardGroupCall_ = exports.phone_inviteToGroupCall_ = exports.phone_leaveGroupCall_ = void 0;
|
|
14
|
+
exports.functions = exports.premium_getUserBoosts_ = exports.premium_getBoostsStatus_ = exports.premium_applyBoost_ = exports.premium_getMyBoosts_ = exports.premium_getBoostsList_ = exports.stories_getStoryReactionsList_ = exports.stories_togglePeerStoriesHidden_ = exports.stories_getChatsToSend_ = exports.stories_getPeerMaxIDs_ = exports.stories_getAllReadPeerStories_ = exports.stories_getPeerStories_ = exports.stories_sendReaction_ = exports.stories_activateStealthMode_ = exports.stories_report_ = exports.stories_exportStoryLink_ = exports.stories_getStoriesViews_ = exports.stories_getStoryViewsList_ = exports.stories_incrementStoryViews_ = exports.stories_readStories_ = exports.stories_toggleAllStoriesHidden_ = exports.stories_getStoriesByID_ = exports.stories_getStoriesArchive_ = exports.stories_getPinnedStories_ = void 0;
|
|
15
15
|
// deno-fmt-ignore-file
|
|
16
16
|
const _1_tl_object_js_1 = require("./1_tl_object.js");
|
|
17
17
|
const _2_types_js_1 = require("./2_types.js");
|
|
@@ -5473,6 +5473,76 @@ Object.defineProperty(account_getDefaultBackgroundEmojis_, "__F", {
|
|
|
5473
5473
|
writable: true,
|
|
5474
5474
|
value: Symbol()
|
|
5475
5475
|
});
|
|
5476
|
+
class account_getChannelDefaultEmojiStatuses_ extends Function_ {
|
|
5477
|
+
get [_1_tl_object_js_1.id]() {
|
|
5478
|
+
return 0x7727A7D5;
|
|
5479
|
+
}
|
|
5480
|
+
static get [_1_tl_object_js_1.name]() {
|
|
5481
|
+
return "account.getChannelDefaultEmojiStatuses";
|
|
5482
|
+
}
|
|
5483
|
+
static get [_1_tl_object_js_1.paramDesc]() {
|
|
5484
|
+
return [
|
|
5485
|
+
["hash", "bigint", "long"],
|
|
5486
|
+
];
|
|
5487
|
+
}
|
|
5488
|
+
get [_1_tl_object_js_1.params]() {
|
|
5489
|
+
return [
|
|
5490
|
+
[this.hash, "bigint", "long"],
|
|
5491
|
+
];
|
|
5492
|
+
}
|
|
5493
|
+
constructor(params) {
|
|
5494
|
+
super();
|
|
5495
|
+
Object.defineProperty(this, "hash", {
|
|
5496
|
+
enumerable: true,
|
|
5497
|
+
configurable: true,
|
|
5498
|
+
writable: true,
|
|
5499
|
+
value: void 0
|
|
5500
|
+
});
|
|
5501
|
+
this.hash = params.hash;
|
|
5502
|
+
}
|
|
5503
|
+
}
|
|
5504
|
+
exports.account_getChannelDefaultEmojiStatuses_ = account_getChannelDefaultEmojiStatuses_;
|
|
5505
|
+
Object.defineProperty(account_getChannelDefaultEmojiStatuses_, "__F", {
|
|
5506
|
+
enumerable: true,
|
|
5507
|
+
configurable: true,
|
|
5508
|
+
writable: true,
|
|
5509
|
+
value: Symbol()
|
|
5510
|
+
});
|
|
5511
|
+
class account_getChannelRestrictedStatusEmojis_ extends Function_ {
|
|
5512
|
+
get [_1_tl_object_js_1.id]() {
|
|
5513
|
+
return 0x35A9E0D5;
|
|
5514
|
+
}
|
|
5515
|
+
static get [_1_tl_object_js_1.name]() {
|
|
5516
|
+
return "account.getChannelRestrictedStatusEmojis";
|
|
5517
|
+
}
|
|
5518
|
+
static get [_1_tl_object_js_1.paramDesc]() {
|
|
5519
|
+
return [
|
|
5520
|
+
["hash", "bigint", "long"],
|
|
5521
|
+
];
|
|
5522
|
+
}
|
|
5523
|
+
get [_1_tl_object_js_1.params]() {
|
|
5524
|
+
return [
|
|
5525
|
+
[this.hash, "bigint", "long"],
|
|
5526
|
+
];
|
|
5527
|
+
}
|
|
5528
|
+
constructor(params) {
|
|
5529
|
+
super();
|
|
5530
|
+
Object.defineProperty(this, "hash", {
|
|
5531
|
+
enumerable: true,
|
|
5532
|
+
configurable: true,
|
|
5533
|
+
writable: true,
|
|
5534
|
+
value: void 0
|
|
5535
|
+
});
|
|
5536
|
+
this.hash = params.hash;
|
|
5537
|
+
}
|
|
5538
|
+
}
|
|
5539
|
+
exports.account_getChannelRestrictedStatusEmojis_ = account_getChannelRestrictedStatusEmojis_;
|
|
5540
|
+
Object.defineProperty(account_getChannelRestrictedStatusEmojis_, "__F", {
|
|
5541
|
+
enumerable: true,
|
|
5542
|
+
configurable: true,
|
|
5543
|
+
writable: true,
|
|
5544
|
+
value: Symbol()
|
|
5545
|
+
});
|
|
5476
5546
|
class users_getUsers_ extends Function_ {
|
|
5477
5547
|
get [_1_tl_object_js_1.id]() {
|
|
5478
5548
|
return 0x0D91A548;
|
|
@@ -16358,7 +16428,7 @@ Object.defineProperty(messages_getDefaultHistoryTTL_, "__F", {
|
|
|
16358
16428
|
});
|
|
16359
16429
|
class messages_sendBotRequestedPeer_ extends Function_ {
|
|
16360
16430
|
get [_1_tl_object_js_1.id]() {
|
|
16361
|
-
return
|
|
16431
|
+
return 0x91B2D060;
|
|
16362
16432
|
}
|
|
16363
16433
|
static get [_1_tl_object_js_1.name]() {
|
|
16364
16434
|
return "messages.sendBotRequestedPeer";
|
|
@@ -16368,7 +16438,7 @@ class messages_sendBotRequestedPeer_ extends Function_ {
|
|
|
16368
16438
|
["peer", _2_types_js_1.types._InputPeer, "InputPeer"],
|
|
16369
16439
|
["msg_id", "number", "int"],
|
|
16370
16440
|
["button_id", "number", "int"],
|
|
16371
|
-
["
|
|
16441
|
+
["requested_peers", [_2_types_js_1.types._InputPeer], "Vector<InputPeer>"],
|
|
16372
16442
|
];
|
|
16373
16443
|
}
|
|
16374
16444
|
get [_1_tl_object_js_1.params]() {
|
|
@@ -16376,7 +16446,7 @@ class messages_sendBotRequestedPeer_ extends Function_ {
|
|
|
16376
16446
|
[this.peer, _2_types_js_1.types._InputPeer, "InputPeer"],
|
|
16377
16447
|
[this.msg_id, "number", "int"],
|
|
16378
16448
|
[this.button_id, "number", "int"],
|
|
16379
|
-
[this.
|
|
16449
|
+
[this.requested_peers, [_2_types_js_1.types._InputPeer], "Vector<InputPeer>"],
|
|
16380
16450
|
];
|
|
16381
16451
|
}
|
|
16382
16452
|
constructor(params) {
|
|
@@ -16399,7 +16469,7 @@ class messages_sendBotRequestedPeer_ extends Function_ {
|
|
|
16399
16469
|
writable: true,
|
|
16400
16470
|
value: void 0
|
|
16401
16471
|
});
|
|
16402
|
-
Object.defineProperty(this, "
|
|
16472
|
+
Object.defineProperty(this, "requested_peers", {
|
|
16403
16473
|
enumerable: true,
|
|
16404
16474
|
configurable: true,
|
|
16405
16475
|
writable: true,
|
|
@@ -16408,7 +16478,7 @@ class messages_sendBotRequestedPeer_ extends Function_ {
|
|
|
16408
16478
|
this.peer = params.peer;
|
|
16409
16479
|
this.msg_id = params.msg_id;
|
|
16410
16480
|
this.button_id = params.button_id;
|
|
16411
|
-
this.
|
|
16481
|
+
this.requested_peers = params.requested_peers;
|
|
16412
16482
|
}
|
|
16413
16483
|
}
|
|
16414
16484
|
exports.messages_sendBotRequestedPeer_ = messages_sendBotRequestedPeer_;
|
|
@@ -17937,41 +18007,6 @@ Object.defineProperty(help_getSupport_, "__F", {
|
|
|
17937
18007
|
writable: true,
|
|
17938
18008
|
value: Symbol()
|
|
17939
18009
|
});
|
|
17940
|
-
class help_getAppChangelog_ extends Function_ {
|
|
17941
|
-
get [_1_tl_object_js_1.id]() {
|
|
17942
|
-
return 0x9010EF6F;
|
|
17943
|
-
}
|
|
17944
|
-
static get [_1_tl_object_js_1.name]() {
|
|
17945
|
-
return "help.getAppChangelog";
|
|
17946
|
-
}
|
|
17947
|
-
static get [_1_tl_object_js_1.paramDesc]() {
|
|
17948
|
-
return [
|
|
17949
|
-
["prev_app_version", "string", "string"],
|
|
17950
|
-
];
|
|
17951
|
-
}
|
|
17952
|
-
get [_1_tl_object_js_1.params]() {
|
|
17953
|
-
return [
|
|
17954
|
-
[this.prev_app_version, "string", "string"],
|
|
17955
|
-
];
|
|
17956
|
-
}
|
|
17957
|
-
constructor(params) {
|
|
17958
|
-
super();
|
|
17959
|
-
Object.defineProperty(this, "prev_app_version", {
|
|
17960
|
-
enumerable: true,
|
|
17961
|
-
configurable: true,
|
|
17962
|
-
writable: true,
|
|
17963
|
-
value: void 0
|
|
17964
|
-
});
|
|
17965
|
-
this.prev_app_version = params.prev_app_version;
|
|
17966
|
-
}
|
|
17967
|
-
}
|
|
17968
|
-
exports.help_getAppChangelog_ = help_getAppChangelog_;
|
|
17969
|
-
Object.defineProperty(help_getAppChangelog_, "__F", {
|
|
17970
|
-
enumerable: true,
|
|
17971
|
-
configurable: true,
|
|
17972
|
-
writable: true,
|
|
17973
|
-
value: Symbol()
|
|
17974
|
-
});
|
|
17975
18010
|
class help_setBotUpdatesStatus_ extends Function_ {
|
|
17976
18011
|
get [_1_tl_object_js_1.id]() {
|
|
17977
18012
|
return 0xEC22CFCD;
|
|
@@ -21332,7 +21367,7 @@ Object.defineProperty(channels_clickSponsoredMessage_, "__F", {
|
|
|
21332
21367
|
});
|
|
21333
21368
|
class channels_updateColor_ extends Function_ {
|
|
21334
21369
|
get [_1_tl_object_js_1.id]() {
|
|
21335
|
-
return
|
|
21370
|
+
return 0xD8AA3671;
|
|
21336
21371
|
}
|
|
21337
21372
|
static get [_1_tl_object_js_1.name]() {
|
|
21338
21373
|
return "channels.updateColor";
|
|
@@ -21340,21 +21375,29 @@ class channels_updateColor_ extends Function_ {
|
|
|
21340
21375
|
static get [_1_tl_object_js_1.paramDesc]() {
|
|
21341
21376
|
return [
|
|
21342
21377
|
["flags", _1_tl_object_js_1.flags, "#"],
|
|
21378
|
+
["for_profile", "true", "flags.1?true"],
|
|
21343
21379
|
["channel", _2_types_js_1.types._InputChannel, "InputChannel"],
|
|
21344
|
-
["color", "number", "int"],
|
|
21380
|
+
["color", "number", "flags.2?int"],
|
|
21345
21381
|
["background_emoji_id", "bigint", "flags.0?long"],
|
|
21346
21382
|
];
|
|
21347
21383
|
}
|
|
21348
21384
|
get [_1_tl_object_js_1.params]() {
|
|
21349
21385
|
return [
|
|
21350
21386
|
["flags", _1_tl_object_js_1.flags, "#"],
|
|
21387
|
+
[this.for_profile ?? null, "true", "flags.1?true"],
|
|
21351
21388
|
[this.channel, _2_types_js_1.types._InputChannel, "InputChannel"],
|
|
21352
|
-
[this.color, "number", "int"],
|
|
21389
|
+
[this.color ?? null, "number", "flags.2?int"],
|
|
21353
21390
|
[this.background_emoji_id ?? null, "bigint", "flags.0?long"],
|
|
21354
21391
|
];
|
|
21355
21392
|
}
|
|
21356
21393
|
constructor(params) {
|
|
21357
21394
|
super();
|
|
21395
|
+
Object.defineProperty(this, "for_profile", {
|
|
21396
|
+
enumerable: true,
|
|
21397
|
+
configurable: true,
|
|
21398
|
+
writable: true,
|
|
21399
|
+
value: void 0
|
|
21400
|
+
});
|
|
21358
21401
|
Object.defineProperty(this, "channel", {
|
|
21359
21402
|
enumerable: true,
|
|
21360
21403
|
configurable: true,
|
|
@@ -21373,6 +21416,7 @@ class channels_updateColor_ extends Function_ {
|
|
|
21373
21416
|
writable: true,
|
|
21374
21417
|
value: void 0
|
|
21375
21418
|
});
|
|
21419
|
+
this.for_profile = params.for_profile;
|
|
21376
21420
|
this.channel = params.channel;
|
|
21377
21421
|
this.color = params.color;
|
|
21378
21422
|
this.background_emoji_id = params.background_emoji_id;
|
|
@@ -21464,6 +21508,50 @@ Object.defineProperty(channels_getChannelRecommendations_, "__F", {
|
|
|
21464
21508
|
writable: true,
|
|
21465
21509
|
value: Symbol()
|
|
21466
21510
|
});
|
|
21511
|
+
class channels_updateEmojiStatus_ extends Function_ {
|
|
21512
|
+
get [_1_tl_object_js_1.id]() {
|
|
21513
|
+
return 0xF0D3E6A8;
|
|
21514
|
+
}
|
|
21515
|
+
static get [_1_tl_object_js_1.name]() {
|
|
21516
|
+
return "channels.updateEmojiStatus";
|
|
21517
|
+
}
|
|
21518
|
+
static get [_1_tl_object_js_1.paramDesc]() {
|
|
21519
|
+
return [
|
|
21520
|
+
["channel", _2_types_js_1.types._InputChannel, "InputChannel"],
|
|
21521
|
+
["emoji_status", _2_types_js_1.types._EmojiStatus, "EmojiStatus"],
|
|
21522
|
+
];
|
|
21523
|
+
}
|
|
21524
|
+
get [_1_tl_object_js_1.params]() {
|
|
21525
|
+
return [
|
|
21526
|
+
[this.channel, _2_types_js_1.types._InputChannel, "InputChannel"],
|
|
21527
|
+
[this.emoji_status, _2_types_js_1.types._EmojiStatus, "EmojiStatus"],
|
|
21528
|
+
];
|
|
21529
|
+
}
|
|
21530
|
+
constructor(params) {
|
|
21531
|
+
super();
|
|
21532
|
+
Object.defineProperty(this, "channel", {
|
|
21533
|
+
enumerable: true,
|
|
21534
|
+
configurable: true,
|
|
21535
|
+
writable: true,
|
|
21536
|
+
value: void 0
|
|
21537
|
+
});
|
|
21538
|
+
Object.defineProperty(this, "emoji_status", {
|
|
21539
|
+
enumerable: true,
|
|
21540
|
+
configurable: true,
|
|
21541
|
+
writable: true,
|
|
21542
|
+
value: void 0
|
|
21543
|
+
});
|
|
21544
|
+
this.channel = params.channel;
|
|
21545
|
+
this.emoji_status = params.emoji_status;
|
|
21546
|
+
}
|
|
21547
|
+
}
|
|
21548
|
+
exports.channels_updateEmojiStatus_ = channels_updateEmojiStatus_;
|
|
21549
|
+
Object.defineProperty(channels_updateEmojiStatus_, "__F", {
|
|
21550
|
+
enumerable: true,
|
|
21551
|
+
configurable: true,
|
|
21552
|
+
writable: true,
|
|
21553
|
+
value: Symbol()
|
|
21554
|
+
});
|
|
21467
21555
|
class bots_sendCustomRequest_ extends Function_ {
|
|
21468
21556
|
get [_1_tl_object_js_1.id]() {
|
|
21469
21557
|
return 0xAA2769ED;
|
|
@@ -25384,7 +25472,7 @@ Object.defineProperty(stats_getMegagroupStats_, "__F", {
|
|
|
25384
25472
|
});
|
|
25385
25473
|
class stats_getMessagePublicForwards_ extends Function_ {
|
|
25386
25474
|
get [_1_tl_object_js_1.id]() {
|
|
25387
|
-
return
|
|
25475
|
+
return 0x5F150144;
|
|
25388
25476
|
}
|
|
25389
25477
|
static get [_1_tl_object_js_1.name]() {
|
|
25390
25478
|
return "stats.getMessagePublicForwards";
|
|
@@ -25393,9 +25481,7 @@ class stats_getMessagePublicForwards_ extends Function_ {
|
|
|
25393
25481
|
return [
|
|
25394
25482
|
["channel", _2_types_js_1.types._InputChannel, "InputChannel"],
|
|
25395
25483
|
["msg_id", "number", "int"],
|
|
25396
|
-
["
|
|
25397
|
-
["offset_peer", _2_types_js_1.types._InputPeer, "InputPeer"],
|
|
25398
|
-
["offset_id", "number", "int"],
|
|
25484
|
+
["offset", "string", "string"],
|
|
25399
25485
|
["limit", "number", "int"],
|
|
25400
25486
|
];
|
|
25401
25487
|
}
|
|
@@ -25403,9 +25489,7 @@ class stats_getMessagePublicForwards_ extends Function_ {
|
|
|
25403
25489
|
return [
|
|
25404
25490
|
[this.channel, _2_types_js_1.types._InputChannel, "InputChannel"],
|
|
25405
25491
|
[this.msg_id, "number", "int"],
|
|
25406
|
-
[this.
|
|
25407
|
-
[this.offset_peer, _2_types_js_1.types._InputPeer, "InputPeer"],
|
|
25408
|
-
[this.offset_id, "number", "int"],
|
|
25492
|
+
[this.offset, "string", "string"],
|
|
25409
25493
|
[this.limit, "number", "int"],
|
|
25410
25494
|
];
|
|
25411
25495
|
}
|
|
@@ -25423,19 +25507,7 @@ class stats_getMessagePublicForwards_ extends Function_ {
|
|
|
25423
25507
|
writable: true,
|
|
25424
25508
|
value: void 0
|
|
25425
25509
|
});
|
|
25426
|
-
Object.defineProperty(this, "
|
|
25427
|
-
enumerable: true,
|
|
25428
|
-
configurable: true,
|
|
25429
|
-
writable: true,
|
|
25430
|
-
value: void 0
|
|
25431
|
-
});
|
|
25432
|
-
Object.defineProperty(this, "offset_peer", {
|
|
25433
|
-
enumerable: true,
|
|
25434
|
-
configurable: true,
|
|
25435
|
-
writable: true,
|
|
25436
|
-
value: void 0
|
|
25437
|
-
});
|
|
25438
|
-
Object.defineProperty(this, "offset_id", {
|
|
25510
|
+
Object.defineProperty(this, "offset", {
|
|
25439
25511
|
enumerable: true,
|
|
25440
25512
|
configurable: true,
|
|
25441
25513
|
writable: true,
|
|
@@ -25449,9 +25521,7 @@ class stats_getMessagePublicForwards_ extends Function_ {
|
|
|
25449
25521
|
});
|
|
25450
25522
|
this.channel = params.channel;
|
|
25451
25523
|
this.msg_id = params.msg_id;
|
|
25452
|
-
this.
|
|
25453
|
-
this.offset_peer = params.offset_peer;
|
|
25454
|
-
this.offset_id = params.offset_id;
|
|
25524
|
+
this.offset = params.offset;
|
|
25455
25525
|
this.limit = params.limit;
|
|
25456
25526
|
}
|
|
25457
25527
|
}
|
|
@@ -26810,6 +26880,7 @@ class stories_getStoryViewsList_ extends Function_ {
|
|
|
26810
26880
|
["flags", _1_tl_object_js_1.flags, "#"],
|
|
26811
26881
|
["just_contacts", "true", "flags.0?true"],
|
|
26812
26882
|
["reactions_first", "true", "flags.2?true"],
|
|
26883
|
+
["forwards_first", "true", "flags.3?true"],
|
|
26813
26884
|
["peer", _2_types_js_1.types._InputPeer, "InputPeer"],
|
|
26814
26885
|
["q", "string", "flags.1?string"],
|
|
26815
26886
|
["id", "number", "int"],
|
|
@@ -26822,6 +26893,7 @@ class stories_getStoryViewsList_ extends Function_ {
|
|
|
26822
26893
|
["flags", _1_tl_object_js_1.flags, "#"],
|
|
26823
26894
|
[this.just_contacts ?? null, "true", "flags.0?true"],
|
|
26824
26895
|
[this.reactions_first ?? null, "true", "flags.2?true"],
|
|
26896
|
+
[this.forwards_first ?? null, "true", "flags.3?true"],
|
|
26825
26897
|
[this.peer, _2_types_js_1.types._InputPeer, "InputPeer"],
|
|
26826
26898
|
[this.q ?? null, "string", "flags.1?string"],
|
|
26827
26899
|
[this.id, "number", "int"],
|
|
@@ -26843,6 +26915,12 @@ class stories_getStoryViewsList_ extends Function_ {
|
|
|
26843
26915
|
writable: true,
|
|
26844
26916
|
value: void 0
|
|
26845
26917
|
});
|
|
26918
|
+
Object.defineProperty(this, "forwards_first", {
|
|
26919
|
+
enumerable: true,
|
|
26920
|
+
configurable: true,
|
|
26921
|
+
writable: true,
|
|
26922
|
+
value: void 0
|
|
26923
|
+
});
|
|
26846
26924
|
Object.defineProperty(this, "peer", {
|
|
26847
26925
|
enumerable: true,
|
|
26848
26926
|
configurable: true,
|
|
@@ -26875,6 +26953,7 @@ class stories_getStoryViewsList_ extends Function_ {
|
|
|
26875
26953
|
});
|
|
26876
26954
|
this.just_contacts = params.just_contacts;
|
|
26877
26955
|
this.reactions_first = params.reactions_first;
|
|
26956
|
+
this.forwards_first = params.forwards_first;
|
|
26878
26957
|
this.peer = params.peer;
|
|
26879
26958
|
this.q = params.q;
|
|
26880
26959
|
this.id = params.id;
|
|
@@ -27311,6 +27390,88 @@ Object.defineProperty(stories_togglePeerStoriesHidden_, "__F", {
|
|
|
27311
27390
|
writable: true,
|
|
27312
27391
|
value: Symbol()
|
|
27313
27392
|
});
|
|
27393
|
+
class stories_getStoryReactionsList_ extends Function_ {
|
|
27394
|
+
get [_1_tl_object_js_1.id]() {
|
|
27395
|
+
return 0xB9B2881F;
|
|
27396
|
+
}
|
|
27397
|
+
static get [_1_tl_object_js_1.name]() {
|
|
27398
|
+
return "stories.getStoryReactionsList";
|
|
27399
|
+
}
|
|
27400
|
+
static get [_1_tl_object_js_1.paramDesc]() {
|
|
27401
|
+
return [
|
|
27402
|
+
["flags", _1_tl_object_js_1.flags, "#"],
|
|
27403
|
+
["forwards_first", "true", "flags.2?true"],
|
|
27404
|
+
["peer", _2_types_js_1.types._InputPeer, "InputPeer"],
|
|
27405
|
+
["id", "number", "int"],
|
|
27406
|
+
["reaction", _2_types_js_1.types._Reaction, "flags.0?Reaction"],
|
|
27407
|
+
["offset", "string", "flags.1?string"],
|
|
27408
|
+
["limit", "number", "int"],
|
|
27409
|
+
];
|
|
27410
|
+
}
|
|
27411
|
+
get [_1_tl_object_js_1.params]() {
|
|
27412
|
+
return [
|
|
27413
|
+
["flags", _1_tl_object_js_1.flags, "#"],
|
|
27414
|
+
[this.forwards_first ?? null, "true", "flags.2?true"],
|
|
27415
|
+
[this.peer, _2_types_js_1.types._InputPeer, "InputPeer"],
|
|
27416
|
+
[this.id, "number", "int"],
|
|
27417
|
+
[this.reaction ?? null, _2_types_js_1.types._Reaction, "flags.0?Reaction"],
|
|
27418
|
+
[this.offset ?? null, "string", "flags.1?string"],
|
|
27419
|
+
[this.limit, "number", "int"],
|
|
27420
|
+
];
|
|
27421
|
+
}
|
|
27422
|
+
constructor(params) {
|
|
27423
|
+
super();
|
|
27424
|
+
Object.defineProperty(this, "forwards_first", {
|
|
27425
|
+
enumerable: true,
|
|
27426
|
+
configurable: true,
|
|
27427
|
+
writable: true,
|
|
27428
|
+
value: void 0
|
|
27429
|
+
});
|
|
27430
|
+
Object.defineProperty(this, "peer", {
|
|
27431
|
+
enumerable: true,
|
|
27432
|
+
configurable: true,
|
|
27433
|
+
writable: true,
|
|
27434
|
+
value: void 0
|
|
27435
|
+
});
|
|
27436
|
+
Object.defineProperty(this, "id", {
|
|
27437
|
+
enumerable: true,
|
|
27438
|
+
configurable: true,
|
|
27439
|
+
writable: true,
|
|
27440
|
+
value: void 0
|
|
27441
|
+
});
|
|
27442
|
+
Object.defineProperty(this, "reaction", {
|
|
27443
|
+
enumerable: true,
|
|
27444
|
+
configurable: true,
|
|
27445
|
+
writable: true,
|
|
27446
|
+
value: void 0
|
|
27447
|
+
});
|
|
27448
|
+
Object.defineProperty(this, "offset", {
|
|
27449
|
+
enumerable: true,
|
|
27450
|
+
configurable: true,
|
|
27451
|
+
writable: true,
|
|
27452
|
+
value: void 0
|
|
27453
|
+
});
|
|
27454
|
+
Object.defineProperty(this, "limit", {
|
|
27455
|
+
enumerable: true,
|
|
27456
|
+
configurable: true,
|
|
27457
|
+
writable: true,
|
|
27458
|
+
value: void 0
|
|
27459
|
+
});
|
|
27460
|
+
this.forwards_first = params.forwards_first;
|
|
27461
|
+
this.peer = params.peer;
|
|
27462
|
+
this.id = params.id;
|
|
27463
|
+
this.reaction = params.reaction;
|
|
27464
|
+
this.offset = params.offset;
|
|
27465
|
+
this.limit = params.limit;
|
|
27466
|
+
}
|
|
27467
|
+
}
|
|
27468
|
+
exports.stories_getStoryReactionsList_ = stories_getStoryReactionsList_;
|
|
27469
|
+
Object.defineProperty(stories_getStoryReactionsList_, "__F", {
|
|
27470
|
+
enumerable: true,
|
|
27471
|
+
configurable: true,
|
|
27472
|
+
writable: true,
|
|
27473
|
+
value: Symbol()
|
|
27474
|
+
});
|
|
27314
27475
|
class premium_getBoostsList_ extends Function_ {
|
|
27315
27476
|
get [_1_tl_object_js_1.id]() {
|
|
27316
27477
|
return 0x60F67660;
|
|
@@ -27657,6 +27818,8 @@ exports.functions = {
|
|
|
27657
27818
|
invalidateSignInCodes: account_invalidateSignInCodes_,
|
|
27658
27819
|
updateColor: account_updateColor_,
|
|
27659
27820
|
getDefaultBackgroundEmojis: account_getDefaultBackgroundEmojis_,
|
|
27821
|
+
getChannelDefaultEmojiStatuses: account_getChannelDefaultEmojiStatuses_,
|
|
27822
|
+
getChannelRestrictedStatusEmojis: account_getChannelRestrictedStatusEmojis_,
|
|
27660
27823
|
},
|
|
27661
27824
|
users: {
|
|
27662
27825
|
getUsers: users_getUsers_,
|
|
@@ -27908,7 +28071,6 @@ exports.functions = {
|
|
|
27908
28071
|
getAppUpdate: help_getAppUpdate_,
|
|
27909
28072
|
getInviteText: help_getInviteText_,
|
|
27910
28073
|
getSupport: help_getSupport_,
|
|
27911
|
-
getAppChangelog: help_getAppChangelog_,
|
|
27912
28074
|
setBotUpdatesStatus: help_setBotUpdatesStatus_,
|
|
27913
28075
|
getCdnConfig: help_getCdnConfig_,
|
|
27914
28076
|
getRecentMeUrls: help_getRecentMeUrls_,
|
|
@@ -27989,6 +28151,7 @@ exports.functions = {
|
|
|
27989
28151
|
updateColor: channels_updateColor_,
|
|
27990
28152
|
toggleViewForumAsMessages: channels_toggleViewForumAsMessages_,
|
|
27991
28153
|
getChannelRecommendations: channels_getChannelRecommendations_,
|
|
28154
|
+
updateEmojiStatus: channels_updateEmojiStatus_,
|
|
27992
28155
|
},
|
|
27993
28156
|
bots: {
|
|
27994
28157
|
sendCustomRequest: bots_sendCustomRequest_,
|
|
@@ -28127,6 +28290,7 @@ exports.functions = {
|
|
|
28127
28290
|
getPeerMaxIDs: stories_getPeerMaxIDs_,
|
|
28128
28291
|
getChatsToSend: stories_getChatsToSend_,
|
|
28129
28292
|
togglePeerStoriesHidden: stories_togglePeerStoriesHidden_,
|
|
28293
|
+
getStoryReactionsList: stories_getStoryReactionsList_,
|
|
28130
28294
|
},
|
|
28131
28295
|
premium: {
|
|
28132
28296
|
getBoostsList: premium_getBoostsList_,
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { types } from "../2_tl.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
interface User extends Base {
|
|
16
|
-
/** Differentiates between user profile photos. */
|
|
17
|
-
personal: true;
|
|
18
|
-
}
|
|
19
|
-
type Chat = Base;
|
|
2
|
+
/** @unlisted */
|
|
3
|
+
export interface ChatPhotoBase {
|
|
4
|
+
/** A file identifier that can be used to download or reuse the small version of the chat photo (160x160). */
|
|
5
|
+
smallFileId: string;
|
|
6
|
+
/** A file identifier that can be used to identify the small version of the chat photo (160x160). */
|
|
7
|
+
smallFileUniqueId: string;
|
|
8
|
+
/** A file identifier that can be used to download or reuse the big version of the chat photo (640x640). */
|
|
9
|
+
bigFileId: string;
|
|
10
|
+
/** A file identifier that can be used to identify the big version of the chat photo (640x640). */
|
|
11
|
+
bigFileUniqueId: string;
|
|
12
|
+
/** Whether the chat photo is animated. */
|
|
13
|
+
hasVideo: boolean;
|
|
20
14
|
}
|
|
15
|
+
/** @unlisted */
|
|
16
|
+
export interface ChatPhotoUser extends ChatPhotoBase {
|
|
17
|
+
/** Differentiates between user profile photos. */
|
|
18
|
+
personal: true;
|
|
19
|
+
}
|
|
20
|
+
/** @unlisted */
|
|
21
|
+
export type ChatPhotoChat = ChatPhotoBase;
|
|
21
22
|
/** This object represents a chat photo. */
|
|
22
|
-
export type ChatPhoto =
|
|
23
|
-
export declare function constructChatPhoto(photo: types.ChatPhoto, chatId: number, chatAccessHash: bigint):
|
|
24
|
-
export declare function constructChatPhoto(photo: types.UserProfilePhoto, chatId: number, chatAccessHash: bigint):
|
|
23
|
+
export type ChatPhoto = ChatPhotoUser | ChatPhotoChat;
|
|
24
|
+
export declare function constructChatPhoto(photo: types.ChatPhoto, chatId: number, chatAccessHash: bigint): ChatPhotoChat;
|
|
25
|
+
export declare function constructChatPhoto(photo: types.UserProfilePhoto, chatId: number, chatAccessHash: bigint): ChatPhotoUser;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { types } from "../2_tl.js";
|
|
2
|
+
export interface GiveawayParameters {
|
|
3
|
+
boostedChatId: number;
|
|
4
|
+
additionalChatIds: number[];
|
|
5
|
+
winnerSelectionDate: Date;
|
|
6
|
+
onlyNewMembers: boolean;
|
|
7
|
+
countries: string[];
|
|
8
|
+
}
|
|
9
|
+
export declare function constructGiveawayParameters(g: types.MessageMediaGiveaway): GiveawayParameters;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.constructGiveawayParameters = void 0;
|
|
4
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
5
|
+
function constructGiveawayParameters(g) {
|
|
6
|
+
const countries = g.countries_iso2 ?? [];
|
|
7
|
+
const boostedChatId = (0, _2_tl_js_1.peerToChatId)(new _2_tl_js_1.types.PeerChannel({ channel_id: g.channels[0] }));
|
|
8
|
+
const additionalChatIds = g.channels.slice(1).map((v) => (0, _2_tl_js_1.peerToChatId)(new _2_tl_js_1.types.PeerChannel({ channel_id: v })));
|
|
9
|
+
const onlyNewMembers = g.only_new_subscribers ? true : false;
|
|
10
|
+
const winnerSelectionDate = new Date(g.until_date * 1000);
|
|
11
|
+
return { boostedChatId, additionalChatIds, winnerSelectionDate, onlyNewMembers, countries };
|
|
12
|
+
}
|
|
13
|
+
exports.constructGiveawayParameters = constructGiveawayParameters;
|