import { functions } from "https://deno.land/x/mtkruto@0.1.141/tl/3_functions.ts";
import { functions } from "https://deno.land/x/mtkruto@0.1.141/tl/3_functions.ts";
type
{ Function; req_pq_multi; req_DH_params; set_client_DH_params; rpc_drop_answer; get_future_salts; ping; ping_delay_disconnect; destroy_session; destroy_auth_key; invokeAfterMsg; invokeAfterMsgs; initConnection; invokeWithLayer; invokeWithoutUpdates; invokeWithMessagesRange; invokeWithTakeout; auth: { sendCode; signUp; signIn; logOut; resetAuthorizations; exportAuthorization; importAuthorization; bindTempAuthKey; importBotAuthorization; checkPassword; requestPasswordRecovery; recoverPassword; resendCode; cancelCode; dropTempAuthKeys; exportLoginToken; importLoginToken; acceptLoginToken; checkRecoveryPassword; importWebTokenAuthorization; requestFirebaseSms; resetLoginEmail; }; account: { registerDevice; unregisterDevice; updateNotifySettings; getNotifySettings; resetNotifySettings; updateProfile; updateStatus; getWallPapers; reportPeer; checkUsername; updateUsername; getPrivacy; setPrivacy; deleteAccount; getAccountTTL; setAccountTTL; sendChangePhoneCode; changePhone; updateDeviceLocked; getAuthorizations; resetAuthorization; getPassword; getPasswordSettings; updatePasswordSettings; sendConfirmPhoneCode; confirmPhone; getTmpPassword; getWebAuthorizations; resetWebAuthorization; resetWebAuthorizations; getAllSecureValues; getSecureValue; saveSecureValue; deleteSecureValue; getAuthorizationForm; acceptAuthorization; sendVerifyPhoneCode; verifyPhone; sendVerifyEmailCode; verifyEmail; initTakeoutSession; finishTakeoutSession; confirmPasswordEmail; resendPasswordEmail; cancelPasswordEmail; getContactSignUpNotification; setContactSignUpNotification; getNotifyExceptions; getWallPaper; uploadWallPaper; saveWallPaper; installWallPaper; resetWallPapers; getAutoDownloadSettings; saveAutoDownloadSettings; uploadTheme; createTheme; updateTheme; saveTheme; installTheme; getTheme; getThemes; setContentSettings; getContentSettings; getMultiWallPapers; getGlobalPrivacySettings; setGlobalPrivacySettings; reportProfilePhoto; resetPassword; declinePasswordReset; getChatThemes; setAuthorizationTTL; changeAuthorizationSettings; getSavedRingtones; saveRingtone; uploadRingtone; updateEmojiStatus; getDefaultEmojiStatuses; getRecentEmojiStatuses; clearRecentEmojiStatuses; reorderUsernames; toggleUsername; getDefaultProfilePhotoEmojis; getDefaultGroupPhotoEmojis; getAutoSaveSettings; saveAutoSaveSettings; deleteAutoSaveExceptions; invalidateSignInCodes; updateColor; getDefaultBackgroundEmojis; getChannelDefaultEmojiStatuses; getChannelRestrictedStatusEmojis; }; users: { getUsers; getFullUser; setSecureValueErrors; }; contacts: { getContactIDs; getStatuses; getContacts; importContacts; deleteContacts; deleteByPhones; block; unblock; getBlocked; search; resolveUsername; getTopPeers; resetTopPeerRating; resetSaved; getSaved; toggleTopPeers; addContact; acceptContact; getLocated; blockFromReplies; resolvePhone; exportContactToken; importContactToken; editCloseFriends; setBlocked; }; messages: { getMessages; getDialogs; getHistory; search; readHistory; deleteHistory; deleteMessages; receivedMessages; setTyping; sendMessage; sendMedia; forwardMessages; reportSpam; getPeerSettings; report; getChats; getFullChat; editChatTitle; editChatPhoto; addChatUser; deleteChatUser; createChat; getDhConfig; requestEncryption; acceptEncryption; discardEncryption; setEncryptedTyping; readEncryptedHistory; sendEncrypted; sendEncryptedFile; sendEncryptedService; receivedQueue; reportEncryptedSpam; readMessageContents; getStickers; getAllStickers; getWebPagePreview; exportChatInvite; checkChatInvite; importChatInvite; getStickerSet; installStickerSet; uninstallStickerSet; startBot; getMessagesViews; editChatAdmin; migrateChat; searchGlobal; reorderStickerSets; getDocumentByHash; getSavedGifs; saveGif; getInlineBotResults; setInlineBotResults; sendInlineBotResult; getMessageEditData; editMessage; editInlineBotMessage; getBotCallbackAnswer; setBotCallbackAnswer; getPeerDialogs; saveDraft; getAllDrafts; getFeaturedStickers; readFeaturedStickers; getRecentStickers; saveRecentSticker; clearRecentStickers; getArchivedStickers; getMaskStickers; getAttachedStickers; setGameScore; setInlineGameScore; getGameHighScores; getInlineGameHighScores; getCommonChats; getWebPage; toggleDialogPin; reorderPinnedDialogs; getPinnedDialogs; setBotShippingResults; setBotPrecheckoutResults; uploadMedia; sendScreenshotNotification; getFavedStickers; faveSticker; getUnreadMentions; readMentions; getRecentLocations; sendMultiMedia; uploadEncryptedFile; searchStickerSets; getSplitRanges; markDialogUnread; getDialogUnreadMarks; clearAllDrafts; updatePinnedMessage; sendVote; getPollResults; getOnlines; editChatAbout; editChatDefaultBannedRights; getEmojiKeywords; getEmojiKeywordsDifference; getEmojiKeywordsLanguages; getEmojiURL; getSearchCounters; requestUrlAuth; acceptUrlAuth; hidePeerSettingsBar; getScheduledHistory; getScheduledMessages; sendScheduledMessages; deleteScheduledMessages; getPollVotes; toggleStickerSets; getDialogFilters; getSuggestedDialogFilters; updateDialogFilter; updateDialogFiltersOrder; getOldFeaturedStickers; getReplies; getDiscussionMessage; readDiscussion; unpinAllMessages; deleteChat; deletePhoneCallHistory; checkHistoryImport; initHistoryImport; uploadImportedMedia; startHistoryImport; getExportedChatInvites; getExportedChatInvite; editExportedChatInvite; deleteRevokedExportedChatInvites; deleteExportedChatInvite; getAdminsWithInvites; getChatInviteImporters; setHistoryTTL; checkHistoryImportPeer; setChatTheme; getMessageReadParticipants; getSearchResultsCalendar; getSearchResultsPositions; hideChatJoinRequest; hideAllChatJoinRequests; toggleNoForwards; saveDefaultSendAs; sendReaction; getMessagesReactions; getMessageReactionsList; setChatAvailableReactions; getAvailableReactions; setDefaultReaction; translateText; getUnreadReactions; readReactions; searchSentMedia; getAttachMenuBots; getAttachMenuBot; toggleBotInAttachMenu; requestWebView; prolongWebView; requestSimpleWebView; sendWebViewResultMessage; sendWebViewData; transcribeAudio; rateTranscribedAudio; getCustomEmojiDocuments; getEmojiStickers; getFeaturedEmojiStickers; reportReaction; getTopReactions; getRecentReactions; clearRecentReactions; getExtendedMedia; setDefaultHistoryTTL; getDefaultHistoryTTL; sendBotRequestedPeer; getEmojiGroups; getEmojiStatusGroups; getEmojiProfilePhotoGroups; searchCustomEmoji; togglePeerTranslations; getBotApp; requestAppWebView; setChatWallPaper; searchEmojiStickerSets; }; updates: { getState; getDifference; getChannelDifference; }; photos: { updateProfilePhoto; uploadProfilePhoto; deletePhotos; getUserPhotos; uploadContactProfilePhoto; }; upload: { saveFilePart; getFile; saveBigFilePart; getWebFile; getCdnFile; reuploadCdnFile; getCdnFileHashes; getFileHashes; }; help: { getConfig; getNearestDc; getAppUpdate; getInviteText; getSupport; setBotUpdatesStatus; getCdnConfig; getRecentMeUrls; getTermsOfServiceUpdate; acceptTermsOfService; getDeepLinkInfo; getAppConfig; saveAppLog; getPassportConfig; getSupportName; getUserInfo; editUserInfo; getPromoData; hidePromoData; dismissSuggestion; getCountriesList; getPremiumPromo; getPeerColors; getPeerProfileColors; }; channels: { readHistory; deleteMessages; reportSpam; getMessages; getParticipants; getParticipant; getChannels; getFullChannel; createChannel; editAdmin; editTitle; editPhoto; checkUsername; updateUsername; joinChannel; leaveChannel; inviteToChannel; deleteChannel; exportMessageLink; toggleSignatures; getAdminedPublicChannels; editBanned; getAdminLog; setStickers; readMessageContents; deleteHistory; togglePreHistoryHidden; getLeftChannels; getGroupsForDiscussion; setDiscussionGroup; editCreator; editLocation; toggleSlowMode; getInactiveChannels; convertToGigagroup; viewSponsoredMessage; getSponsoredMessages; getSendAs; deleteParticipantHistory; toggleJoinToSend; toggleJoinRequest; reorderUsernames; toggleUsername; deactivateAllUsernames; toggleForum; createForumTopic; getForumTopics; getForumTopicsByID; editForumTopic; updatePinnedForumTopic; deleteTopicHistory; reorderPinnedForumTopics; toggleAntiSpam; reportAntiSpamFalsePositive; toggleParticipantsHidden; clickSponsoredMessage; updateColor; toggleViewForumAsMessages; getChannelRecommendations; updateEmojiStatus; }; bots: { sendCustomRequest; answerWebhookJSONQuery; setBotCommands; resetBotCommands; getBotCommands; setBotMenuButton; getBotMenuButton; setBotBroadcastDefaultAdminRights; setBotGroupDefaultAdminRights; setBotInfo; getBotInfo; reorderUsernames; toggleUsername; canSendMessage; allowSendMessage; invokeWebViewCustomMethod; }; payments: { getPaymentForm; getPaymentReceipt; validateRequestedInfo; sendPaymentForm; getSavedInfo; clearSavedInfo; getBankCardData; exportInvoice; assignAppStoreTransaction; assignPlayMarketTransaction; canPurchasePremium; getPremiumGiftCodeOptions; checkGiftCode; applyGiftCode; getGiveawayInfo; launchPrepaidGiveaway; }; stickers: { createStickerSet; removeStickerFromSet; changeStickerPosition; addStickerToSet; setStickerSetThumb; checkShortName; suggestShortName; changeSticker; renameStickerSet; deleteStickerSet; }; phone: { getCallConfig; requestCall; acceptCall; confirmCall; receivedCall; discardCall; setCallRating; saveCallDebug; sendSignalingData; createGroupCall; joinGroupCall; leaveGroupCall; inviteToGroupCall; discardGroupCall; toggleGroupCallSettings; getGroupCall; getGroupParticipants; checkGroupCall; toggleGroupCallRecord; editGroupCallParticipant; editGroupCallTitle; getGroupCallJoinAs; exportGroupCallInvite; toggleGroupCallStartSubscription; startScheduledGroupCall; saveDefaultGroupCallJoinAs; joinGroupCallPresentation; leaveGroupCallPresentation; getGroupCallStreamChannels; getGroupCallStreamRtmpUrl; saveCallLog; }; langpack: { getLangPack; getStrings; getDifference; getLanguages; getLanguage; }; folders: { editPeerFolders; }; stats: { getBroadcastStats; loadAsyncGraph; getMegagroupStats; getMessagePublicForwards; getMessageStats; getStoryStats; getStoryPublicForwards; }; chatlists: { exportChatlistInvite; deleteExportedInvite; editExportedInvite; getExportedInvites; checkChatlistInvite; joinChatlistInvite; getChatlistUpdates; joinChatlistUpdates; hideChatlistUpdates; getLeaveChatlistSuggestions; leaveChatlist; }; stories: { canSendStory; sendStory; editStory; deleteStories; togglePinned; getAllStories; getPinnedStories; getStoriesArchive; getStoriesByID; toggleAllStoriesHidden; readStories; incrementStoryViews; getStoryViewsList; getStoriesViews; exportStoryLink; report; activateStealthMode; sendReaction; getPeerStories; getAllReadPeerStories; getPeerMaxIDs; getChatsToSend; togglePeerStoriesHidden; getStoryReactionsList; }; premium: { getBoostsList; getMyBoosts; applyBoost; getBoostsStatus; getUserBoosts; }; }