teleproto - v1.229.0
    Preparing search index...

    Interface ApiFacade

    Typed 1:1 facade over the raw MTProto methods.

    client.api.<namespace>.<method>(params, opts?) — no new, no manual invoke, full autocomplete and strict typing straight from the schema. Per-method params live in <Method>Params; throwable errors in <Method>Errors.

    interface ApiFacade {
        account: {
            acceptAuthorization(
                params: AccountAcceptAuthorizationParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            cancelPasswordEmail(opts?: ApiCallOptions): Promise<boolean>;
            changeAuthorizationSettings(
                params: AccountChangeAuthorizationSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            changePhone(
                params: AccountChangePhoneParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUser>;
            checkUsername(
                params: AccountCheckUsernameParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            clearRecentEmojiStatuses(opts?: ApiCallOptions): Promise<boolean>;
            confirmBotConnection(
                params: AccountConfirmBotConnectionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            confirmPasswordEmail(
                params: AccountConfirmPasswordEmailParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            confirmPhone(
                params: AccountConfirmPhoneParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            createBusinessChatLink(
                params: AccountCreateBusinessChatLinkParams,
                opts?: ApiCallOptions,
            ): Promise<BusinessChatLink>;
            createTheme(
                params: AccountCreateThemeParams,
                opts?: ApiCallOptions,
            ): Promise<Theme>;
            declinePasswordReset(opts?: ApiCallOptions): Promise<boolean>;
            deleteAccount(
                params: AccountDeleteAccountParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteAutoSaveExceptions(opts?: ApiCallOptions): Promise<boolean>;
            deleteBusinessChatLink(
                params: AccountDeleteBusinessChatLinkParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deletePasskey(
                params: AccountDeletePasskeyParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteSecureValue(
                params: AccountDeleteSecureValueParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteWebBrowserSettingsExceptions(
                opts?: ApiCallOptions,
            ): Promise<TypeWebBrowserSettings>;
            disablePeerConnectedBot(
                params: AccountDisablePeerConnectedBotParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editBusinessChatLink(
                params: AccountEditBusinessChatLinkParams,
                opts?: ApiCallOptions,
            ): Promise<BusinessChatLink>;
            finishTakeoutSession(
                params: AccountFinishTakeoutSessionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            getAccountTTL(opts?: ApiCallOptions): Promise<AccountDaysTTL>;
            getAllSecureValues(opts?: ApiCallOptions): Promise<SecureValue[]>;
            getAuthorizationForm(
                params: AccountGetAuthorizationFormParams,
                opts?: ApiCallOptions,
            ): Promise<AuthorizationForm>;
            getAuthorizations(opts?: ApiCallOptions): Promise<Authorizations>;
            getAutoDownloadSettings(
                opts?: ApiCallOptions,
            ): Promise<Api.account.AutoDownloadSettings>;
            getAutoSaveSettings(
                opts?: ApiCallOptions,
            ): Promise<Api.account.AutoSaveSettings>;
            getBotBusinessConnection(
                params: AccountGetBotBusinessConnectionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getBusinessChatLinks(opts?: ApiCallOptions): Promise<BusinessChatLinks>;
            getChannelDefaultEmojiStatuses(
                params: AccountGetChannelDefaultEmojiStatusesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiStatuses>;
            getChannelRestrictedStatusEmojis(
                params: AccountGetChannelRestrictedStatusEmojisParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiList>;
            getChatThemes(
                params: AccountGetChatThemesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeThemes>;
            getCollectibleEmojiStatuses(
                params: AccountGetCollectibleEmojiStatusesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiStatuses>;
            getConnectedBots(opts?: ApiCallOptions): Promise<ConnectedBots>;
            getContactSignUpNotification(opts?: ApiCallOptions): Promise<boolean>;
            getContentSettings(opts?: ApiCallOptions): Promise<ContentSettings>;
            getDefaultBackgroundEmojis(
                params: AccountGetDefaultBackgroundEmojisParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiList>;
            getDefaultEmojiStatuses(
                params: AccountGetDefaultEmojiStatusesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiStatuses>;
            getDefaultGroupPhotoEmojis(
                params: AccountGetDefaultGroupPhotoEmojisParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiList>;
            getDefaultProfilePhotoEmojis(
                params: AccountGetDefaultProfilePhotoEmojisParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiList>;
            getGlobalPrivacySettings(
                opts?: ApiCallOptions,
            ): Promise<GlobalPrivacySettings>;
            getMultiWallPapers(
                params: AccountGetMultiWallPapersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeWallPaper[]>;
            getNotifyExceptions(
                params: AccountGetNotifyExceptionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getNotifySettings(
                params: AccountGetNotifySettingsParams,
                opts?: ApiCallOptions,
            ): Promise<PeerNotifySettings>;
            getPaidMessagesRevenue(
                params: AccountGetPaidMessagesRevenueParams,
                opts?: ApiCallOptions,
            ): Promise<PaidMessagesRevenue>;
            getPasskeys(opts?: ApiCallOptions): Promise<Passkeys>;
            getPassword(opts?: ApiCallOptions): Promise<Password>;
            getPasswordSettings(
                params: AccountGetPasswordSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<PasswordSettings>;
            getPrivacy(
                params: AccountGetPrivacyParams,
                opts?: ApiCallOptions,
            ): Promise<PrivacyRules>;
            getReactionsNotifySettings(
                opts?: ApiCallOptions,
            ): Promise<ReactionsNotifySettings>;
            getRecentEmojiStatuses(
                params: AccountGetRecentEmojiStatusesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiStatuses>;
            getSavedMusicIds(
                params: AccountGetSavedMusicIdsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSavedMusicIds>;
            getSavedRingtones(
                params: AccountGetSavedRingtonesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSavedRingtones>;
            getSecureValue(
                params: AccountGetSecureValueParams,
                opts?: ApiCallOptions,
            ): Promise<SecureValue[]>;
            getTheme(
                params: AccountGetThemeParams,
                opts?: ApiCallOptions,
            ): Promise<Theme>;
            getThemes(
                params: AccountGetThemesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeThemes>;
            getTmpPassword(
                params: AccountGetTmpPasswordParams,
                opts?: ApiCallOptions,
            ): Promise<TmpPassword>;
            getUniqueGiftChatThemes(
                params: AccountGetUniqueGiftChatThemesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChatThemes>;
            getWallPaper(
                params: AccountGetWallPaperParams,
                opts?: ApiCallOptions,
            ): Promise<TypeWallPaper>;
            getWallPapers(
                params: AccountGetWallPapersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeWallPapers>;
            getWebAuthorizations(opts?: ApiCallOptions): Promise<WebAuthorizations>;
            getWebBrowserSettings(
                params: AccountGetWebBrowserSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeWebBrowserSettings>;
            initPasskeyRegistration(
                opts?: ApiCallOptions,
            ): Promise<PasskeyRegistrationOptions>;
            initTakeoutSession(
                params: AccountInitTakeoutSessionParams,
                opts?: ApiCallOptions,
            ): Promise<Takeout>;
            installTheme(
                params: AccountInstallThemeParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            installWallPaper(
                params: AccountInstallWallPaperParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            invalidateSignInCodes(
                params: AccountInvalidateSignInCodesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            registerDevice(
                params: AccountRegisterDeviceParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            registerPasskey(
                params: AccountRegisterPasskeyParams,
                opts?: ApiCallOptions,
            ): Promise<Passkey>;
            reorderUsernames(
                params: AccountReorderUsernamesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportPeer(
                params: AccountReportPeerParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportProfilePhoto(
                params: AccountReportProfilePhotoParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            resendPasswordEmail(opts?: ApiCallOptions): Promise<boolean>;
            resetAuthorization(
                params: AccountResetAuthorizationParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            resetNotifySettings(opts?: ApiCallOptions): Promise<boolean>;
            resetPassword(opts?: ApiCallOptions): Promise<TypeResetPasswordResult>;
            resetWallPapers(opts?: ApiCallOptions): Promise<boolean>;
            resetWebAuthorization(
                params: AccountResetWebAuthorizationParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            resetWebAuthorizations(opts?: ApiCallOptions): Promise<boolean>;
            resolveBusinessChatLink(
                params: AccountResolveBusinessChatLinkParams,
                opts?: ApiCallOptions,
            ): Promise<ResolvedBusinessChatLinks>;
            saveAutoDownloadSettings(
                params: AccountSaveAutoDownloadSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveAutoSaveSettings(
                params: AccountSaveAutoSaveSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveMusic(
                params: AccountSaveMusicParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveRingtone(
                params: AccountSaveRingtoneParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSavedRingtone>;
            saveSecureValue(
                params: AccountSaveSecureValueParams,
                opts?: ApiCallOptions,
            ): Promise<SecureValue>;
            saveTheme(
                params: AccountSaveThemeParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveWallPaper(
                params: AccountSaveWallPaperParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            sendChangePhoneCode(
                params: AccountSendChangePhoneCodeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentCode>;
            sendConfirmPhoneCode(
                params: AccountSendConfirmPhoneCodeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentCode>;
            sendVerifyEmailCode(
                params: AccountSendVerifyEmailCodeParams,
                opts?: ApiCallOptions,
            ): Promise<SentEmailCode>;
            sendVerifyPhoneCode(
                params: AccountSendVerifyPhoneCodeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentCode>;
            setAccountTTL(
                params: AccountSetAccountTTLParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setAuthorizationTTL(
                params: AccountSetAuthorizationTTLParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setContactSignUpNotification(
                params: AccountSetContactSignUpNotificationParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setContentSettings(
                params: AccountSetContentSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setGlobalPrivacySettings(
                params: AccountSetGlobalPrivacySettingsParams,
                opts?: ApiCallOptions,
            ): Promise<GlobalPrivacySettings>;
            setMainProfileTab(
                params: AccountSetMainProfileTabParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setPrivacy(
                params: AccountSetPrivacyParams,
                opts?: ApiCallOptions,
            ): Promise<PrivacyRules>;
            setReactionsNotifySettings(
                params: AccountSetReactionsNotifySettingsParams,
                opts?: ApiCallOptions,
            ): Promise<ReactionsNotifySettings>;
            toggleConnectedBotPaused(
                params: AccountToggleConnectedBotPausedParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleNoPaidMessagesException(
                params: AccountToggleNoPaidMessagesExceptionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleSponsoredMessages(
                params: AccountToggleSponsoredMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleUsername(
                params: AccountToggleUsernameParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleWebBrowserSettingsException(
                params: AccountToggleWebBrowserSettingsExceptionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            unregisterDevice(
                params: AccountUnregisterDeviceParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateBirthday(
                params: AccountUpdateBirthdayParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateBusinessAwayMessage(
                params: AccountUpdateBusinessAwayMessageParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateBusinessGreetingMessage(
                params: AccountUpdateBusinessGreetingMessageParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateBusinessIntro(
                params: AccountUpdateBusinessIntroParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateBusinessLocation(
                params: AccountUpdateBusinessLocationParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateBusinessWorkHours(
                params: AccountUpdateBusinessWorkHoursParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateColor(
                params: AccountUpdateColorParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateConnectedBot(
                params: AccountUpdateConnectedBotParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            updateDeviceLocked(
                params: AccountUpdateDeviceLockedParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateEmojiStatus(
                params: AccountUpdateEmojiStatusParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateNotifySettings(
                params: AccountUpdateNotifySettingsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updatePasswordSettings(
                params: AccountUpdatePasswordSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updatePersonalChannel(
                params: AccountUpdatePersonalChannelParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateProfile(
                params: AccountUpdateProfileParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUser>;
            updateStatus(
                params: AccountUpdateStatusParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateTheme(
                params: AccountUpdateThemeParams,
                opts?: ApiCallOptions,
            ): Promise<Theme>;
            updateUsername(
                params: AccountUpdateUsernameParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUser>;
            updateWebBrowserSettings(
                params: AccountUpdateWebBrowserSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeWebBrowserSettings>;
            uploadRingtone(
                params: AccountUploadRingtoneParams,
                opts?: ApiCallOptions,
            ): Promise<TypeDocument>;
            uploadTheme(
                params: AccountUploadThemeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeDocument>;
            uploadWallPaper(
                params: AccountUploadWallPaperParams,
                opts?: ApiCallOptions,
            ): Promise<TypeWallPaper>;
            verifyEmail(
                params: AccountVerifyEmailParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmailVerified>;
            verifyPhone(
                params: AccountVerifyPhoneParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
        };
        aicompose: {
            createTone(
                params: AicomposeCreateToneParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAiComposeTone>;
            deleteTone(
                params: AicomposeDeleteToneParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            getTone(
                params: AicomposeGetToneParams,
                opts?: ApiCallOptions,
            ): Promise<TypeTones>;
            getToneExample(
                params: AicomposeGetToneExampleParams,
                opts?: ApiCallOptions,
            ): Promise<AiComposeToneExample>;
            getTones(
                params: AicomposeGetTonesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeTones>;
            saveTone(
                params: AicomposeSaveToneParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateTone(
                params: AicomposeUpdateToneParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAiComposeTone>;
        };
        auth: {
            acceptLoginToken(
                params: AuthAcceptLoginTokenParams,
                opts?: ApiCallOptions,
            ): Promise<Api.Authorization>;
            bindTempAuthKey(
                params: AuthBindTempAuthKeyParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            cancelCode(
                params: AuthCancelCodeParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            checkPaidAuth(
                params: AuthCheckPaidAuthParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentCode>;
            checkPassword(
                params: AuthCheckPasswordParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
            checkRecoveryPassword(
                params: AuthCheckRecoveryPasswordParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            dropTempAuthKeys(
                params: AuthDropTempAuthKeysParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            exportAuthorization(
                params: AuthExportAuthorizationParams,
                opts?: ApiCallOptions,
            ): Promise<ExportedAuthorization>;
            exportLoginToken(
                params: AuthExportLoginTokenParams,
                opts?: ApiCallOptions,
            ): Promise<TypeLoginToken>;
            finishFirebasePnvLogin(
                params: AuthFinishFirebasePnvLoginParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
            finishPasskeyLogin(
                params: AuthFinishPasskeyLoginParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
            firebasePnvSignUp(
                params: AuthFirebasePnvSignUpParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
            importAuthorization(
                params: AuthImportAuthorizationParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
            importBotAuthorization(
                params: AuthImportBotAuthorizationParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
            importLoginToken(
                params: AuthImportLoginTokenParams,
                opts?: ApiCallOptions,
            ): Promise<TypeLoginToken>;
            importWebTokenAuthorization(
                params: AuthImportWebTokenAuthorizationParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
            initFirebasePnvLogin(
                params: AuthInitFirebasePnvLoginParams,
                opts?: ApiCallOptions,
            ): Promise<FirebasePnvIntent>;
            initPasskeyLogin(
                params: AuthInitPasskeyLoginParams,
                opts?: ApiCallOptions,
            ): Promise<PasskeyLoginOptions>;
            logOut(opts?: ApiCallOptions): Promise<LoggedOut>;
            recoverPassword(
                params: AuthRecoverPasswordParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
            reportMissingCode(
                params: AuthReportMissingCodeParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            requestFirebaseSms(
                params: AuthRequestFirebaseSmsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            requestPasswordRecovery(opts?: ApiCallOptions): Promise<PasswordRecovery>;
            resendCode(
                params: AuthResendCodeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentCode>;
            resetAuthorizations(opts?: ApiCallOptions): Promise<boolean>;
            resetLoginEmail(
                params: AuthResetLoginEmailParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentCode>;
            sendCode(
                params: AuthSendCodeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentCode>;
            signIn(
                params: AuthSignInParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
            signUp(
                params: AuthSignUpParams,
                opts?: ApiCallOptions,
            ): Promise<Api.auth.TypeAuthorization>;
        };
        bots: {
            addPreviewMedia(
                params: BotsAddPreviewMediaParams,
                opts?: ApiCallOptions,
            ): Promise<BotPreviewMedia>;
            allowSendMessage(
                params: BotsAllowSendMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            answerWebhookJSONQuery(
                params: BotsAnswerWebhookJSONQueryParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            canSendMessage(
                params: BotsCanSendMessageParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            checkDownloadFileParams(
                params: BotsCheckDownloadFileParamsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            checkUsername(
                params: BotsCheckUsernameParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            createBot(
                params: BotsCreateBotParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUser>;
            deletePreviewMedia(
                params: BotsDeletePreviewMediaParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editAccessSettings(
                params: BotsEditAccessSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editPreviewMedia(
                params: BotsEditPreviewMediaParams,
                opts?: ApiCallOptions,
            ): Promise<BotPreviewMedia>;
            exportBotToken(
                params: BotsExportBotTokenParams,
                opts?: ApiCallOptions,
            ): Promise<ExportedBotToken>;
            getAccessSettings(
                params: BotsGetAccessSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<AccessSettings>;
            getAdminedBots(opts?: ApiCallOptions): Promise<TypeUser[]>;
            getBotCommands(
                params: BotsGetBotCommandsParams,
                opts?: ApiCallOptions,
            ): Promise<BotCommand[]>;
            getBotInfo(
                params: BotsGetBotInfoParams,
                opts?: ApiCallOptions,
            ): Promise<Api.bots.BotInfo>;
            getBotMenuButton(
                params: BotsGetBotMenuButtonParams,
                opts?: ApiCallOptions,
            ): Promise<TypeBotMenuButton>;
            getBotRecommendations(
                params: BotsGetBotRecommendationsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUsers>;
            getPopularAppBots(
                params: BotsGetPopularAppBotsParams,
                opts?: ApiCallOptions,
            ): Promise<PopularAppBots>;
            getPreviewInfo(
                params: BotsGetPreviewInfoParams,
                opts?: ApiCallOptions,
            ): Promise<PreviewInfo>;
            getPreviewMedias(
                params: BotsGetPreviewMediasParams,
                opts?: ApiCallOptions,
            ): Promise<BotPreviewMedia[]>;
            getRequestedWebViewButton(
                params: BotsGetRequestedWebViewButtonParams,
                opts?: ApiCallOptions,
            ): Promise<KeyboardButton>;
            invokeWebViewCustomMethod(
                params: BotsInvokeWebViewCustomMethodParams,
                opts?: ApiCallOptions,
            ): Promise<DataJSON>;
            reorderPreviewMedias(
                params: BotsReorderPreviewMediasParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reorderUsernames(
                params: BotsReorderUsernamesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            requestWebViewButton(
                params: BotsRequestWebViewButtonParams,
                opts?: ApiCallOptions,
            ): Promise<RequestedButton>;
            resetBotCommands(
                params: BotsResetBotCommandsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            sendCustomRequest(
                params: BotsSendCustomRequestParams,
                opts?: ApiCallOptions,
            ): Promise<DataJSON>;
            setBotBroadcastDefaultAdminRights(
                params: BotsSetBotBroadcastDefaultAdminRightsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setBotCommands(
                params: BotsSetBotCommandsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setBotGroupDefaultAdminRights(
                params: BotsSetBotGroupDefaultAdminRightsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setBotInfo(
                params: BotsSetBotInfoParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setBotMenuButton(
                params: BotsSetBotMenuButtonParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setCustomVerification(
                params: BotsSetCustomVerificationParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setJoinChatResults(
                params: BotsSetJoinChatResultsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleUserEmojiStatusPermission(
                params: BotsToggleUserEmojiStatusPermissionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleUsername(
                params: BotsToggleUsernameParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateStarRefProgram(
                params: BotsUpdateStarRefProgramParams,
                opts?: ApiCallOptions,
            ): Promise<StarRefProgram>;
            updateUserEmojiStatus(
                params: BotsUpdateUserEmojiStatusParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
        };
        channels: {
            checkSearchPostsFlood(
                params: ChannelsCheckSearchPostsFloodParams,
                opts?: ApiCallOptions,
            ): Promise<SearchPostsFlood>;
            checkUsername(
                params: ChannelsCheckUsernameParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            convertToGigagroup(
                params: ChannelsConvertToGigagroupParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            createChannel(
                params: ChannelsCreateChannelParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deactivateAllUsernames(
                params: ChannelsDeactivateAllUsernamesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteChannel(
                params: ChannelsDeleteChannelParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteHistory(
                params: ChannelsDeleteHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteMessages(
                params: ChannelsDeleteMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedMessages>;
            deleteParticipantHistory(
                params: ChannelsDeleteParticipantHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedHistory>;
            editAdmin(
                params: ChannelsEditAdminParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editBanned(
                params: ChannelsEditBannedParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editLocation(
                params: ChannelsEditLocationParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editPhoto(
                params: ChannelsEditPhotoParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editTitle(
                params: ChannelsEditTitleParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            exportMessageLink(
                params: ChannelsExportMessageLinkParams,
                opts?: ApiCallOptions,
            ): Promise<ExportedMessageLink>;
            getAdminedPublicChannels(
                params: ChannelsGetAdminedPublicChannelsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChats>;
            getAdminLog(
                params: ChannelsGetAdminLogParams,
                opts?: ApiCallOptions,
            ): Promise<AdminLogResults>;
            getChannelRecommendations(
                params: ChannelsGetChannelRecommendationsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChats>;
            getChannels(
                params: ChannelsGetChannelsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChats>;
            getFullChannel(
                params: ChannelsGetFullChannelParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.ChatFull>;
            getGroupsForDiscussion(opts?: ApiCallOptions): Promise<TypeChats>;
            getInactiveChannels(opts?: ApiCallOptions): Promise<InactiveChats>;
            getLeftChannels(
                params: ChannelsGetLeftChannelsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChats>;
            getMessageAuthor(
                params: ChannelsGetMessageAuthorParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUser>;
            getMessages(
                params: ChannelsGetMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getParticipant(
                params: ChannelsGetParticipantParams,
                opts?: ApiCallOptions,
            ): Promise<Api.channels.ChannelParticipant>;
            getParticipants(
                params: ChannelsGetParticipantsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChannelParticipants>;
            getSendAs(
                params: ChannelsGetSendAsParams,
                opts?: ApiCallOptions,
            ): Promise<SendAsPeers>;
            inviteToChannel(
                params: ChannelsInviteToChannelParams,
                opts?: ApiCallOptions,
            ): Promise<InvitedUsers>;
            joinChannel(
                params: ChannelsJoinChannelParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChatInviteJoinResult>;
            leaveChannel(
                params: ChannelsLeaveChannelParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            readHistory(
                params: ChannelsReadHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            readMessageContents(
                params: ChannelsReadMessageContentsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reorderUsernames(
                params: ChannelsReorderUsernamesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportAntiSpamFalsePositive(
                params: ChannelsReportAntiSpamFalsePositiveParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportSpam(
                params: ChannelsReportSpamParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            restrictSponsoredMessages(
                params: ChannelsRestrictSponsoredMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            searchPosts(
                params: ChannelsSearchPostsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            setBoostsToUnblockRestrictions(
                params: ChannelsSetBoostsToUnblockRestrictionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            setDiscussionGroup(
                params: ChannelsSetDiscussionGroupParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setEmojiStickers(
                params: ChannelsSetEmojiStickersParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setMainProfileTab(
                params: ChannelsSetMainProfileTabParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setStickers(
                params: ChannelsSetStickersParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleAntiSpam(
                params: ChannelsToggleAntiSpamParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleAutotranslation(
                params: ChannelsToggleAutotranslationParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleForum(
                params: ChannelsToggleForumParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleJoinRequest(
                params: ChannelsToggleJoinRequestParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleJoinToSend(
                params: ChannelsToggleJoinToSendParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleParticipantsHidden(
                params: ChannelsToggleParticipantsHiddenParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            togglePreHistoryHidden(
                params: ChannelsTogglePreHistoryHiddenParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleSignatures(
                params: ChannelsToggleSignaturesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleSlowMode(
                params: ChannelsToggleSlowModeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleUsername(
                params: ChannelsToggleUsernameParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleViewForumAsMessages(
                params: ChannelsToggleViewForumAsMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            updateColor(
                params: ChannelsUpdateColorParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            updateEmojiStatus(
                params: ChannelsUpdateEmojiStatusParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            updatePaidMessagesPrice(
                params: ChannelsUpdatePaidMessagesPriceParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            updateUsername(
                params: ChannelsUpdateUsernameParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
        };
        chatlists: {
            checkChatlistInvite(
                params: ChatlistsCheckChatlistInviteParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChatlistInvite>;
            deleteExportedInvite(
                params: ChatlistsDeleteExportedInviteParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editExportedInvite(
                params: ChatlistsEditExportedInviteParams,
                opts?: ApiCallOptions,
            ): Promise<Api.ExportedChatlistInvite>;
            exportChatlistInvite(
                params: ChatlistsExportChatlistInviteParams,
                opts?: ApiCallOptions,
            ): Promise<Api.chatlists.ExportedChatlistInvite>;
            getChatlistUpdates(
                params: ChatlistsGetChatlistUpdatesParams,
                opts?: ApiCallOptions,
            ): Promise<ChatlistUpdates>;
            getExportedInvites(
                params: ChatlistsGetExportedInvitesParams,
                opts?: ApiCallOptions,
            ): Promise<ExportedInvites>;
            getLeaveChatlistSuggestions(
                params: ChatlistsGetLeaveChatlistSuggestionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypePeer[]>;
            hideChatlistUpdates(
                params: ChatlistsHideChatlistUpdatesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            joinChatlistInvite(
                params: ChatlistsJoinChatlistInviteParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            joinChatlistUpdates(
                params: ChatlistsJoinChatlistUpdatesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            leaveChatlist(
                params: ChatlistsLeaveChatlistParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
        };
        communities: {
            create(
                params: CommunitiesCreateParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getJoinedCommunities(opts?: ApiCallOptions): Promise<TypeChats>;
            getParticipantJoinedChats(
                params: CommunitiesGetParticipantJoinedChatsParams,
                opts?: ApiCallOptions,
            ): Promise<ParticipantJoinedChats>;
            getPeerLinkRequests(
                params: CommunitiesGetPeerLinkRequestsParams,
                opts?: ApiCallOptions,
            ): Promise<PeerLinkRequests>;
            toggleAllPeerLinkRequestApproval(
                params: CommunitiesToggleAllPeerLinkRequestApprovalParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleCommunityCollapsedInDialogs(
                params: CommunitiesToggleCommunityCollapsedInDialogsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleParticipantBanned(
                params: CommunitiesToggleParticipantBannedParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            togglePeerLink(
                params: CommunitiesTogglePeerLinkParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            togglePeerLinkRequestApproval(
                params: CommunitiesTogglePeerLinkRequestApprovalParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
        };
        contacts: {
            acceptContact(
                params: ContactsAcceptContactParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            addContact(
                params: ContactsAddContactParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            block(
                params: ContactsBlockParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            blockFromReplies(
                params: ContactsBlockFromRepliesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteByPhones(
                params: ContactsDeleteByPhonesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteContacts(
                params: ContactsDeleteContactsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editCloseFriends(
                params: ContactsEditCloseFriendsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            exportContactToken(opts?: ApiCallOptions): Promise<ExportedContactToken>;
            getBirthdays(opts?: ApiCallOptions): Promise<ContactBirthdays>;
            getBlocked(
                params: ContactsGetBlockedParams,
                opts?: ApiCallOptions,
            ): Promise<TypeBlocked>;
            getContactIDs(
                params: ContactsGetContactIDsParams,
                opts?: ApiCallOptions,
            ): Promise<number[]>;
            getContacts(
                params: ContactsGetContactsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeContacts>;
            getLocated(
                params: ContactsGetLocatedParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getSaved(opts?: ApiCallOptions): Promise<SavedPhoneContact[]>;
            getSponsoredPeers(
                params: ContactsGetSponsoredPeersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSponsoredPeers>;
            getStatuses(opts?: ApiCallOptions): Promise<ContactStatus[]>;
            getTopPeers(
                params: ContactsGetTopPeersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeTopPeers>;
            importContacts(
                params: ContactsImportContactsParams,
                opts?: ApiCallOptions,
            ): Promise<ImportedContacts>;
            importContactToken(
                params: ContactsImportContactTokenParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUser>;
            resetSaved(opts?: ApiCallOptions): Promise<boolean>;
            resetTopPeerRating(
                params: ContactsResetTopPeerRatingParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            resolvePhone(
                params: ContactsResolvePhoneParams,
                opts?: ApiCallOptions,
            ): Promise<ResolvedPeer>;
            resolveUsername(
                params: ContactsResolveUsernameParams,
                opts?: ApiCallOptions,
            ): Promise<ResolvedPeer>;
            search(
                params: ContactsSearchParams,
                opts?: ApiCallOptions,
            ): Promise<Found>;
            setBlocked(
                params: ContactsSetBlockedParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleTopPeers(
                params: ContactsToggleTopPeersParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            unblock(
                params: ContactsUnblockParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateContactNote(
                params: ContactsUpdateContactNoteParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
        };
        destroyAuthKey(opts?: ApiCallOptions): Promise<TypeDestroyAuthKeyRes>;
        destroySession(
            params: DestroySessionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDestroySessionRes>;
        ephemeral: {
            deleteAllWelcomeMessages(
                params: EphemeralDeleteAllWelcomeMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteMessage(
                params: EphemeralDeleteMessageParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteWelcomeMessage(
                params: EphemeralDeleteWelcomeMessageParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editMessage(
                params: EphemeralEditMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getCallbackAnswer(
                params: EphemeralGetCallbackAnswerParams,
                opts?: ApiCallOptions,
            ): Promise<BotCallbackAnswer>;
            getWelcomeMessages(
                params: EphemeralGetWelcomeMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeWelcomeMessages>;
            reportMessage(
                params: EphemeralReportMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeReportResult>;
            sendMessage(
                params: EphemeralSendMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
        };
        folders: {
            editPeerFolders(
                params: FoldersEditPeerFoldersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
        };
        fragment: {
            getCollectibleInfo(
                params: FragmentGetCollectibleInfoParams,
                opts?: ApiCallOptions,
            ): Promise<CollectibleInfo>;
        };
        getFutureSalts(
            params: GetFutureSaltsParams,
            opts?: ApiCallOptions,
        ): Promise<FutureSalts>;
        help: {
            acceptTermsOfService(
                params: HelpAcceptTermsOfServiceParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            dismissSuggestion(
                params: HelpDismissSuggestionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editUserInfo(
                params: HelpEditUserInfoParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUserInfo>;
            getAppConfig(
                params: HelpGetAppConfigParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAppConfig>;
            getAppUpdate(
                params: HelpGetAppUpdateParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAppUpdate>;
            getCdnConfig(opts?: ApiCallOptions): Promise<CdnConfig>;
            getConfig(opts?: ApiCallOptions): Promise<Config>;
            getCountriesList(
                params: HelpGetCountriesListParams,
                opts?: ApiCallOptions,
            ): Promise<TypeCountriesList>;
            getDeepLinkInfo(
                params: HelpGetDeepLinkInfoParams,
                opts?: ApiCallOptions,
            ): Promise<TypeDeepLinkInfo>;
            getInviteText(opts?: ApiCallOptions): Promise<InviteText>;
            getNearestDc(opts?: ApiCallOptions): Promise<NearestDc>;
            getPassportConfig(
                params: HelpGetPassportConfigParams,
                opts?: ApiCallOptions,
            ): Promise<TypePassportConfig>;
            getPeerColors(
                params: HelpGetPeerColorsParams,
                opts?: ApiCallOptions,
            ): Promise<TypePeerColors>;
            getPeerProfileColors(
                params: HelpGetPeerProfileColorsParams,
                opts?: ApiCallOptions,
            ): Promise<TypePeerColors>;
            getPremiumPromo(opts?: ApiCallOptions): Promise<PremiumPromo>;
            getPromoData(opts?: ApiCallOptions): Promise<TypePromoData>;
            getRecentMeUrls(
                params: HelpGetRecentMeUrlsParams,
                opts?: ApiCallOptions,
            ): Promise<RecentMeUrls>;
            getSupport(opts?: ApiCallOptions): Promise<Support>;
            getSupportName(opts?: ApiCallOptions): Promise<SupportName>;
            getTermsOfServiceUpdate(
                opts?: ApiCallOptions,
            ): Promise<TypeTermsOfServiceUpdate>;
            getTimezonesList(
                params: HelpGetTimezonesListParams,
                opts?: ApiCallOptions,
            ): Promise<TypeTimezonesList>;
            getUserInfo(
                params: HelpGetUserInfoParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUserInfo>;
            hidePromoData(
                params: HelpHidePromoDataParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveAppLog(
                params: HelpSaveAppLogParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setBotUpdatesStatus(
                params: HelpSetBotUpdatesStatusParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
        };
        initConnection(
            params: InitConnectionParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeAfterMsg(
            params: InvokeAfterMsgParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeAfterMsgs(
            params: InvokeAfterMsgsParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeWithApnsSecret(
            params: InvokeWithApnsSecretParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeWithBusinessConnection(
            params: InvokeWithBusinessConnectionParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeWithGooglePlayIntegrity(
            params: InvokeWithGooglePlayIntegrityParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeWithLayer(
            params: InvokeWithLayerParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeWithMessagesRange(
            params: InvokeWithMessagesRangeParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeWithoutUpdates(
            params: InvokeWithoutUpdatesParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeWithReCaptcha(
            params: InvokeWithReCaptchaParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        invokeWithTakeout(
            params: InvokeWithTakeoutParams,
            opts?: ApiCallOptions,
        ): Promise<unknown>;
        langpack: {
            getDifference(
                params: LangpackGetDifferenceParams,
                opts?: ApiCallOptions,
            ): Promise<LangPackDifference>;
            getLangPack(
                params: LangpackGetLangPackParams,
                opts?: ApiCallOptions,
            ): Promise<LangPackDifference>;
            getLanguage(
                params: LangpackGetLanguageParams,
                opts?: ApiCallOptions,
            ): Promise<LangPackLanguage>;
            getLanguages(
                params: LangpackGetLanguagesParams,
                opts?: ApiCallOptions,
            ): Promise<LangPackLanguage[]>;
            getStrings(
                params: LangpackGetStringsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeLangPackString[]>;
        };
        messages: {
            acceptEncryption(
                params: MessagesAcceptEncryptionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEncryptedChat>;
            acceptUrlAuth(
                params: MessagesAcceptUrlAuthParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUrlAuthResult>;
            addChatUser(
                params: MessagesAddChatUserParams,
                opts?: ApiCallOptions,
            ): Promise<InvitedUsers>;
            addPollAnswer(
                params: MessagesAddPollAnswerParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            appendTodoList(
                params: MessagesAppendTodoListParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            checkChatInvite(
                params: MessagesCheckChatInviteParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChatInvite>;
            checkHistoryImport(
                params: MessagesCheckHistoryImportParams,
                opts?: ApiCallOptions,
            ): Promise<HistoryImportParsed>;
            checkHistoryImportPeer(
                params: MessagesCheckHistoryImportPeerParams,
                opts?: ApiCallOptions,
            ): Promise<CheckedHistoryImportPeer>;
            checkQuickReplyShortcut(
                params: MessagesCheckQuickReplyShortcutParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            checkUrlAuthMatchCode(
                params: MessagesCheckUrlAuthMatchCodeParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            clearAllDrafts(opts?: ApiCallOptions): Promise<boolean>;
            clearRecentReactions(opts?: ApiCallOptions): Promise<boolean>;
            clearRecentStickers(
                params: MessagesClearRecentStickersParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            clickSponsoredMessage(
                params: MessagesClickSponsoredMessageParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            composeMessageWithAI(
                params: MessagesComposeMessageWithAIParams,
                opts?: ApiCallOptions,
            ): Promise<ComposedMessageWithAI>;
            composeRichMessageWithAI(
                params: MessagesComposeRichMessageWithAIParams,
                opts?: ApiCallOptions,
            ): Promise<ComposedRichMessageWithAI>;
            createChat(
                params: MessagesCreateChatParams,
                opts?: ApiCallOptions,
            ): Promise<InvitedUsers>;
            createForumTopic(
                params: MessagesCreateForumTopicParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            declineUrlAuth(
                params: MessagesDeclineUrlAuthParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteChat(
                params: MessagesDeleteChatParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteChatUser(
                params: MessagesDeleteChatUserParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteExportedChatInvite(
                params: MessagesDeleteExportedChatInviteParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteFactCheck(
                params: MessagesDeleteFactCheckParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteHistory(
                params: MessagesDeleteHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedHistory>;
            deleteMessages(
                params: MessagesDeleteMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedMessages>;
            deleteParticipantReaction(
                params: MessagesDeleteParticipantReactionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteParticipantReactions(
                params: MessagesDeleteParticipantReactionsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deletePhoneCallHistory(
                params: MessagesDeletePhoneCallHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedFoundMessages>;
            deletePollAnswer(
                params: MessagesDeletePollAnswerParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteQuickReplyMessages(
                params: MessagesDeleteQuickReplyMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteQuickReplyShortcut(
                params: MessagesDeleteQuickReplyShortcutParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteRevokedExportedChatInvites(
                params: MessagesDeleteRevokedExportedChatInvitesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteSavedHistory(
                params: MessagesDeleteSavedHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedHistory>;
            deleteScheduledMessages(
                params: MessagesDeleteScheduledMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteTopicHistory(
                params: MessagesDeleteTopicHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedHistory>;
            discardEncryption(
                params: MessagesDiscardEncryptionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editChatAbout(
                params: MessagesEditChatAboutParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editChatAdmin(
                params: MessagesEditChatAdminParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editChatCreator(
                params: MessagesEditChatCreatorParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editChatDefaultBannedRights(
                params: MessagesEditChatDefaultBannedRightsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editChatParticipantRank(
                params: MessagesEditChatParticipantRankParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editChatPhoto(
                params: MessagesEditChatPhotoParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editChatTitle(
                params: MessagesEditChatTitleParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editExportedChatInvite(
                params: MessagesEditExportedChatInviteParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeExportedChatInvite>;
            editFactCheck(
                params: MessagesEditFactCheckParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editForumTopic(
                params: MessagesEditForumTopicParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editInlineBotMessage(
                params: MessagesEditInlineBotMessageParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editMessage(
                params: MessagesEditMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editQuickReplyShortcut(
                params: MessagesEditQuickReplyShortcutParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            exportChatInvite(
                params: MessagesExportChatInviteParams,
                opts?: ApiCallOptions,
            ): Promise<Api.TypeExportedChatInvite>;
            faveSticker(
                params: MessagesFaveStickerParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            forwardMessages(
                params: MessagesForwardMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getAdminsWithInvites(
                params: MessagesGetAdminsWithInvitesParams,
                opts?: ApiCallOptions,
            ): Promise<ChatAdminsWithInvites>;
            getAllDrafts(opts?: ApiCallOptions): Promise<TypeUpdates>;
            getAllStickers(
                params: MessagesGetAllStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAllStickers>;
            getArchivedStickers(
                params: MessagesGetArchivedStickersParams,
                opts?: ApiCallOptions,
            ): Promise<ArchivedStickers>;
            getAttachedStickers(
                params: MessagesGetAttachedStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeStickerSetCovered[]>;
            getAttachMenuBot(
                params: MessagesGetAttachMenuBotParams,
                opts?: ApiCallOptions,
            ): Promise<AttachMenuBotsBot>;
            getAttachMenuBots(
                params: MessagesGetAttachMenuBotsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAttachMenuBots>;
            getAvailableEffects(
                params: MessagesGetAvailableEffectsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAvailableEffects>;
            getAvailableReactions(
                params: MessagesGetAvailableReactionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAvailableReactions>;
            getBotApp(
                params: MessagesGetBotAppParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.BotApp>;
            getBotCallbackAnswer(
                params: MessagesGetBotCallbackAnswerParams,
                opts?: ApiCallOptions,
            ): Promise<BotCallbackAnswer>;
            getChatInviteImporters(
                params: MessagesGetChatInviteImportersParams,
                opts?: ApiCallOptions,
            ): Promise<ChatInviteImporters>;
            getChats(
                params: MessagesGetChatsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChats>;
            getCommonChats(
                params: MessagesGetCommonChatsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChats>;
            getCustomEmojiDocuments(
                params: MessagesGetCustomEmojiDocumentsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeDocument[]>;
            getDefaultHistoryTTL(opts?: ApiCallOptions): Promise<DefaultHistoryTTL>;
            getDefaultTagReactions(
                params: MessagesGetDefaultTagReactionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeReactions>;
            getDhConfig(
                params: MessagesGetDhConfigParams,
                opts?: ApiCallOptions,
            ): Promise<TypeDhConfig>;
            getDialogFilters(opts?: ApiCallOptions): Promise<DialogFilters>;
            getDialogs(
                params: MessagesGetDialogsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeDialogs>;
            getDialogUnreadMarks(
                params: MessagesGetDialogUnreadMarksParams,
                opts?: ApiCallOptions,
            ): Promise<TypeDialogPeer[]>;
            getDiscussionMessage(
                params: MessagesGetDiscussionMessageParams,
                opts?: ApiCallOptions,
            ): Promise<DiscussionMessage>;
            getDocumentByHash(
                params: MessagesGetDocumentByHashParams,
                opts?: ApiCallOptions,
            ): Promise<TypeDocument>;
            getEmojiGameInfo(opts?: ApiCallOptions): Promise<TypeEmojiGameInfo>;
            getEmojiGroups(
                params: MessagesGetEmojiGroupsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiGroups>;
            getEmojiKeywords(
                params: MessagesGetEmojiKeywordsParams,
                opts?: ApiCallOptions,
            ): Promise<EmojiKeywordsDifference>;
            getEmojiKeywordsDifference(
                params: MessagesGetEmojiKeywordsDifferenceParams,
                opts?: ApiCallOptions,
            ): Promise<EmojiKeywordsDifference>;
            getEmojiKeywordsLanguages(
                params: MessagesGetEmojiKeywordsLanguagesParams,
                opts?: ApiCallOptions,
            ): Promise<EmojiLanguage[]>;
            getEmojiProfilePhotoGroups(
                params: MessagesGetEmojiProfilePhotoGroupsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiGroups>;
            getEmojiStatusGroups(
                params: MessagesGetEmojiStatusGroupsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiGroups>;
            getEmojiStickerGroups(
                params: MessagesGetEmojiStickerGroupsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiGroups>;
            getEmojiStickers(
                params: MessagesGetEmojiStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAllStickers>;
            getEmojiURL(
                params: MessagesGetEmojiURLParams,
                opts?: ApiCallOptions,
            ): Promise<EmojiURL>;
            getExportedChatInvite(
                params: MessagesGetExportedChatInviteParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeExportedChatInvite>;
            getExportedChatInvites(
                params: MessagesGetExportedChatInvitesParams,
                opts?: ApiCallOptions,
            ): Promise<ExportedChatInvites>;
            getExtendedMedia(
                params: MessagesGetExtendedMediaParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getFactCheck(
                params: MessagesGetFactCheckParams,
                opts?: ApiCallOptions,
            ): Promise<FactCheck[]>;
            getFavedStickers(
                params: MessagesGetFavedStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeFavedStickers>;
            getFeaturedEmojiStickers(
                params: MessagesGetFeaturedEmojiStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeFeaturedStickers>;
            getFeaturedStickers(
                params: MessagesGetFeaturedStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeFeaturedStickers>;
            getForumTopics(
                params: MessagesGetForumTopicsParams,
                opts?: ApiCallOptions,
            ): Promise<ForumTopics>;
            getForumTopicsByID(
                params: MessagesGetForumTopicsByIDParams,
                opts?: ApiCallOptions,
            ): Promise<ForumTopics>;
            getFullChat(
                params: MessagesGetFullChatParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.ChatFull>;
            getFutureChatCreatorAfterLeave(
                params: MessagesGetFutureChatCreatorAfterLeaveParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUser>;
            getGameHighScores(
                params: MessagesGetGameHighScoresParams,
                opts?: ApiCallOptions,
            ): Promise<HighScores>;
            getHistory(
                params: MessagesGetHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getInlineBotResults(
                params: MessagesGetInlineBotResultsParams,
                opts?: ApiCallOptions,
            ): Promise<BotResults>;
            getInlineGameHighScores(
                params: MessagesGetInlineGameHighScoresParams,
                opts?: ApiCallOptions,
            ): Promise<HighScores>;
            getMaskStickers(
                params: MessagesGetMaskStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAllStickers>;
            getMessageEditData(
                params: MessagesGetMessageEditDataParams,
                opts?: ApiCallOptions,
            ): Promise<MessageEditData>;
            getMessageReactionsList(
                params: MessagesGetMessageReactionsListParams,
                opts?: ApiCallOptions,
            ): Promise<MessageReactionsList>;
            getMessageReadParticipants(
                params: MessagesGetMessageReadParticipantsParams,
                opts?: ApiCallOptions,
            ): Promise<ReadParticipantDate[]>;
            getMessages(
                params: MessagesGetMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getMessagesReactions(
                params: MessagesGetMessagesReactionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getMessagesViews(
                params: MessagesGetMessagesViewsParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.MessageViews>;
            getMyStickers(
                params: MessagesGetMyStickersParams,
                opts?: ApiCallOptions,
            ): Promise<MyStickers>;
            getOldFeaturedStickers(
                params: MessagesGetOldFeaturedStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeFeaturedStickers>;
            getOnlines(
                params: MessagesGetOnlinesParams,
                opts?: ApiCallOptions,
            ): Promise<ChatOnlines>;
            getOutboxReadDate(
                params: MessagesGetOutboxReadDateParams,
                opts?: ApiCallOptions,
            ): Promise<OutboxReadDate>;
            getPaidReactionPrivacy(opts?: ApiCallOptions): Promise<TypeUpdates>;
            getPeerDialogs(
                params: MessagesGetPeerDialogsParams,
                opts?: ApiCallOptions,
            ): Promise<PeerDialogs>;
            getPeerSettings(
                params: MessagesGetPeerSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.PeerSettings>;
            getPersonalChannelHistory(
                params: MessagesGetPersonalChannelHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getPinnedDialogs(
                params: MessagesGetPinnedDialogsParams,
                opts?: ApiCallOptions,
            ): Promise<PeerDialogs>;
            getPinnedSavedDialogs(opts?: ApiCallOptions): Promise<TypeSavedDialogs>;
            getPollResults(
                params: MessagesGetPollResultsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getPollVotes(
                params: MessagesGetPollVotesParams,
                opts?: ApiCallOptions,
            ): Promise<VotesList>;
            getPreparedInlineMessage(
                params: MessagesGetPreparedInlineMessageParams,
                opts?: ApiCallOptions,
            ): Promise<PreparedInlineMessage>;
            getQuickReplies(
                params: MessagesGetQuickRepliesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeQuickReplies>;
            getQuickReplyMessages(
                params: MessagesGetQuickReplyMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getRecentLocations(
                params: MessagesGetRecentLocationsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getRecentReactions(
                params: MessagesGetRecentReactionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeReactions>;
            getRecentStickers(
                params: MessagesGetRecentStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeRecentStickers>;
            getReplies(
                params: MessagesGetRepliesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getRichMessage(
                params: MessagesGetRichMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getSavedDialogs(
                params: MessagesGetSavedDialogsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSavedDialogs>;
            getSavedDialogsByID(
                params: MessagesGetSavedDialogsByIDParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSavedDialogs>;
            getSavedGifs(
                params: MessagesGetSavedGifsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSavedGifs>;
            getSavedHistory(
                params: MessagesGetSavedHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getSavedReactionTags(
                params: MessagesGetSavedReactionTagsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSavedReactionTags>;
            getScheduledHistory(
                params: MessagesGetScheduledHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getScheduledMessages(
                params: MessagesGetScheduledMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getSearchCounters(
                params: MessagesGetSearchCountersParams,
                opts?: ApiCallOptions,
            ): Promise<SearchCounter[]>;
            getSearchResultsCalendar(
                params: MessagesGetSearchResultsCalendarParams,
                opts?: ApiCallOptions,
            ): Promise<SearchResultsCalendar>;
            getSearchResultsPositions(
                params: MessagesGetSearchResultsPositionsParams,
                opts?: ApiCallOptions,
            ): Promise<SearchResultsPositions>;
            getSplitRanges(opts?: ApiCallOptions): Promise<MessageRange[]>;
            getSponsoredMessages(
                params: MessagesGetSponsoredMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSponsoredMessages>;
            getStickers(
                params: MessagesGetStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeStickers>;
            getStickerSet(
                params: MessagesGetStickerSetParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeStickerSet>;
            getSuggestedDialogFilters(
                opts?: ApiCallOptions,
            ): Promise<DialogFilterSuggested[]>;
            getTopReactions(
                params: MessagesGetTopReactionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeReactions>;
            getUnreadMentions(
                params: MessagesGetUnreadMentionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getUnreadPollVotes(
                params: MessagesGetUnreadPollVotesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getUnreadReactions(
                params: MessagesGetUnreadReactionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            getWebPage(
                params: MessagesGetWebPageParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.WebPage>;
            getWebPagePreview(
                params: MessagesGetWebPagePreviewParams,
                opts?: ApiCallOptions,
            ): Promise<WebPagePreview>;
            hideAllChatJoinRequests(
                params: MessagesHideAllChatJoinRequestsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            hideChatJoinRequest(
                params: MessagesHideChatJoinRequestParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            hidePeerSettingsBar(
                params: MessagesHidePeerSettingsBarParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            importChatInvite(
                params: MessagesImportChatInviteParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChatInviteJoinResult>;
            initHistoryImport(
                params: MessagesInitHistoryImportParams,
                opts?: ApiCallOptions,
            ): Promise<HistoryImport>;
            installStickerSet(
                params: MessagesInstallStickerSetParams,
                opts?: ApiCallOptions,
            ): Promise<TypeStickerSetInstallResult>;
            markDialogUnread(
                params: MessagesMarkDialogUnreadParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            migrateChat(
                params: MessagesMigrateChatParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            prolongWebView(
                params: MessagesProlongWebViewParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            rateTranscribedAudio(
                params: MessagesRateTranscribedAudioParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            readDiscussion(
                params: MessagesReadDiscussionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            readEncryptedHistory(
                params: MessagesReadEncryptedHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            readFeaturedStickers(
                params: MessagesReadFeaturedStickersParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            readHistory(
                params: MessagesReadHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedMessages>;
            readMentions(
                params: MessagesReadMentionsParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedHistory>;
            readMessageContents(
                params: MessagesReadMessageContentsParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedMessages>;
            readPollVotes(
                params: MessagesReadPollVotesParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedHistory>;
            readReactions(
                params: MessagesReadReactionsParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedHistory>;
            readSavedHistory(
                params: MessagesReadSavedHistoryParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            receivedMessages(
                params: MessagesReceivedMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<ReceivedNotifyMessage[]>;
            receivedQueue(
                params: MessagesReceivedQueueParams,
                opts?: ApiCallOptions,
            ): Promise<BigInteger[]>;
            reorderPinnedDialogs(
                params: MessagesReorderPinnedDialogsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reorderPinnedForumTopics(
                params: MessagesReorderPinnedForumTopicsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            reorderPinnedSavedDialogs(
                params: MessagesReorderPinnedSavedDialogsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reorderQuickReplies(
                params: MessagesReorderQuickRepliesParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reorderStickerSets(
                params: MessagesReorderStickerSetsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            report(
                params: MessagesReportParams,
                opts?: ApiCallOptions,
            ): Promise<TypeReportResult>;
            reportEncryptedSpam(
                params: MessagesReportEncryptedSpamParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportMessagesDelivery(
                params: MessagesReportMessagesDeliveryParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportMusicListen(
                params: MessagesReportMusicListenParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportReaction(
                params: MessagesReportReactionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportReadMetrics(
                params: MessagesReportReadMetricsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportSpam(
                params: MessagesReportSpamParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            reportSponsoredMessage(
                params: MessagesReportSponsoredMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSponsoredMessageReportResult>;
            requestAppWebView(
                params: MessagesRequestAppWebViewParams,
                opts?: ApiCallOptions,
            ): Promise<WebViewResultUrl>;
            requestChatJoinWebView(
                params: MessagesRequestChatJoinWebViewParams,
                opts?: ApiCallOptions,
            ): Promise<WebViewResultUrl>;
            requestEncryption(
                params: MessagesRequestEncryptionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEncryptedChat>;
            requestMainWebView(
                params: MessagesRequestMainWebViewParams,
                opts?: ApiCallOptions,
            ): Promise<WebViewResultUrl>;
            requestSimpleWebView(
                params: MessagesRequestSimpleWebViewParams,
                opts?: ApiCallOptions,
            ): Promise<WebViewResultUrl>;
            requestUrlAuth(
                params: MessagesRequestUrlAuthParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUrlAuthResult>;
            requestWebView(
                params: MessagesRequestWebViewParams,
                opts?: ApiCallOptions,
            ): Promise<WebViewResultUrl>;
            saveDefaultSendAs(
                params: MessagesSaveDefaultSendAsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveDraft(
                params: MessagesSaveDraftParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveGif(
                params: MessagesSaveGifParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            savePreparedInlineMessage(
                params: MessagesSavePreparedInlineMessageParams,
                opts?: ApiCallOptions,
            ): Promise<BotPreparedInlineMessage>;
            saveRecentSticker(
                params: MessagesSaveRecentStickerParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            search(
                params: MessagesSearchParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            searchCustomEmoji(
                params: MessagesSearchCustomEmojiParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEmojiList>;
            searchEmojiStickerSets(
                params: MessagesSearchEmojiStickerSetsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeFoundStickerSets>;
            searchGlobal(
                params: MessagesSearchGlobalParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            searchSentMedia(
                params: MessagesSearchSentMediaParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessages>;
            searchStickers(
                params: MessagesSearchStickersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeFoundStickers>;
            searchStickerSets(
                params: MessagesSearchStickerSetsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeFoundStickerSets>;
            sendBotRequestedPeer(
                params: MessagesSendBotRequestedPeerParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendEncrypted(
                params: MessagesSendEncryptedParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentEncryptedMessage>;
            sendEncryptedFile(
                params: MessagesSendEncryptedFileParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentEncryptedMessage>;
            sendEncryptedService(
                params: MessagesSendEncryptedServiceParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSentEncryptedMessage>;
            sendInlineBotResult(
                params: MessagesSendInlineBotResultParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendMedia(
                params: MessagesSendMediaParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendMessage(
                params: MessagesSendMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendMultiMedia(
                params: MessagesSendMultiMediaParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendPaidReaction(
                params: MessagesSendPaidReactionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendQuickReplyMessages(
                params: MessagesSendQuickReplyMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendReaction(
                params: MessagesSendReactionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendScheduledMessages(
                params: MessagesSendScheduledMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendScreenshotNotification(
                params: MessagesSendScreenshotNotificationParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendVote(
                params: MessagesSendVoteParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendWebViewData(
                params: MessagesSendWebViewDataParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendWebViewResultMessage(
                params: MessagesSendWebViewResultMessageParams,
                opts?: ApiCallOptions,
            ): Promise<WebViewMessageSent>;
            setBotCallbackAnswer(
                params: MessagesSetBotCallbackAnswerParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setBotGuestChatResult(
                params: MessagesSetBotGuestChatResultParams,
                opts?: ApiCallOptions,
            ): Promise<TypeInputBotInlineMessageID>;
            setBotPrecheckoutResults(
                params: MessagesSetBotPrecheckoutResultsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setBotShippingResults(
                params: MessagesSetBotShippingResultsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setChatAvailableReactions(
                params: MessagesSetChatAvailableReactionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            setChatTheme(
                params: MessagesSetChatThemeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            setChatWallPaper(
                params: MessagesSetChatWallPaperParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            setDefaultHistoryTTL(
                params: MessagesSetDefaultHistoryTTLParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setDefaultReaction(
                params: MessagesSetDefaultReactionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setEncryptedTyping(
                params: MessagesSetEncryptedTypingParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setGameScore(
                params: MessagesSetGameScoreParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            setHistoryTTL(
                params: MessagesSetHistoryTTLParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            setInlineBotResults(
                params: MessagesSetInlineBotResultsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setInlineGameScore(
                params: MessagesSetInlineGameScoreParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setTyping(
                params: MessagesSetTypingParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            startBot(
                params: MessagesStartBotParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            startHistoryImport(
                params: MessagesStartHistoryImportParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            summarizeText(
                params: MessagesSummarizeTextParams,
                opts?: ApiCallOptions,
            ): Promise<TextWithEntities>;
            toggleBotInAttachMenu(
                params: MessagesToggleBotInAttachMenuParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleDialogFilterTags(
                params: MessagesToggleDialogFilterTagsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleDialogPin(
                params: MessagesToggleDialogPinParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleNoForwards(
                params: MessagesToggleNoForwardsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            togglePaidReactionPrivacy(
                params: MessagesTogglePaidReactionPrivacyParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            togglePeerTranslations(
                params: MessagesTogglePeerTranslationsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleSavedDialogPin(
                params: MessagesToggleSavedDialogPinParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleStickerSets(
                params: MessagesToggleStickerSetsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleSuggestedPostApproval(
                params: MessagesToggleSuggestedPostApprovalParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleTodoCompleted(
                params: MessagesToggleTodoCompletedParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            transcribeAudio(
                params: MessagesTranscribeAudioParams,
                opts?: ApiCallOptions,
            ): Promise<TranscribedAudio>;
            translateRichMessage(
                params: MessagesTranslateRichMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TranslatedRichMessage>;
            translateText(
                params: MessagesTranslateTextParams,
                opts?: ApiCallOptions,
            ): Promise<TranslateResult>;
            uninstallStickerSet(
                params: MessagesUninstallStickerSetParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            unpinAllMessages(
                params: MessagesUnpinAllMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<AffectedHistory>;
            updateDialogFilter(
                params: MessagesUpdateDialogFilterParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateDialogFiltersOrder(
                params: MessagesUpdateDialogFiltersOrderParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updatePinnedForumTopic(
                params: MessagesUpdatePinnedForumTopicParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            updatePinnedMessage(
                params: MessagesUpdatePinnedMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            updateSavedReactionTag(
                params: MessagesUpdateSavedReactionTagParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            uploadEncryptedFile(
                params: MessagesUploadEncryptedFileParams,
                opts?: ApiCallOptions,
            ): Promise<TypeEncryptedFile>;
            uploadImportedMedia(
                params: MessagesUploadImportedMediaParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessageMedia>;
            uploadMedia(
                params: MessagesUploadMediaParams,
                opts?: ApiCallOptions,
            ): Promise<TypeMessageMedia>;
            viewSponsoredMessage(
                params: MessagesViewSponsoredMessageParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
        };
        payments: {
            applyGiftCode(
                params: PaymentsApplyGiftCodeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            assignAppStoreTransaction(
                params: PaymentsAssignAppStoreTransactionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            assignPlayMarketTransaction(
                params: PaymentsAssignPlayMarketTransactionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            botCancelStarsSubscription(
                params: PaymentsBotCancelStarsSubscriptionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            canPurchaseStore(
                params: PaymentsCanPurchaseStoreParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            changeStarsSubscription(
                params: PaymentsChangeStarsSubscriptionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            checkCanSendGift(
                params: PaymentsCheckCanSendGiftParams,
                opts?: ApiCallOptions,
            ): Promise<TypeCheckCanSendGiftResult>;
            checkGiftCode(
                params: PaymentsCheckGiftCodeParams,
                opts?: ApiCallOptions,
            ): Promise<CheckedGiftCode>;
            clearSavedInfo(
                params: PaymentsClearSavedInfoParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            connectStarRefBot(
                params: PaymentsConnectStarRefBotParams,
                opts?: ApiCallOptions,
            ): Promise<ConnectedStarRefBots>;
            convertStarGift(
                params: PaymentsConvertStarGiftParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            craftStarGift(
                params: PaymentsCraftStarGiftParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            createStarGiftCollection(
                params: PaymentsCreateStarGiftCollectionParams,
                opts?: ApiCallOptions,
            ): Promise<StarGiftCollection>;
            deleteStarGiftCollection(
                params: PaymentsDeleteStarGiftCollectionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            editConnectedStarRefBot(
                params: PaymentsEditConnectedStarRefBotParams,
                opts?: ApiCallOptions,
            ): Promise<ConnectedStarRefBots>;
            exportInvoice(
                params: PaymentsExportInvoiceParams,
                opts?: ApiCallOptions,
            ): Promise<ExportedInvoice>;
            fulfillStarsSubscription(
                params: PaymentsFulfillStarsSubscriptionParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            getBankCardData(
                params: PaymentsGetBankCardDataParams,
                opts?: ApiCallOptions,
            ): Promise<BankCardData>;
            getConnectedStarRefBot(
                params: PaymentsGetConnectedStarRefBotParams,
                opts?: ApiCallOptions,
            ): Promise<ConnectedStarRefBots>;
            getConnectedStarRefBots(
                params: PaymentsGetConnectedStarRefBotsParams,
                opts?: ApiCallOptions,
            ): Promise<ConnectedStarRefBots>;
            getCraftStarGifts(
                params: PaymentsGetCraftStarGiftsParams,
                opts?: ApiCallOptions,
            ): Promise<SavedStarGifts>;
            getGiveawayInfo(
                params: PaymentsGetGiveawayInfoParams,
                opts?: ApiCallOptions,
            ): Promise<TypeGiveawayInfo>;
            getPaymentForm(
                params: PaymentsGetPaymentFormParams,
                opts?: ApiCallOptions,
            ): Promise<TypePaymentForm>;
            getPaymentReceipt(
                params: PaymentsGetPaymentReceiptParams,
                opts?: ApiCallOptions,
            ): Promise<TypePaymentReceipt>;
            getPremiumGiftCodeOptions(
                params: PaymentsGetPremiumGiftCodeOptionsParams,
                opts?: ApiCallOptions,
            ): Promise<PremiumGiftCodeOption[]>;
            getResaleStarGifts(
                params: PaymentsGetResaleStarGiftsParams,
                opts?: ApiCallOptions,
            ): Promise<ResaleStarGifts>;
            getSavedInfo(opts?: ApiCallOptions): Promise<SavedInfo>;
            getSavedStarGift(
                params: PaymentsGetSavedStarGiftParams,
                opts?: ApiCallOptions,
            ): Promise<SavedStarGifts>;
            getSavedStarGifts(
                params: PaymentsGetSavedStarGiftsParams,
                opts?: ApiCallOptions,
            ): Promise<SavedStarGifts>;
            getStarGiftActiveAuctions(
                params: PaymentsGetStarGiftActiveAuctionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeStarGiftActiveAuctions>;
            getStarGiftAuctionAcquiredGifts(
                params: PaymentsGetStarGiftAuctionAcquiredGiftsParams,
                opts?: ApiCallOptions,
            ): Promise<StarGiftAuctionAcquiredGifts>;
            getStarGiftAuctionState(
                params: PaymentsGetStarGiftAuctionStateParams,
                opts?: ApiCallOptions,
            ): Promise<Api.payments.StarGiftAuctionState>;
            getStarGiftCollections(
                params: PaymentsGetStarGiftCollectionsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeStarGiftCollections>;
            getStarGifts(
                params: PaymentsGetStarGiftsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeStarGifts>;
            getStarGiftUpgradeAttributes(
                params: PaymentsGetStarGiftUpgradeAttributesParams,
                opts?: ApiCallOptions,
            ): Promise<StarGiftUpgradeAttributes>;
            getStarGiftUpgradePreview(
                params: PaymentsGetStarGiftUpgradePreviewParams,
                opts?: ApiCallOptions,
            ): Promise<StarGiftUpgradePreview>;
            getStarGiftWithdrawalUrl(
                params: PaymentsGetStarGiftWithdrawalUrlParams,
                opts?: ApiCallOptions,
            ): Promise<StarGiftWithdrawalUrl>;
            getStarsGiftOptions(
                params: PaymentsGetStarsGiftOptionsParams,
                opts?: ApiCallOptions,
            ): Promise<StarsGiftOption[]>;
            getStarsGiveawayOptions(
                opts?: ApiCallOptions,
            ): Promise<StarsGiveawayOption[]>;
            getStarsRevenueAdsAccountUrl(
                params: PaymentsGetStarsRevenueAdsAccountUrlParams,
                opts?: ApiCallOptions,
            ): Promise<StarsRevenueAdsAccountUrl>;
            getStarsRevenueStats(
                params: PaymentsGetStarsRevenueStatsParams,
                opts?: ApiCallOptions,
            ): Promise<StarsRevenueStats>;
            getStarsRevenueWithdrawalUrl(
                params: PaymentsGetStarsRevenueWithdrawalUrlParams,
                opts?: ApiCallOptions,
            ): Promise<StarsRevenueWithdrawalUrl>;
            getStarsStatus(
                params: PaymentsGetStarsStatusParams,
                opts?: ApiCallOptions,
            ): Promise<StarsStatus>;
            getStarsSubscriptions(
                params: PaymentsGetStarsSubscriptionsParams,
                opts?: ApiCallOptions,
            ): Promise<StarsStatus>;
            getStarsTopupOptions(opts?: ApiCallOptions): Promise<StarsTopupOption[]>;
            getStarsTransactions(
                params: PaymentsGetStarsTransactionsParams,
                opts?: ApiCallOptions,
            ): Promise<StarsStatus>;
            getStarsTransactionsByID(
                params: PaymentsGetStarsTransactionsByIDParams,
                opts?: ApiCallOptions,
            ): Promise<StarsStatus>;
            getSuggestedStarRefBots(
                params: PaymentsGetSuggestedStarRefBotsParams,
                opts?: ApiCallOptions,
            ): Promise<SuggestedStarRefBots>;
            getUniqueStarGift(
                params: PaymentsGetUniqueStarGiftParams,
                opts?: ApiCallOptions,
            ): Promise<UniqueStarGift>;
            getUniqueStarGiftValueInfo(
                params: PaymentsGetUniqueStarGiftValueInfoParams,
                opts?: ApiCallOptions,
            ): Promise<UniqueStarGiftValueInfo>;
            launchPrepaidGiveaway(
                params: PaymentsLaunchPrepaidGiveawayParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            refundStarsCharge(
                params: PaymentsRefundStarsChargeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            reorderStarGiftCollections(
                params: PaymentsReorderStarGiftCollectionsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            resolveStarGiftOffer(
                params: PaymentsResolveStarGiftOfferParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            saveStarGift(
                params: PaymentsSaveStarGiftParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            sendPaymentForm(
                params: PaymentsSendPaymentFormParams,
                opts?: ApiCallOptions,
            ): Promise<TypePaymentResult>;
            sendStarGiftOffer(
                params: PaymentsSendStarGiftOfferParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendStarsForm(
                params: PaymentsSendStarsFormParams,
                opts?: ApiCallOptions,
            ): Promise<TypePaymentResult>;
            toggleChatStarGiftNotifications(
                params: PaymentsToggleChatStarGiftNotificationsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            toggleStarGiftsPinnedToTop(
                params: PaymentsToggleStarGiftsPinnedToTopParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            transferStarGift(
                params: PaymentsTransferStarGiftParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            updateStarGiftCollection(
                params: PaymentsUpdateStarGiftCollectionParams,
                opts?: ApiCallOptions,
            ): Promise<StarGiftCollection>;
            updateStarGiftPrice(
                params: PaymentsUpdateStarGiftPriceParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            upgradeStarGift(
                params: PaymentsUpgradeStarGiftParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            validateRequestedInfo(
                params: PaymentsValidateRequestedInfoParams,
                opts?: ApiCallOptions,
            ): Promise<ValidatedRequestedInfo>;
        };
        phone: {
            acceptCall(
                params: PhoneAcceptCallParams,
                opts?: ApiCallOptions,
            ): Promise<Api.phone.PhoneCall>;
            checkGroupCall(
                params: PhoneCheckGroupCallParams,
                opts?: ApiCallOptions,
            ): Promise<number[]>;
            confirmCall(
                params: PhoneConfirmCallParams,
                opts?: ApiCallOptions,
            ): Promise<Api.phone.PhoneCall>;
            createConferenceCall(
                params: PhoneCreateConferenceCallParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            createGroupCall(
                params: PhoneCreateGroupCallParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            declineConferenceCallInvite(
                params: PhoneDeclineConferenceCallInviteParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteConferenceCallParticipants(
                params: PhoneDeleteConferenceCallParticipantsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteGroupCallMessages(
                params: PhoneDeleteGroupCallMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            deleteGroupCallParticipantMessages(
                params: PhoneDeleteGroupCallParticipantMessagesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            discardCall(
                params: PhoneDiscardCallParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            discardGroupCall(
                params: PhoneDiscardGroupCallParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editGroupCallParticipant(
                params: PhoneEditGroupCallParticipantParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            editGroupCallTitle(
                params: PhoneEditGroupCallTitleParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            exportGroupCallInvite(
                params: PhoneExportGroupCallInviteParams,
                opts?: ApiCallOptions,
            ): Promise<ExportedGroupCallInvite>;
            getCallConfig(opts?: ApiCallOptions): Promise<DataJSON>;
            getGroupCall(
                params: PhoneGetGroupCallParams,
                opts?: ApiCallOptions,
            ): Promise<Api.phone.GroupCall>;
            getGroupCallChainBlocks(
                params: PhoneGetGroupCallChainBlocksParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            getGroupCallJoinAs(
                params: PhoneGetGroupCallJoinAsParams,
                opts?: ApiCallOptions,
            ): Promise<JoinAsPeers>;
            getGroupCallStars(
                params: PhoneGetGroupCallStarsParams,
                opts?: ApiCallOptions,
            ): Promise<GroupCallStars>;
            getGroupCallStreamChannels(
                params: PhoneGetGroupCallStreamChannelsParams,
                opts?: ApiCallOptions,
            ): Promise<GroupCallStreamChannels>;
            getGroupCallStreamRtmpUrl(
                params: PhoneGetGroupCallStreamRtmpUrlParams,
                opts?: ApiCallOptions,
            ): Promise<GroupCallStreamRtmpUrl>;
            getGroupParticipants(
                params: PhoneGetGroupParticipantsParams,
                opts?: ApiCallOptions,
            ): Promise<GroupParticipants>;
            inviteConferenceCallParticipant(
                params: PhoneInviteConferenceCallParticipantParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            inviteToGroupCall(
                params: PhoneInviteToGroupCallParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            joinGroupCall(
                params: PhoneJoinGroupCallParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            joinGroupCallPresentation(
                params: PhoneJoinGroupCallPresentationParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            leaveGroupCall(
                params: PhoneLeaveGroupCallParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            leaveGroupCallPresentation(
                params: PhoneLeaveGroupCallPresentationParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            receivedCall(
                params: PhoneReceivedCallParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            requestCall(
                params: PhoneRequestCallParams,
                opts?: ApiCallOptions,
            ): Promise<Api.phone.PhoneCall>;
            saveCallDebug(
                params: PhoneSaveCallDebugParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveCallLog(
                params: PhoneSaveCallLogParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveDefaultGroupCallJoinAs(
                params: PhoneSaveDefaultGroupCallJoinAsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveDefaultSendAs(
                params: PhoneSaveDefaultSendAsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            sendConferenceCallBroadcast(
                params: PhoneSendConferenceCallBroadcastParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendGroupCallEncryptedMessage(
                params: PhoneSendGroupCallEncryptedMessageParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            sendGroupCallMessage(
                params: PhoneSendGroupCallMessageParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendSignalingData(
                params: PhoneSendSignalingDataParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            setCallRating(
                params: PhoneSetCallRatingParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            startScheduledGroupCall(
                params: PhoneStartScheduledGroupCallParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleGroupCallRecord(
                params: PhoneToggleGroupCallRecordParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleGroupCallSettings(
                params: PhoneToggleGroupCallSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleGroupCallStartSubscription(
                params: PhoneToggleGroupCallStartSubscriptionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
        };
        photos: {
            deletePhotos(
                params: PhotosDeletePhotosParams,
                opts?: ApiCallOptions,
            ): Promise<BigInteger[]>;
            getUserPhotos(
                params: PhotosGetUserPhotosParams,
                opts?: ApiCallOptions,
            ): Promise<TypePhotos>;
            updateProfilePhoto(
                params: PhotosUpdateProfilePhotoParams,
                opts?: ApiCallOptions,
            ): Promise<Api.photos.Photo>;
            uploadContactProfilePhoto(
                params: PhotosUploadContactProfilePhotoParams,
                opts?: ApiCallOptions,
            ): Promise<Api.photos.Photo>;
            uploadProfilePhoto(
                params: PhotosUploadProfilePhotoParams,
                opts?: ApiCallOptions,
            ): Promise<Api.photos.Photo>;
        };
        ping(params: PingParams, opts?: ApiCallOptions): Promise<Pong>;
        pingDelayDisconnect(
            params: PingDelayDisconnectParams,
            opts?: ApiCallOptions,
        ): Promise<Pong>;
        premium: {
            applyBoost(
                params: PremiumApplyBoostParams,
                opts?: ApiCallOptions,
            ): Promise<MyBoosts>;
            getBoostsList(
                params: PremiumGetBoostsListParams,
                opts?: ApiCallOptions,
            ): Promise<BoostsList>;
            getBoostsStatus(
                params: PremiumGetBoostsStatusParams,
                opts?: ApiCallOptions,
            ): Promise<BoostsStatus>;
            getMyBoosts(opts?: ApiCallOptions): Promise<MyBoosts>;
            getUserBoosts(
                params: PremiumGetUserBoostsParams,
                opts?: ApiCallOptions,
            ): Promise<BoostsList>;
        };
        reqDHParams(
            params: ReqDHParamsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeServer_DH_Params>;
        reqPq(params: ReqPqParams, opts?: ApiCallOptions): Promise<ResPQ>;
        reqPqMulti(params: ReqPqMultiParams, opts?: ApiCallOptions): Promise<ResPQ>;
        rpcDropAnswer(
            params: RpcDropAnswerParams,
            opts?: ApiCallOptions,
        ): Promise<TypeRpcDropAnswer>;
        setClientDHParams(
            params: SetClientDHParamsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSet_client_DH_params_answer>;
        smsjobs: {
            finishJob(
                params: SmsjobsFinishJobParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            getSmsJob(
                params: SmsjobsGetSmsJobParams,
                opts?: ApiCallOptions,
            ): Promise<SmsJob>;
            getStatus(opts?: ApiCallOptions): Promise<Status>;
            isEligibleToJoin(opts?: ApiCallOptions): Promise<EligibleToJoin>;
            join(opts?: ApiCallOptions): Promise<boolean>;
            leave(opts?: ApiCallOptions): Promise<boolean>;
            updateSettings(
                params: SmsjobsUpdateSettingsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
        };
        stats: {
            getBroadcastStats(
                params: StatsGetBroadcastStatsParams,
                opts?: ApiCallOptions,
            ): Promise<BroadcastStats>;
            getMegagroupStats(
                params: StatsGetMegagroupStatsParams,
                opts?: ApiCallOptions,
            ): Promise<MegagroupStats>;
            getMessagePublicForwards(
                params: StatsGetMessagePublicForwardsParams,
                opts?: ApiCallOptions,
            ): Promise<PublicForwards>;
            getMessageStats(
                params: StatsGetMessageStatsParams,
                opts?: ApiCallOptions,
            ): Promise<MessageStats>;
            getPollStats(
                params: StatsGetPollStatsParams,
                opts?: ApiCallOptions,
            ): Promise<PollStats>;
            getStoryPublicForwards(
                params: StatsGetStoryPublicForwardsParams,
                opts?: ApiCallOptions,
            ): Promise<PublicForwards>;
            getStoryStats(
                params: StatsGetStoryStatsParams,
                opts?: ApiCallOptions,
            ): Promise<StoryStats>;
            loadAsyncGraph(
                params: StatsLoadAsyncGraphParams,
                opts?: ApiCallOptions,
            ): Promise<TypeStatsGraph>;
        };
        stickers: {
            addStickerToSet(
                params: StickersAddStickerToSetParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeStickerSet>;
            changeSticker(
                params: StickersChangeStickerParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeStickerSet>;
            changeStickerPosition(
                params: StickersChangeStickerPositionParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeStickerSet>;
            checkShortName(
                params: StickersCheckShortNameParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            createStickerSet(
                params: StickersCreateStickerSetParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeStickerSet>;
            deleteStickerSet(
                params: StickersDeleteStickerSetParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            removeStickerFromSet(
                params: StickersRemoveStickerFromSetParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeStickerSet>;
            renameStickerSet(
                params: StickersRenameStickerSetParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeStickerSet>;
            replaceSticker(
                params: StickersReplaceStickerParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeStickerSet>;
            setStickerSetThumb(
                params: StickersSetStickerSetThumbParams,
                opts?: ApiCallOptions,
            ): Promise<Api.messages.TypeStickerSet>;
            suggestShortName(
                params: StickersSuggestShortNameParams,
                opts?: ApiCallOptions,
            ): Promise<SuggestedShortName>;
        };
        stories: {
            activateStealthMode(
                params: StoriesActivateStealthModeParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            canSendStory(
                params: StoriesCanSendStoryParams,
                opts?: ApiCallOptions,
            ): Promise<CanSendStoryCount>;
            createAlbum(
                params: StoriesCreateAlbumParams,
                opts?: ApiCallOptions,
            ): Promise<StoryAlbum>;
            deleteAlbum(
                params: StoriesDeleteAlbumParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            deleteStories(
                params: StoriesDeleteStoriesParams,
                opts?: ApiCallOptions,
            ): Promise<number[]>;
            editStory(
                params: StoriesEditStoryParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            exportStoryLink(
                params: StoriesExportStoryLinkParams,
                opts?: ApiCallOptions,
            ): Promise<ExportedStoryLink>;
            getAlbums(
                params: StoriesGetAlbumsParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAlbums>;
            getAlbumStories(
                params: StoriesGetAlbumStoriesParams,
                opts?: ApiCallOptions,
            ): Promise<Stories>;
            getAllReadPeerStories(opts?: ApiCallOptions): Promise<TypeUpdates>;
            getAllStories(
                params: StoriesGetAllStoriesParams,
                opts?: ApiCallOptions,
            ): Promise<TypeAllStories>;
            getChatsToSend(opts?: ApiCallOptions): Promise<TypeChats>;
            getPeerMaxIDs(
                params: StoriesGetPeerMaxIDsParams,
                opts?: ApiCallOptions,
            ): Promise<RecentStory[]>;
            getPeerStories(
                params: StoriesGetPeerStoriesParams,
                opts?: ApiCallOptions,
            ): Promise<Api.stories.PeerStories>;
            getPinnedStories(
                params: StoriesGetPinnedStoriesParams,
                opts?: ApiCallOptions,
            ): Promise<Stories>;
            getStoriesArchive(
                params: StoriesGetStoriesArchiveParams,
                opts?: ApiCallOptions,
            ): Promise<Stories>;
            getStoriesByID(
                params: StoriesGetStoriesByIDParams,
                opts?: ApiCallOptions,
            ): Promise<Stories>;
            getStoriesViews(
                params: StoriesGetStoriesViewsParams,
                opts?: ApiCallOptions,
            ): Promise<Api.stories.StoryViews>;
            getStoryReactionsList(
                params: StoriesGetStoryReactionsListParams,
                opts?: ApiCallOptions,
            ): Promise<StoryReactionsList>;
            getStoryViewsList(
                params: StoriesGetStoryViewsListParams,
                opts?: ApiCallOptions,
            ): Promise<StoryViewsList>;
            incrementStoryViews(
                params: StoriesIncrementStoryViewsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            readStories(
                params: StoriesReadStoriesParams,
                opts?: ApiCallOptions,
            ): Promise<number[]>;
            reorderAlbums(
                params: StoriesReorderAlbumsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            report(
                params: StoriesReportParams,
                opts?: ApiCallOptions,
            ): Promise<TypeReportResult>;
            searchPosts(
                params: StoriesSearchPostsParams,
                opts?: ApiCallOptions,
            ): Promise<FoundStories>;
            sendReaction(
                params: StoriesSendReactionParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            sendStory(
                params: StoriesSendStoryParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            startLive(
                params: StoriesStartLiveParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
            toggleAllStoriesHidden(
                params: StoriesToggleAllStoriesHiddenParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            togglePeerStoriesHidden(
                params: StoriesTogglePeerStoriesHiddenParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            togglePinned(
                params: StoriesTogglePinnedParams,
                opts?: ApiCallOptions,
            ): Promise<number[]>;
            togglePinnedToTop(
                params: StoriesTogglePinnedToTopParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            updateAlbum(
                params: StoriesUpdateAlbumParams,
                opts?: ApiCallOptions,
            ): Promise<StoryAlbum>;
        };
        updates: {
            getChannelDifference(
                params: UpdatesGetChannelDifferenceParams,
                opts?: ApiCallOptions,
            ): Promise<TypeChannelDifference>;
            getDifference(
                params: UpdatesGetDifferenceParams,
                opts?: ApiCallOptions,
            ): Promise<TypeDifference>;
            getState(opts?: ApiCallOptions): Promise<State>;
        };
        upload: {
            getCdnFile(
                params: UploadGetCdnFileParams,
                opts?: ApiCallOptions,
            ): Promise<TypeCdnFile>;
            getCdnFileHashes(
                params: UploadGetCdnFileHashesParams,
                opts?: ApiCallOptions,
            ): Promise<FileHash[]>;
            getFile(
                params: UploadGetFileParams,
                opts?: ApiCallOptions,
            ): Promise<TypeFile>;
            getFileHashes(
                params: UploadGetFileHashesParams,
                opts?: ApiCallOptions,
            ): Promise<FileHash[]>;
            getWebFile(
                params: UploadGetWebFileParams,
                opts?: ApiCallOptions,
            ): Promise<WebFile>;
            reuploadCdnFile(
                params: UploadReuploadCdnFileParams,
                opts?: ApiCallOptions,
            ): Promise<FileHash[]>;
            saveBigFilePart(
                params: UploadSaveBigFilePartParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            saveFilePart(
                params: UploadSaveFilePartParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
        };
        users: {
            getFullUser(
                params: UsersGetFullUserParams,
                opts?: ApiCallOptions,
            ): Promise<Api.users.UserFull>;
            getRequirementsToContact(
                params: UsersGetRequirementsToContactParams,
                opts?: ApiCallOptions,
            ): Promise<TypeRequirementToContact[]>;
            getSavedMusic(
                params: UsersGetSavedMusicParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSavedMusic>;
            getSavedMusicByID(
                params: UsersGetSavedMusicByIDParams,
                opts?: ApiCallOptions,
            ): Promise<TypeSavedMusic>;
            getUsers(
                params: UsersGetUsersParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUser[]>;
            setSecureValueErrors(
                params: UsersSetSecureValueErrorsParams,
                opts?: ApiCallOptions,
            ): Promise<boolean>;
            suggestBirthday(
                params: UsersSuggestBirthdayParams,
                opts?: ApiCallOptions,
            ): Promise<TypeUpdates>;
        };
    }
    Index
    account: {
        acceptAuthorization(
            params: AccountAcceptAuthorizationParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        cancelPasswordEmail(opts?: ApiCallOptions): Promise<boolean>;
        changeAuthorizationSettings(
            params: AccountChangeAuthorizationSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        changePhone(
            params: AccountChangePhoneParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUser>;
        checkUsername(
            params: AccountCheckUsernameParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        clearRecentEmojiStatuses(opts?: ApiCallOptions): Promise<boolean>;
        confirmBotConnection(
            params: AccountConfirmBotConnectionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        confirmPasswordEmail(
            params: AccountConfirmPasswordEmailParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        confirmPhone(
            params: AccountConfirmPhoneParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        createBusinessChatLink(
            params: AccountCreateBusinessChatLinkParams,
            opts?: ApiCallOptions,
        ): Promise<BusinessChatLink>;
        createTheme(
            params: AccountCreateThemeParams,
            opts?: ApiCallOptions,
        ): Promise<Theme>;
        declinePasswordReset(opts?: ApiCallOptions): Promise<boolean>;
        deleteAccount(
            params: AccountDeleteAccountParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteAutoSaveExceptions(opts?: ApiCallOptions): Promise<boolean>;
        deleteBusinessChatLink(
            params: AccountDeleteBusinessChatLinkParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deletePasskey(
            params: AccountDeletePasskeyParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteSecureValue(
            params: AccountDeleteSecureValueParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteWebBrowserSettingsExceptions(
            opts?: ApiCallOptions,
        ): Promise<TypeWebBrowserSettings>;
        disablePeerConnectedBot(
            params: AccountDisablePeerConnectedBotParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editBusinessChatLink(
            params: AccountEditBusinessChatLinkParams,
            opts?: ApiCallOptions,
        ): Promise<BusinessChatLink>;
        finishTakeoutSession(
            params: AccountFinishTakeoutSessionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        getAccountTTL(opts?: ApiCallOptions): Promise<AccountDaysTTL>;
        getAllSecureValues(opts?: ApiCallOptions): Promise<SecureValue[]>;
        getAuthorizationForm(
            params: AccountGetAuthorizationFormParams,
            opts?: ApiCallOptions,
        ): Promise<AuthorizationForm>;
        getAuthorizations(opts?: ApiCallOptions): Promise<Authorizations>;
        getAutoDownloadSettings(
            opts?: ApiCallOptions,
        ): Promise<Api.account.AutoDownloadSettings>;
        getAutoSaveSettings(
            opts?: ApiCallOptions,
        ): Promise<Api.account.AutoSaveSettings>;
        getBotBusinessConnection(
            params: AccountGetBotBusinessConnectionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getBusinessChatLinks(opts?: ApiCallOptions): Promise<BusinessChatLinks>;
        getChannelDefaultEmojiStatuses(
            params: AccountGetChannelDefaultEmojiStatusesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiStatuses>;
        getChannelRestrictedStatusEmojis(
            params: AccountGetChannelRestrictedStatusEmojisParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiList>;
        getChatThemes(
            params: AccountGetChatThemesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeThemes>;
        getCollectibleEmojiStatuses(
            params: AccountGetCollectibleEmojiStatusesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiStatuses>;
        getConnectedBots(opts?: ApiCallOptions): Promise<ConnectedBots>;
        getContactSignUpNotification(opts?: ApiCallOptions): Promise<boolean>;
        getContentSettings(opts?: ApiCallOptions): Promise<ContentSettings>;
        getDefaultBackgroundEmojis(
            params: AccountGetDefaultBackgroundEmojisParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiList>;
        getDefaultEmojiStatuses(
            params: AccountGetDefaultEmojiStatusesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiStatuses>;
        getDefaultGroupPhotoEmojis(
            params: AccountGetDefaultGroupPhotoEmojisParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiList>;
        getDefaultProfilePhotoEmojis(
            params: AccountGetDefaultProfilePhotoEmojisParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiList>;
        getGlobalPrivacySettings(
            opts?: ApiCallOptions,
        ): Promise<GlobalPrivacySettings>;
        getMultiWallPapers(
            params: AccountGetMultiWallPapersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeWallPaper[]>;
        getNotifyExceptions(
            params: AccountGetNotifyExceptionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getNotifySettings(
            params: AccountGetNotifySettingsParams,
            opts?: ApiCallOptions,
        ): Promise<PeerNotifySettings>;
        getPaidMessagesRevenue(
            params: AccountGetPaidMessagesRevenueParams,
            opts?: ApiCallOptions,
        ): Promise<PaidMessagesRevenue>;
        getPasskeys(opts?: ApiCallOptions): Promise<Passkeys>;
        getPassword(opts?: ApiCallOptions): Promise<Password>;
        getPasswordSettings(
            params: AccountGetPasswordSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<PasswordSettings>;
        getPrivacy(
            params: AccountGetPrivacyParams,
            opts?: ApiCallOptions,
        ): Promise<PrivacyRules>;
        getReactionsNotifySettings(
            opts?: ApiCallOptions,
        ): Promise<ReactionsNotifySettings>;
        getRecentEmojiStatuses(
            params: AccountGetRecentEmojiStatusesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiStatuses>;
        getSavedMusicIds(
            params: AccountGetSavedMusicIdsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSavedMusicIds>;
        getSavedRingtones(
            params: AccountGetSavedRingtonesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSavedRingtones>;
        getSecureValue(
            params: AccountGetSecureValueParams,
            opts?: ApiCallOptions,
        ): Promise<SecureValue[]>;
        getTheme(
            params: AccountGetThemeParams,
            opts?: ApiCallOptions,
        ): Promise<Theme>;
        getThemes(
            params: AccountGetThemesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeThemes>;
        getTmpPassword(
            params: AccountGetTmpPasswordParams,
            opts?: ApiCallOptions,
        ): Promise<TmpPassword>;
        getUniqueGiftChatThemes(
            params: AccountGetUniqueGiftChatThemesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChatThemes>;
        getWallPaper(
            params: AccountGetWallPaperParams,
            opts?: ApiCallOptions,
        ): Promise<TypeWallPaper>;
        getWallPapers(
            params: AccountGetWallPapersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeWallPapers>;
        getWebAuthorizations(opts?: ApiCallOptions): Promise<WebAuthorizations>;
        getWebBrowserSettings(
            params: AccountGetWebBrowserSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeWebBrowserSettings>;
        initPasskeyRegistration(
            opts?: ApiCallOptions,
        ): Promise<PasskeyRegistrationOptions>;
        initTakeoutSession(
            params: AccountInitTakeoutSessionParams,
            opts?: ApiCallOptions,
        ): Promise<Takeout>;
        installTheme(
            params: AccountInstallThemeParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        installWallPaper(
            params: AccountInstallWallPaperParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        invalidateSignInCodes(
            params: AccountInvalidateSignInCodesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        registerDevice(
            params: AccountRegisterDeviceParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        registerPasskey(
            params: AccountRegisterPasskeyParams,
            opts?: ApiCallOptions,
        ): Promise<Passkey>;
        reorderUsernames(
            params: AccountReorderUsernamesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportPeer(
            params: AccountReportPeerParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportProfilePhoto(
            params: AccountReportProfilePhotoParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        resendPasswordEmail(opts?: ApiCallOptions): Promise<boolean>;
        resetAuthorization(
            params: AccountResetAuthorizationParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        resetNotifySettings(opts?: ApiCallOptions): Promise<boolean>;
        resetPassword(opts?: ApiCallOptions): Promise<TypeResetPasswordResult>;
        resetWallPapers(opts?: ApiCallOptions): Promise<boolean>;
        resetWebAuthorization(
            params: AccountResetWebAuthorizationParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        resetWebAuthorizations(opts?: ApiCallOptions): Promise<boolean>;
        resolveBusinessChatLink(
            params: AccountResolveBusinessChatLinkParams,
            opts?: ApiCallOptions,
        ): Promise<ResolvedBusinessChatLinks>;
        saveAutoDownloadSettings(
            params: AccountSaveAutoDownloadSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveAutoSaveSettings(
            params: AccountSaveAutoSaveSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveMusic(
            params: AccountSaveMusicParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveRingtone(
            params: AccountSaveRingtoneParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSavedRingtone>;
        saveSecureValue(
            params: AccountSaveSecureValueParams,
            opts?: ApiCallOptions,
        ): Promise<SecureValue>;
        saveTheme(
            params: AccountSaveThemeParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveWallPaper(
            params: AccountSaveWallPaperParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        sendChangePhoneCode(
            params: AccountSendChangePhoneCodeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentCode>;
        sendConfirmPhoneCode(
            params: AccountSendConfirmPhoneCodeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentCode>;
        sendVerifyEmailCode(
            params: AccountSendVerifyEmailCodeParams,
            opts?: ApiCallOptions,
        ): Promise<SentEmailCode>;
        sendVerifyPhoneCode(
            params: AccountSendVerifyPhoneCodeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentCode>;
        setAccountTTL(
            params: AccountSetAccountTTLParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setAuthorizationTTL(
            params: AccountSetAuthorizationTTLParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setContactSignUpNotification(
            params: AccountSetContactSignUpNotificationParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setContentSettings(
            params: AccountSetContentSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setGlobalPrivacySettings(
            params: AccountSetGlobalPrivacySettingsParams,
            opts?: ApiCallOptions,
        ): Promise<GlobalPrivacySettings>;
        setMainProfileTab(
            params: AccountSetMainProfileTabParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setPrivacy(
            params: AccountSetPrivacyParams,
            opts?: ApiCallOptions,
        ): Promise<PrivacyRules>;
        setReactionsNotifySettings(
            params: AccountSetReactionsNotifySettingsParams,
            opts?: ApiCallOptions,
        ): Promise<ReactionsNotifySettings>;
        toggleConnectedBotPaused(
            params: AccountToggleConnectedBotPausedParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleNoPaidMessagesException(
            params: AccountToggleNoPaidMessagesExceptionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleSponsoredMessages(
            params: AccountToggleSponsoredMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleUsername(
            params: AccountToggleUsernameParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleWebBrowserSettingsException(
            params: AccountToggleWebBrowserSettingsExceptionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        unregisterDevice(
            params: AccountUnregisterDeviceParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateBirthday(
            params: AccountUpdateBirthdayParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateBusinessAwayMessage(
            params: AccountUpdateBusinessAwayMessageParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateBusinessGreetingMessage(
            params: AccountUpdateBusinessGreetingMessageParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateBusinessIntro(
            params: AccountUpdateBusinessIntroParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateBusinessLocation(
            params: AccountUpdateBusinessLocationParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateBusinessWorkHours(
            params: AccountUpdateBusinessWorkHoursParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateColor(
            params: AccountUpdateColorParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateConnectedBot(
            params: AccountUpdateConnectedBotParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        updateDeviceLocked(
            params: AccountUpdateDeviceLockedParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateEmojiStatus(
            params: AccountUpdateEmojiStatusParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateNotifySettings(
            params: AccountUpdateNotifySettingsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updatePasswordSettings(
            params: AccountUpdatePasswordSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updatePersonalChannel(
            params: AccountUpdatePersonalChannelParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateProfile(
            params: AccountUpdateProfileParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUser>;
        updateStatus(
            params: AccountUpdateStatusParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateTheme(
            params: AccountUpdateThemeParams,
            opts?: ApiCallOptions,
        ): Promise<Theme>;
        updateUsername(
            params: AccountUpdateUsernameParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUser>;
        updateWebBrowserSettings(
            params: AccountUpdateWebBrowserSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeWebBrowserSettings>;
        uploadRingtone(
            params: AccountUploadRingtoneParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDocument>;
        uploadTheme(
            params: AccountUploadThemeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDocument>;
        uploadWallPaper(
            params: AccountUploadWallPaperParams,
            opts?: ApiCallOptions,
        ): Promise<TypeWallPaper>;
        verifyEmail(
            params: AccountVerifyEmailParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmailVerified>;
        verifyPhone(
            params: AccountVerifyPhoneParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
    }

    Type Declaration

    aicompose: {
        createTone(
            params: AicomposeCreateToneParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAiComposeTone>;
        deleteTone(
            params: AicomposeDeleteToneParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        getTone(
            params: AicomposeGetToneParams,
            opts?: ApiCallOptions,
        ): Promise<TypeTones>;
        getToneExample(
            params: AicomposeGetToneExampleParams,
            opts?: ApiCallOptions,
        ): Promise<AiComposeToneExample>;
        getTones(
            params: AicomposeGetTonesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeTones>;
        saveTone(
            params: AicomposeSaveToneParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateTone(
            params: AicomposeUpdateToneParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAiComposeTone>;
    }

    Type Declaration

    auth: {
        acceptLoginToken(
            params: AuthAcceptLoginTokenParams,
            opts?: ApiCallOptions,
        ): Promise<Api.Authorization>;
        bindTempAuthKey(
            params: AuthBindTempAuthKeyParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        cancelCode(
            params: AuthCancelCodeParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        checkPaidAuth(
            params: AuthCheckPaidAuthParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentCode>;
        checkPassword(
            params: AuthCheckPasswordParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
        checkRecoveryPassword(
            params: AuthCheckRecoveryPasswordParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        dropTempAuthKeys(
            params: AuthDropTempAuthKeysParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        exportAuthorization(
            params: AuthExportAuthorizationParams,
            opts?: ApiCallOptions,
        ): Promise<ExportedAuthorization>;
        exportLoginToken(
            params: AuthExportLoginTokenParams,
            opts?: ApiCallOptions,
        ): Promise<TypeLoginToken>;
        finishFirebasePnvLogin(
            params: AuthFinishFirebasePnvLoginParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
        finishPasskeyLogin(
            params: AuthFinishPasskeyLoginParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
        firebasePnvSignUp(
            params: AuthFirebasePnvSignUpParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
        importAuthorization(
            params: AuthImportAuthorizationParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
        importBotAuthorization(
            params: AuthImportBotAuthorizationParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
        importLoginToken(
            params: AuthImportLoginTokenParams,
            opts?: ApiCallOptions,
        ): Promise<TypeLoginToken>;
        importWebTokenAuthorization(
            params: AuthImportWebTokenAuthorizationParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
        initFirebasePnvLogin(
            params: AuthInitFirebasePnvLoginParams,
            opts?: ApiCallOptions,
        ): Promise<FirebasePnvIntent>;
        initPasskeyLogin(
            params: AuthInitPasskeyLoginParams,
            opts?: ApiCallOptions,
        ): Promise<PasskeyLoginOptions>;
        logOut(opts?: ApiCallOptions): Promise<LoggedOut>;
        recoverPassword(
            params: AuthRecoverPasswordParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
        reportMissingCode(
            params: AuthReportMissingCodeParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        requestFirebaseSms(
            params: AuthRequestFirebaseSmsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        requestPasswordRecovery(opts?: ApiCallOptions): Promise<PasswordRecovery>;
        resendCode(
            params: AuthResendCodeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentCode>;
        resetAuthorizations(opts?: ApiCallOptions): Promise<boolean>;
        resetLoginEmail(
            params: AuthResetLoginEmailParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentCode>;
        sendCode(
            params: AuthSendCodeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentCode>;
        signIn(
            params: AuthSignInParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
        signUp(
            params: AuthSignUpParams,
            opts?: ApiCallOptions,
        ): Promise<Api.auth.TypeAuthorization>;
    }

    Type Declaration

    bots: {
        addPreviewMedia(
            params: BotsAddPreviewMediaParams,
            opts?: ApiCallOptions,
        ): Promise<BotPreviewMedia>;
        allowSendMessage(
            params: BotsAllowSendMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        answerWebhookJSONQuery(
            params: BotsAnswerWebhookJSONQueryParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        canSendMessage(
            params: BotsCanSendMessageParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        checkDownloadFileParams(
            params: BotsCheckDownloadFileParamsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        checkUsername(
            params: BotsCheckUsernameParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        createBot(
            params: BotsCreateBotParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUser>;
        deletePreviewMedia(
            params: BotsDeletePreviewMediaParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editAccessSettings(
            params: BotsEditAccessSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editPreviewMedia(
            params: BotsEditPreviewMediaParams,
            opts?: ApiCallOptions,
        ): Promise<BotPreviewMedia>;
        exportBotToken(
            params: BotsExportBotTokenParams,
            opts?: ApiCallOptions,
        ): Promise<ExportedBotToken>;
        getAccessSettings(
            params: BotsGetAccessSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<AccessSettings>;
        getAdminedBots(opts?: ApiCallOptions): Promise<TypeUser[]>;
        getBotCommands(
            params: BotsGetBotCommandsParams,
            opts?: ApiCallOptions,
        ): Promise<BotCommand[]>;
        getBotInfo(
            params: BotsGetBotInfoParams,
            opts?: ApiCallOptions,
        ): Promise<Api.bots.BotInfo>;
        getBotMenuButton(
            params: BotsGetBotMenuButtonParams,
            opts?: ApiCallOptions,
        ): Promise<TypeBotMenuButton>;
        getBotRecommendations(
            params: BotsGetBotRecommendationsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUsers>;
        getPopularAppBots(
            params: BotsGetPopularAppBotsParams,
            opts?: ApiCallOptions,
        ): Promise<PopularAppBots>;
        getPreviewInfo(
            params: BotsGetPreviewInfoParams,
            opts?: ApiCallOptions,
        ): Promise<PreviewInfo>;
        getPreviewMedias(
            params: BotsGetPreviewMediasParams,
            opts?: ApiCallOptions,
        ): Promise<BotPreviewMedia[]>;
        getRequestedWebViewButton(
            params: BotsGetRequestedWebViewButtonParams,
            opts?: ApiCallOptions,
        ): Promise<KeyboardButton>;
        invokeWebViewCustomMethod(
            params: BotsInvokeWebViewCustomMethodParams,
            opts?: ApiCallOptions,
        ): Promise<DataJSON>;
        reorderPreviewMedias(
            params: BotsReorderPreviewMediasParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reorderUsernames(
            params: BotsReorderUsernamesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        requestWebViewButton(
            params: BotsRequestWebViewButtonParams,
            opts?: ApiCallOptions,
        ): Promise<RequestedButton>;
        resetBotCommands(
            params: BotsResetBotCommandsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        sendCustomRequest(
            params: BotsSendCustomRequestParams,
            opts?: ApiCallOptions,
        ): Promise<DataJSON>;
        setBotBroadcastDefaultAdminRights(
            params: BotsSetBotBroadcastDefaultAdminRightsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setBotCommands(
            params: BotsSetBotCommandsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setBotGroupDefaultAdminRights(
            params: BotsSetBotGroupDefaultAdminRightsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setBotInfo(
            params: BotsSetBotInfoParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setBotMenuButton(
            params: BotsSetBotMenuButtonParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setCustomVerification(
            params: BotsSetCustomVerificationParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setJoinChatResults(
            params: BotsSetJoinChatResultsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleUserEmojiStatusPermission(
            params: BotsToggleUserEmojiStatusPermissionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleUsername(
            params: BotsToggleUsernameParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateStarRefProgram(
            params: BotsUpdateStarRefProgramParams,
            opts?: ApiCallOptions,
        ): Promise<StarRefProgram>;
        updateUserEmojiStatus(
            params: BotsUpdateUserEmojiStatusParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
    }

    Type Declaration

    channels: {
        checkSearchPostsFlood(
            params: ChannelsCheckSearchPostsFloodParams,
            opts?: ApiCallOptions,
        ): Promise<SearchPostsFlood>;
        checkUsername(
            params: ChannelsCheckUsernameParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        convertToGigagroup(
            params: ChannelsConvertToGigagroupParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        createChannel(
            params: ChannelsCreateChannelParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deactivateAllUsernames(
            params: ChannelsDeactivateAllUsernamesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteChannel(
            params: ChannelsDeleteChannelParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteHistory(
            params: ChannelsDeleteHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteMessages(
            params: ChannelsDeleteMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedMessages>;
        deleteParticipantHistory(
            params: ChannelsDeleteParticipantHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedHistory>;
        editAdmin(
            params: ChannelsEditAdminParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editBanned(
            params: ChannelsEditBannedParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editLocation(
            params: ChannelsEditLocationParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editPhoto(
            params: ChannelsEditPhotoParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editTitle(
            params: ChannelsEditTitleParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        exportMessageLink(
            params: ChannelsExportMessageLinkParams,
            opts?: ApiCallOptions,
        ): Promise<ExportedMessageLink>;
        getAdminedPublicChannels(
            params: ChannelsGetAdminedPublicChannelsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChats>;
        getAdminLog(
            params: ChannelsGetAdminLogParams,
            opts?: ApiCallOptions,
        ): Promise<AdminLogResults>;
        getChannelRecommendations(
            params: ChannelsGetChannelRecommendationsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChats>;
        getChannels(
            params: ChannelsGetChannelsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChats>;
        getFullChannel(
            params: ChannelsGetFullChannelParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.ChatFull>;
        getGroupsForDiscussion(opts?: ApiCallOptions): Promise<TypeChats>;
        getInactiveChannels(opts?: ApiCallOptions): Promise<InactiveChats>;
        getLeftChannels(
            params: ChannelsGetLeftChannelsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChats>;
        getMessageAuthor(
            params: ChannelsGetMessageAuthorParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUser>;
        getMessages(
            params: ChannelsGetMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getParticipant(
            params: ChannelsGetParticipantParams,
            opts?: ApiCallOptions,
        ): Promise<Api.channels.ChannelParticipant>;
        getParticipants(
            params: ChannelsGetParticipantsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChannelParticipants>;
        getSendAs(
            params: ChannelsGetSendAsParams,
            opts?: ApiCallOptions,
        ): Promise<SendAsPeers>;
        inviteToChannel(
            params: ChannelsInviteToChannelParams,
            opts?: ApiCallOptions,
        ): Promise<InvitedUsers>;
        joinChannel(
            params: ChannelsJoinChannelParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChatInviteJoinResult>;
        leaveChannel(
            params: ChannelsLeaveChannelParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        readHistory(
            params: ChannelsReadHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        readMessageContents(
            params: ChannelsReadMessageContentsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reorderUsernames(
            params: ChannelsReorderUsernamesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportAntiSpamFalsePositive(
            params: ChannelsReportAntiSpamFalsePositiveParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportSpam(
            params: ChannelsReportSpamParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        restrictSponsoredMessages(
            params: ChannelsRestrictSponsoredMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        searchPosts(
            params: ChannelsSearchPostsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        setBoostsToUnblockRestrictions(
            params: ChannelsSetBoostsToUnblockRestrictionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        setDiscussionGroup(
            params: ChannelsSetDiscussionGroupParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setEmojiStickers(
            params: ChannelsSetEmojiStickersParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setMainProfileTab(
            params: ChannelsSetMainProfileTabParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setStickers(
            params: ChannelsSetStickersParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleAntiSpam(
            params: ChannelsToggleAntiSpamParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleAutotranslation(
            params: ChannelsToggleAutotranslationParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleForum(
            params: ChannelsToggleForumParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleJoinRequest(
            params: ChannelsToggleJoinRequestParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleJoinToSend(
            params: ChannelsToggleJoinToSendParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleParticipantsHidden(
            params: ChannelsToggleParticipantsHiddenParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        togglePreHistoryHidden(
            params: ChannelsTogglePreHistoryHiddenParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleSignatures(
            params: ChannelsToggleSignaturesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleSlowMode(
            params: ChannelsToggleSlowModeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleUsername(
            params: ChannelsToggleUsernameParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleViewForumAsMessages(
            params: ChannelsToggleViewForumAsMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        updateColor(
            params: ChannelsUpdateColorParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        updateEmojiStatus(
            params: ChannelsUpdateEmojiStatusParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        updatePaidMessagesPrice(
            params: ChannelsUpdatePaidMessagesPriceParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        updateUsername(
            params: ChannelsUpdateUsernameParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
    }

    Type Declaration

    chatlists: {
        checkChatlistInvite(
            params: ChatlistsCheckChatlistInviteParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChatlistInvite>;
        deleteExportedInvite(
            params: ChatlistsDeleteExportedInviteParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editExportedInvite(
            params: ChatlistsEditExportedInviteParams,
            opts?: ApiCallOptions,
        ): Promise<Api.ExportedChatlistInvite>;
        exportChatlistInvite(
            params: ChatlistsExportChatlistInviteParams,
            opts?: ApiCallOptions,
        ): Promise<Api.chatlists.ExportedChatlistInvite>;
        getChatlistUpdates(
            params: ChatlistsGetChatlistUpdatesParams,
            opts?: ApiCallOptions,
        ): Promise<ChatlistUpdates>;
        getExportedInvites(
            params: ChatlistsGetExportedInvitesParams,
            opts?: ApiCallOptions,
        ): Promise<ExportedInvites>;
        getLeaveChatlistSuggestions(
            params: ChatlistsGetLeaveChatlistSuggestionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypePeer[]>;
        hideChatlistUpdates(
            params: ChatlistsHideChatlistUpdatesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        joinChatlistInvite(
            params: ChatlistsJoinChatlistInviteParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        joinChatlistUpdates(
            params: ChatlistsJoinChatlistUpdatesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        leaveChatlist(
            params: ChatlistsLeaveChatlistParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
    }

    Type Declaration

    communities: {
        create(
            params: CommunitiesCreateParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getJoinedCommunities(opts?: ApiCallOptions): Promise<TypeChats>;
        getParticipantJoinedChats(
            params: CommunitiesGetParticipantJoinedChatsParams,
            opts?: ApiCallOptions,
        ): Promise<ParticipantJoinedChats>;
        getPeerLinkRequests(
            params: CommunitiesGetPeerLinkRequestsParams,
            opts?: ApiCallOptions,
        ): Promise<PeerLinkRequests>;
        toggleAllPeerLinkRequestApproval(
            params: CommunitiesToggleAllPeerLinkRequestApprovalParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleCommunityCollapsedInDialogs(
            params: CommunitiesToggleCommunityCollapsedInDialogsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleParticipantBanned(
            params: CommunitiesToggleParticipantBannedParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        togglePeerLink(
            params: CommunitiesTogglePeerLinkParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        togglePeerLinkRequestApproval(
            params: CommunitiesTogglePeerLinkRequestApprovalParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
    }

    Type Declaration

    contacts: {
        acceptContact(
            params: ContactsAcceptContactParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        addContact(
            params: ContactsAddContactParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        block(params: ContactsBlockParams, opts?: ApiCallOptions): Promise<boolean>;
        blockFromReplies(
            params: ContactsBlockFromRepliesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteByPhones(
            params: ContactsDeleteByPhonesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteContacts(
            params: ContactsDeleteContactsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editCloseFriends(
            params: ContactsEditCloseFriendsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        exportContactToken(opts?: ApiCallOptions): Promise<ExportedContactToken>;
        getBirthdays(opts?: ApiCallOptions): Promise<ContactBirthdays>;
        getBlocked(
            params: ContactsGetBlockedParams,
            opts?: ApiCallOptions,
        ): Promise<TypeBlocked>;
        getContactIDs(
            params: ContactsGetContactIDsParams,
            opts?: ApiCallOptions,
        ): Promise<number[]>;
        getContacts(
            params: ContactsGetContactsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeContacts>;
        getLocated(
            params: ContactsGetLocatedParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getSaved(opts?: ApiCallOptions): Promise<SavedPhoneContact[]>;
        getSponsoredPeers(
            params: ContactsGetSponsoredPeersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSponsoredPeers>;
        getStatuses(opts?: ApiCallOptions): Promise<ContactStatus[]>;
        getTopPeers(
            params: ContactsGetTopPeersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeTopPeers>;
        importContacts(
            params: ContactsImportContactsParams,
            opts?: ApiCallOptions,
        ): Promise<ImportedContacts>;
        importContactToken(
            params: ContactsImportContactTokenParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUser>;
        resetSaved(opts?: ApiCallOptions): Promise<boolean>;
        resetTopPeerRating(
            params: ContactsResetTopPeerRatingParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        resolvePhone(
            params: ContactsResolvePhoneParams,
            opts?: ApiCallOptions,
        ): Promise<ResolvedPeer>;
        resolveUsername(
            params: ContactsResolveUsernameParams,
            opts?: ApiCallOptions,
        ): Promise<ResolvedPeer>;
        search(params: ContactsSearchParams, opts?: ApiCallOptions): Promise<Found>;
        setBlocked(
            params: ContactsSetBlockedParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleTopPeers(
            params: ContactsToggleTopPeersParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        unblock(
            params: ContactsUnblockParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateContactNote(
            params: ContactsUpdateContactNoteParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
    }

    Type Declaration

    ephemeral: {
        deleteAllWelcomeMessages(
            params: EphemeralDeleteAllWelcomeMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteMessage(
            params: EphemeralDeleteMessageParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteWelcomeMessage(
            params: EphemeralDeleteWelcomeMessageParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editMessage(
            params: EphemeralEditMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getCallbackAnswer(
            params: EphemeralGetCallbackAnswerParams,
            opts?: ApiCallOptions,
        ): Promise<BotCallbackAnswer>;
        getWelcomeMessages(
            params: EphemeralGetWelcomeMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeWelcomeMessages>;
        reportMessage(
            params: EphemeralReportMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeReportResult>;
        sendMessage(
            params: EphemeralSendMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
    }

    Type Declaration

    folders: {
        editPeerFolders(
            params: FoldersEditPeerFoldersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
    }

    Type Declaration

    fragment: {
        getCollectibleInfo(
            params: FragmentGetCollectibleInfoParams,
            opts?: ApiCallOptions,
        ): Promise<CollectibleInfo>;
    }

    Type Declaration

    help: {
        acceptTermsOfService(
            params: HelpAcceptTermsOfServiceParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        dismissSuggestion(
            params: HelpDismissSuggestionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editUserInfo(
            params: HelpEditUserInfoParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUserInfo>;
        getAppConfig(
            params: HelpGetAppConfigParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAppConfig>;
        getAppUpdate(
            params: HelpGetAppUpdateParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAppUpdate>;
        getCdnConfig(opts?: ApiCallOptions): Promise<CdnConfig>;
        getConfig(opts?: ApiCallOptions): Promise<Config>;
        getCountriesList(
            params: HelpGetCountriesListParams,
            opts?: ApiCallOptions,
        ): Promise<TypeCountriesList>;
        getDeepLinkInfo(
            params: HelpGetDeepLinkInfoParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDeepLinkInfo>;
        getInviteText(opts?: ApiCallOptions): Promise<InviteText>;
        getNearestDc(opts?: ApiCallOptions): Promise<NearestDc>;
        getPassportConfig(
            params: HelpGetPassportConfigParams,
            opts?: ApiCallOptions,
        ): Promise<TypePassportConfig>;
        getPeerColors(
            params: HelpGetPeerColorsParams,
            opts?: ApiCallOptions,
        ): Promise<TypePeerColors>;
        getPeerProfileColors(
            params: HelpGetPeerProfileColorsParams,
            opts?: ApiCallOptions,
        ): Promise<TypePeerColors>;
        getPremiumPromo(opts?: ApiCallOptions): Promise<PremiumPromo>;
        getPromoData(opts?: ApiCallOptions): Promise<TypePromoData>;
        getRecentMeUrls(
            params: HelpGetRecentMeUrlsParams,
            opts?: ApiCallOptions,
        ): Promise<RecentMeUrls>;
        getSupport(opts?: ApiCallOptions): Promise<Support>;
        getSupportName(opts?: ApiCallOptions): Promise<SupportName>;
        getTermsOfServiceUpdate(
            opts?: ApiCallOptions,
        ): Promise<TypeTermsOfServiceUpdate>;
        getTimezonesList(
            params: HelpGetTimezonesListParams,
            opts?: ApiCallOptions,
        ): Promise<TypeTimezonesList>;
        getUserInfo(
            params: HelpGetUserInfoParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUserInfo>;
        hidePromoData(
            params: HelpHidePromoDataParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveAppLog(
            params: HelpSaveAppLogParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setBotUpdatesStatus(
            params: HelpSetBotUpdatesStatusParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
    }

    Type Declaration

    langpack: {
        getDifference(
            params: LangpackGetDifferenceParams,
            opts?: ApiCallOptions,
        ): Promise<LangPackDifference>;
        getLangPack(
            params: LangpackGetLangPackParams,
            opts?: ApiCallOptions,
        ): Promise<LangPackDifference>;
        getLanguage(
            params: LangpackGetLanguageParams,
            opts?: ApiCallOptions,
        ): Promise<LangPackLanguage>;
        getLanguages(
            params: LangpackGetLanguagesParams,
            opts?: ApiCallOptions,
        ): Promise<LangPackLanguage[]>;
        getStrings(
            params: LangpackGetStringsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeLangPackString[]>;
    }

    Type Declaration

    messages: {
        acceptEncryption(
            params: MessagesAcceptEncryptionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEncryptedChat>;
        acceptUrlAuth(
            params: MessagesAcceptUrlAuthParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUrlAuthResult>;
        addChatUser(
            params: MessagesAddChatUserParams,
            opts?: ApiCallOptions,
        ): Promise<InvitedUsers>;
        addPollAnswer(
            params: MessagesAddPollAnswerParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        appendTodoList(
            params: MessagesAppendTodoListParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        checkChatInvite(
            params: MessagesCheckChatInviteParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChatInvite>;
        checkHistoryImport(
            params: MessagesCheckHistoryImportParams,
            opts?: ApiCallOptions,
        ): Promise<HistoryImportParsed>;
        checkHistoryImportPeer(
            params: MessagesCheckHistoryImportPeerParams,
            opts?: ApiCallOptions,
        ): Promise<CheckedHistoryImportPeer>;
        checkQuickReplyShortcut(
            params: MessagesCheckQuickReplyShortcutParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        checkUrlAuthMatchCode(
            params: MessagesCheckUrlAuthMatchCodeParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        clearAllDrafts(opts?: ApiCallOptions): Promise<boolean>;
        clearRecentReactions(opts?: ApiCallOptions): Promise<boolean>;
        clearRecentStickers(
            params: MessagesClearRecentStickersParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        clickSponsoredMessage(
            params: MessagesClickSponsoredMessageParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        composeMessageWithAI(
            params: MessagesComposeMessageWithAIParams,
            opts?: ApiCallOptions,
        ): Promise<ComposedMessageWithAI>;
        composeRichMessageWithAI(
            params: MessagesComposeRichMessageWithAIParams,
            opts?: ApiCallOptions,
        ): Promise<ComposedRichMessageWithAI>;
        createChat(
            params: MessagesCreateChatParams,
            opts?: ApiCallOptions,
        ): Promise<InvitedUsers>;
        createForumTopic(
            params: MessagesCreateForumTopicParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        declineUrlAuth(
            params: MessagesDeclineUrlAuthParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteChat(
            params: MessagesDeleteChatParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteChatUser(
            params: MessagesDeleteChatUserParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteExportedChatInvite(
            params: MessagesDeleteExportedChatInviteParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteFactCheck(
            params: MessagesDeleteFactCheckParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteHistory(
            params: MessagesDeleteHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedHistory>;
        deleteMessages(
            params: MessagesDeleteMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedMessages>;
        deleteParticipantReaction(
            params: MessagesDeleteParticipantReactionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteParticipantReactions(
            params: MessagesDeleteParticipantReactionsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deletePhoneCallHistory(
            params: MessagesDeletePhoneCallHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedFoundMessages>;
        deletePollAnswer(
            params: MessagesDeletePollAnswerParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteQuickReplyMessages(
            params: MessagesDeleteQuickReplyMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteQuickReplyShortcut(
            params: MessagesDeleteQuickReplyShortcutParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteRevokedExportedChatInvites(
            params: MessagesDeleteRevokedExportedChatInvitesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteSavedHistory(
            params: MessagesDeleteSavedHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedHistory>;
        deleteScheduledMessages(
            params: MessagesDeleteScheduledMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteTopicHistory(
            params: MessagesDeleteTopicHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedHistory>;
        discardEncryption(
            params: MessagesDiscardEncryptionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editChatAbout(
            params: MessagesEditChatAboutParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editChatAdmin(
            params: MessagesEditChatAdminParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editChatCreator(
            params: MessagesEditChatCreatorParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editChatDefaultBannedRights(
            params: MessagesEditChatDefaultBannedRightsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editChatParticipantRank(
            params: MessagesEditChatParticipantRankParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editChatPhoto(
            params: MessagesEditChatPhotoParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editChatTitle(
            params: MessagesEditChatTitleParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editExportedChatInvite(
            params: MessagesEditExportedChatInviteParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeExportedChatInvite>;
        editFactCheck(
            params: MessagesEditFactCheckParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editForumTopic(
            params: MessagesEditForumTopicParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editInlineBotMessage(
            params: MessagesEditInlineBotMessageParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editMessage(
            params: MessagesEditMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editQuickReplyShortcut(
            params: MessagesEditQuickReplyShortcutParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        exportChatInvite(
            params: MessagesExportChatInviteParams,
            opts?: ApiCallOptions,
        ): Promise<Api.TypeExportedChatInvite>;
        faveSticker(
            params: MessagesFaveStickerParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        forwardMessages(
            params: MessagesForwardMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getAdminsWithInvites(
            params: MessagesGetAdminsWithInvitesParams,
            opts?: ApiCallOptions,
        ): Promise<ChatAdminsWithInvites>;
        getAllDrafts(opts?: ApiCallOptions): Promise<TypeUpdates>;
        getAllStickers(
            params: MessagesGetAllStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAllStickers>;
        getArchivedStickers(
            params: MessagesGetArchivedStickersParams,
            opts?: ApiCallOptions,
        ): Promise<ArchivedStickers>;
        getAttachedStickers(
            params: MessagesGetAttachedStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeStickerSetCovered[]>;
        getAttachMenuBot(
            params: MessagesGetAttachMenuBotParams,
            opts?: ApiCallOptions,
        ): Promise<AttachMenuBotsBot>;
        getAttachMenuBots(
            params: MessagesGetAttachMenuBotsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAttachMenuBots>;
        getAvailableEffects(
            params: MessagesGetAvailableEffectsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAvailableEffects>;
        getAvailableReactions(
            params: MessagesGetAvailableReactionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAvailableReactions>;
        getBotApp(
            params: MessagesGetBotAppParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.BotApp>;
        getBotCallbackAnswer(
            params: MessagesGetBotCallbackAnswerParams,
            opts?: ApiCallOptions,
        ): Promise<BotCallbackAnswer>;
        getChatInviteImporters(
            params: MessagesGetChatInviteImportersParams,
            opts?: ApiCallOptions,
        ): Promise<ChatInviteImporters>;
        getChats(
            params: MessagesGetChatsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChats>;
        getCommonChats(
            params: MessagesGetCommonChatsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChats>;
        getCustomEmojiDocuments(
            params: MessagesGetCustomEmojiDocumentsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDocument[]>;
        getDefaultHistoryTTL(opts?: ApiCallOptions): Promise<DefaultHistoryTTL>;
        getDefaultTagReactions(
            params: MessagesGetDefaultTagReactionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeReactions>;
        getDhConfig(
            params: MessagesGetDhConfigParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDhConfig>;
        getDialogFilters(opts?: ApiCallOptions): Promise<DialogFilters>;
        getDialogs(
            params: MessagesGetDialogsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDialogs>;
        getDialogUnreadMarks(
            params: MessagesGetDialogUnreadMarksParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDialogPeer[]>;
        getDiscussionMessage(
            params: MessagesGetDiscussionMessageParams,
            opts?: ApiCallOptions,
        ): Promise<DiscussionMessage>;
        getDocumentByHash(
            params: MessagesGetDocumentByHashParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDocument>;
        getEmojiGameInfo(opts?: ApiCallOptions): Promise<TypeEmojiGameInfo>;
        getEmojiGroups(
            params: MessagesGetEmojiGroupsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiGroups>;
        getEmojiKeywords(
            params: MessagesGetEmojiKeywordsParams,
            opts?: ApiCallOptions,
        ): Promise<EmojiKeywordsDifference>;
        getEmojiKeywordsDifference(
            params: MessagesGetEmojiKeywordsDifferenceParams,
            opts?: ApiCallOptions,
        ): Promise<EmojiKeywordsDifference>;
        getEmojiKeywordsLanguages(
            params: MessagesGetEmojiKeywordsLanguagesParams,
            opts?: ApiCallOptions,
        ): Promise<EmojiLanguage[]>;
        getEmojiProfilePhotoGroups(
            params: MessagesGetEmojiProfilePhotoGroupsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiGroups>;
        getEmojiStatusGroups(
            params: MessagesGetEmojiStatusGroupsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiGroups>;
        getEmojiStickerGroups(
            params: MessagesGetEmojiStickerGroupsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiGroups>;
        getEmojiStickers(
            params: MessagesGetEmojiStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAllStickers>;
        getEmojiURL(
            params: MessagesGetEmojiURLParams,
            opts?: ApiCallOptions,
        ): Promise<EmojiURL>;
        getExportedChatInvite(
            params: MessagesGetExportedChatInviteParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeExportedChatInvite>;
        getExportedChatInvites(
            params: MessagesGetExportedChatInvitesParams,
            opts?: ApiCallOptions,
        ): Promise<ExportedChatInvites>;
        getExtendedMedia(
            params: MessagesGetExtendedMediaParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getFactCheck(
            params: MessagesGetFactCheckParams,
            opts?: ApiCallOptions,
        ): Promise<FactCheck[]>;
        getFavedStickers(
            params: MessagesGetFavedStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeFavedStickers>;
        getFeaturedEmojiStickers(
            params: MessagesGetFeaturedEmojiStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeFeaturedStickers>;
        getFeaturedStickers(
            params: MessagesGetFeaturedStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeFeaturedStickers>;
        getForumTopics(
            params: MessagesGetForumTopicsParams,
            opts?: ApiCallOptions,
        ): Promise<ForumTopics>;
        getForumTopicsByID(
            params: MessagesGetForumTopicsByIDParams,
            opts?: ApiCallOptions,
        ): Promise<ForumTopics>;
        getFullChat(
            params: MessagesGetFullChatParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.ChatFull>;
        getFutureChatCreatorAfterLeave(
            params: MessagesGetFutureChatCreatorAfterLeaveParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUser>;
        getGameHighScores(
            params: MessagesGetGameHighScoresParams,
            opts?: ApiCallOptions,
        ): Promise<HighScores>;
        getHistory(
            params: MessagesGetHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getInlineBotResults(
            params: MessagesGetInlineBotResultsParams,
            opts?: ApiCallOptions,
        ): Promise<BotResults>;
        getInlineGameHighScores(
            params: MessagesGetInlineGameHighScoresParams,
            opts?: ApiCallOptions,
        ): Promise<HighScores>;
        getMaskStickers(
            params: MessagesGetMaskStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAllStickers>;
        getMessageEditData(
            params: MessagesGetMessageEditDataParams,
            opts?: ApiCallOptions,
        ): Promise<MessageEditData>;
        getMessageReactionsList(
            params: MessagesGetMessageReactionsListParams,
            opts?: ApiCallOptions,
        ): Promise<MessageReactionsList>;
        getMessageReadParticipants(
            params: MessagesGetMessageReadParticipantsParams,
            opts?: ApiCallOptions,
        ): Promise<ReadParticipantDate[]>;
        getMessages(
            params: MessagesGetMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getMessagesReactions(
            params: MessagesGetMessagesReactionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getMessagesViews(
            params: MessagesGetMessagesViewsParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.MessageViews>;
        getMyStickers(
            params: MessagesGetMyStickersParams,
            opts?: ApiCallOptions,
        ): Promise<MyStickers>;
        getOldFeaturedStickers(
            params: MessagesGetOldFeaturedStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeFeaturedStickers>;
        getOnlines(
            params: MessagesGetOnlinesParams,
            opts?: ApiCallOptions,
        ): Promise<ChatOnlines>;
        getOutboxReadDate(
            params: MessagesGetOutboxReadDateParams,
            opts?: ApiCallOptions,
        ): Promise<OutboxReadDate>;
        getPaidReactionPrivacy(opts?: ApiCallOptions): Promise<TypeUpdates>;
        getPeerDialogs(
            params: MessagesGetPeerDialogsParams,
            opts?: ApiCallOptions,
        ): Promise<PeerDialogs>;
        getPeerSettings(
            params: MessagesGetPeerSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.PeerSettings>;
        getPersonalChannelHistory(
            params: MessagesGetPersonalChannelHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getPinnedDialogs(
            params: MessagesGetPinnedDialogsParams,
            opts?: ApiCallOptions,
        ): Promise<PeerDialogs>;
        getPinnedSavedDialogs(opts?: ApiCallOptions): Promise<TypeSavedDialogs>;
        getPollResults(
            params: MessagesGetPollResultsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getPollVotes(
            params: MessagesGetPollVotesParams,
            opts?: ApiCallOptions,
        ): Promise<VotesList>;
        getPreparedInlineMessage(
            params: MessagesGetPreparedInlineMessageParams,
            opts?: ApiCallOptions,
        ): Promise<PreparedInlineMessage>;
        getQuickReplies(
            params: MessagesGetQuickRepliesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeQuickReplies>;
        getQuickReplyMessages(
            params: MessagesGetQuickReplyMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getRecentLocations(
            params: MessagesGetRecentLocationsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getRecentReactions(
            params: MessagesGetRecentReactionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeReactions>;
        getRecentStickers(
            params: MessagesGetRecentStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeRecentStickers>;
        getReplies(
            params: MessagesGetRepliesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getRichMessage(
            params: MessagesGetRichMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getSavedDialogs(
            params: MessagesGetSavedDialogsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSavedDialogs>;
        getSavedDialogsByID(
            params: MessagesGetSavedDialogsByIDParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSavedDialogs>;
        getSavedGifs(
            params: MessagesGetSavedGifsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSavedGifs>;
        getSavedHistory(
            params: MessagesGetSavedHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getSavedReactionTags(
            params: MessagesGetSavedReactionTagsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSavedReactionTags>;
        getScheduledHistory(
            params: MessagesGetScheduledHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getScheduledMessages(
            params: MessagesGetScheduledMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getSearchCounters(
            params: MessagesGetSearchCountersParams,
            opts?: ApiCallOptions,
        ): Promise<SearchCounter[]>;
        getSearchResultsCalendar(
            params: MessagesGetSearchResultsCalendarParams,
            opts?: ApiCallOptions,
        ): Promise<SearchResultsCalendar>;
        getSearchResultsPositions(
            params: MessagesGetSearchResultsPositionsParams,
            opts?: ApiCallOptions,
        ): Promise<SearchResultsPositions>;
        getSplitRanges(opts?: ApiCallOptions): Promise<MessageRange[]>;
        getSponsoredMessages(
            params: MessagesGetSponsoredMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSponsoredMessages>;
        getStickers(
            params: MessagesGetStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeStickers>;
        getStickerSet(
            params: MessagesGetStickerSetParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeStickerSet>;
        getSuggestedDialogFilters(
            opts?: ApiCallOptions,
        ): Promise<DialogFilterSuggested[]>;
        getTopReactions(
            params: MessagesGetTopReactionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeReactions>;
        getUnreadMentions(
            params: MessagesGetUnreadMentionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getUnreadPollVotes(
            params: MessagesGetUnreadPollVotesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getUnreadReactions(
            params: MessagesGetUnreadReactionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        getWebPage(
            params: MessagesGetWebPageParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.WebPage>;
        getWebPagePreview(
            params: MessagesGetWebPagePreviewParams,
            opts?: ApiCallOptions,
        ): Promise<WebPagePreview>;
        hideAllChatJoinRequests(
            params: MessagesHideAllChatJoinRequestsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        hideChatJoinRequest(
            params: MessagesHideChatJoinRequestParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        hidePeerSettingsBar(
            params: MessagesHidePeerSettingsBarParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        importChatInvite(
            params: MessagesImportChatInviteParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChatInviteJoinResult>;
        initHistoryImport(
            params: MessagesInitHistoryImportParams,
            opts?: ApiCallOptions,
        ): Promise<HistoryImport>;
        installStickerSet(
            params: MessagesInstallStickerSetParams,
            opts?: ApiCallOptions,
        ): Promise<TypeStickerSetInstallResult>;
        markDialogUnread(
            params: MessagesMarkDialogUnreadParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        migrateChat(
            params: MessagesMigrateChatParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        prolongWebView(
            params: MessagesProlongWebViewParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        rateTranscribedAudio(
            params: MessagesRateTranscribedAudioParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        readDiscussion(
            params: MessagesReadDiscussionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        readEncryptedHistory(
            params: MessagesReadEncryptedHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        readFeaturedStickers(
            params: MessagesReadFeaturedStickersParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        readHistory(
            params: MessagesReadHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedMessages>;
        readMentions(
            params: MessagesReadMentionsParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedHistory>;
        readMessageContents(
            params: MessagesReadMessageContentsParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedMessages>;
        readPollVotes(
            params: MessagesReadPollVotesParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedHistory>;
        readReactions(
            params: MessagesReadReactionsParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedHistory>;
        readSavedHistory(
            params: MessagesReadSavedHistoryParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        receivedMessages(
            params: MessagesReceivedMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<ReceivedNotifyMessage[]>;
        receivedQueue(
            params: MessagesReceivedQueueParams,
            opts?: ApiCallOptions,
        ): Promise<BigInteger[]>;
        reorderPinnedDialogs(
            params: MessagesReorderPinnedDialogsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reorderPinnedForumTopics(
            params: MessagesReorderPinnedForumTopicsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        reorderPinnedSavedDialogs(
            params: MessagesReorderPinnedSavedDialogsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reorderQuickReplies(
            params: MessagesReorderQuickRepliesParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reorderStickerSets(
            params: MessagesReorderStickerSetsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        report(
            params: MessagesReportParams,
            opts?: ApiCallOptions,
        ): Promise<TypeReportResult>;
        reportEncryptedSpam(
            params: MessagesReportEncryptedSpamParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportMessagesDelivery(
            params: MessagesReportMessagesDeliveryParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportMusicListen(
            params: MessagesReportMusicListenParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportReaction(
            params: MessagesReportReactionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportReadMetrics(
            params: MessagesReportReadMetricsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportSpam(
            params: MessagesReportSpamParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        reportSponsoredMessage(
            params: MessagesReportSponsoredMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSponsoredMessageReportResult>;
        requestAppWebView(
            params: MessagesRequestAppWebViewParams,
            opts?: ApiCallOptions,
        ): Promise<WebViewResultUrl>;
        requestChatJoinWebView(
            params: MessagesRequestChatJoinWebViewParams,
            opts?: ApiCallOptions,
        ): Promise<WebViewResultUrl>;
        requestEncryption(
            params: MessagesRequestEncryptionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEncryptedChat>;
        requestMainWebView(
            params: MessagesRequestMainWebViewParams,
            opts?: ApiCallOptions,
        ): Promise<WebViewResultUrl>;
        requestSimpleWebView(
            params: MessagesRequestSimpleWebViewParams,
            opts?: ApiCallOptions,
        ): Promise<WebViewResultUrl>;
        requestUrlAuth(
            params: MessagesRequestUrlAuthParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUrlAuthResult>;
        requestWebView(
            params: MessagesRequestWebViewParams,
            opts?: ApiCallOptions,
        ): Promise<WebViewResultUrl>;
        saveDefaultSendAs(
            params: MessagesSaveDefaultSendAsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveDraft(
            params: MessagesSaveDraftParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveGif(
            params: MessagesSaveGifParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        savePreparedInlineMessage(
            params: MessagesSavePreparedInlineMessageParams,
            opts?: ApiCallOptions,
        ): Promise<BotPreparedInlineMessage>;
        saveRecentSticker(
            params: MessagesSaveRecentStickerParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        search(
            params: MessagesSearchParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        searchCustomEmoji(
            params: MessagesSearchCustomEmojiParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEmojiList>;
        searchEmojiStickerSets(
            params: MessagesSearchEmojiStickerSetsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeFoundStickerSets>;
        searchGlobal(
            params: MessagesSearchGlobalParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        searchSentMedia(
            params: MessagesSearchSentMediaParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessages>;
        searchStickers(
            params: MessagesSearchStickersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeFoundStickers>;
        searchStickerSets(
            params: MessagesSearchStickerSetsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeFoundStickerSets>;
        sendBotRequestedPeer(
            params: MessagesSendBotRequestedPeerParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendEncrypted(
            params: MessagesSendEncryptedParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentEncryptedMessage>;
        sendEncryptedFile(
            params: MessagesSendEncryptedFileParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentEncryptedMessage>;
        sendEncryptedService(
            params: MessagesSendEncryptedServiceParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSentEncryptedMessage>;
        sendInlineBotResult(
            params: MessagesSendInlineBotResultParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendMedia(
            params: MessagesSendMediaParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendMessage(
            params: MessagesSendMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendMultiMedia(
            params: MessagesSendMultiMediaParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendPaidReaction(
            params: MessagesSendPaidReactionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendQuickReplyMessages(
            params: MessagesSendQuickReplyMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendReaction(
            params: MessagesSendReactionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendScheduledMessages(
            params: MessagesSendScheduledMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendScreenshotNotification(
            params: MessagesSendScreenshotNotificationParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendVote(
            params: MessagesSendVoteParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendWebViewData(
            params: MessagesSendWebViewDataParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendWebViewResultMessage(
            params: MessagesSendWebViewResultMessageParams,
            opts?: ApiCallOptions,
        ): Promise<WebViewMessageSent>;
        setBotCallbackAnswer(
            params: MessagesSetBotCallbackAnswerParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setBotGuestChatResult(
            params: MessagesSetBotGuestChatResultParams,
            opts?: ApiCallOptions,
        ): Promise<TypeInputBotInlineMessageID>;
        setBotPrecheckoutResults(
            params: MessagesSetBotPrecheckoutResultsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setBotShippingResults(
            params: MessagesSetBotShippingResultsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setChatAvailableReactions(
            params: MessagesSetChatAvailableReactionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        setChatTheme(
            params: MessagesSetChatThemeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        setChatWallPaper(
            params: MessagesSetChatWallPaperParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        setDefaultHistoryTTL(
            params: MessagesSetDefaultHistoryTTLParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setDefaultReaction(
            params: MessagesSetDefaultReactionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setEncryptedTyping(
            params: MessagesSetEncryptedTypingParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setGameScore(
            params: MessagesSetGameScoreParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        setHistoryTTL(
            params: MessagesSetHistoryTTLParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        setInlineBotResults(
            params: MessagesSetInlineBotResultsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setInlineGameScore(
            params: MessagesSetInlineGameScoreParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setTyping(
            params: MessagesSetTypingParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        startBot(
            params: MessagesStartBotParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        startHistoryImport(
            params: MessagesStartHistoryImportParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        summarizeText(
            params: MessagesSummarizeTextParams,
            opts?: ApiCallOptions,
        ): Promise<TextWithEntities>;
        toggleBotInAttachMenu(
            params: MessagesToggleBotInAttachMenuParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleDialogFilterTags(
            params: MessagesToggleDialogFilterTagsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleDialogPin(
            params: MessagesToggleDialogPinParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleNoForwards(
            params: MessagesToggleNoForwardsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        togglePaidReactionPrivacy(
            params: MessagesTogglePaidReactionPrivacyParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        togglePeerTranslations(
            params: MessagesTogglePeerTranslationsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleSavedDialogPin(
            params: MessagesToggleSavedDialogPinParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleStickerSets(
            params: MessagesToggleStickerSetsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleSuggestedPostApproval(
            params: MessagesToggleSuggestedPostApprovalParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleTodoCompleted(
            params: MessagesToggleTodoCompletedParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        transcribeAudio(
            params: MessagesTranscribeAudioParams,
            opts?: ApiCallOptions,
        ): Promise<TranscribedAudio>;
        translateRichMessage(
            params: MessagesTranslateRichMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TranslatedRichMessage>;
        translateText(
            params: MessagesTranslateTextParams,
            opts?: ApiCallOptions,
        ): Promise<TranslateResult>;
        uninstallStickerSet(
            params: MessagesUninstallStickerSetParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        unpinAllMessages(
            params: MessagesUnpinAllMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<AffectedHistory>;
        updateDialogFilter(
            params: MessagesUpdateDialogFilterParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateDialogFiltersOrder(
            params: MessagesUpdateDialogFiltersOrderParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updatePinnedForumTopic(
            params: MessagesUpdatePinnedForumTopicParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        updatePinnedMessage(
            params: MessagesUpdatePinnedMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        updateSavedReactionTag(
            params: MessagesUpdateSavedReactionTagParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        uploadEncryptedFile(
            params: MessagesUploadEncryptedFileParams,
            opts?: ApiCallOptions,
        ): Promise<TypeEncryptedFile>;
        uploadImportedMedia(
            params: MessagesUploadImportedMediaParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessageMedia>;
        uploadMedia(
            params: MessagesUploadMediaParams,
            opts?: ApiCallOptions,
        ): Promise<TypeMessageMedia>;
        viewSponsoredMessage(
            params: MessagesViewSponsoredMessageParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
    }

    Type Declaration

    payments: {
        applyGiftCode(
            params: PaymentsApplyGiftCodeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        assignAppStoreTransaction(
            params: PaymentsAssignAppStoreTransactionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        assignPlayMarketTransaction(
            params: PaymentsAssignPlayMarketTransactionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        botCancelStarsSubscription(
            params: PaymentsBotCancelStarsSubscriptionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        canPurchaseStore(
            params: PaymentsCanPurchaseStoreParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        changeStarsSubscription(
            params: PaymentsChangeStarsSubscriptionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        checkCanSendGift(
            params: PaymentsCheckCanSendGiftParams,
            opts?: ApiCallOptions,
        ): Promise<TypeCheckCanSendGiftResult>;
        checkGiftCode(
            params: PaymentsCheckGiftCodeParams,
            opts?: ApiCallOptions,
        ): Promise<CheckedGiftCode>;
        clearSavedInfo(
            params: PaymentsClearSavedInfoParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        connectStarRefBot(
            params: PaymentsConnectStarRefBotParams,
            opts?: ApiCallOptions,
        ): Promise<ConnectedStarRefBots>;
        convertStarGift(
            params: PaymentsConvertStarGiftParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        craftStarGift(
            params: PaymentsCraftStarGiftParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        createStarGiftCollection(
            params: PaymentsCreateStarGiftCollectionParams,
            opts?: ApiCallOptions,
        ): Promise<StarGiftCollection>;
        deleteStarGiftCollection(
            params: PaymentsDeleteStarGiftCollectionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        editConnectedStarRefBot(
            params: PaymentsEditConnectedStarRefBotParams,
            opts?: ApiCallOptions,
        ): Promise<ConnectedStarRefBots>;
        exportInvoice(
            params: PaymentsExportInvoiceParams,
            opts?: ApiCallOptions,
        ): Promise<ExportedInvoice>;
        fulfillStarsSubscription(
            params: PaymentsFulfillStarsSubscriptionParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        getBankCardData(
            params: PaymentsGetBankCardDataParams,
            opts?: ApiCallOptions,
        ): Promise<BankCardData>;
        getConnectedStarRefBot(
            params: PaymentsGetConnectedStarRefBotParams,
            opts?: ApiCallOptions,
        ): Promise<ConnectedStarRefBots>;
        getConnectedStarRefBots(
            params: PaymentsGetConnectedStarRefBotsParams,
            opts?: ApiCallOptions,
        ): Promise<ConnectedStarRefBots>;
        getCraftStarGifts(
            params: PaymentsGetCraftStarGiftsParams,
            opts?: ApiCallOptions,
        ): Promise<SavedStarGifts>;
        getGiveawayInfo(
            params: PaymentsGetGiveawayInfoParams,
            opts?: ApiCallOptions,
        ): Promise<TypeGiveawayInfo>;
        getPaymentForm(
            params: PaymentsGetPaymentFormParams,
            opts?: ApiCallOptions,
        ): Promise<TypePaymentForm>;
        getPaymentReceipt(
            params: PaymentsGetPaymentReceiptParams,
            opts?: ApiCallOptions,
        ): Promise<TypePaymentReceipt>;
        getPremiumGiftCodeOptions(
            params: PaymentsGetPremiumGiftCodeOptionsParams,
            opts?: ApiCallOptions,
        ): Promise<PremiumGiftCodeOption[]>;
        getResaleStarGifts(
            params: PaymentsGetResaleStarGiftsParams,
            opts?: ApiCallOptions,
        ): Promise<ResaleStarGifts>;
        getSavedInfo(opts?: ApiCallOptions): Promise<SavedInfo>;
        getSavedStarGift(
            params: PaymentsGetSavedStarGiftParams,
            opts?: ApiCallOptions,
        ): Promise<SavedStarGifts>;
        getSavedStarGifts(
            params: PaymentsGetSavedStarGiftsParams,
            opts?: ApiCallOptions,
        ): Promise<SavedStarGifts>;
        getStarGiftActiveAuctions(
            params: PaymentsGetStarGiftActiveAuctionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeStarGiftActiveAuctions>;
        getStarGiftAuctionAcquiredGifts(
            params: PaymentsGetStarGiftAuctionAcquiredGiftsParams,
            opts?: ApiCallOptions,
        ): Promise<StarGiftAuctionAcquiredGifts>;
        getStarGiftAuctionState(
            params: PaymentsGetStarGiftAuctionStateParams,
            opts?: ApiCallOptions,
        ): Promise<Api.payments.StarGiftAuctionState>;
        getStarGiftCollections(
            params: PaymentsGetStarGiftCollectionsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeStarGiftCollections>;
        getStarGifts(
            params: PaymentsGetStarGiftsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeStarGifts>;
        getStarGiftUpgradeAttributes(
            params: PaymentsGetStarGiftUpgradeAttributesParams,
            opts?: ApiCallOptions,
        ): Promise<StarGiftUpgradeAttributes>;
        getStarGiftUpgradePreview(
            params: PaymentsGetStarGiftUpgradePreviewParams,
            opts?: ApiCallOptions,
        ): Promise<StarGiftUpgradePreview>;
        getStarGiftWithdrawalUrl(
            params: PaymentsGetStarGiftWithdrawalUrlParams,
            opts?: ApiCallOptions,
        ): Promise<StarGiftWithdrawalUrl>;
        getStarsGiftOptions(
            params: PaymentsGetStarsGiftOptionsParams,
            opts?: ApiCallOptions,
        ): Promise<StarsGiftOption[]>;
        getStarsGiveawayOptions(
            opts?: ApiCallOptions,
        ): Promise<StarsGiveawayOption[]>;
        getStarsRevenueAdsAccountUrl(
            params: PaymentsGetStarsRevenueAdsAccountUrlParams,
            opts?: ApiCallOptions,
        ): Promise<StarsRevenueAdsAccountUrl>;
        getStarsRevenueStats(
            params: PaymentsGetStarsRevenueStatsParams,
            opts?: ApiCallOptions,
        ): Promise<StarsRevenueStats>;
        getStarsRevenueWithdrawalUrl(
            params: PaymentsGetStarsRevenueWithdrawalUrlParams,
            opts?: ApiCallOptions,
        ): Promise<StarsRevenueWithdrawalUrl>;
        getStarsStatus(
            params: PaymentsGetStarsStatusParams,
            opts?: ApiCallOptions,
        ): Promise<StarsStatus>;
        getStarsSubscriptions(
            params: PaymentsGetStarsSubscriptionsParams,
            opts?: ApiCallOptions,
        ): Promise<StarsStatus>;
        getStarsTopupOptions(opts?: ApiCallOptions): Promise<StarsTopupOption[]>;
        getStarsTransactions(
            params: PaymentsGetStarsTransactionsParams,
            opts?: ApiCallOptions,
        ): Promise<StarsStatus>;
        getStarsTransactionsByID(
            params: PaymentsGetStarsTransactionsByIDParams,
            opts?: ApiCallOptions,
        ): Promise<StarsStatus>;
        getSuggestedStarRefBots(
            params: PaymentsGetSuggestedStarRefBotsParams,
            opts?: ApiCallOptions,
        ): Promise<SuggestedStarRefBots>;
        getUniqueStarGift(
            params: PaymentsGetUniqueStarGiftParams,
            opts?: ApiCallOptions,
        ): Promise<UniqueStarGift>;
        getUniqueStarGiftValueInfo(
            params: PaymentsGetUniqueStarGiftValueInfoParams,
            opts?: ApiCallOptions,
        ): Promise<UniqueStarGiftValueInfo>;
        launchPrepaidGiveaway(
            params: PaymentsLaunchPrepaidGiveawayParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        refundStarsCharge(
            params: PaymentsRefundStarsChargeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        reorderStarGiftCollections(
            params: PaymentsReorderStarGiftCollectionsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        resolveStarGiftOffer(
            params: PaymentsResolveStarGiftOfferParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        saveStarGift(
            params: PaymentsSaveStarGiftParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        sendPaymentForm(
            params: PaymentsSendPaymentFormParams,
            opts?: ApiCallOptions,
        ): Promise<TypePaymentResult>;
        sendStarGiftOffer(
            params: PaymentsSendStarGiftOfferParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendStarsForm(
            params: PaymentsSendStarsFormParams,
            opts?: ApiCallOptions,
        ): Promise<TypePaymentResult>;
        toggleChatStarGiftNotifications(
            params: PaymentsToggleChatStarGiftNotificationsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        toggleStarGiftsPinnedToTop(
            params: PaymentsToggleStarGiftsPinnedToTopParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        transferStarGift(
            params: PaymentsTransferStarGiftParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        updateStarGiftCollection(
            params: PaymentsUpdateStarGiftCollectionParams,
            opts?: ApiCallOptions,
        ): Promise<StarGiftCollection>;
        updateStarGiftPrice(
            params: PaymentsUpdateStarGiftPriceParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        upgradeStarGift(
            params: PaymentsUpgradeStarGiftParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        validateRequestedInfo(
            params: PaymentsValidateRequestedInfoParams,
            opts?: ApiCallOptions,
        ): Promise<ValidatedRequestedInfo>;
    }

    Type Declaration

    phone: {
        acceptCall(
            params: PhoneAcceptCallParams,
            opts?: ApiCallOptions,
        ): Promise<Api.phone.PhoneCall>;
        checkGroupCall(
            params: PhoneCheckGroupCallParams,
            opts?: ApiCallOptions,
        ): Promise<number[]>;
        confirmCall(
            params: PhoneConfirmCallParams,
            opts?: ApiCallOptions,
        ): Promise<Api.phone.PhoneCall>;
        createConferenceCall(
            params: PhoneCreateConferenceCallParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        createGroupCall(
            params: PhoneCreateGroupCallParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        declineConferenceCallInvite(
            params: PhoneDeclineConferenceCallInviteParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteConferenceCallParticipants(
            params: PhoneDeleteConferenceCallParticipantsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteGroupCallMessages(
            params: PhoneDeleteGroupCallMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        deleteGroupCallParticipantMessages(
            params: PhoneDeleteGroupCallParticipantMessagesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        discardCall(
            params: PhoneDiscardCallParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        discardGroupCall(
            params: PhoneDiscardGroupCallParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editGroupCallParticipant(
            params: PhoneEditGroupCallParticipantParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        editGroupCallTitle(
            params: PhoneEditGroupCallTitleParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        exportGroupCallInvite(
            params: PhoneExportGroupCallInviteParams,
            opts?: ApiCallOptions,
        ): Promise<ExportedGroupCallInvite>;
        getCallConfig(opts?: ApiCallOptions): Promise<DataJSON>;
        getGroupCall(
            params: PhoneGetGroupCallParams,
            opts?: ApiCallOptions,
        ): Promise<Api.phone.GroupCall>;
        getGroupCallChainBlocks(
            params: PhoneGetGroupCallChainBlocksParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        getGroupCallJoinAs(
            params: PhoneGetGroupCallJoinAsParams,
            opts?: ApiCallOptions,
        ): Promise<JoinAsPeers>;
        getGroupCallStars(
            params: PhoneGetGroupCallStarsParams,
            opts?: ApiCallOptions,
        ): Promise<GroupCallStars>;
        getGroupCallStreamChannels(
            params: PhoneGetGroupCallStreamChannelsParams,
            opts?: ApiCallOptions,
        ): Promise<GroupCallStreamChannels>;
        getGroupCallStreamRtmpUrl(
            params: PhoneGetGroupCallStreamRtmpUrlParams,
            opts?: ApiCallOptions,
        ): Promise<GroupCallStreamRtmpUrl>;
        getGroupParticipants(
            params: PhoneGetGroupParticipantsParams,
            opts?: ApiCallOptions,
        ): Promise<GroupParticipants>;
        inviteConferenceCallParticipant(
            params: PhoneInviteConferenceCallParticipantParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        inviteToGroupCall(
            params: PhoneInviteToGroupCallParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        joinGroupCall(
            params: PhoneJoinGroupCallParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        joinGroupCallPresentation(
            params: PhoneJoinGroupCallPresentationParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        leaveGroupCall(
            params: PhoneLeaveGroupCallParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        leaveGroupCallPresentation(
            params: PhoneLeaveGroupCallPresentationParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        receivedCall(
            params: PhoneReceivedCallParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        requestCall(
            params: PhoneRequestCallParams,
            opts?: ApiCallOptions,
        ): Promise<Api.phone.PhoneCall>;
        saveCallDebug(
            params: PhoneSaveCallDebugParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveCallLog(
            params: PhoneSaveCallLogParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveDefaultGroupCallJoinAs(
            params: PhoneSaveDefaultGroupCallJoinAsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveDefaultSendAs(
            params: PhoneSaveDefaultSendAsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        sendConferenceCallBroadcast(
            params: PhoneSendConferenceCallBroadcastParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendGroupCallEncryptedMessage(
            params: PhoneSendGroupCallEncryptedMessageParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        sendGroupCallMessage(
            params: PhoneSendGroupCallMessageParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendSignalingData(
            params: PhoneSendSignalingDataParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        setCallRating(
            params: PhoneSetCallRatingParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        startScheduledGroupCall(
            params: PhoneStartScheduledGroupCallParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleGroupCallRecord(
            params: PhoneToggleGroupCallRecordParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleGroupCallSettings(
            params: PhoneToggleGroupCallSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleGroupCallStartSubscription(
            params: PhoneToggleGroupCallStartSubscriptionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
    }

    Type Declaration

    photos: {
        deletePhotos(
            params: PhotosDeletePhotosParams,
            opts?: ApiCallOptions,
        ): Promise<BigInteger[]>;
        getUserPhotos(
            params: PhotosGetUserPhotosParams,
            opts?: ApiCallOptions,
        ): Promise<TypePhotos>;
        updateProfilePhoto(
            params: PhotosUpdateProfilePhotoParams,
            opts?: ApiCallOptions,
        ): Promise<Api.photos.Photo>;
        uploadContactProfilePhoto(
            params: PhotosUploadContactProfilePhotoParams,
            opts?: ApiCallOptions,
        ): Promise<Api.photos.Photo>;
        uploadProfilePhoto(
            params: PhotosUploadProfilePhotoParams,
            opts?: ApiCallOptions,
        ): Promise<Api.photos.Photo>;
    }

    Type Declaration

    premium: {
        applyBoost(
            params: PremiumApplyBoostParams,
            opts?: ApiCallOptions,
        ): Promise<MyBoosts>;
        getBoostsList(
            params: PremiumGetBoostsListParams,
            opts?: ApiCallOptions,
        ): Promise<BoostsList>;
        getBoostsStatus(
            params: PremiumGetBoostsStatusParams,
            opts?: ApiCallOptions,
        ): Promise<BoostsStatus>;
        getMyBoosts(opts?: ApiCallOptions): Promise<MyBoosts>;
        getUserBoosts(
            params: PremiumGetUserBoostsParams,
            opts?: ApiCallOptions,
        ): Promise<BoostsList>;
    }

    Type Declaration

    smsjobs: {
        finishJob(
            params: SmsjobsFinishJobParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        getSmsJob(
            params: SmsjobsGetSmsJobParams,
            opts?: ApiCallOptions,
        ): Promise<SmsJob>;
        getStatus(opts?: ApiCallOptions): Promise<Status>;
        isEligibleToJoin(opts?: ApiCallOptions): Promise<EligibleToJoin>;
        join(opts?: ApiCallOptions): Promise<boolean>;
        leave(opts?: ApiCallOptions): Promise<boolean>;
        updateSettings(
            params: SmsjobsUpdateSettingsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
    }

    Type Declaration

    stats: {
        getBroadcastStats(
            params: StatsGetBroadcastStatsParams,
            opts?: ApiCallOptions,
        ): Promise<BroadcastStats>;
        getMegagroupStats(
            params: StatsGetMegagroupStatsParams,
            opts?: ApiCallOptions,
        ): Promise<MegagroupStats>;
        getMessagePublicForwards(
            params: StatsGetMessagePublicForwardsParams,
            opts?: ApiCallOptions,
        ): Promise<PublicForwards>;
        getMessageStats(
            params: StatsGetMessageStatsParams,
            opts?: ApiCallOptions,
        ): Promise<MessageStats>;
        getPollStats(
            params: StatsGetPollStatsParams,
            opts?: ApiCallOptions,
        ): Promise<PollStats>;
        getStoryPublicForwards(
            params: StatsGetStoryPublicForwardsParams,
            opts?: ApiCallOptions,
        ): Promise<PublicForwards>;
        getStoryStats(
            params: StatsGetStoryStatsParams,
            opts?: ApiCallOptions,
        ): Promise<StoryStats>;
        loadAsyncGraph(
            params: StatsLoadAsyncGraphParams,
            opts?: ApiCallOptions,
        ): Promise<TypeStatsGraph>;
    }

    Type Declaration

    stickers: {
        addStickerToSet(
            params: StickersAddStickerToSetParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeStickerSet>;
        changeSticker(
            params: StickersChangeStickerParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeStickerSet>;
        changeStickerPosition(
            params: StickersChangeStickerPositionParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeStickerSet>;
        checkShortName(
            params: StickersCheckShortNameParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        createStickerSet(
            params: StickersCreateStickerSetParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeStickerSet>;
        deleteStickerSet(
            params: StickersDeleteStickerSetParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        removeStickerFromSet(
            params: StickersRemoveStickerFromSetParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeStickerSet>;
        renameStickerSet(
            params: StickersRenameStickerSetParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeStickerSet>;
        replaceSticker(
            params: StickersReplaceStickerParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeStickerSet>;
        setStickerSetThumb(
            params: StickersSetStickerSetThumbParams,
            opts?: ApiCallOptions,
        ): Promise<Api.messages.TypeStickerSet>;
        suggestShortName(
            params: StickersSuggestShortNameParams,
            opts?: ApiCallOptions,
        ): Promise<SuggestedShortName>;
    }

    Type Declaration

    stories: {
        activateStealthMode(
            params: StoriesActivateStealthModeParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        canSendStory(
            params: StoriesCanSendStoryParams,
            opts?: ApiCallOptions,
        ): Promise<CanSendStoryCount>;
        createAlbum(
            params: StoriesCreateAlbumParams,
            opts?: ApiCallOptions,
        ): Promise<StoryAlbum>;
        deleteAlbum(
            params: StoriesDeleteAlbumParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        deleteStories(
            params: StoriesDeleteStoriesParams,
            opts?: ApiCallOptions,
        ): Promise<number[]>;
        editStory(
            params: StoriesEditStoryParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        exportStoryLink(
            params: StoriesExportStoryLinkParams,
            opts?: ApiCallOptions,
        ): Promise<ExportedStoryLink>;
        getAlbums(
            params: StoriesGetAlbumsParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAlbums>;
        getAlbumStories(
            params: StoriesGetAlbumStoriesParams,
            opts?: ApiCallOptions,
        ): Promise<Stories>;
        getAllReadPeerStories(opts?: ApiCallOptions): Promise<TypeUpdates>;
        getAllStories(
            params: StoriesGetAllStoriesParams,
            opts?: ApiCallOptions,
        ): Promise<TypeAllStories>;
        getChatsToSend(opts?: ApiCallOptions): Promise<TypeChats>;
        getPeerMaxIDs(
            params: StoriesGetPeerMaxIDsParams,
            opts?: ApiCallOptions,
        ): Promise<RecentStory[]>;
        getPeerStories(
            params: StoriesGetPeerStoriesParams,
            opts?: ApiCallOptions,
        ): Promise<Api.stories.PeerStories>;
        getPinnedStories(
            params: StoriesGetPinnedStoriesParams,
            opts?: ApiCallOptions,
        ): Promise<Stories>;
        getStoriesArchive(
            params: StoriesGetStoriesArchiveParams,
            opts?: ApiCallOptions,
        ): Promise<Stories>;
        getStoriesByID(
            params: StoriesGetStoriesByIDParams,
            opts?: ApiCallOptions,
        ): Promise<Stories>;
        getStoriesViews(
            params: StoriesGetStoriesViewsParams,
            opts?: ApiCallOptions,
        ): Promise<Api.stories.StoryViews>;
        getStoryReactionsList(
            params: StoriesGetStoryReactionsListParams,
            opts?: ApiCallOptions,
        ): Promise<StoryReactionsList>;
        getStoryViewsList(
            params: StoriesGetStoryViewsListParams,
            opts?: ApiCallOptions,
        ): Promise<StoryViewsList>;
        incrementStoryViews(
            params: StoriesIncrementStoryViewsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        readStories(
            params: StoriesReadStoriesParams,
            opts?: ApiCallOptions,
        ): Promise<number[]>;
        reorderAlbums(
            params: StoriesReorderAlbumsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        report(
            params: StoriesReportParams,
            opts?: ApiCallOptions,
        ): Promise<TypeReportResult>;
        searchPosts(
            params: StoriesSearchPostsParams,
            opts?: ApiCallOptions,
        ): Promise<FoundStories>;
        sendReaction(
            params: StoriesSendReactionParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        sendStory(
            params: StoriesSendStoryParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        startLive(
            params: StoriesStartLiveParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
        toggleAllStoriesHidden(
            params: StoriesToggleAllStoriesHiddenParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        togglePeerStoriesHidden(
            params: StoriesTogglePeerStoriesHiddenParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        togglePinned(
            params: StoriesTogglePinnedParams,
            opts?: ApiCallOptions,
        ): Promise<number[]>;
        togglePinnedToTop(
            params: StoriesTogglePinnedToTopParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        updateAlbum(
            params: StoriesUpdateAlbumParams,
            opts?: ApiCallOptions,
        ): Promise<StoryAlbum>;
    }

    Type Declaration

    updates: {
        getChannelDifference(
            params: UpdatesGetChannelDifferenceParams,
            opts?: ApiCallOptions,
        ): Promise<TypeChannelDifference>;
        getDifference(
            params: UpdatesGetDifferenceParams,
            opts?: ApiCallOptions,
        ): Promise<TypeDifference>;
        getState(opts?: ApiCallOptions): Promise<State>;
    }

    Type Declaration

    upload: {
        getCdnFile(
            params: UploadGetCdnFileParams,
            opts?: ApiCallOptions,
        ): Promise<TypeCdnFile>;
        getCdnFileHashes(
            params: UploadGetCdnFileHashesParams,
            opts?: ApiCallOptions,
        ): Promise<FileHash[]>;
        getFile(
            params: UploadGetFileParams,
            opts?: ApiCallOptions,
        ): Promise<TypeFile>;
        getFileHashes(
            params: UploadGetFileHashesParams,
            opts?: ApiCallOptions,
        ): Promise<FileHash[]>;
        getWebFile(
            params: UploadGetWebFileParams,
            opts?: ApiCallOptions,
        ): Promise<WebFile>;
        reuploadCdnFile(
            params: UploadReuploadCdnFileParams,
            opts?: ApiCallOptions,
        ): Promise<FileHash[]>;
        saveBigFilePart(
            params: UploadSaveBigFilePartParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        saveFilePart(
            params: UploadSaveFilePartParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
    }

    Type Declaration

    users: {
        getFullUser(
            params: UsersGetFullUserParams,
            opts?: ApiCallOptions,
        ): Promise<Api.users.UserFull>;
        getRequirementsToContact(
            params: UsersGetRequirementsToContactParams,
            opts?: ApiCallOptions,
        ): Promise<TypeRequirementToContact[]>;
        getSavedMusic(
            params: UsersGetSavedMusicParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSavedMusic>;
        getSavedMusicByID(
            params: UsersGetSavedMusicByIDParams,
            opts?: ApiCallOptions,
        ): Promise<TypeSavedMusic>;
        getUsers(
            params: UsersGetUsersParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUser[]>;
        setSecureValueErrors(
            params: UsersSetSecureValueErrorsParams,
            opts?: ApiCallOptions,
        ): Promise<boolean>;
        suggestBirthday(
            params: UsersSuggestBirthdayParams,
            opts?: ApiCallOptions,
        ): Promise<TypeUpdates>;
    }

    Type Declaration