Full Code of Swiftgram/TDLibKit for AI

main ed66360b618f cached
1823 files
5.7 MB
1.6M tokens
5 symbols
1 requests
Download .txt
Showing preview only (6,431K chars total). Download the full file or copy to clipboard to get everything.
Repository: Swiftgram/TDLibKit
Branch: main
Commit: ed66360b618f
Files: 1823
Total size: 5.7 MB

Directory structure:
gitextract_z0lds0ov/

├── .github/
│   └── workflows/
│       └── ci.yml
├── .gitignore
├── .swiftpm/
│   └── xcode/
│       ├── package.xcworkspace/
│       │   └── xcshareddata/
│       │       └── IDEWorkspaceChecks.plist
│       └── xcshareddata/
│           └── xcschemes/
│               └── TDLibKit.xcscheme
├── LICENSE
├── Package.resolved
├── Package.swift
├── README.md
├── Sources/
│   └── TDLibKit/
│       ├── Generated/
│       │   ├── API/
│       │   │   ├── TDLibApi.swift
│       │   │   ├── TdApi.swift
│       │   │   └── TdClient.swift
│       │   ├── Models/
│       │   │   ├── AccentColor.swift
│       │   │   ├── AcceptCall.swift
│       │   │   ├── AcceptOauthRequest.swift
│       │   │   ├── AcceptTermsOfService.swift
│       │   │   ├── AcceptedGiftTypes.swift
│       │   │   ├── AccountInfo.swift
│       │   │   ├── AccountTtl.swift
│       │   │   ├── ActivateStoryStealthMode.swift
│       │   │   ├── ActiveStoryState.swift
│       │   │   ├── AddBotMediaPreview.swift
│       │   │   ├── AddChatFolderByInviteLink.swift
│       │   │   ├── AddChatMember.swift
│       │   │   ├── AddChatMembers.swift
│       │   │   ├── AddChatToList.swift
│       │   │   ├── AddChecklistTasks.swift
│       │   │   ├── AddContact.swift
│       │   │   ├── AddCustomServerLanguagePack.swift
│       │   │   ├── AddFavoriteSticker.swift
│       │   │   ├── AddFileToDownloads.swift
│       │   │   ├── AddGiftCollectionGifts.swift
│       │   │   ├── AddLocalMessage.swift
│       │   │   ├── AddLogMessage.swift
│       │   │   ├── AddLoginPasskey.swift
│       │   │   ├── AddMessageReaction.swift
│       │   │   ├── AddNetworkStatistics.swift
│       │   │   ├── AddOffer.swift
│       │   │   ├── AddPaidMessageReaction.swift
│       │   │   ├── AddPendingLiveStoryReaction.swift
│       │   │   ├── AddPendingPaidMessageReaction.swift
│       │   │   ├── AddPollOption.swift
│       │   │   ├── AddProfileAudio.swift
│       │   │   ├── AddProxy.swift
│       │   │   ├── AddQuickReplyShortcutInlineQueryResultMessage.swift
│       │   │   ├── AddQuickReplyShortcutMessage.swift
│       │   │   ├── AddQuickReplyShortcutMessageAlbum.swift
│       │   │   ├── AddRecentSticker.swift
│       │   │   ├── AddRecentlyFoundChat.swift
│       │   │   ├── AddSavedAnimation.swift
│       │   │   ├── AddSavedNotificationSound.swift
│       │   │   ├── AddStickerToSet.swift
│       │   │   ├── AddStoryAlbumStories.swift
│       │   │   ├── AddTextCompositionStyle.swift
│       │   │   ├── AddedProxies.swift
│       │   │   ├── AddedProxy.swift
│       │   │   ├── AddedReaction.swift
│       │   │   ├── AddedReactions.swift
│       │   │   ├── Address.swift
│       │   │   ├── AdvertisementSponsor.swift
│       │   │   ├── AffiliateInfo.swift
│       │   │   ├── AffiliateProgramInfo.swift
│       │   │   ├── AffiliateProgramParameters.swift
│       │   │   ├── AffiliateProgramSortOrder.swift
│       │   │   ├── AffiliateType.swift
│       │   │   ├── AgeVerificationParameters.swift
│       │   │   ├── AllowBotToSendMessages.swift
│       │   │   ├── AllowUnpaidMessagesFromUser.swift
│       │   │   ├── AlternativeVideo.swift
│       │   │   ├── AnimatedChatPhoto.swift
│       │   │   ├── AnimatedEmoji.swift
│       │   │   ├── Animation.swift
│       │   │   ├── Animations.swift
│       │   │   ├── AnswerCallbackQuery.swift
│       │   │   ├── AnswerCustomQuery.swift
│       │   │   ├── AnswerGuestQuery.swift
│       │   │   ├── AnswerInlineQuery.swift
│       │   │   ├── AnswerPreCheckoutQuery.swift
│       │   │   ├── AnswerShippingQuery.swift
│       │   │   ├── AnswerWebAppQuery.swift
│       │   │   ├── ApplyPremiumGiftCode.swift
│       │   │   ├── ApproveSuggestedPost.swift
│       │   │   ├── ArchiveChatListSettings.swift
│       │   │   ├── AssignAppStoreTransaction.swift
│       │   │   ├── AssignGooglePlayTransaction.swift
│       │   │   ├── AssignStoreTransaction.swift
│       │   │   ├── AttachmentMenuBot.swift
│       │   │   ├── AttachmentMenuBotColor.swift
│       │   │   ├── AttributeCraftPersistenceProbability.swift
│       │   │   ├── AuctionBid.swift
│       │   │   ├── AuctionRound.swift
│       │   │   ├── AuctionState.swift
│       │   │   ├── Audio.swift
│       │   │   ├── Audios.swift
│       │   │   ├── AuthenticationCodeInfo.swift
│       │   │   ├── AuthenticationCodeType.swift
│       │   │   ├── AuthorizationState.swift
│       │   │   ├── AutoDownloadSettings.swift
│       │   │   ├── AutoDownloadSettingsPresets.swift
│       │   │   ├── AutosaveSettings.swift
│       │   │   ├── AutosaveSettingsException.swift
│       │   │   ├── AutosaveSettingsScope.swift
│       │   │   ├── AvailableGift.swift
│       │   │   ├── AvailableGifts.swift
│       │   │   ├── AvailableReaction.swift
│       │   │   ├── AvailableReactions.swift
│       │   │   ├── Background.swift
│       │   │   ├── BackgroundFill.swift
│       │   │   ├── BackgroundType.swift
│       │   │   ├── Backgrounds.swift
│       │   │   ├── BanChatMember.swift
│       │   │   ├── BanGroupCallParticipants.swift
│       │   │   ├── BankCardActionOpenUrl.swift
│       │   │   ├── BankCardInfo.swift
│       │   │   ├── BasicGroup.swift
│       │   │   ├── BasicGroupFullInfo.swift
│       │   │   ├── Birthdate.swift
│       │   │   ├── BlockList.swift
│       │   │   ├── BlockMessageSenderFromReplies.swift
│       │   │   ├── BoostChat.swift
│       │   │   ├── BotAccessSettings.swift
│       │   │   ├── BotCommand.swift
│       │   │   ├── BotCommandScope.swift
│       │   │   ├── BotCommands.swift
│       │   │   ├── BotInfo.swift
│       │   │   ├── BotMediaPreview.swift
│       │   │   ├── BotMediaPreviewInfo.swift
│       │   │   ├── BotMediaPreviews.swift
│       │   │   ├── BotMenuButton.swift
│       │   │   ├── BotTransactionPurpose.swift
│       │   │   ├── BotVerification.swift
│       │   │   ├── BotVerificationParameters.swift
│       │   │   ├── BotWriteAccessAllowReason.swift
│       │   │   ├── BuiltInTheme.swift
│       │   │   ├── BusinessAwayMessageSchedule.swift
│       │   │   ├── BusinessAwayMessageSettings.swift
│       │   │   ├── BusinessBotManageBar.swift
│       │   │   ├── BusinessBotRights.swift
│       │   │   ├── BusinessChatLink.swift
│       │   │   ├── BusinessChatLinkInfo.swift
│       │   │   ├── BusinessChatLinks.swift
│       │   │   ├── BusinessConnectedBot.swift
│       │   │   ├── BusinessConnection.swift
│       │   │   ├── BusinessFeature.swift
│       │   │   ├── BusinessFeaturePromotionAnimation.swift
│       │   │   ├── BusinessFeatures.swift
│       │   │   ├── BusinessGreetingMessageSettings.swift
│       │   │   ├── BusinessInfo.swift
│       │   │   ├── BusinessLocation.swift
│       │   │   ├── BusinessMessage.swift
│       │   │   ├── BusinessMessages.swift
│       │   │   ├── BusinessOpeningHours.swift
│       │   │   ├── BusinessOpeningHoursInterval.swift
│       │   │   ├── BusinessRecipients.swift
│       │   │   ├── BusinessStartPage.swift
│       │   │   ├── ButtonStyle.swift
│       │   │   ├── BuyGiftUpgrade.swift
│       │   │   ├── Call.swift
│       │   │   ├── CallDiscardReason.swift
│       │   │   ├── CallId.swift
│       │   │   ├── CallProblem.swift
│       │   │   ├── CallProtocol.swift
│       │   │   ├── CallServer.swift
│       │   │   ├── CallServerType.swift
│       │   │   ├── CallState.swift
│       │   │   ├── CallbackQueryAnswer.swift
│       │   │   ├── CallbackQueryPayload.swift
│       │   │   ├── CanBotSendMessages.swift
│       │   │   ├── CanPostStory.swift
│       │   │   ├── CanPostStoryResult.swift
│       │   │   ├── CanPurchaseFromStore.swift
│       │   │   ├── CanPurchasePremium.swift
│       │   │   ├── CanSendGift.swift
│       │   │   ├── CanSendGiftResult.swift
│       │   │   ├── CanSendMessageToUser.swift
│       │   │   ├── CanSendMessageToUserResult.swift
│       │   │   ├── CanSendStory.swift
│       │   │   ├── CanSendStoryResult.swift
│       │   │   ├── CanTransferOwnership.swift
│       │   │   ├── CanTransferOwnershipResult.swift
│       │   │   ├── CancelDownloadFile.swift
│       │   │   ├── CancelPasswordReset.swift
│       │   │   ├── CancelPreliminaryUploadFile.swift
│       │   │   ├── CancelRecoveryEmailAddressVerification.swift
│       │   │   ├── ChangeImportedContacts.swift
│       │   │   ├── ChangeStickerSet.swift
│       │   │   ├── ChannelTransactionPurpose.swift
│       │   │   ├── Chat.swift
│       │   │   ├── ChatAction.swift
│       │   │   ├── ChatActionBar.swift
│       │   │   ├── ChatActiveStories.swift
│       │   │   ├── ChatAdministrator.swift
│       │   │   ├── ChatAdministratorRights.swift
│       │   │   ├── ChatAdministrators.swift
│       │   │   ├── ChatAffiliateProgram.swift
│       │   │   ├── ChatAffiliatePrograms.swift
│       │   │   ├── ChatAvailableReactions.swift
│       │   │   ├── ChatBackground.swift
│       │   │   ├── ChatBoost.swift
│       │   │   ├── ChatBoostFeatures.swift
│       │   │   ├── ChatBoostLevelFeatures.swift
│       │   │   ├── ChatBoostLink.swift
│       │   │   ├── ChatBoostLinkInfo.swift
│       │   │   ├── ChatBoostSlot.swift
│       │   │   ├── ChatBoostSlots.swift
│       │   │   ├── ChatBoostSource.swift
│       │   │   ├── ChatBoostStatus.swift
│       │   │   ├── ChatEvent.swift
│       │   │   ├── ChatEventAction.swift
│       │   │   ├── ChatEventLogFilters.swift
│       │   │   ├── ChatEvents.swift
│       │   │   ├── ChatFolder.swift
│       │   │   ├── ChatFolderIcon.swift
│       │   │   ├── ChatFolderInfo.swift
│       │   │   ├── ChatFolderInviteLink.swift
│       │   │   ├── ChatFolderInviteLinkInfo.swift
│       │   │   ├── ChatFolderInviteLinks.swift
│       │   │   ├── ChatFolderName.swift
│       │   │   ├── ChatInviteLink.swift
│       │   │   ├── ChatInviteLinkCount.swift
│       │   │   ├── ChatInviteLinkCounts.swift
│       │   │   ├── ChatInviteLinkInfo.swift
│       │   │   ├── ChatInviteLinkMember.swift
│       │   │   ├── ChatInviteLinkMembers.swift
│       │   │   ├── ChatInviteLinkSubscriptionInfo.swift
│       │   │   ├── ChatInviteLinks.swift
│       │   │   ├── ChatJoinRequest.swift
│       │   │   ├── ChatJoinRequests.swift
│       │   │   ├── ChatJoinRequestsInfo.swift
│       │   │   ├── ChatList.swift
│       │   │   ├── ChatLists.swift
│       │   │   ├── ChatLocation.swift
│       │   │   ├── ChatMember.swift
│       │   │   ├── ChatMemberStatus.swift
│       │   │   ├── ChatMembers.swift
│       │   │   ├── ChatMembersFilter.swift
│       │   │   ├── ChatMessageSender.swift
│       │   │   ├── ChatMessageSenders.swift
│       │   │   ├── ChatNearby.swift
│       │   │   ├── ChatNotificationSettings.swift
│       │   │   ├── ChatPermissions.swift
│       │   │   ├── ChatPhoto.swift
│       │   │   ├── ChatPhotoInfo.swift
│       │   │   ├── ChatPhotoSticker.swift
│       │   │   ├── ChatPhotoStickerType.swift
│       │   │   ├── ChatPhotos.swift
│       │   │   ├── ChatPosition.swift
│       │   │   ├── ChatRevenueAmount.swift
│       │   │   ├── ChatRevenueStatistics.swift
│       │   │   ├── ChatRevenueTransaction.swift
│       │   │   ├── ChatRevenueTransactionType.swift
│       │   │   ├── ChatRevenueTransactions.swift
│       │   │   ├── ChatRevenueWithdrawalState.swift
│       │   │   ├── ChatSource.swift
│       │   │   ├── ChatStatistics.swift
│       │   │   ├── ChatStatisticsAdministratorActionsInfo.swift
│       │   │   ├── ChatStatisticsInteractionInfo.swift
│       │   │   ├── ChatStatisticsInviterInfo.swift
│       │   │   ├── ChatStatisticsMessageSenderInfo.swift
│       │   │   ├── ChatStatisticsObjectType.swift
│       │   │   ├── ChatTheme.swift
│       │   │   ├── ChatTransactionPurpose.swift
│       │   │   ├── ChatType.swift
│       │   │   ├── Chats.swift
│       │   │   ├── ChatsNearby.swift
│       │   │   ├── CheckAuthenticationBotToken.swift
│       │   │   ├── CheckAuthenticationCode.swift
│       │   │   ├── CheckAuthenticationEmailCode.swift
│       │   │   ├── CheckAuthenticationPasskey.swift
│       │   │   ├── CheckAuthenticationPassword.swift
│       │   │   ├── CheckAuthenticationPasswordRecoveryCode.swift
│       │   │   ├── CheckAuthenticationPremiumPurchase.swift
│       │   │   ├── CheckBotUsername.swift
│       │   │   ├── CheckChatFolderInviteLink.swift
│       │   │   ├── CheckChatInviteLink.swift
│       │   │   ├── CheckChatUsername.swift
│       │   │   ├── CheckChatUsernameResult.swift
│       │   │   ├── CheckCreatedPublicChatsLimit.swift
│       │   │   ├── CheckEmailAddressVerificationCode.swift
│       │   │   ├── CheckLoginEmailAddressCode.swift
│       │   │   ├── CheckOauthRequestMatchCode.swift
│       │   │   ├── CheckPasswordRecoveryCode.swift
│       │   │   ├── CheckPhoneNumberCode.swift
│       │   │   ├── CheckPremiumGiftCode.swift
│       │   │   ├── CheckQuickReplyShortcutName.swift
│       │   │   ├── CheckRecoveryEmailAddressCode.swift
│       │   │   ├── CheckStickerSetName.swift
│       │   │   ├── CheckStickerSetNameResult.swift
│       │   │   ├── CheckWebAppFileDownload.swift
│       │   │   ├── Checklist.swift
│       │   │   ├── ChecklistTask.swift
│       │   │   ├── CleanFileName.swift
│       │   │   ├── ClearAllDraftMessages.swift
│       │   │   ├── ClearAutosaveSettingsExceptions.swift
│       │   │   ├── ClearImportedContacts.swift
│       │   │   ├── ClearRecentEmojiStatuses.swift
│       │   │   ├── ClearRecentReactions.swift
│       │   │   ├── ClearRecentStickers.swift
│       │   │   ├── ClearRecentlyFoundChats.swift
│       │   │   ├── ClearSearchedForHashtags.swift
│       │   │   ├── ClearSearchedForTags.swift
│       │   │   ├── ClickAnimatedEmojiMessage.swift
│       │   │   ├── ClickChatSponsoredMessage.swift
│       │   │   ├── ClickPremiumSubscriptionButton.swift
│       │   │   ├── ClickVideoMessageAdvertisement.swift
│       │   │   ├── Close.swift
│       │   │   ├── CloseBirthdayUser.swift
│       │   │   ├── CloseChat.swift
│       │   │   ├── CloseGiftAuction.swift
│       │   │   ├── CloseSecretChat.swift
│       │   │   ├── CloseStory.swift
│       │   │   ├── CloseWebApp.swift
│       │   │   ├── ClosedVectorPath.swift
│       │   │   ├── CollectibleItemInfo.swift
│       │   │   ├── CollectibleItemType.swift
│       │   │   ├── CommitPendingLiveStoryReactions.swift
│       │   │   ├── CommitPendingPaidMessageReactions.swift
│       │   │   ├── ComposeTextWithAi.swift
│       │   │   ├── ConfirmQrCodeAuthentication.swift
│       │   │   ├── ConfirmSession.swift
│       │   │   ├── ConnectAffiliateProgram.swift
│       │   │   ├── ConnectChatAffiliateProgram.swift
│       │   │   ├── ConnectedAffiliateProgram.swift
│       │   │   ├── ConnectedAffiliatePrograms.swift
│       │   │   ├── ConnectedWebsite.swift
│       │   │   ├── ConnectedWebsites.swift
│       │   │   ├── ConnectionState.swift
│       │   │   ├── Contact.swift
│       │   │   ├── Count.swift
│       │   │   ├── Countries.swift
│       │   │   ├── CountryInfo.swift
│       │   │   ├── CraftGift.swift
│       │   │   ├── CraftGiftResult.swift
│       │   │   ├── CreateBasicGroupChat.swift
│       │   │   ├── CreateBot.swift
│       │   │   ├── CreateBusinessChatLink.swift
│       │   │   ├── CreateCall.swift
│       │   │   ├── CreateChatFolder.swift
│       │   │   ├── CreateChatFolderInviteLink.swift
│       │   │   ├── CreateChatInviteLink.swift
│       │   │   ├── CreateChatSubscriptionInviteLink.swift
│       │   │   ├── CreateForumTopic.swift
│       │   │   ├── CreateGiftCollection.swift
│       │   │   ├── CreateGroupCall.swift
│       │   │   ├── CreateInvoiceLink.swift
│       │   │   ├── CreateNewBasicGroupChat.swift
│       │   │   ├── CreateNewSecretChat.swift
│       │   │   ├── CreateNewStickerSet.swift
│       │   │   ├── CreateNewSupergroupChat.swift
│       │   │   ├── CreatePrivateChat.swift
│       │   │   ├── CreateSecretChat.swift
│       │   │   ├── CreateStoryAlbum.swift
│       │   │   ├── CreateSupergroupChat.swift
│       │   │   ├── CreateTemporaryPassword.swift
│       │   │   ├── CreateTextCompositionStyle.swift
│       │   │   ├── CreateVideoChat.swift
│       │   │   ├── CreatedBasicGroupChat.swift
│       │   │   ├── CurrentWeather.swift
│       │   │   ├── CustomRequestResult.swift
│       │   │   ├── Data.swift
│       │   │   ├── DatabaseStatistics.swift
│       │   │   ├── Date.swift
│       │   │   ├── DateRange.swift
│       │   │   ├── DateTimeFormattingType.swift
│       │   │   ├── DateTimePartPrecision.swift
│       │   │   ├── DatedFile.swift
│       │   │   ├── DeclineGroupCallInvitation.swift
│       │   │   ├── DeclineOauthRequest.swift
│       │   │   ├── DeclineSuggestedPost.swift
│       │   │   ├── DecryptGroupCallData.swift
│       │   │   ├── DeepLinkInfo.swift
│       │   │   ├── DeleteAccount.swift
│       │   │   ├── DeleteAllCallMessages.swift
│       │   │   ├── DeleteAllRecentMessageReactionsFromSender.swift
│       │   │   ├── DeleteAllRevokedChatInviteLinks.swift
│       │   │   ├── DeleteBotMediaPreviews.swift
│       │   │   ├── DeleteBusinessChatLink.swift
│       │   │   ├── DeleteBusinessConnectedBot.swift
│       │   │   ├── DeleteBusinessMessages.swift
│       │   │   ├── DeleteBusinessStory.swift
│       │   │   ├── DeleteChat.swift
│       │   │   ├── DeleteChatBackground.swift
│       │   │   ├── DeleteChatFolder.swift
│       │   │   ├── DeleteChatFolderInviteLink.swift
│       │   │   ├── DeleteChatHistory.swift
│       │   │   ├── DeleteChatMessagesByDate.swift
│       │   │   ├── DeleteChatMessagesBySender.swift
│       │   │   ├── DeleteChatReplyMarkup.swift
│       │   │   ├── DeleteCommands.swift
│       │   │   ├── DeleteDefaultBackground.swift
│       │   │   ├── DeleteDirectMessagesChatTopicHistory.swift
│       │   │   ├── DeleteDirectMessagesChatTopicMessagesByDate.swift
│       │   │   ├── DeleteFile.swift
│       │   │   ├── DeleteForumTopic.swift
│       │   │   ├── DeleteGiftCollection.swift
│       │   │   ├── DeleteGroupCallMessages.swift
│       │   │   ├── DeleteGroupCallMessagesBySender.swift
│       │   │   ├── DeleteLanguagePack.swift
│       │   │   ├── DeleteMessageReactionsFromSender.swift
│       │   │   ├── DeleteMessages.swift
│       │   │   ├── DeletePassportElement.swift
│       │   │   ├── DeletePollOption.swift
│       │   │   ├── DeleteProfilePhoto.swift
│       │   │   ├── DeleteQuickReplyShortcut.swift
│       │   │   ├── DeleteQuickReplyShortcutMessages.swift
│       │   │   ├── DeleteRevokedChatInviteLink.swift
│       │   │   ├── DeleteSavedCredentials.swift
│       │   │   ├── DeleteSavedMessagesTopicHistory.swift
│       │   │   ├── DeleteSavedMessagesTopicMessagesByDate.swift
│       │   │   ├── DeleteSavedOrderInfo.swift
│       │   │   ├── DeleteStickerSet.swift
│       │   │   ├── DeleteStory.swift
│       │   │   ├── DeleteStoryAlbum.swift
│       │   │   ├── DeleteTextCompositionStyle.swift
│       │   │   ├── Destroy.swift
│       │   │   ├── DeviceToken.swift
│       │   │   ├── DiceStickers.swift
│       │   │   ├── DiffEntity.swift
│       │   │   ├── DiffEntityType.swift
│       │   │   ├── DiffText.swift
│       │   │   ├── DirectMessagesChatTopic.swift
│       │   │   ├── DisableAllSupergroupUsernames.swift
│       │   │   ├── DisableProxy.swift
│       │   │   ├── DiscardCall.swift
│       │   │   ├── DisconnectAffiliateProgram.swift
│       │   │   ├── DisconnectAllWebsites.swift
│       │   │   ├── DisconnectChatAffiliateProgram.swift
│       │   │   ├── DisconnectWebsite.swift
│       │   │   ├── Document.swift
│       │   │   ├── DownloadFile.swift
│       │   │   ├── DownloadedFileCounts.swift
│       │   │   ├── DraftMessage.swift
│       │   │   ├── DropGiftOriginalDetails.swift
│       │   │   ├── EditBotMediaPreview.swift
│       │   │   ├── EditBusinessChatLink.swift
│       │   │   ├── EditBusinessMessageCaption.swift
│       │   │   ├── EditBusinessMessageChecklist.swift
│       │   │   ├── EditBusinessMessageLiveLocation.swift
│       │   │   ├── EditBusinessMessageMedia.swift
│       │   │   ├── EditBusinessMessageReplyMarkup.swift
│       │   │   ├── EditBusinessMessageText.swift
│       │   │   ├── EditBusinessStory.swift
│       │   │   ├── EditChatFolder.swift
│       │   │   ├── EditChatFolderInviteLink.swift
│       │   │   ├── EditChatInviteLink.swift
│       │   │   ├── EditChatSubscriptionInviteLink.swift
│       │   │   ├── EditCustomLanguagePackInfo.swift
│       │   │   ├── EditForumTopic.swift
│       │   │   ├── EditInlineMessageCaption.swift
│       │   │   ├── EditInlineMessageLiveLocation.swift
│       │   │   ├── EditInlineMessageMedia.swift
│       │   │   ├── EditInlineMessageReplyMarkup.swift
│       │   │   ├── EditInlineMessageText.swift
│       │   │   ├── EditMessageCaption.swift
│       │   │   ├── EditMessageChecklist.swift
│       │   │   ├── EditMessageLiveLocation.swift
│       │   │   ├── EditMessageMedia.swift
│       │   │   ├── EditMessageReplyMarkup.swift
│       │   │   ├── EditMessageSchedulingState.swift
│       │   │   ├── EditMessageText.swift
│       │   │   ├── EditProxy.swift
│       │   │   ├── EditQuickReplyMessage.swift
│       │   │   ├── EditStarSubscription.swift
│       │   │   ├── EditStory.swift
│       │   │   ├── EditStoryCover.swift
│       │   │   ├── EditTextCompositionStyle.swift
│       │   │   ├── EditUserStarSubscription.swift
│       │   │   ├── EmailAddressAuthentication.swift
│       │   │   ├── EmailAddressAuthenticationCodeInfo.swift
│       │   │   ├── EmailAddressResetState.swift
│       │   │   ├── EmojiCategories.swift
│       │   │   ├── EmojiCategory.swift
│       │   │   ├── EmojiCategorySource.swift
│       │   │   ├── EmojiCategoryType.swift
│       │   │   ├── EmojiChatTheme.swift
│       │   │   ├── EmojiKeyword.swift
│       │   │   ├── EmojiKeywords.swift
│       │   │   ├── EmojiReaction.swift
│       │   │   ├── EmojiStatus.swift
│       │   │   ├── EmojiStatusCustomEmojis.swift
│       │   │   ├── EmojiStatusType.swift
│       │   │   ├── EmojiStatuses.swift
│       │   │   ├── Emojis.swift
│       │   │   ├── EnableProxy.swift
│       │   │   ├── EncryptGroupCallData.swift
│       │   │   ├── EncryptedCredentials.swift
│       │   │   ├── EncryptedPassportElement.swift
│       │   │   ├── EndGroupCall.swift
│       │   │   ├── EndGroupCallRecording.swift
│       │   │   ├── EndGroupCallScreenSharing.swift
│       │   │   ├── Error.swift
│       │   │   ├── FactCheck.swift
│       │   │   ├── FailedToAddMember.swift
│       │   │   ├── FailedToAddMembers.swift
│       │   │   ├── File.swift
│       │   │   ├── FileDownload.swift
│       │   │   ├── FileDownloadedPrefixSize.swift
│       │   │   ├── FilePart.swift
│       │   │   ├── FileType.swift
│       │   │   ├── FinishFileGeneration.swift
│       │   │   ├── FirebaseAuthenticationSettings.swift
│       │   │   ├── FirebaseDeviceVerificationParameters.swift
│       │   │   ├── FixTextWithAi.swift
│       │   │   ├── FixedText.swift
│       │   │   ├── FormattedText.swift
│       │   │   ├── ForumTopic.swift
│       │   │   ├── ForumTopicIcon.swift
│       │   │   ├── ForumTopicInfo.swift
│       │   │   ├── ForumTopics.swift
│       │   │   ├── ForwardMessages.swift
│       │   │   ├── ForwardSource.swift
│       │   │   ├── FoundAffiliateProgram.swift
│       │   │   ├── FoundAffiliatePrograms.swift
│       │   │   ├── FoundChatBoosts.swift
│       │   │   ├── FoundChatMessages.swift
│       │   │   ├── FoundFileDownloads.swift
│       │   │   ├── FoundMessages.swift
│       │   │   ├── FoundPosition.swift
│       │   │   ├── FoundPositions.swift
│       │   │   ├── FoundPublicPosts.swift
│       │   │   ├── FoundStories.swift
│       │   │   ├── FoundUsers.swift
│       │   │   ├── FoundWebApp.swift
│       │   │   ├── Game.swift
│       │   │   ├── GameHighScore.swift
│       │   │   ├── GameHighScores.swift
│       │   │   ├── GetAccountTtl.swift
│       │   │   ├── GetActiveLiveLocationMessages.swift
│       │   │   ├── GetActiveSessions.swift
│       │   │   ├── GetAllPassportElements.swift
│       │   │   ├── GetAllStickerEmojis.swift
│       │   │   ├── GetAnimatedEmoji.swift
│       │   │   ├── GetApplicationConfig.swift
│       │   │   ├── GetApplicationDownloadLink.swift
│       │   │   ├── GetArchiveChatListSettings.swift
│       │   │   ├── GetArchivedStickerSets.swift
│       │   │   ├── GetAttachedStickerSets.swift
│       │   │   ├── GetAttachmentMenuBot.swift
│       │   │   ├── GetAuthenticationPasskeyParameters.swift
│       │   │   ├── GetAuthorizationState.swift
│       │   │   ├── GetAutoDownloadSettingsPresets.swift
│       │   │   ├── GetAutosaveSettings.swift
│       │   │   ├── GetAvailableChatBoostSlots.swift
│       │   │   ├── GetAvailableGifts.swift
│       │   │   ├── GetBackgroundUrl.swift
│       │   │   ├── GetBankCardInfo.swift
│       │   │   ├── GetBasicGroup.swift
│       │   │   ├── GetBasicGroupFullInfo.swift
│       │   │   ├── GetBlockedMessageSenders.swift
│       │   │   ├── GetBotInfoDescription.swift
│       │   │   ├── GetBotInfoShortDescription.swift
│       │   │   ├── GetBotMediaPreviewInfo.swift
│       │   │   ├── GetBotMediaPreviews.swift
│       │   │   ├── GetBotName.swift
│       │   │   ├── GetBotSimilarBotCount.swift
│       │   │   ├── GetBotSimilarBots.swift
│       │   │   ├── GetBotToken.swift
│       │   │   ├── GetBusinessAccountStarAmount.swift
│       │   │   ├── GetBusinessChatLinkInfo.swift
│       │   │   ├── GetBusinessChatLinks.swift
│       │   │   ├── GetBusinessConnectedBot.swift
│       │   │   ├── GetBusinessConnection.swift
│       │   │   ├── GetBusinessFeatures.swift
│       │   │   ├── GetCallbackQueryAnswer.swift
│       │   │   ├── GetCallbackQueryMessage.swift
│       │   │   ├── GetChat.swift
│       │   │   ├── GetChatActiveStories.swift
│       │   │   ├── GetChatAdministrators.swift
│       │   │   ├── GetChatAffiliateProgram.swift
│       │   │   ├── GetChatAffiliatePrograms.swift
│       │   │   ├── GetChatArchivedStories.swift
│       │   │   ├── GetChatAvailableMessageSenders.swift
│       │   │   ├── GetChatAvailablePaidMessageReactionSenders.swift
│       │   │   ├── GetChatBoostFeatures.swift
│       │   │   ├── GetChatBoostLevelFeatures.swift
│       │   │   ├── GetChatBoostLink.swift
│       │   │   ├── GetChatBoostLinkInfo.swift
│       │   │   ├── GetChatBoostStatus.swift
│       │   │   ├── GetChatBoosts.swift
│       │   │   ├── GetChatEventLog.swift
│       │   │   ├── GetChatFolder.swift
│       │   │   ├── GetChatFolderChatCount.swift
│       │   │   ├── GetChatFolderChatsToLeave.swift
│       │   │   ├── GetChatFolderDefaultIconName.swift
│       │   │   ├── GetChatFolderInviteLinks.swift
│       │   │   ├── GetChatFolderNewChats.swift
│       │   │   ├── GetChatHistory.swift
│       │   │   ├── GetChatInviteLink.swift
│       │   │   ├── GetChatInviteLinkCounts.swift
│       │   │   ├── GetChatInviteLinkMembers.swift
│       │   │   ├── GetChatInviteLinks.swift
│       │   │   ├── GetChatJoinRequests.swift
│       │   │   ├── GetChatListsToAddChat.swift
│       │   │   ├── GetChatMember.swift
│       │   │   ├── GetChatMessageByDate.swift
│       │   │   ├── GetChatMessageCalendar.swift
│       │   │   ├── GetChatMessageCount.swift
│       │   │   ├── GetChatMessagePosition.swift
│       │   │   ├── GetChatNotificationSettingsExceptions.swift
│       │   │   ├── GetChatOwnerAfterLeaving.swift
│       │   │   ├── GetChatPinnedMessage.swift
│       │   │   ├── GetChatPostedToChatPageStories.swift
│       │   │   ├── GetChatRevenueStatistics.swift
│       │   │   ├── GetChatRevenueTransactions.swift
│       │   │   ├── GetChatRevenueWithdrawalUrl.swift
│       │   │   ├── GetChatScheduledMessages.swift
│       │   │   ├── GetChatSimilarChatCount.swift
│       │   │   ├── GetChatSimilarChats.swift
│       │   │   ├── GetChatSparseMessagePositions.swift
│       │   │   ├── GetChatSponsoredMessages.swift
│       │   │   ├── GetChatStatistics.swift
│       │   │   ├── GetChatStoryAlbums.swift
│       │   │   ├── GetChatStoryInteractions.swift
│       │   │   ├── GetChats.swift
│       │   │   ├── GetChatsForChatFolderInviteLink.swift
│       │   │   ├── GetChatsToPostStories.swift
│       │   │   ├── GetChatsToSendStories.swift
│       │   │   ├── GetCloseFriends.swift
│       │   │   ├── GetCollectibleItemInfo.swift
│       │   │   ├── GetCommands.swift
│       │   │   ├── GetConnectedAffiliateProgram.swift
│       │   │   ├── GetConnectedAffiliatePrograms.swift
│       │   │   ├── GetConnectedWebsites.swift
│       │   │   ├── GetContacts.swift
│       │   │   ├── GetCountries.swift
│       │   │   ├── GetCountryCode.swift
│       │   │   ├── GetCountryFlagEmoji.swift
│       │   │   ├── GetCreatedPublicChats.swift
│       │   │   ├── GetCurrentState.swift
│       │   │   ├── GetCurrentWeather.swift
│       │   │   ├── GetCustomEmojiReactionAnimations.swift
│       │   │   ├── GetCustomEmojiStickers.swift
│       │   │   ├── GetDatabaseStatistics.swift
│       │   │   ├── GetDeepLinkInfo.swift
│       │   │   ├── GetDefaultBackgroundCustomEmojiStickers.swift
│       │   │   ├── GetDefaultChatEmojiStatuses.swift
│       │   │   ├── GetDefaultChatPhotoCustomEmojiStickers.swift
│       │   │   ├── GetDefaultEmojiStatuses.swift
│       │   │   ├── GetDefaultMessageAutoDeleteTime.swift
│       │   │   ├── GetDefaultProfilePhotoCustomEmojiStickers.swift
│       │   │   ├── GetDirectMessagesChatTopic.swift
│       │   │   ├── GetDirectMessagesChatTopicHistory.swift
│       │   │   ├── GetDirectMessagesChatTopicMessageByDate.swift
│       │   │   ├── GetDirectMessagesChatTopicRevenue.swift
│       │   │   ├── GetDisallowedChatEmojiStatuses.swift
│       │   │   ├── GetEmojiCategories.swift
│       │   │   ├── GetEmojiReaction.swift
│       │   │   ├── GetEmojiSuggestionsUrl.swift
│       │   │   ├── GetExternalLink.swift
│       │   │   ├── GetExternalLinkInfo.swift
│       │   │   ├── GetFavoriteStickers.swift
│       │   │   ├── GetFile.swift
│       │   │   ├── GetFileDownloadedPrefixSize.swift
│       │   │   ├── GetFileExtension.swift
│       │   │   ├── GetFileMimeType.swift
│       │   │   ├── GetForumTopic.swift
│       │   │   ├── GetForumTopicDefaultIcons.swift
│       │   │   ├── GetForumTopicHistory.swift
│       │   │   ├── GetForumTopicLink.swift
│       │   │   ├── GetForumTopics.swift
│       │   │   ├── GetGameHighScores.swift
│       │   │   ├── GetGiftAuctionAcquiredGifts.swift
│       │   │   ├── GetGiftAuctionState.swift
│       │   │   ├── GetGiftChatThemes.swift
│       │   │   ├── GetGiftCollections.swift
│       │   │   ├── GetGiftUpgradePreview.swift
│       │   │   ├── GetGiftUpgradeVariants.swift
│       │   │   ├── GetGiftsForCrafting.swift
│       │   │   ├── GetGiveawayInfo.swift
│       │   │   ├── GetGreetingStickers.swift
│       │   │   ├── GetGrossingWebAppBots.swift
│       │   │   ├── GetGroupCall.swift
│       │   │   ├── GetGroupCallInviteLink.swift
│       │   │   ├── GetGroupCallParticipants.swift
│       │   │   ├── GetGroupCallStreamSegment.swift
│       │   │   ├── GetGroupCallStreams.swift
│       │   │   ├── GetGroupsInCommon.swift
│       │   │   ├── GetImportedContactCount.swift
│       │   │   ├── GetInactiveSupergroupChats.swift
│       │   │   ├── GetInlineGameHighScores.swift
│       │   │   ├── GetInlineQueryResults.swift
│       │   │   ├── GetInstalledBackgrounds.swift
│       │   │   ├── GetInstalledStickerSets.swift
│       │   │   ├── GetInternalLink.swift
│       │   │   ├── GetInternalLinkType.swift
│       │   │   ├── GetJsonString.swift
│       │   │   ├── GetJsonValue.swift
│       │   │   ├── GetKeywordEmojis.swift
│       │   │   ├── GetLanguagePackInfo.swift
│       │   │   ├── GetLanguagePackString.swift
│       │   │   ├── GetLanguagePackStrings.swift
│       │   │   ├── GetLinkPreview.swift
│       │   │   ├── GetLiveStoryAvailableMessageSenders.swift
│       │   │   ├── GetLiveStoryRtmpUrl.swift
│       │   │   ├── GetLiveStoryStreamer.swift
│       │   │   ├── GetLiveStoryTopDonors.swift
│       │   │   ├── GetLocalizationTargetInfo.swift
│       │   │   ├── GetLogStream.swift
│       │   │   ├── GetLogTagVerbosityLevel.swift
│       │   │   ├── GetLogTags.swift
│       │   │   ├── GetLogVerbosityLevel.swift
│       │   │   ├── GetLoginPasskeys.swift
│       │   │   ├── GetLoginUrl.swift
│       │   │   ├── GetLoginUrlInfo.swift
│       │   │   ├── GetMainWebApp.swift
│       │   │   ├── GetManagedBotAccessSettings.swift
│       │   │   ├── GetManagedBotToken.swift
│       │   │   ├── GetMapThumbnailFile.swift
│       │   │   ├── GetMarkdownText.swift
│       │   │   ├── GetMe.swift
│       │   │   ├── GetMenuButton.swift
│       │   │   ├── GetMessage.swift
│       │   │   ├── GetMessageAddedReactions.swift
│       │   │   ├── GetMessageAuthor.swift
│       │   │   ├── GetMessageAvailableReactions.swift
│       │   │   ├── GetMessageEffect.swift
│       │   │   ├── GetMessageEmbeddingCode.swift
│       │   │   ├── GetMessageFileType.swift
│       │   │   ├── GetMessageImportConfirmationText.swift
│       │   │   ├── GetMessageLink.swift
│       │   │   ├── GetMessageLinkInfo.swift
│       │   │   ├── GetMessageLocally.swift
│       │   │   ├── GetMessageProperties.swift
│       │   │   ├── GetMessagePublicForwards.swift
│       │   │   ├── GetMessageReadDate.swift
│       │   │   ├── GetMessageStatistics.swift
│       │   │   ├── GetMessageThread.swift
│       │   │   ├── GetMessageThreadHistory.swift
│       │   │   ├── GetMessageViewers.swift
│       │   │   ├── GetMessages.swift
│       │   │   ├── GetNetworkStatistics.swift
│       │   │   ├── GetNewChatPrivacySettings.swift
│       │   │   ├── GetOauthLinkInfo.swift
│       │   │   ├── GetOption.swift
│       │   │   ├── GetOwnedBots.swift
│       │   │   ├── GetOwnedStickerSets.swift
│       │   │   ├── GetPaidMessageRevenue.swift
│       │   │   ├── GetPasskeyParameters.swift
│       │   │   ├── GetPassportAuthorizationForm.swift
│       │   │   ├── GetPassportAuthorizationFormAvailableElements.swift
│       │   │   ├── GetPassportElement.swift
│       │   │   ├── GetPasswordState.swift
│       │   │   ├── GetPaymentForm.swift
│       │   │   ├── GetPaymentReceipt.swift
│       │   │   ├── GetPersonalChatHistory.swift
│       │   │   ├── GetPhoneNumberInfo.swift
│       │   │   ├── GetPhoneNumberInfoSync.swift
│       │   │   ├── GetPollOptionProperties.swift
│       │   │   ├── GetPollVoteStatistics.swift
│       │   │   ├── GetPollVoters.swift
│       │   │   ├── GetPopularWebAppBots.swift
│       │   │   ├── GetPreferredCountryLanguage.swift
│       │   │   ├── GetPremiumFeatures.swift
│       │   │   ├── GetPremiumGiftCodePaymentOptions.swift
│       │   │   ├── GetPremiumGiftPaymentOptions.swift
│       │   │   ├── GetPremiumGiveawayInfo.swift
│       │   │   ├── GetPremiumGiveawayPaymentOptions.swift
│       │   │   ├── GetPremiumInfoSticker.swift
│       │   │   ├── GetPremiumLimit.swift
│       │   │   ├── GetPremiumState.swift
│       │   │   ├── GetPremiumStickerExamples.swift
│       │   │   ├── GetPremiumStickers.swift
│       │   │   ├── GetPreparedInlineMessage.swift
│       │   │   ├── GetPreparedKeyboardButton.swift
│       │   │   ├── GetProxies.swift
│       │   │   ├── GetProxyLink.swift
│       │   │   ├── GetPublicPostSearchLimits.swift
│       │   │   ├── GetPushReceiverId.swift
│       │   │   ├── GetReadDatePrivacySettings.swift
│       │   │   ├── GetReceivedGift.swift
│       │   │   ├── GetReceivedGifts.swift
│       │   │   ├── GetRecentEmojiStatuses.swift
│       │   │   ├── GetRecentInlineBots.swift
│       │   │   ├── GetRecentStickers.swift
│       │   │   ├── GetRecentlyOpenedChats.swift
│       │   │   ├── GetRecentlyVisitedTMeUrls.swift
│       │   │   ├── GetRecommendedChatFolders.swift
│       │   │   ├── GetRecommendedChats.swift
│       │   │   ├── GetRecoveryEmailAddress.swift
│       │   │   ├── GetRemoteFile.swift
│       │   │   ├── GetRepliedMessage.swift
│       │   │   ├── GetSavedAnimations.swift
│       │   │   ├── GetSavedMessagesTags.swift
│       │   │   ├── GetSavedMessagesTopicHistory.swift
│       │   │   ├── GetSavedMessagesTopicMessageByDate.swift
│       │   │   ├── GetSavedNotificationSound.swift
│       │   │   ├── GetSavedNotificationSounds.swift
│       │   │   ├── GetSavedOrderInfo.swift
│       │   │   ├── GetScopeNotificationSettings.swift
│       │   │   ├── GetSearchSponsoredChats.swift
│       │   │   ├── GetSearchedForHashtags.swift
│       │   │   ├── GetSearchedForTags.swift
│       │   │   ├── GetSecretChat.swift
│       │   │   ├── GetStakeDiceState.swift
│       │   │   ├── GetStarAdAccountUrl.swift
│       │   │   ├── GetStarGiftPaymentOptions.swift
│       │   │   ├── GetStarGiveawayPaymentOptions.swift
│       │   │   ├── GetStarPaymentOptions.swift
│       │   │   ├── GetStarRevenueStatistics.swift
│       │   │   ├── GetStarSubscriptions.swift
│       │   │   ├── GetStarTransactions.swift
│       │   │   ├── GetStarWithdrawalUrl.swift
│       │   │   ├── GetStatisticalGraph.swift
│       │   │   ├── GetStickerEmojis.swift
│       │   │   ├── GetStickerOutline.swift
│       │   │   ├── GetStickerOutlineSvgPath.swift
│       │   │   ├── GetStickerSet.swift
│       │   │   ├── GetStickerSetName.swift
│       │   │   ├── GetStickers.swift
│       │   │   ├── GetStorageStatistics.swift
│       │   │   ├── GetStorageStatisticsFast.swift
│       │   │   ├── GetStory.swift
│       │   │   ├── GetStoryAlbumStories.swift
│       │   │   ├── GetStoryAvailableReactions.swift
│       │   │   ├── GetStoryInteractions.swift
│       │   │   ├── GetStoryNotificationSettingsExceptions.swift
│       │   │   ├── GetStoryPublicForwards.swift
│       │   │   ├── GetStoryStatistics.swift
│       │   │   ├── GetSuggestedFileName.swift
│       │   │   ├── GetSuggestedStickerSetName.swift
│       │   │   ├── GetSuitableDiscussionChats.swift
│       │   │   ├── GetSuitablePersonalChats.swift
│       │   │   ├── GetSupergroup.swift
│       │   │   ├── GetSupergroupFullInfo.swift
│       │   │   ├── GetSupergroupMembers.swift
│       │   │   ├── GetSupportName.swift
│       │   │   ├── GetSupportUser.swift
│       │   │   ├── GetTemporaryPasswordState.swift
│       │   │   ├── GetTextCompositionStyleExample.swift
│       │   │   ├── GetTextEntities.swift
│       │   │   ├── GetThemeParametersJsonString.swift
│       │   │   ├── GetThemedChatEmojiStatuses.swift
│       │   │   ├── GetThemedEmojiStatuses.swift
│       │   │   ├── GetTimeZones.swift
│       │   │   ├── GetTonRevenueStatistics.swift
│       │   │   ├── GetTonTransactions.swift
│       │   │   ├── GetTonWithdrawalUrl.swift
│       │   │   ├── GetTopChats.swift
│       │   │   ├── GetTrendingStickerSets.swift
│       │   │   ├── GetUpgradedGift.swift
│       │   │   ├── GetUpgradedGiftEmojiStatuses.swift
│       │   │   ├── GetUpgradedGiftValueInfo.swift
│       │   │   ├── GetUpgradedGiftVariants.swift
│       │   │   ├── GetUpgradedGiftWithdrawalUrl.swift
│       │   │   ├── GetUpgradedGiftsPromotionalAnimation.swift
│       │   │   ├── GetUser.swift
│       │   │   ├── GetUserChatBoosts.swift
│       │   │   ├── GetUserFullInfo.swift
│       │   │   ├── GetUserGift.swift
│       │   │   ├── GetUserGifts.swift
│       │   │   ├── GetUserLink.swift
│       │   │   ├── GetUserPrivacySettingRules.swift
│       │   │   ├── GetUserProfileAudios.swift
│       │   │   ├── GetUserProfilePhotos.swift
│       │   │   ├── GetUserSupportInfo.swift
│       │   │   ├── GetVideoChatAvailableParticipants.swift
│       │   │   ├── GetVideoChatInviteLink.swift
│       │   │   ├── GetVideoChatRtmpUrl.swift
│       │   │   ├── GetVideoChatStreamSegment.swift
│       │   │   ├── GetVideoChatStreams.swift
│       │   │   ├── GetVideoMessageAdvertisements.swift
│       │   │   ├── GetWebAppLinkUrl.swift
│       │   │   ├── GetWebAppPlaceholder.swift
│       │   │   ├── GetWebAppUrl.swift
│       │   │   ├── GetWebPageInstantView.swift
│       │   │   ├── GetWebPagePreview.swift
│       │   │   ├── Gift.swift
│       │   │   ├── GiftAuction.swift
│       │   │   ├── GiftAuctionAcquiredGift.swift
│       │   │   ├── GiftAuctionAcquiredGifts.swift
│       │   │   ├── GiftAuctionState.swift
│       │   │   ├── GiftBackground.swift
│       │   │   ├── GiftChatTheme.swift
│       │   │   ├── GiftChatThemes.swift
│       │   │   ├── GiftCollection.swift
│       │   │   ├── GiftCollections.swift
│       │   │   ├── GiftForResale.swift
│       │   │   ├── GiftForResaleOrder.swift
│       │   │   ├── GiftPremiumWithStars.swift
│       │   │   ├── GiftPurchaseLimits.swift
│       │   │   ├── GiftPurchaseOfferState.swift
│       │   │   ├── GiftResaleParameters.swift
│       │   │   ├── GiftResalePrice.swift
│       │   │   ├── GiftResaleResult.swift
│       │   │   ├── GiftSettings.swift
│       │   │   ├── GiftUpgradePreview.swift
│       │   │   ├── GiftUpgradePrice.swift
│       │   │   ├── GiftUpgradeVariants.swift
│       │   │   ├── Gifts.swift
│       │   │   ├── GiftsForCrafting.swift
│       │   │   ├── GiftsForResale.swift
│       │   │   ├── GiveawayInfo.swift
│       │   │   ├── GiveawayParameters.swift
│       │   │   ├── GiveawayParticipantStatus.swift
│       │   │   ├── GiveawayPrize.swift
│       │   │   ├── GroupCall.swift
│       │   │   ├── GroupCallDataChannel.swift
│       │   │   ├── GroupCallId.swift
│       │   │   ├── GroupCallInfo.swift
│       │   │   ├── GroupCallJoinParameters.swift
│       │   │   ├── GroupCallMessage.swift
│       │   │   ├── GroupCallMessageLevel.swift
│       │   │   ├── GroupCallParticipant.swift
│       │   │   ├── GroupCallParticipantVideoInfo.swift
│       │   │   ├── GroupCallParticipants.swift
│       │   │   ├── GroupCallRecentSpeaker.swift
│       │   │   ├── GroupCallStream.swift
│       │   │   ├── GroupCallStreams.swift
│       │   │   ├── GroupCallVideoQuality.swift
│       │   │   ├── GroupCallVideoSourceGroup.swift
│       │   │   ├── Hashtags.swift
│       │   │   ├── HideContactCloseBirthdays.swift
│       │   │   ├── HideSuggestedAction.swift
│       │   │   ├── HttpUrl.swift
│       │   │   ├── IdentityDocument.swift
│       │   │   ├── ImportContacts.swift
│       │   │   ├── ImportMessages.swift
│       │   │   ├── ImportedContact.swift
│       │   │   ├── ImportedContacts.swift
│       │   │   ├── IncreaseGiftAuctionBid.swift
│       │   │   ├── InlineKeyboardButton.swift
│       │   │   ├── InlineKeyboardButtonType.swift
│       │   │   ├── InlineMessageId.swift
│       │   │   ├── InlineQueryResult.swift
│       │   │   ├── InlineQueryResults.swift
│       │   │   ├── InlineQueryResultsButton.swift
│       │   │   ├── InlineQueryResultsButtonType.swift
│       │   │   ├── InputBackground.swift
│       │   │   ├── InputBusinessChatLink.swift
│       │   │   ├── InputBusinessStartPage.swift
│       │   │   ├── InputCall.swift
│       │   │   ├── InputChatPhoto.swift
│       │   │   ├── InputChatTheme.swift
│       │   │   ├── InputChecklist.swift
│       │   │   ├── InputChecklistTask.swift
│       │   │   ├── InputCredentials.swift
│       │   │   ├── InputFile.swift
│       │   │   ├── InputGroupCall.swift
│       │   │   ├── InputIdentityDocument.swift
│       │   │   ├── InputInlineQueryResult.swift
│       │   │   ├── InputInvoice.swift
│       │   │   ├── InputMessageContent.swift
│       │   │   ├── InputMessageReplyTo.swift
│       │   │   ├── InputPaidMedia.swift
│       │   │   ├── InputPaidMediaType.swift
│       │   │   ├── InputPassportElement.swift
│       │   │   ├── InputPassportElementError.swift
│       │   │   ├── InputPassportElementErrorSource.swift
│       │   │   ├── InputPersonalDocument.swift
│       │   │   ├── InputPollOption.swift
│       │   │   ├── InputPollType.swift
│       │   │   ├── InputSticker.swift
│       │   │   ├── InputStoryArea.swift
│       │   │   ├── InputStoryAreaType.swift
│       │   │   ├── InputStoryAreas.swift
│       │   │   ├── InputStoryContent.swift
│       │   │   ├── InputSuggestedPostInfo.swift
│       │   │   ├── InputTextQuote.swift
│       │   │   ├── InputThumbnail.swift
│       │   │   ├── InternalLinkType.swift
│       │   │   ├── InviteGroupCallParticipant.swift
│       │   │   ├── InviteGroupCallParticipantResult.swift
│       │   │   ├── InviteGroupCallParticipants.swift
│       │   │   ├── InviteLinkChatType.swift
│       │   │   ├── InviteVideoChatParticipants.swift
│       │   │   ├── Invoice.swift
│       │   │   ├── IsLoginEmailAddressRequired.swift
│       │   │   ├── IsProfileAudio.swift
│       │   │   ├── JoinChat.swift
│       │   │   ├── JoinChatByInviteLink.swift
│       │   │   ├── JoinGroupCall.swift
│       │   │   ├── JoinLiveStory.swift
│       │   │   ├── JoinVideoChat.swift
│       │   │   ├── JsonObjectMember.swift
│       │   │   ├── JsonValue.swift
│       │   │   ├── KeyboardButton.swift
│       │   │   ├── KeyboardButtonSource.swift
│       │   │   ├── KeyboardButtonType.swift
│       │   │   ├── LabeledPricePart.swift
│       │   │   ├── LanguagePackInfo.swift
│       │   │   ├── LanguagePackString.swift
│       │   │   ├── LanguagePackStringValue.swift
│       │   │   ├── LanguagePackStrings.swift
│       │   │   ├── LaunchPrepaidGiveaway.swift
│       │   │   ├── LaunchPrepaidPremiumGiveaway.swift
│       │   │   ├── LeaveChat.swift
│       │   │   ├── LeaveGroupCall.swift
│       │   │   ├── LinkPreview.swift
│       │   │   ├── LinkPreviewAlbumMedia.swift
│       │   │   ├── LinkPreviewOptions.swift
│       │   │   ├── LinkPreviewType.swift
│       │   │   ├── ListenToAudio.swift
│       │   │   ├── LiveStoryDonors.swift
│       │   │   ├── LoadActiveStories.swift
│       │   │   ├── LoadChats.swift
│       │   │   ├── LoadDirectMessagesChatTopics.swift
│       │   │   ├── LoadGroupCallParticipants.swift
│       │   │   ├── LoadQuickReplyShortcutMessages.swift
│       │   │   ├── LoadQuickReplyShortcuts.swift
│       │   │   ├── LoadSavedMessagesTopics.swift
│       │   │   ├── LocalFile.swift
│       │   │   ├── LocalizationTargetInfo.swift
│       │   │   ├── Location.swift
│       │   │   ├── LocationAddress.swift
│       │   │   ├── LogOut.swift
│       │   │   ├── LogStream.swift
│       │   │   ├── LogTags.swift
│       │   │   ├── LogVerbosityLevel.swift
│       │   │   ├── LoginUrlInfo.swift
│       │   │   ├── MainWebApp.swift
│       │   │   ├── MarkChecklistTasksAsDone.swift
│       │   │   ├── MaskPoint.swift
│       │   │   ├── MaskPosition.swift
│       │   │   ├── Message.swift
│       │   │   ├── MessageAutoDeleteTime.swift
│       │   │   ├── MessageCalendar.swift
│       │   │   ├── MessageCalendarDay.swift
│       │   │   ├── MessageContent.swift
│       │   │   ├── MessageCopyOptions.swift
│       │   │   ├── MessageEffect.swift
│       │   │   ├── MessageEffectType.swift
│       │   │   ├── MessageExtendedMedia.swift
│       │   │   ├── MessageFileType.swift
│       │   │   ├── MessageForwardInfo.swift
│       │   │   ├── MessageImportInfo.swift
│       │   │   ├── MessageInteractionInfo.swift
│       │   │   ├── MessageLink.swift
│       │   │   ├── MessageLinkInfo.swift
│       │   │   ├── MessageOrigin.swift
│       │   │   ├── MessagePosition.swift
│       │   │   ├── MessagePositions.swift
│       │   │   ├── MessageProperties.swift
│       │   │   ├── MessageReaction.swift
│       │   │   ├── MessageReactions.swift
│       │   │   ├── MessageReadDate.swift
│       │   │   ├── MessageReplyInfo.swift
│       │   │   ├── MessageReplyTo.swift
│       │   │   ├── MessageSchedulingState.swift
│       │   │   ├── MessageSelfDestructType.swift
│       │   │   ├── MessageSendOptions.swift
│       │   │   ├── MessageSender.swift
│       │   │   ├── MessageSenders.swift
│       │   │   ├── MessageSendingState.swift
│       │   │   ├── MessageSource.swift
│       │   │   ├── MessageSponsor.swift
│       │   │   ├── MessageStatistics.swift
│       │   │   ├── MessageThreadInfo.swift
│       │   │   ├── MessageTopic.swift
│       │   │   ├── MessageViewer.swift
│       │   │   ├── MessageViewers.swift
│       │   │   ├── Messages.swift
│       │   │   ├── Minithumbnail.swift
│       │   │   ├── NetworkStatistics.swift
│       │   │   ├── NetworkStatisticsEntry.swift
│       │   │   ├── NetworkType.swift
│       │   │   ├── NewChatPrivacySettings.swift
│       │   │   ├── Notification.swift
│       │   │   ├── NotificationGroup.swift
│       │   │   ├── NotificationGroupType.swift
│       │   │   ├── NotificationSettingsScope.swift
│       │   │   ├── NotificationSound.swift
│       │   │   ├── NotificationSounds.swift
│       │   │   ├── NotificationType.swift
│       │   │   ├── OauthLinkInfo.swift
│       │   │   ├── Ok.swift
│       │   │   ├── OpenBotSimilarBot.swift
│       │   │   ├── OpenChat.swift
│       │   │   ├── OpenChatSimilarChat.swift
│       │   │   ├── OpenGiftAuction.swift
│       │   │   ├── OpenMessageContent.swift
│       │   │   ├── OpenSponsoredChat.swift
│       │   │   ├── OpenStory.swift
│       │   │   ├── OpenWebApp.swift
│       │   │   ├── OptimizeStorage.swift
│       │   │   ├── OptionValue.swift
│       │   │   ├── OrderInfo.swift
│       │   │   ├── Outline.swift
│       │   │   ├── PageBlock.swift
│       │   │   ├── PageBlockCaption.swift
│       │   │   ├── PageBlockHorizontalAlignment.swift
│       │   │   ├── PageBlockListItem.swift
│       │   │   ├── PageBlockRelatedArticle.swift
│       │   │   ├── PageBlockTableCell.swift
│       │   │   ├── PageBlockVerticalAlignment.swift
│       │   │   ├── PaidMedia.swift
│       │   │   ├── PaidReactionType.swift
│       │   │   ├── PaidReactor.swift
│       │   │   ├── ParseMarkdown.swift
│       │   │   ├── ParseTextEntities.swift
│       │   │   ├── Passkey.swift
│       │   │   ├── Passkeys.swift
│       │   │   ├── PassportAuthorizationForm.swift
│       │   │   ├── PassportElement.swift
│       │   │   ├── PassportElementError.swift
│       │   │   ├── PassportElementErrorSource.swift
│       │   │   ├── PassportElementType.swift
│       │   │   ├── PassportElements.swift
│       │   │   ├── PassportElementsWithErrors.swift
│       │   │   ├── PassportRequiredElement.swift
│       │   │   ├── PassportSuitableElement.swift
│       │   │   ├── PasswordState.swift
│       │   │   ├── PaymentForm.swift
│       │   │   ├── PaymentFormType.swift
│       │   │   ├── PaymentOption.swift
│       │   │   ├── PaymentProvider.swift
│       │   │   ├── PaymentReceipt.swift
│       │   │   ├── PaymentReceiptType.swift
│       │   │   ├── PaymentResult.swift
│       │   │   ├── PersonalDetails.swift
│       │   │   ├── PersonalDocument.swift
│       │   │   ├── PhoneNumberAuthenticationSettings.swift
│       │   │   ├── PhoneNumberCodeType.swift
│       │   │   ├── PhoneNumberInfo.swift
│       │   │   ├── Photo.swift
│       │   │   ├── PhotoSize.swift
│       │   │   ├── PinChatMessage.swift
│       │   │   ├── PingProxy.swift
│       │   │   ├── PlaceGiftAuctionBid.swift
│       │   │   ├── Point.swift
│       │   │   ├── Poll.swift
│       │   │   ├── PollOption.swift
│       │   │   ├── PollOptionProperties.swift
│       │   │   ├── PollType.swift
│       │   │   ├── PollVoteRestrictionReason.swift
│       │   │   ├── PollVoteStatistics.swift
│       │   │   ├── PollVoter.swift
│       │   │   ├── PollVoters.swift
│       │   │   ├── PostStory.swift
│       │   │   ├── PreliminaryUploadFile.swift
│       │   │   ├── PremiumFeature.swift
│       │   │   ├── PremiumFeaturePromotionAnimation.swift
│       │   │   ├── PremiumFeatures.swift
│       │   │   ├── PremiumGiftCodeInfo.swift
│       │   │   ├── PremiumGiftCodePaymentOption.swift
│       │   │   ├── PremiumGiftCodePaymentOptions.swift
│       │   │   ├── PremiumGiftPaymentOption.swift
│       │   │   ├── PremiumGiftPaymentOptions.swift
│       │   │   ├── PremiumGiveawayInfo.swift
│       │   │   ├── PremiumGiveawayParameters.swift
│       │   │   ├── PremiumGiveawayParticipantStatus.swift
│       │   │   ├── PremiumGiveawayPaymentOption.swift
│       │   │   ├── PremiumGiveawayPaymentOptions.swift
│       │   │   ├── PremiumLimit.swift
│       │   │   ├── PremiumLimitType.swift
│       │   │   ├── PremiumPaymentOption.swift
│       │   │   ├── PremiumSource.swift
│       │   │   ├── PremiumState.swift
│       │   │   ├── PremiumStatePaymentOption.swift
│       │   │   ├── PremiumStoryFeature.swift
│       │   │   ├── PrepaidGiveaway.swift
│       │   │   ├── PrepaidPremiumGiveaway.swift
│       │   │   ├── PreparedInlineMessage.swift
│       │   │   ├── PreparedInlineMessageId.swift
│       │   │   ├── ProcessChatFolderNewChats.swift
│       │   │   ├── ProcessChatHasProtectedContentDisableRequest.swift
│       │   │   ├── ProcessChatJoinRequest.swift
│       │   │   ├── ProcessChatJoinRequests.swift
│       │   │   ├── ProcessGiftPurchaseOffer.swift
│       │   │   ├── ProcessPushNotification.swift
│       │   │   ├── ProductInfo.swift
│       │   │   ├── ProfileAccentColor.swift
│       │   │   ├── ProfileAccentColors.swift
│       │   │   ├── ProfilePhoto.swift
│       │   │   ├── ProfileTab.swift
│       │   │   ├── Proxies.swift
│       │   │   ├── Proxy.swift
│       │   │   ├── ProxyType.swift
│       │   │   ├── PublicChatType.swift
│       │   │   ├── PublicForward.swift
│       │   │   ├── PublicForwards.swift
│       │   │   ├── PublicPostSearchLimits.swift
│       │   │   ├── PushMessageContent.swift
│       │   │   ├── PushReceiverId.swift
│       │   │   ├── QuickReplyMessage.swift
│       │   │   ├── QuickReplyMessages.swift
│       │   │   ├── QuickReplyShortcut.swift
│       │   │   ├── RateSpeechRecognition.swift
│       │   │   ├── ReactionNotificationSettings.swift
│       │   │   ├── ReactionNotificationSource.swift
│       │   │   ├── ReactionType.swift
│       │   │   ├── ReactionUnavailabilityReason.swift
│       │   │   ├── ReadAllChatMentions.swift
│       │   │   ├── ReadAllChatPollVotes.swift
│       │   │   ├── ReadAllChatReactions.swift
│       │   │   ├── ReadAllDirectMessagesChatTopicReactions.swift
│       │   │   ├── ReadAllForumTopicMentions.swift
│       │   │   ├── ReadAllForumTopicPollVotes.swift
│       │   │   ├── ReadAllForumTopicReactions.swift
│       │   │   ├── ReadAllMessageThreadMentions.swift
│       │   │   ├── ReadAllMessageThreadReactions.swift
│       │   │   ├── ReadBusinessMessage.swift
│       │   │   ├── ReadChatList.swift
│       │   │   ├── ReadDatePrivacySettings.swift
│       │   │   ├── ReadFilePart.swift
│       │   │   ├── ReaddQuickReplyShortcutMessages.swift
│       │   │   ├── ReceivedGift.swift
│       │   │   ├── ReceivedGifts.swift
│       │   │   ├── RecognizeSpeech.swift
│       │   │   ├── RecommendedChatFolder.swift
│       │   │   ├── RecommendedChatFolders.swift
│       │   │   ├── RecoverAuthenticationPassword.swift
│       │   │   ├── RecoverPassword.swift
│       │   │   ├── RecoveryEmailAddress.swift
│       │   │   ├── RefundStarPayment.swift
│       │   │   ├── RegisterDevice.swift
│       │   │   ├── RegisterUser.swift
│       │   │   ├── RemoteFile.swift
│       │   │   ├── RemoveAllFilesFromDownloads.swift
│       │   │   ├── RemoveBusinessConnectedBotFromChat.swift
│       │   │   ├── RemoveChatActionBar.swift
│       │   │   ├── RemoveContacts.swift
│       │   │   ├── RemoveFavoriteSticker.swift
│       │   │   ├── RemoveFileFromDownloads.swift
│       │   │   ├── RemoveGiftCollectionGifts.swift
│       │   │   ├── RemoveInstalledBackground.swift
│       │   │   ├── RemoveLoginPasskey.swift
│       │   │   ├── RemoveMessageReaction.swift
│       │   │   ├── RemoveMessageSenderBotVerification.swift
│       │   │   ├── RemoveNotification.swift
│       │   │   ├── RemoveNotificationGroup.swift
│       │   │   ├── RemovePendingLiveStoryReactions.swift
│       │   │   ├── RemovePendingPaidMessageReactions.swift
│       │   │   ├── RemoveProfileAudio.swift
│       │   │   ├── RemoveProxy.swift
│       │   │   ├── RemoveRecentHashtag.swift
│       │   │   ├── RemoveRecentSticker.swift
│       │   │   ├── RemoveRecentlyFoundChat.swift
│       │   │   ├── RemoveSavedAnimation.swift
│       │   │   ├── RemoveSavedNotificationSound.swift
│       │   │   ├── RemoveSearchedForHashtag.swift
│       │   │   ├── RemoveSearchedForTag.swift
│       │   │   ├── RemoveStickerFromSet.swift
│       │   │   ├── RemoveStoryAlbumStories.swift
│       │   │   ├── RemoveTextCompositionStyle.swift
│       │   │   ├── RemoveTopChat.swift
│       │   │   ├── ReorderActiveUsernames.swift
│       │   │   ├── ReorderBotActiveUsernames.swift
│       │   │   ├── ReorderBotMediaPreviews.swift
│       │   │   ├── ReorderChatFolders.swift
│       │   │   ├── ReorderGiftCollectionGifts.swift
│       │   │   ├── ReorderGiftCollections.swift
│       │   │   ├── ReorderInstalledStickerSets.swift
│       │   │   ├── ReorderQuickReplyShortcuts.swift
│       │   │   ├── ReorderStoryAlbumStories.swift
│       │   │   ├── ReorderStoryAlbums.swift
│       │   │   ├── ReorderSupergroupActiveUsernames.swift
│       │   │   ├── ReplaceLiveStoryRtmpUrl.swift
│       │   │   ├── ReplacePrimaryChatInviteLink.swift
│       │   │   ├── ReplaceStickerInSet.swift
│       │   │   ├── ReplaceVideoChatRtmpUrl.swift
│       │   │   ├── ReplyMarkup.swift
│       │   │   ├── ReportAuthenticationCodeMissing.swift
│       │   │   ├── ReportChat.swift
│       │   │   ├── ReportChatPhoto.swift
│       │   │   ├── ReportChatResult.swift
│       │   │   ├── ReportChatSponsoredMessage.swift
│       │   │   ├── ReportChatSponsoredMessageOption.swift
│       │   │   ├── ReportChatSponsoredMessageResult.swift
│       │   │   ├── ReportMessageReactions.swift
│       │   │   ├── ReportOption.swift
│       │   │   ├── ReportPhoneNumberCodeMissing.swift
│       │   │   ├── ReportReason.swift
│       │   │   ├── ReportSponsoredChat.swift
│       │   │   ├── ReportSponsoredResult.swift
│       │   │   ├── ReportStory.swift
│       │   │   ├── ReportStoryResult.swift
│       │   │   ├── ReportSupergroupAntiSpamFalsePositive.swift
│       │   │   ├── ReportSupergroupSpam.swift
│       │   │   ├── ReportVideoMessageAdvertisement.swift
│       │   │   ├── RequestAuthenticationPasswordRecovery.swift
│       │   │   ├── RequestPasswordRecovery.swift
│       │   │   ├── RequestQrCodeAuthentication.swift
│       │   │   ├── ResendAuthenticationCode.swift
│       │   │   ├── ResendCodeReason.swift
│       │   │   ├── ResendEmailAddressVerificationCode.swift
│       │   │   ├── ResendLoginEmailAddressCode.swift
│       │   │   ├── ResendMessages.swift
│       │   │   ├── ResendPhoneNumberCode.swift
│       │   │   ├── ResendRecoveryEmailAddressCode.swift
│       │   │   ├── ResetAllNotificationSettings.swift
│       │   │   ├── ResetAuthenticationEmailAddress.swift
│       │   │   ├── ResetInstalledBackgrounds.swift
│       │   │   ├── ResetNetworkStatistics.swift
│       │   │   ├── ResetPassword.swift
│       │   │   ├── ResetPasswordResult.swift
│       │   │   ├── RestrictionInfo.swift
│       │   │   ├── ReuseStarSubscription.swift
│       │   │   ├── RevenueWithdrawalState.swift
│       │   │   ├── RevokeChatInviteLink.swift
│       │   │   ├── RevokeGroupCallInviteLink.swift
│       │   │   ├── RichText.swift
│       │   │   ├── RtmpUrl.swift
│       │   │   ├── SaveApplicationLogEvent.swift
│       │   │   ├── SavePreparedInlineMessage.swift
│       │   │   ├── SavePreparedKeyboardButton.swift
│       │   │   ├── SavedCredentials.swift
│       │   │   ├── SavedMessagesTag.swift
│       │   │   ├── SavedMessagesTags.swift
│       │   │   ├── SavedMessagesTopic.swift
│       │   │   ├── SavedMessagesTopicType.swift
│       │   │   ├── ScopeAutosaveSettings.swift
│       │   │   ├── ScopeNotificationSettings.swift
│       │   │   ├── SearchAffiliatePrograms.swift
│       │   │   ├── SearchBackground.swift
│       │   │   ├── SearchCallMessages.swift
│       │   │   ├── SearchChatAffiliateProgram.swift
│       │   │   ├── SearchChatMembers.swift
│       │   │   ├── SearchChatMessages.swift
│       │   │   ├── SearchChatRecentLocationMessages.swift
│       │   │   ├── SearchChats.swift
│       │   │   ├── SearchChatsNearby.swift
│       │   │   ├── SearchChatsOnServer.swift
│       │   │   ├── SearchContacts.swift
│       │   │   ├── SearchEmojis.swift
│       │   │   ├── SearchFileDownloads.swift
│       │   │   ├── SearchGiftsForResale.swift
│       │   │   ├── SearchHashtags.swift
│       │   │   ├── SearchInstalledStickerSets.swift
│       │   │   ├── SearchMessages.swift
│       │   │   ├── SearchMessagesChatTypeFilter.swift
│       │   │   ├── SearchMessagesFilter.swift
│       │   │   ├── SearchOutgoingDocumentMessages.swift
│       │   │   ├── SearchPublicChat.swift
│       │   │   ├── SearchPublicChats.swift
│       │   │   ├── SearchPublicHashtagMessages.swift
│       │   │   ├── SearchPublicMessagesByTag.swift
│       │   │   ├── SearchPublicPosts.swift
│       │   │   ├── SearchPublicStoriesByLocation.swift
│       │   │   ├── SearchPublicStoriesByTag.swift
│       │   │   ├── SearchPublicStoriesByVenue.swift
│       │   │   ├── SearchQuote.swift
│       │   │   ├── SearchRecentlyFoundChats.swift
│       │   │   ├── SearchSavedMessages.swift
│       │   │   ├── SearchSecretMessages.swift
│       │   │   ├── SearchStickerSet.swift
│       │   │   ├── SearchStickerSets.swift
│       │   │   ├── SearchStickers.swift
│       │   │   ├── SearchStringsByPrefix.swift
│       │   │   ├── SearchTextCompositionStyle.swift
│       │   │   ├── SearchUserByPhoneNumber.swift
│       │   │   ├── SearchUserByToken.swift
│       │   │   ├── SearchWebApp.swift
│       │   │   ├── Seconds.swift
│       │   │   ├── SecretChat.swift
│       │   │   ├── SecretChatState.swift
│       │   │   ├── SellGift.swift
│       │   │   ├── SendAuthenticationFirebaseSms.swift
│       │   │   ├── SendBotStartMessage.swift
│       │   │   ├── SendBusinessMessage.swift
│       │   │   ├── SendBusinessMessageAlbum.swift
│       │   │   ├── SendCallDebugInformation.swift
│       │   │   ├── SendCallLog.swift
│       │   │   ├── SendCallRating.swift
│       │   │   ├── SendCallSignalingData.swift
│       │   │   ├── SendChatAction.swift
│       │   │   ├── SendCustomRequest.swift
│       │   │   ├── SendEmailAddressVerificationCode.swift
│       │   │   ├── SendGift.swift
│       │   │   ├── SendGiftPurchaseOffer.swift
│       │   │   ├── SendGroupCallMessage.swift
│       │   │   ├── SendInlineQueryResultMessage.swift
│       │   │   ├── SendMessage.swift
│       │   │   ├── SendMessageAlbum.swift
│       │   │   ├── SendMessageViewMetrics.swift
│       │   │   ├── SendPassportAuthorizationForm.swift
│       │   │   ├── SendPaymentForm.swift
│       │   │   ├── SendPhoneNumberCode.swift
│       │   │   ├── SendPhoneNumberFirebaseSms.swift
│       │   │   ├── SendQuickReplyShortcutMessages.swift
│       │   │   ├── SendResoldGift.swift
│       │   │   ├── SendStory.swift
│       │   │   ├── SendTextMessageDraft.swift
│       │   │   ├── SendWebAppCustomRequest.swift
│       │   │   ├── SendWebAppData.swift
│       │   │   ├── SentGift.swift
│       │   │   ├── SentWebAppMessage.swift
│       │   │   ├── Session.swift
│       │   │   ├── SessionType.swift
│       │   │   ├── Sessions.swift
│       │   │   ├── SetAccentColor.swift
│       │   │   ├── SetAccountTtl.swift
│       │   │   ├── SetAlarm.swift
│       │   │   ├── SetApplicationVerificationToken.swift
│       │   │   ├── SetArchiveChatListSettings.swift
│       │   │   ├── SetAuthenticationEmailAddress.swift
│       │   │   ├── SetAuthenticationPhoneNumber.swift
│       │   │   ├── SetAuthenticationPremiumPurchaseTransaction.swift
│       │   │   ├── SetAutoDownloadSettings.swift
│       │   │   ├── SetAutosaveSettings.swift
│       │   │   ├── SetBio.swift
│       │   │   ├── SetBirthdate.swift
│       │   │   ├── SetBotInfoDescription.swift
│       │   │   ├── SetBotInfoShortDescription.swift
│       │   │   ├── SetBotName.swift
│       │   │   ├── SetBotProfilePhoto.swift
│       │   │   ├── SetBotUpdatesStatus.swift
│       │   │   ├── SetBusinessAccountBio.swift
│       │   │   ├── SetBusinessAccountGiftSettings.swift
│       │   │   ├── SetBusinessAccountName.swift
│       │   │   ├── SetBusinessAccountProfilePhoto.swift
│       │   │   ├── SetBusinessAccountUsername.swift
│       │   │   ├── SetBusinessAwayMessageSettings.swift
│       │   │   ├── SetBusinessConnectedBot.swift
│       │   │   ├── SetBusinessGreetingMessageSettings.swift
│       │   │   ├── SetBusinessLocation.swift
│       │   │   ├── SetBusinessMessageIsPinned.swift
│       │   │   ├── SetBusinessOpeningHours.swift
│       │   │   ├── SetBusinessStartPage.swift
│       │   │   ├── SetChatAccentColor.swift
│       │   │   ├── SetChatActiveStoriesList.swift
│       │   │   ├── SetChatAffiliateProgram.swift
│       │   │   ├── SetChatAvailableReactions.swift
│       │   │   ├── SetChatBackground.swift
│       │   │   ├── SetChatClientData.swift
│       │   │   ├── SetChatDescription.swift
│       │   │   ├── SetChatDirectMessagesGroup.swift
│       │   │   ├── SetChatDiscussionGroup.swift
│       │   │   ├── SetChatDraftMessage.swift
│       │   │   ├── SetChatEmojiStatus.swift
│       │   │   ├── SetChatLocation.swift
│       │   │   ├── SetChatMemberStatus.swift
│       │   │   ├── SetChatMemberTag.swift
│       │   │   ├── SetChatMessageAutoDeleteTime.swift
│       │   │   ├── SetChatMessageSender.swift
│       │   │   ├── SetChatNotificationSettings.swift
│       │   │   ├── SetChatPaidMessageStarCount.swift
│       │   │   ├── SetChatPermissions.swift
│       │   │   ├── SetChatPhoto.swift
│       │   │   ├── SetChatPinnedStories.swift
│       │   │   ├── SetChatProfileAccentColor.swift
│       │   │   ├── SetChatSlowModeDelay.swift
│       │   │   ├── SetChatTheme.swift
│       │   │   ├── SetChatTitle.swift
│       │   │   ├── SetCloseFriends.swift
│       │   │   ├── SetCommands.swift
│       │   │   ├── SetCustomEmojiStickerSetThumbnail.swift
│       │   │   ├── SetCustomLanguagePack.swift
│       │   │   ├── SetCustomLanguagePackString.swift
│       │   │   ├── SetDatabaseEncryptionKey.swift
│       │   │   ├── SetDefaultBackground.swift
│       │   │   ├── SetDefaultChannelAdministratorRights.swift
│       │   │   ├── SetDefaultGroupAdministratorRights.swift
│       │   │   ├── SetDefaultMessageAutoDeleteTime.swift
│       │   │   ├── SetDefaultReactionType.swift
│       │   │   ├── SetDirectMessagesChatTopicDraftMessage.swift
│       │   │   ├── SetDirectMessagesChatTopicIsMarkedAsUnread.swift
│       │   │   ├── SetEmojiStatus.swift
│       │   │   ├── SetFileGenerationProgress.swift
│       │   │   ├── SetForumTopicNotificationSettings.swift
│       │   │   ├── SetGameScore.swift
│       │   │   ├── SetGiftCollectionName.swift
│       │   │   ├── SetGiftResalePrice.swift
│       │   │   ├── SetGiftSettings.swift
│       │   │   ├── SetGroupCallPaidMessageStarCount.swift
│       │   │   ├── SetGroupCallParticipantIsSpeaking.swift
│       │   │   ├── SetGroupCallParticipantVolumeLevel.swift
│       │   │   ├── SetGroupCallTitle.swift
│       │   │   ├── SetInactiveSessionTtl.swift
│       │   │   ├── SetInlineGameScore.swift
│       │   │   ├── SetLiveStoryMessageSender.swift
│       │   │   ├── SetLocation.swift
│       │   │   ├── SetLogStream.swift
│       │   │   ├── SetLogTagVerbosityLevel.swift
│       │   │   ├── SetLogVerbosityLevel.swift
│       │   │   ├── SetLoginEmailAddress.swift
│       │   │   ├── SetMainProfileTab.swift
│       │   │   ├── SetManagedBotAccessSettings.swift
│       │   │   ├── SetMenuButton.swift
│       │   │   ├── SetMessageFactCheck.swift
│       │   │   ├── SetMessageReactions.swift
│       │   │   ├── SetMessageSenderBlockList.swift
│       │   │   ├── SetMessageSenderBotVerification.swift
│       │   │   ├── SetName.swift
│       │   │   ├── SetNetworkType.swift
│       │   │   ├── SetNewChatPrivacySettings.swift
│       │   │   ├── SetOption.swift
│       │   │   ├── SetPaidMessageReactionType.swift
│       │   │   ├── SetPassportElement.swift
│       │   │   ├── SetPassportElementErrors.swift
│       │   │   ├── SetPassword.swift
│       │   │   ├── SetPersonalChat.swift
│       │   │   ├── SetPinnedChats.swift
│       │   │   ├── SetPinnedForumTopics.swift
│       │   │   ├── SetPinnedGifts.swift
│       │   │   ├── SetPinnedSavedMessagesTopics.swift
│       │   │   ├── SetPollAnswer.swift
│       │   │   ├── SetProfileAccentColor.swift
│       │   │   ├── SetProfileAudioPosition.swift
│       │   │   ├── SetProfilePhoto.swift
│       │   │   ├── SetQuickReplyShortcutName.swift
│       │   │   ├── SetReactionNotificationSettings.swift
│       │   │   ├── SetReadDatePrivacySettings.swift
│       │   │   ├── SetRecoveryEmailAddress.swift
│       │   │   ├── SetSavedMessagesTagLabel.swift
│       │   │   ├── SetScopeNotificationSettings.swift
│       │   │   ├── SetStickerEmojis.swift
│       │   │   ├── SetStickerKeywords.swift
│       │   │   ├── SetStickerMaskPosition.swift
│       │   │   ├── SetStickerPositionInSet.swift
│       │   │   ├── SetStickerSetThumbnail.swift
│       │   │   ├── SetStickerSetTitle.swift
│       │   │   ├── SetStoryAlbumName.swift
│       │   │   ├── SetStoryPrivacySettings.swift
│       │   │   ├── SetStoryReaction.swift
│       │   │   ├── SetSupergroupCustomEmojiStickerSet.swift
│       │   │   ├── SetSupergroupMainProfileTab.swift
│       │   │   ├── SetSupergroupStickerSet.swift
│       │   │   ├── SetSupergroupUnrestrictBoostCount.swift
│       │   │   ├── SetSupergroupUsername.swift
│       │   │   ├── SetTdlibParameters.swift
│       │   │   ├── SetUpgradedGiftColors.swift
│       │   │   ├── SetUserEmojiStatus.swift
│       │   │   ├── SetUserNote.swift
│       │   │   ├── SetUserPersonalProfilePhoto.swift
│       │   │   ├── SetUserPrivacySettingRules.swift
│       │   │   ├── SetUserSupportInfo.swift
│       │   │   ├── SetUsername.swift
│       │   │   ├── SetVideoChatDefaultParticipant.swift
│       │   │   ├── SetVideoChatTitle.swift
│       │   │   ├── SettingsSection.swift
│       │   │   ├── ShareChatWithBot.swift
│       │   │   ├── SharePhoneNumber.swift
│       │   │   ├── ShareUsersWithBot.swift
│       │   │   ├── SharedChat.swift
│       │   │   ├── SharedUser.swift
│       │   │   ├── ShippingOption.swift
│       │   │   ├── SpeechRecognitionResult.swift
│       │   │   ├── SponsoredChat.swift
│       │   │   ├── SponsoredChats.swift
│       │   │   ├── SponsoredMessage.swift
│       │   │   ├── SponsoredMessages.swift
│       │   │   ├── StakeDiceState.swift
│       │   │   ├── StarAmount.swift
│       │   │   ├── StarCount.swift
│       │   │   ├── StarGiveawayPaymentOption.swift
│       │   │   ├── StarGiveawayPaymentOptions.swift
│       │   │   ├── StarGiveawayWinnerOption.swift
│       │   │   ├── StarPaymentOption.swift
│       │   │   ├── StarPaymentOptions.swift
│       │   │   ├── StarRevenueStatistics.swift
│       │   │   ├── StarRevenueStatus.swift
│       │   │   ├── StarSubscription.swift
│       │   │   ├── StarSubscriptionPricing.swift
│       │   │   ├── StarSubscriptionType.swift
│       │   │   ├── StarSubscriptions.swift
│       │   │   ├── StarTransaction.swift
│       │   │   ├── StarTransactionDirection.swift
│       │   │   ├── StarTransactionPartner.swift
│       │   │   ├── StarTransactionSource.swift
│       │   │   ├── StarTransactionType.swift
│       │   │   ├── StarTransactions.swift
│       │   │   ├── StartGroupCallRecording.swift
│       │   │   ├── StartGroupCallScreenSharing.swift
│       │   │   ├── StartLiveStory.swift
│       │   │   ├── StartLiveStoryResult.swift
│       │   │   ├── StartScheduledGroupCall.swift
│       │   │   ├── StartScheduledVideoChat.swift
│       │   │   ├── StatisticalGraph.swift
│       │   │   ├── StatisticalValue.swift
│       │   │   ├── Sticker.swift
│       │   │   ├── StickerFormat.swift
│       │   │   ├── StickerFullType.swift
│       │   │   ├── StickerSet.swift
│       │   │   ├── StickerSetInfo.swift
│       │   │   ├── StickerSets.swift
│       │   │   ├── StickerType.swift
│       │   │   ├── Stickers.swift
│       │   │   ├── StopBusinessPoll.swift
│       │   │   ├── StopPoll.swift
│       │   │   ├── StorageStatistics.swift
│       │   │   ├── StorageStatisticsByChat.swift
│       │   │   ├── StorageStatisticsByFileType.swift
│       │   │   ├── StorageStatisticsFast.swift
│       │   │   ├── StorePaymentPurpose.swift
│       │   │   ├── StoreTransaction.swift
│       │   │   ├── Stories.swift
│       │   │   ├── Story.swift
│       │   │   ├── StoryAlbum.swift
│       │   │   ├── StoryAlbums.swift
│       │   │   ├── StoryArea.swift
│       │   │   ├── StoryAreaPosition.swift
│       │   │   ├── StoryAreaType.swift
│       │   │   ├── StoryContent.swift
│       │   │   ├── StoryContentType.swift
│       │   │   ├── StoryFullId.swift
│       │   │   ├── StoryInfo.swift
│       │   │   ├── StoryInteraction.swift
│       │   │   ├── StoryInteractionInfo.swift
│       │   │   ├── StoryInteractionType.swift
│       │   │   ├── StoryInteractions.swift
│       │   │   ├── StoryList.swift
│       │   │   ├── StoryOrigin.swift
│       │   │   ├── StoryPrivacySettings.swift
│       │   │   ├── StoryRepostInfo.swift
│       │   │   ├── StoryStatistics.swift
│       │   │   ├── StoryVideo.swift
│       │   │   ├── SuggestUserBirthdate.swift
│       │   │   ├── SuggestUserProfilePhoto.swift
│       │   │   ├── SuggestedAction.swift
│       │   │   ├── SuggestedPostInfo.swift
│       │   │   ├── SuggestedPostPrice.swift
│       │   │   ├── SuggestedPostRefundReason.swift
│       │   │   ├── SuggestedPostState.swift
│       │   │   ├── SummarizeMessage.swift
│       │   │   ├── Supergroup.swift
│       │   │   ├── SupergroupFullInfo.swift
│       │   │   ├── SupergroupMembersFilter.swift
│       │   │   ├── SynchronizeLanguagePack.swift
│       │   │   ├── TMeUrl.swift
│       │   │   ├── TMeUrlType.swift
│       │   │   ├── TMeUrls.swift
│       │   │   ├── TargetChat.swift
│       │   │   ├── TargetChatTypes.swift
│       │   │   ├── TelegramPaymentPurpose.swift
│       │   │   ├── TemporaryPasswordState.swift
│       │   │   ├── TerminateAllOtherSessions.swift
│       │   │   ├── TerminateSession.swift
│       │   │   ├── TermsOfService.swift
│       │   │   ├── TestBytes.swift
│       │   │   ├── TestCallBytes.swift
│       │   │   ├── TestCallEmpty.swift
│       │   │   ├── TestCallString.swift
│       │   │   ├── TestCallVectorInt.swift
│       │   │   ├── TestCallVectorIntObject.swift
│       │   │   ├── TestCallVectorString.swift
│       │   │   ├── TestCallVectorStringObject.swift
│       │   │   ├── TestGetDifference.swift
│       │   │   ├── TestInt.swift
│       │   │   ├── TestNetwork.swift
│       │   │   ├── TestProxy.swift
│       │   │   ├── TestReturnError.swift
│       │   │   ├── TestSquareInt.swift
│       │   │   ├── TestString.swift
│       │   │   ├── TestUseUpdate.swift
│       │   │   ├── TestVectorInt.swift
│       │   │   ├── TestVectorIntObject.swift
│       │   │   ├── TestVectorString.swift
│       │   │   ├── TestVectorStringObject.swift
│       │   │   ├── Text.swift
│       │   │   ├── TextCompositionStyle.swift
│       │   │   ├── TextCompositionStyleExample.swift
│       │   │   ├── TextEntities.swift
│       │   │   ├── TextEntity.swift
│       │   │   ├── TextEntityType.swift
│       │   │   ├── TextParseMode.swift
│       │   │   ├── TextQuote.swift
│       │   │   ├── ThemeParameters.swift
│       │   │   ├── ThemeSettings.swift
│       │   │   ├── Thumbnail.swift
│       │   │   ├── ThumbnailFormat.swift
│       │   │   ├── TimeZone.swift
│       │   │   ├── TimeZones.swift
│       │   │   ├── ToggleAllDownloadsArePaused.swift
│       │   │   ├── ToggleBotCanManageEmojiStatus.swift
│       │   │   ├── ToggleBotIsAddedToAttachmentMenu.swift
│       │   │   ├── ToggleBotUsernameIsActive.swift
│       │   │   ├── ToggleBusinessConnectedBotChatIsPaused.swift
│       │   │   ├── ToggleChatDefaultDisableNotification.swift
│       │   │   ├── ToggleChatFolderTags.swift
│       │   │   ├── ToggleChatGiftNotifications.swift
│       │   │   ├── ToggleChatHasProtectedContent.swift
│       │   │   ├── ToggleChatIsMarkedAsUnread.swift
│       │   │   ├── ToggleChatIsPinned.swift
│       │   │   ├── ToggleChatIsTranslatable.swift
│       │   │   ├── ToggleChatViewAsTopics.swift
│       │   │   ├── ToggleDirectMessagesChatTopicCanSendUnpaidMessages.swift
│       │   │   ├── ToggleDownloadIsPaused.swift
│       │   │   ├── ToggleForumTopicIsClosed.swift
│       │   │   ├── ToggleForumTopicIsPinned.swift
│       │   │   ├── ToggleGeneralForumTopicIsHidden.swift
│       │   │   ├── ToggleGiftIsSaved.swift
│       │   │   ├── ToggleGroupCallAreMessagesAllowed.swift
│       │   │   ├── ToggleGroupCallEnabledStartNotification.swift
│       │   │   ├── ToggleGroupCallIsMyVideoEnabled.swift
│       │   │   ├── ToggleGroupCallIsMyVideoPaused.swift
│       │   │   ├── ToggleGroupCallMuteNewParticipants.swift
│       │   │   ├── ToggleGroupCallParticipantIsHandRaised.swift
│       │   │   ├── ToggleGroupCallParticipantIsMuted.swift
│       │   │   ├── ToggleGroupCallScreenSharingIsPaused.swift
│       │   │   ├── ToggleHasSponsoredMessagesEnabled.swift
│       │   │   ├── TogglePaidMessageReactionIsAnonymous.swift
│       │   │   ├── ToggleSavedMessagesTopicIsPinned.swift
│       │   │   ├── ToggleSessionCanAcceptCalls.swift
│       │   │   ├── ToggleSessionCanAcceptSecretChats.swift
│       │   │   ├── ToggleStoryIsPostedToChatPage.swift
│       │   │   ├── ToggleSupergroupCanHaveSponsoredMessages.swift
│       │   │   ├── ToggleSupergroupHasAggressiveAntiSpamEnabled.swift
│       │   │   ├── ToggleSupergroupHasAutomaticTranslation.swift
│       │   │   ├── ToggleSupergroupHasHiddenMembers.swift
│       │   │   ├── ToggleSupergroupIsAllHistoryAvailable.swift
│       │   │   ├── ToggleSupergroupIsBroadcastGroup.swift
│       │   │   ├── ToggleSupergroupIsForum.swift
│       │   │   ├── ToggleSupergroupJoinByRequest.swift
│       │   │   ├── ToggleSupergroupJoinToSendMessages.swift
│       │   │   ├── ToggleSupergroupSignMessages.swift
│       │   │   ├── ToggleSupergroupUsernameIsActive.swift
│       │   │   ├── ToggleUsernameIsActive.swift
│       │   │   ├── ToggleVideoChatEnabledStartNotification.swift
│       │   │   ├── ToggleVideoChatMuteNewParticipants.swift
│       │   │   ├── TonRevenueStatistics.swift
│       │   │   ├── TonRevenueStatus.swift
│       │   │   ├── TonTransaction.swift
│       │   │   ├── TonTransactionType.swift
│       │   │   ├── TonTransactions.swift
│       │   │   ├── TopChatCategory.swift
│       │   │   ├── TransactionDirection.swift
│       │   │   ├── TransferBusinessAccountStars.swift
│       │   │   ├── TransferChatOwnership.swift
│       │   │   ├── TransferGift.swift
│       │   │   ├── TranslateMessageText.swift
│       │   │   ├── TranslateText.swift
│       │   │   ├── TrendingStickerSets.swift
│       │   │   ├── UnconfirmedSession.swift
│       │   │   ├── UnpinAllChatMessages.swift
│       │   │   ├── UnpinAllDirectMessagesChatTopicMessages.swift
│       │   │   ├── UnpinAllForumTopicMessages.swift
│       │   │   ├── UnpinAllMessageThreadMessages.swift
│       │   │   ├── UnpinChatMessage.swift
│       │   │   ├── UnreadReaction.swift
│       │   │   ├── Update.swift
│       │   │   ├── Updates.swift
│       │   │   ├── UpgradeBasicGroupChatToSupergroupChat.swift
│       │   │   ├── UpgradeGift.swift
│       │   │   ├── UpgradeGiftResult.swift
│       │   │   ├── UpgradedGift.swift
│       │   │   ├── UpgradedGiftAttributeId.swift
│       │   │   ├── UpgradedGiftAttributeRarity.swift
│       │   │   ├── UpgradedGiftBackdrop.swift
│       │   │   ├── UpgradedGiftBackdropColors.swift
│       │   │   ├── UpgradedGiftBackdropCount.swift
│       │   │   ├── UpgradedGiftColors.swift
│       │   │   ├── UpgradedGiftModel.swift
│       │   │   ├── UpgradedGiftModelCount.swift
│       │   │   ├── UpgradedGiftOrigin.swift
│       │   │   ├── UpgradedGiftOriginalDetails.swift
│       │   │   ├── UpgradedGiftSymbol.swift
│       │   │   ├── UpgradedGiftSymbolCount.swift
│       │   │   ├── UpgradedGiftValueInfo.swift
│       │   │   ├── UploadStickerFile.swift
│       │   │   ├── User.swift
│       │   │   ├── UserAuctionBid.swift
│       │   │   ├── UserFullInfo.swift
│       │   │   ├── UserGift.swift
│       │   │   ├── UserGifts.swift
│       │   │   ├── UserLink.swift
│       │   │   ├── UserPrivacySetting.swift
│       │   │   ├── UserPrivacySettingRule.swift
│       │   │   ├── UserPrivacySettingRules.swift
│       │   │   ├── UserRating.swift
│       │   │   ├── UserStatus.swift
│       │   │   ├── UserSupportInfo.swift
│       │   │   ├── UserTransactionPurpose.swift
│       │   │   ├── UserType.swift
│       │   │   ├── Usernames.swift
│       │   │   ├── Users.swift
│       │   │   ├── ValidateOrderInfo.swift
│       │   │   ├── ValidatedOrderInfo.swift
│       │   │   ├── VectorPathCommand.swift
│       │   │   ├── Venue.swift
│       │   │   ├── VerificationStatus.swift
│       │   │   ├── Video.swift
│       │   │   ├── VideoChat.swift
│       │   │   ├── VideoChatStream.swift
│       │   │   ├── VideoChatStreams.swift
│       │   │   ├── VideoMessageAdvertisement.swift
│       │   │   ├── VideoMessageAdvertisements.swift
│       │   │   ├── VideoNote.swift
│       │   │   ├── VideoStoryboard.swift
│       │   │   ├── ViewMessages.swift
│       │   │   ├── ViewPremiumFeature.swift
│       │   │   ├── ViewSponsoredChat.swift
│       │   │   ├── ViewTrendingStickerSets.swift
│       │   │   ├── ViewVideoMessageAdvertisement.swift
│       │   │   ├── VoiceNote.swift
│       │   │   ├── WebApp.swift
│       │   │   ├── WebAppInfo.swift
│       │   │   ├── WebAppOpenMode.swift
│       │   │   ├── WebAppOpenParameters.swift
│       │   │   ├── WebPage.swift
│       │   │   ├── WebPageInstantView.swift
│       │   │   └── WriteGeneratedFilePart.swift
│       │   └── Supporting/
│       │       ├── DTO.swift
│       │       ├── DtoCodingKeys.swift
│       │       ├── JSONDecoder+Result.swift
│       │       ├── Logger.swift
│       │       └── TdInt64.swift
│       ├── Supporting/
│       │   ├── ConcurrentDictionary.swift
│       │   └── RWLock.swift
│       ├── TDLibClientManager.swift
│       └── TdClientImpl.swift
├── Tests/
│   └── TDLibKitTests/
│       └── TDLibKitTests.swift
├── scripts/
│   ├── parse_tdlib_version.py
│   ├── release.py
│   ├── swift_package_generator.py
│   ├── test.sh
│   ├── tl2swift/
│   │   ├── .gitattributes
│   │   ├── .gitignore
│   │   ├── Package.swift
│   │   ├── README.md
│   │   └── Sources/
│   │       ├── TlParserLib/
│   │       │   ├── Application.swift
│   │       │   ├── Composer/
│   │       │   │   ├── Composer.swift
│   │       │   │   ├── EnumComposer.swift
│   │       │   │   ├── MethodsComposer.swift
│   │       │   │   ├── StructComposer.swift
│   │       │   │   └── Supporting/
│   │       │   │       ├── ClientProtocolComposer.swift
│   │       │   │       ├── CodingKeysComposer.swift
│   │       │   │       ├── DecoderHelperComposer.swift
│   │       │   │       ├── DtoComposer.swift
│   │       │   │       ├── LoggerCimposer.swift
│   │       │   │       └── TdInt64Composer.swift
│   │       │   ├── Helper/
│   │       │   │   ├── CharacterSet.swift
│   │       │   │   ├── FileWriter.swift
│   │       │   │   ├── Log.swift
│   │       │   │   ├── Scanner.swift
│   │       │   │   ├── String+Format.swift
│   │       │   │   ├── String+Line.swift
│   │       │   │   └── TypesHelper.swift
│   │       │   ├── Model/
│   │       │   │   ├── Implementation.swift
│   │       │   │   └── Schema.swift
│   │       │   └── Parser/
│   │       │       └── Parser.swift
│   │       └── tl2swift/
│   │           └── main.swift
│   ├── update.py
│   └── utils.py
└── versions.json

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/workflows/ci.yml
================================================
name: CI

# Controls when the workflow will run
on:
  push:
    branches: [main]
    paths:
      - "version" # on version updates
      - "Package.swift"
      - "Package.resolved"
      - "Tests/**"
      - .github/workflows/ci.yml
      - "scripts/**"
  pull_request:
    branches: [main]
  schedule:
    - cron: '0 */12 * * *' # Every 12 hours

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

concurrency:
  group: ci-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

env:
  TDLIB_REPO: https://github.com/tdlib/td
  DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer

permissions:
  contents: write

jobs:
  update:
    runs-on: macos-15
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Update package
        run: ./scripts/update.py
        env:
          GH_TOKEN: ${{ github.token }}
      
      - run: rm -rf .git
  
      - name: Upload Workspace
        uses: actions/upload-artifact@v4
        with:
          name: TDLibKit-${{ github.sha }}
          path: .
          if-no-files-found: error

  test:
    runs-on: macos-15
    needs: [update]
    strategy:
      matrix:
        include:
          - platform: "macOS"
          - platform: "iOS-simulator"
            os_list: "18.5"
            device_name: "iPhone 16"
          - platform: "tvOS-simulator"
            os_list: "18.5"
            device_name: "Apple TV 4K (3rd generation) (at 1080p)"
          # Became much slower on CI with macos-14 images, while working fine locally
          # we will only build them
          - platform: "watchOS-simulator"
            os_list: "11.5"
            device_name: "Apple Watch Series 10 (46mm)"
            action: "build"
          - platform: "visionOS-simulator"
            os_list: "2.3"
            device_name: "Apple Vision Pro"
            action: "build"
    steps:
      - name: Download Workspace
        uses: actions/download-artifact@v4
        with:
          name: TDLibKit-${{ github.sha }}
          path: .

      - name: Tests (${{ matrix.platform }})
        run: |
          chmod +x ./scripts/test.sh 
          ./scripts/test.sh ${{ matrix.platform }} "${{ matrix.os_list }}" "${{ matrix.device_name }}" "${{ matrix.action }}" || ./scripts/test.sh ${{ matrix.platform }} "${{ matrix.os_list }}" "${{ matrix.device_name }}" "${{ matrix.action }}" 
  
  release:
    if: ${{ github.ref == 'refs/heads/main' }}
    runs-on: macos-15
    needs: [test]
    steps:
      - name: Setup Git
        uses: actions/checkout@v4

      - name: Download Workspace
        uses: actions/download-artifact@v4
        with:
          name: TDLibKit-${{ github.sha }}
          path: .

      - name: Commit Files
        run: |
          git config user.name github-actions
          git config user.email github-actions@github.com
          git add . || true

          export COMMIT_VERSION=$(python3 <<EOF
          import json
          import os
          with open("versions.json") as f:
              versions = json.load(f)
          print(f"{versions["package"]}-tdlib-{versions['tdlib_version']}-{versions['tdlib_commit']}", end="")
          EOF
          )

          git commit -m "[no ci] Version ${COMMIT_VERSION}" || true

      - name: Push update
        run: git push origin main || true

      - name: Release
        run: |
          chmod +x ./scripts/*
          ./scripts/release.py
        env:
          GH_TOKEN: ${{ github.token }}


================================================
FILE: .gitignore
================================================
.DS_Store
/.build
/Packages
/*.xcodeproj
xcuserdata/
DerivedData/
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
*.tl
Tests/Apps/Apps.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
__pycache__/

================================================
FILE: .swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>IDEDidComputeMac32BitWarning</key>
	<true/>
</dict>
</plist>


================================================
FILE: .swiftpm/xcode/xcshareddata/xcschemes/TDLibKit.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
   LastUpgradeVersion = "1420"
   version = "1.3">
   <BuildAction
      parallelizeBuildables = "YES"
      buildImplicitDependencies = "YES">
      <BuildActionEntries>
         <BuildActionEntry
            buildForTesting = "YES"
            buildForRunning = "YES"
            buildForProfiling = "YES"
            buildForArchiving = "YES"
            buildForAnalyzing = "YES">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "TDLibKit"
               BuildableName = "TDLibKit"
               BlueprintName = "TDLibKit"
               ReferencedContainer = "container:">
            </BuildableReference>
         </BuildActionEntry>
      </BuildActionEntries>
   </BuildAction>
   <TestAction
      buildConfiguration = "Debug"
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      shouldUseLaunchSchemeArgsEnv = "YES">
      <Testables>
         <TestableReference
            skipped = "NO">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "TDLibKitTests"
               BuildableName = "TDLibKitTests"
               BlueprintName = "TDLibKitTests"
               ReferencedContainer = "container:">
            </BuildableReference>
         </TestableReference>
      </Testables>
   </TestAction>
   <LaunchAction
      buildConfiguration = "Debug"
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      launchStyle = "0"
      useCustomWorkingDirectory = "NO"
      ignoresPersistentStateOnLaunch = "NO"
      debugDocumentVersioning = "YES"
      debugServiceExtension = "internal"
      allowLocationSimulation = "YES">
   </LaunchAction>
   <ProfileAction
      buildConfiguration = "Release"
      shouldUseLaunchSchemeArgsEnv = "YES"
      savedToolIdentifier = ""
      useCustomWorkingDirectory = "NO"
      debugDocumentVersioning = "YES">
      <MacroExpansion>
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "TDLibKit"
            BuildableName = "TDLibKit"
            BlueprintName = "TDLibKit"
            ReferencedContainer = "container:">
         </BuildableReference>
      </MacroExpansion>
   </ProfileAction>
   <AnalyzeAction
      buildConfiguration = "Debug">
   </AnalyzeAction>
   <ArchiveAction
      buildConfiguration = "Release"
      revealArchiveInOrganizer = "YES">
   </ArchiveAction>
</Scheme>


================================================
FILE: LICENSE
================================================
MIT License

Copyright (c) 2021 Sergey Akentev (@Kylmakalle)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

================================================
FILE: Package.resolved
================================================
{
  "object": {
    "pins": [
      {
        "package": "TDLibFramework",
        "repositoryURL": "https://github.com/Swiftgram/TDLibFramework",
        "state": {
          "branch": null,
          "revision": "c89cc7e3edef521a84ec46691d2a7f65de09d3ff",
          "version": "1.8.64-7a7081bf"
        }
      }
    ]
  },
  "version": 1
}


================================================
FILE: Package.swift
================================================
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
// DO NOT EDIT! Generated automatically. See scripts/swift_package_generator.py

import PackageDescription



let package = Package(
    name: "TDLibKit",
    platforms: [
        // Following versions of https://github.com/Swiftgram/TDLibFramework/blob/main/Package.swift
        .iOS(.v12),
        .macOS(.v10_15),
        .watchOS(.v4),
        .tvOS(.v12)
    ],
    products: [
        .library(
            name: "TDLibKit",
            targets: ["TDLibKit"]),
    ],
    dependencies: [
        .package(url: "https://github.com/Swiftgram/TDLibFramework", .exact("1.8.64-7a7081bf")),
    ],
    targets: [
        .target(
            name: "TDLibKit",
            dependencies: ["TDLibFramework"]
        ),
        .testTarget(
            name: "TDLibKitTests",
            dependencies: ["TDLibKit"]
        ),
    ]
)



================================================
FILE: README.md
================================================
# TDLibKit

[![CI](https://github.com/Swiftgram/TDLibKit/actions/workflows/ci.yml/badge.svg)](https://github.com/Swiftgram/TDLibKit/actions/workflows/ci.yml)

TDLibKit is a native Swift wrapper for [TDLib](https://github.com/tdlib/td) with support for iOS, macOS, watchOS, tvOS and visionOS.

Powered by pre-built multi-platform [TDLibFramework](https://github.com/Swiftgram/TDLibFramework) implementation
of [TDLib](https://github.com/tdlib/td) and generated sources with [tl2swift](scripts/tl2swift)

## Installation

### Xcode

1. Install Latest Xcode
2. Add `https://github.com/Swiftgram/TDLibKit` as SPM dependency in `Project > Swift Packages`. This could take a while
   cause it downloads ~300mb zip file with binary
   from [TDLibFramework dependency](https://github.com/Swiftgram/TDLibFramework)
3. Add `TDLibKit` as your target dependency.
4. Code!

### Cocoapods

Integration requires similar
to [TDLibFramework Cocoapods & Flutter guide](https://github.com/Swiftgram/TDLibFramework/blob/main/docs/COCOAPODS-and-FLUTTER.md)
adaptation.

## Usage

Library provides multiple API interfaces based on different approaches

- [Async/Await](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/concurrency/) syntax & do/catch. Available for iOS
  13.0+, macOS 10.15+, watchOS 6.0+, tvOS 13.0+, visionOS
- Completion handlers & closures

### Create client Manager

```swift
import TDLibKit
let manager = TDLibClientManager()
```

Make sure to create only one `TDLibClientManager`, since `td_receive` can be only called from a single thread.

Manager automatically polls for new updates, we will handle them per-client below.

### Create Client & Handle updates

```swift
let client = manager.createClient(updateHandler: { /* data: Data, client: TDLibCLient */
    do {
        let update = try $1.decoder.decode(Update.self, from: $0)
        switch update {
            case .updateNewMessage(let newMsg):
                switch newMsg.message.content {
                    case .messageText(let text):
                        print("Text Message: \(text.text.text)")
                    default:
                        break
                }
            case .updateMessageEdited:
                break
                
            // ... etc

            default:
                print("Unhandled Update \(update)")
                break
        }
    } catch {
        print("Error in update handler \(error.localizedDescription)")
    }
})
```

### Synchronious requests

Only for methods
with "[Can be called synchronously](https://github.com/tdlib/td/blob/73d8fb4b3584633b0ffde97a20bbff6602e7a5c4/td/generate/scheme/td_api.tl#L4294)"
in docs

```swift
let query = SetLogVerbosityLevel(newVerbosityLevel: 5)
do {
    let result = try client.execute(query: DTO(query))
    if let resultDict = result {
        print("Response: \(resultDict)")
    } else {
        print("Empty result")
    }
} catch {
    print("Error in SetLogVerbosityLevel request \(error.localizedDescription)")
}
```

### Async requests

#### Async/Await

```swift
do {
    let chatHistory = try await client.getChatHistory(
        chatId: chatId,
        fromMessageId: 0,
        limit: 50,
        offset: 0,
        onlyLocal: false // Request remote messages from server
    )

    for message in chatHistory.messages {
    switch message.content {
        case .messageText(let text):
            print(text.text.text)
            
        case .messageAnimation:
            print("<Animation>")
            
        case .messagePhoto(let photo):
            print("<Photo>\n\(photo.caption.text)")
            
        case .messageSticker(let sticker):
            print(sticker.sticker.emoji)
            
        case .messageVideo(let video):
            print("<Video>\n\(video.caption.text)")
            
            // ...
            
        default:
            print("Unknown message content \(message.content)")
        }
    }
} catch {
    print("Error in getChatHistory \(error)")
}
```

#### Completion Handlers

```swift
try? client.getChatHistory(
    chatId: chatId,
    fromMessageId: 0,
    limit: 50,
    offset: 0,
    onlyLocal: false, // Request remote messages from server
    completion: { result in
        // Handle Errors
        if case .failure(let error) = result {
            print("Error in getChatHistory request \(error.localizedDescription)")
        } else if let messages = try? result.get().messages {
            // Handle messages
            for message in messages {
                switch message.content {
                case .messageText(let text):
                    print(text.text.text)
                    
                case .messageAnimation:
                    print("<Animation>")
                    
                case .messagePhoto(let photo):
                    print("<Photo>\n\(photo.caption.text)")
                    
                case .messageSticker(let sticker):
                    print(sticker.sticker.emoji)
                    
                case .messageVideo(let video):
                    print("<Video>\n\(video.caption.text)")
                    
                    // ...
                    
                default:
                    print("Unknown message content \(message.content)")
                }
            }
        }
    }
)
```

### Logging

You can pass additional parameter with `Logger` type to log "send, receive, execute" and custom entries.

```swift
import TDLibKit
public final class StdOutLogger: TDLibLogger {
    
    let queue: DispatchQueue
    
    public init() {
        queue = DispatchQueue(label: "Logger", qos: .userInitiated)
    }
    
    public func log(_ message: String, type: LoggerMessageType?) {
        queue.async {
            var fisrtLine = "---------------------------"
            if let type = type {
                fisrtLine = ">> \(type.description): ---------------"
            }
            print("""
                \(fisrtLine)
                \(message)
                ---------------------------
                """)
        }
    }
}


let manager = TDLibClientManager(logger: StdOutLogger())
```

### Close client

To ensure data integrity, you must properly close all the clients on app termination, either with
    
```swift
let client = manager.createClient()
try? client.close(completion: { _ in })
```

or use a blocking function

```swift
manager.closeClients()
```

## Build

You can find more about build process in [Github Actions](.github/workflows/ci.yml) file.

## Credits

- Anton Glezman for [Build Guide](https://github.com/modestman/tdlib-swift)
  , [TL Scheme parser](https://github.com/modestman/tl2swift) and basic implementation
- Leo Mehlig for [TDLib-iOS](https://github.com/leoMehlig/TDLib-iOS) and contributions to run TDLib on Swift
- Telegram Team for [TDLib](https://github.com/tdlib/td)

## License

[MIT](LICENSE)


================================================
FILE: Sources/TDLibKit/Generated/API/TDLibApi.swift
================================================
//
//  TDLibApi.swift
//  tl2swift
//
//  Generated automatically. Any changes will be lost!
//  Based on TDLib 1.8.64-7a7081bf
//  https://github.com/tdlib/td/tree/7a7081bf
//

import Foundation


/// Must be subclassed with `send` and `execute` TDLib functions implementation
public class TDLibApi {

    public let encoder = JSONEncoder()
    public let decoder = JSONDecoder()

    public init() {
        self.encoder.keyEncodingStrategy = .convertToSnakeCase
        self.decoder.keyDecodingStrategy = .convertFromSnakeCase
    }


    /// Sends request to the TDLib client.
    public func send(query: TdQuery, completion: ((Data) -> Void)? = nil) throws {
        fatalError("send() not implemented")
    }

    /// Synchronously executes TDLib request.
    public func execute(query: TdQuery) throws -> [String:Any]? {
        fatalError("execute() not implemented")
    }


    /// Returns the current authorization state. This is an offline method. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization
    /// - Returns: The current authorization state
    public final func getAuthorizationState(completion: @escaping (Result<AuthorizationState, Swift.Error>) -> Void) throws {
        let query = GetAuthorizationState()
        self.run(query: query, completion: completion)
    }

    /// Returns the current authorization state. This is an offline method. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization
    /// - Returns: The current authorization state
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getAuthorizationState() async throws -> AuthorizationState {
        let query = GetAuthorizationState()
        return try await self.run(query: query)
    }

    /// Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters
    /// - Parameter apiHash: Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org
    /// - Parameter apiId: Application identifier for Telegram API access, which can be obtained at https://my.telegram.org
    /// - Parameter applicationVersion: Application version; must be non-empty
    /// - Parameter databaseDirectory: The path to the directory for the persistent database; if empty, the current working directory will be used
    /// - Parameter databaseEncryptionKey: Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned
    /// - Parameter deviceModel: Model of the device the application is being run on; must be non-empty
    /// - Parameter filesDirectory: The path to the directory for storing files; if empty, database_directory will be used
    /// - Parameter systemLanguageCode: IETF language tag of the user's operating system language; must be non-empty
    /// - Parameter systemVersion: Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib
    /// - Parameter useChatInfoDatabase: Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies use_file_database
    /// - Parameter useFileDatabase: Pass true to keep information about downloaded and uploaded files between application restarts
    /// - Parameter useMessageDatabase: Pass true to keep cache of chats and messages between restarts. Implies use_chat_info_database
    /// - Parameter useSecretChats: Pass true to enable support for secret chats
    /// - Parameter useTestDc: Pass true to use Telegram test environment instead of the production environment
    public final func setTdlibParameters(
        apiHash: String?,
        apiId: Int?,
        applicationVersion: String?,
        databaseDirectory: String?,
        databaseEncryptionKey: Data?,
        deviceModel: String?,
        filesDirectory: String?,
        systemLanguageCode: String?,
        systemVersion: String?,
        useChatInfoDatabase: Bool?,
        useFileDatabase: Bool?,
        useMessageDatabase: Bool?,
        useSecretChats: Bool?,
        useTestDc: Bool?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = SetTdlibParameters(
            apiHash: apiHash,
            apiId: apiId,
            applicationVersion: applicationVersion,
            databaseDirectory: databaseDirectory,
            databaseEncryptionKey: databaseEncryptionKey,
            deviceModel: deviceModel,
            filesDirectory: filesDirectory,
            systemLanguageCode: systemLanguageCode,
            systemVersion: systemVersion,
            useChatInfoDatabase: useChatInfoDatabase,
            useFileDatabase: useFileDatabase,
            useMessageDatabase: useMessageDatabase,
            useSecretChats: useSecretChats,
            useTestDc: useTestDc
        )
        self.run(query: query, completion: completion)
    }

    /// Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters
    /// - Parameter apiHash: Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org
    /// - Parameter apiId: Application identifier for Telegram API access, which can be obtained at https://my.telegram.org
    /// - Parameter applicationVersion: Application version; must be non-empty
    /// - Parameter databaseDirectory: The path to the directory for the persistent database; if empty, the current working directory will be used
    /// - Parameter databaseEncryptionKey: Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned
    /// - Parameter deviceModel: Model of the device the application is being run on; must be non-empty
    /// - Parameter filesDirectory: The path to the directory for storing files; if empty, database_directory will be used
    /// - Parameter systemLanguageCode: IETF language tag of the user's operating system language; must be non-empty
    /// - Parameter systemVersion: Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib
    /// - Parameter useChatInfoDatabase: Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies use_file_database
    /// - Parameter useFileDatabase: Pass true to keep information about downloaded and uploaded files between application restarts
    /// - Parameter useMessageDatabase: Pass true to keep cache of chats and messages between restarts. Implies use_chat_info_database
    /// - Parameter useSecretChats: Pass true to enable support for secret chats
    /// - Parameter useTestDc: Pass true to use Telegram test environment instead of the production environment
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func setTdlibParameters(
        apiHash: String?,
        apiId: Int?,
        applicationVersion: String?,
        databaseDirectory: String?,
        databaseEncryptionKey: Data?,
        deviceModel: String?,
        filesDirectory: String?,
        systemLanguageCode: String?,
        systemVersion: String?,
        useChatInfoDatabase: Bool?,
        useFileDatabase: Bool?,
        useMessageDatabase: Bool?,
        useSecretChats: Bool?,
        useTestDc: Bool?
    ) async throws -> Ok {
        let query = SetTdlibParameters(
            apiHash: apiHash,
            apiId: apiId,
            applicationVersion: applicationVersion,
            databaseDirectory: databaseDirectory,
            databaseEncryptionKey: databaseEncryptionKey,
            deviceModel: deviceModel,
            filesDirectory: filesDirectory,
            systemLanguageCode: systemLanguageCode,
            systemVersion: systemVersion,
            useChatInfoDatabase: useChatInfoDatabase,
            useFileDatabase: useFileDatabase,
            useMessageDatabase: useMessageDatabase,
            useSecretChats: useSecretChats,
            useTestDc: useTestDc
        )
        return try await self.run(query: query)
    }

    /// Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
    /// - Parameter phoneNumber: The phone number of the user, in international format
    /// - Parameter settings: Settings for the authentication of the user's phone number; pass null to use default settings
    public final func setAuthenticationPhoneNumber(
        phoneNumber: String?,
        settings: PhoneNumberAuthenticationSettings?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = SetAuthenticationPhoneNumber(
            phoneNumber: phoneNumber,
            settings: settings
        )
        self.run(query: query, completion: completion)
    }

    /// Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
    /// - Parameter phoneNumber: The phone number of the user, in international format
    /// - Parameter settings: Settings for the authentication of the user's phone number; pass null to use default settings
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func setAuthenticationPhoneNumber(
        phoneNumber: String?,
        settings: PhoneNumberAuthenticationSettings?
    ) async throws -> Ok {
        let query = SetAuthenticationPhoneNumber(
            phoneNumber: phoneNumber,
            settings: settings
        )
        return try await self.run(query: query)
    }

    /// Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase
    /// - Parameter amount: Paid amount, in the smallest units of the currency
    /// - Parameter currency: ISO 4217 currency code of the payment currency
    /// - Parameter premiumDayCount: The number of days for which the Telegram Premium subscription will be granted
    public final func checkAuthenticationPremiumPurchase(
        amount: Int64?,
        currency: String?,
        premiumDayCount: Int?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckAuthenticationPremiumPurchase(
            amount: amount,
            currency: currency,
            premiumDayCount: premiumDayCount
        )
        self.run(query: query, completion: completion)
    }

    /// Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase
    /// - Parameter amount: Paid amount, in the smallest units of the currency
    /// - Parameter currency: ISO 4217 currency code of the payment currency
    /// - Parameter premiumDayCount: The number of days for which the Telegram Premium subscription will be granted
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkAuthenticationPremiumPurchase(
        amount: Int64?,
        currency: String?,
        premiumDayCount: Int?
    ) async throws -> Ok {
        let query = CheckAuthenticationPremiumPurchase(
            amount: amount,
            currency: currency,
            premiumDayCount: premiumDayCount
        )
        return try await self.run(query: query)
    }

    /// Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase
    /// - Parameter amount: Paid amount, in the smallest units of the currency
    /// - Parameter currency: ISO 4217 currency code of the payment currency
    /// - Parameter isRestore: Pass true if this is a restore of a Telegram Premium purchase; only for App Store
    /// - Parameter premiumDayCount: The number of days for which the Telegram Premium subscription will be granted
    /// - Parameter transaction: Information about the transaction
    public final func setAuthenticationPremiumPurchaseTransaction(
        amount: Int64?,
        currency: String?,
        isRestore: Bool?,
        premiumDayCount: Int?,
        transaction: StoreTransaction?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = SetAuthenticationPremiumPurchaseTransaction(
            amount: amount,
            currency: currency,
            isRestore: isRestore,
            premiumDayCount: premiumDayCount,
            transaction: transaction
        )
        self.run(query: query, completion: completion)
    }

    /// Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase
    /// - Parameter amount: Paid amount, in the smallest units of the currency
    /// - Parameter currency: ISO 4217 currency code of the payment currency
    /// - Parameter isRestore: Pass true if this is a restore of a Telegram Premium purchase; only for App Store
    /// - Parameter premiumDayCount: The number of days for which the Telegram Premium subscription will be granted
    /// - Parameter transaction: Information about the transaction
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func setAuthenticationPremiumPurchaseTransaction(
        amount: Int64?,
        currency: String?,
        isRestore: Bool?,
        premiumDayCount: Int?,
        transaction: StoreTransaction?
    ) async throws -> Ok {
        let query = SetAuthenticationPremiumPurchaseTransaction(
            amount: amount,
            currency: currency,
            isRestore: isRestore,
            premiumDayCount: premiumDayCount,
            transaction: transaction
        )
        return try await self.run(query: query)
    }

    /// Sets the email address of the user and sends an authentication code to the email address. Works only when the current authorization state is authorizationStateWaitEmailAddress
    /// - Parameter emailAddress: The email address of the user
    public final func setAuthenticationEmailAddress(
        emailAddress: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = SetAuthenticationEmailAddress(
            emailAddress: emailAddress
        )
        self.run(query: query, completion: completion)
    }

    /// Sets the email address of the user and sends an authentication code to the email address. Works only when the current authorization state is authorizationStateWaitEmailAddress
    /// - Parameter emailAddress: The email address of the user
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func setAuthenticationEmailAddress(emailAddress: String?) async throws -> Ok {
        let query = SetAuthenticationEmailAddress(
            emailAddress: emailAddress
        )
        return try await self.run(query: query)
    }

    /// Resends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode, the next_code_type of the result is not null and the server-specified timeout has passed, or when the current authorization state is authorizationStateWaitEmailCode
    /// - Parameter reason: Reason of code resending; pass null if unknown
    public final func resendAuthenticationCode(
        reason: ResendCodeReason?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = ResendAuthenticationCode(
            reason: reason
        )
        self.run(query: query, completion: completion)
    }

    /// Resends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode, the next_code_type of the result is not null and the server-specified timeout has passed, or when the current authorization state is authorizationStateWaitEmailCode
    /// - Parameter reason: Reason of code resending; pass null if unknown
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func resendAuthenticationCode(reason: ResendCodeReason?) async throws -> Ok {
        let query = ResendAuthenticationCode(
            reason: reason
        )
        return try await self.run(query: query)
    }

    /// Checks the authentication of an email address. Works only when the current authorization state is authorizationStateWaitEmailCode
    /// - Parameter code: Email address authentication to check
    public final func checkAuthenticationEmailCode(
        code: EmailAddressAuthentication?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckAuthenticationEmailCode(
            code: code
        )
        self.run(query: query, completion: completion)
    }

    /// Checks the authentication of an email address. Works only when the current authorization state is authorizationStateWaitEmailCode
    /// - Parameter code: Email address authentication to check
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkAuthenticationEmailCode(code: EmailAddressAuthentication?) async throws -> Ok {
        let query = CheckAuthenticationEmailCode(
            code: code
        )
        return try await self.run(query: query)
    }

    /// Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode
    /// - Parameter code: Authentication code to check
    public final func checkAuthenticationCode(
        code: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckAuthenticationCode(
            code: code
        )
        self.run(query: query, completion: completion)
    }

    /// Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode
    /// - Parameter code: Authentication code to check
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkAuthenticationCode(code: String?) async throws -> Ok {
        let query = CheckAuthenticationCode(
            code: code
        )
        return try await self.run(query: query)
    }

    /// Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
    /// - Parameter otherUserIds: List of user identifiers of other users currently using the application
    public final func requestQrCodeAuthentication(
        otherUserIds: [Int64]?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = RequestQrCodeAuthentication(
            otherUserIds: otherUserIds
        )
        self.run(query: query, completion: completion)
    }

    /// Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
    /// - Parameter otherUserIds: List of user identifiers of other users currently using the application
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func requestQrCodeAuthentication(otherUserIds: [Int64]?) async throws -> Ok {
        let query = RequestQrCodeAuthentication(
            otherUserIds: otherUserIds
        )
        return try await self.run(query: query)
    }

    /// Returns parameters for authentication using a passkey as JSON-serialized string
    /// - Returns: Parameters for authentication using a passkey as JSON-serialized string
    public final func getAuthenticationPasskeyParameters(completion: @escaping (Result<Text, Swift.Error>) -> Void) throws {
        let query = GetAuthenticationPasskeyParameters()
        self.run(query: query, completion: completion)
    }

    /// Returns parameters for authentication using a passkey as JSON-serialized string
    /// - Returns: Parameters for authentication using a passkey as JSON-serialized string
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getAuthenticationPasskeyParameters() async throws -> Text {
        let query = GetAuthenticationPasskeyParameters()
        return try await self.run(query: query)
    }

    /// Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
    /// - Parameter authenticatorData: Authenticator data of the application that created the credential
    /// - Parameter clientData: JSON-encoded client data
    /// - Parameter credentialId: Base64url-encoded identifier of the credential
    /// - Parameter signature: Cryptographic signature of the credential
    /// - Parameter userHandle: User handle of the passkey
    public final func checkAuthenticationPasskey(
        authenticatorData: Data?,
        clientData: String?,
        credentialId: String?,
        signature: Data?,
        userHandle: Data?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckAuthenticationPasskey(
            authenticatorData: authenticatorData,
            clientData: clientData,
            credentialId: credentialId,
            signature: signature,
            userHandle: userHandle
        )
        self.run(query: query, completion: completion)
    }

    /// Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
    /// - Parameter authenticatorData: Authenticator data of the application that created the credential
    /// - Parameter clientData: JSON-encoded client data
    /// - Parameter credentialId: Base64url-encoded identifier of the credential
    /// - Parameter signature: Cryptographic signature of the credential
    /// - Parameter userHandle: User handle of the passkey
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkAuthenticationPasskey(
        authenticatorData: Data?,
        clientData: String?,
        credentialId: String?,
        signature: Data?,
        userHandle: Data?
    ) async throws -> Ok {
        let query = CheckAuthenticationPasskey(
            authenticatorData: authenticatorData,
            clientData: clientData,
            credentialId: credentialId,
            signature: signature,
            userHandle: userHandle
        )
        return try await self.run(query: query)
    }

    /// Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration
    /// - Parameter disableNotification: Pass true to disable notification about the current user joining Telegram for other users that added them to contact list
    /// - Parameter firstName: The first name of the user; 1-64 characters
    /// - Parameter lastName: The last name of the user; 0-64 characters
    public final func registerUser(
        disableNotification: Bool?,
        firstName: String?,
        lastName: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = RegisterUser(
            disableNotification: disableNotification,
            firstName: firstName,
            lastName: lastName
        )
        self.run(query: query, completion: completion)
    }

    /// Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration
    /// - Parameter disableNotification: Pass true to disable notification about the current user joining Telegram for other users that added them to contact list
    /// - Parameter firstName: The first name of the user; 1-64 characters
    /// - Parameter lastName: The last name of the user; 0-64 characters
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func registerUser(
        disableNotification: Bool?,
        firstName: String?,
        lastName: String?
    ) async throws -> Ok {
        let query = RegisterUser(
            disableNotification: disableNotification,
            firstName: firstName,
            lastName: lastName
        )
        return try await self.run(query: query)
    }

    /// Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending. Works only when the current authorization state is authorizationStateWaitEmailCode and authorization_state.can_reset_email_address == true
    /// - Returns: May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending
    public final func resetAuthenticationEmailAddress(completion: @escaping (Result<Ok, Swift.Error>) -> Void) throws {
        let query = ResetAuthenticationEmailAddress()
        self.run(query: query, completion: completion)
    }

    /// Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending. Works only when the current authorization state is authorizationStateWaitEmailCode and authorization_state.can_reset_email_address == true
    /// - Returns: May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func resetAuthenticationEmailAddress() async throws -> Ok {
        let query = ResetAuthenticationEmailAddress()
        return try await self.run(query: query)
    }

    /// Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword
    /// - Parameter password: The 2-step verification password to check
    public final func checkAuthenticationPassword(
        password: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckAuthenticationPassword(
            password: password
        )
        self.run(query: query, completion: completion)
    }

    /// Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword
    /// - Parameter password: The 2-step verification password to check
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkAuthenticationPassword(password: String?) async throws -> Ok {
        let query = CheckAuthenticationPassword(
            password: password
        )
        return try await self.run(query: query)
    }

    /// Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword
    public final func requestAuthenticationPasswordRecovery(completion: @escaping (Result<Ok, Swift.Error>) -> Void) throws {
        let query = RequestAuthenticationPasswordRecovery()
        self.run(query: query, completion: completion)
    }

    /// Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func requestAuthenticationPasswordRecovery() async throws -> Ok {
        let query = RequestAuthenticationPasswordRecovery()
        return try await self.run(query: query)
    }

    /// Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the current authorization state is authorizationStateWaitPassword
    /// - Parameter recoveryCode: Recovery code to check
    public final func checkAuthenticationPasswordRecoveryCode(
        recoveryCode: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckAuthenticationPasswordRecoveryCode(
            recoveryCode: recoveryCode
        )
        self.run(query: query, completion: completion)
    }

    /// Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the current authorization state is authorizationStateWaitPassword
    /// - Parameter recoveryCode: Recovery code to check
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkAuthenticationPasswordRecoveryCode(recoveryCode: String?) async throws -> Ok {
        let query = CheckAuthenticationPasswordRecoveryCode(
            recoveryCode: recoveryCode
        )
        return try await self.run(query: query)
    }

    /// Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword
    /// - Parameter newHint: New password hint; may be empty
    /// - Parameter newPassword: New 2-step verification password of the user; may be empty to remove the password
    /// - Parameter recoveryCode: Recovery code to check
    public final func recoverAuthenticationPassword(
        newHint: String?,
        newPassword: String?,
        recoveryCode: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = RecoverAuthenticationPassword(
            newHint: newHint,
            newPassword: newPassword,
            recoveryCode: recoveryCode
        )
        self.run(query: query, completion: completion)
    }

    /// Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword
    /// - Parameter newHint: New password hint; may be empty
    /// - Parameter newPassword: New 2-step verification password of the user; may be empty to remove the password
    /// - Parameter recoveryCode: Recovery code to check
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func recoverAuthenticationPassword(
        newHint: String?,
        newPassword: String?,
        recoveryCode: String?
    ) async throws -> Ok {
        let query = RecoverAuthenticationPassword(
            newHint: newHint,
            newPassword: newPassword,
            recoveryCode: recoveryCode
        )
        return try await self.run(query: query)
    }

    /// Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos
    /// - Parameter token: Play Integrity API or SafetyNet Attestation API token for the Android application, or secret from push notification for the iOS application
    /// - Returns: Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos
    public final func sendAuthenticationFirebaseSms(
        token: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = SendAuthenticationFirebaseSms(
            token: token
        )
        self.run(query: query, completion: completion)
    }

    /// Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos
    /// - Parameter token: Play Integrity API or SafetyNet Attestation API token for the Android application, or secret from push notification for the iOS application
    /// - Returns: Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func sendAuthenticationFirebaseSms(token: String?) async throws -> Ok {
        let query = SendAuthenticationFirebaseSms(
            token: token
        )
        return try await self.run(query: query)
    }

    /// Reports that authentication code wasn't delivered via SMS; for official mobile applications only. Works only when the current authorization state is authorizationStateWaitCode
    /// - Parameter mobileNetworkCode: Current mobile network code
    public final func reportAuthenticationCodeMissing(
        mobileNetworkCode: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = ReportAuthenticationCodeMissing(
            mobileNetworkCode: mobileNetworkCode
        )
        self.run(query: query, completion: completion)
    }

    /// Reports that authentication code wasn't delivered via SMS; for official mobile applications only. Works only when the current authorization state is authorizationStateWaitCode
    /// - Parameter mobileNetworkCode: Current mobile network code
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func reportAuthenticationCodeMissing(mobileNetworkCode: String?) async throws -> Ok {
        let query = ReportAuthenticationCodeMissing(
            mobileNetworkCode: mobileNetworkCode
        )
        return try await self.run(query: query)
    }

    /// Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in
    /// - Parameter token: The bot token
    public final func checkAuthenticationBotToken(
        token: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckAuthenticationBotToken(
            token: token
        )
        self.run(query: query, completion: completion)
    }

    /// Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in
    /// - Parameter token: The bot token
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkAuthenticationBotToken(token: String?) async throws -> Ok {
        let query = CheckAuthenticationBotToken(
            token: token
        )
        return try await self.run(query: query)
    }

    /// Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent
    public final func logOut(completion: @escaping (Result<Ok, Swift.Error>) -> Void) throws {
        let query = LogOut()
        self.run(query: query, completion: completion)
    }

    /// Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func logOut() async throws -> Ok {
        let query = LogOut()
        return try await self.run(query: query)
    }

    /// Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization
    public final func close(completion: @escaping (Result<Ok, Swift.Error>) -> Void) throws {
        let query = Close()
        self.run(query: query, completion: completion)
    }

    /// Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func close() async throws -> Ok {
        let query = Close()
        return try await self.run(query: query)
    }

    /// Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization
    public final func destroy(completion: @escaping (Result<Ok, Swift.Error>) -> Void) throws {
        let query = Destroy()
        self.run(query: query, completion: completion)
    }

    /// Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func destroy() async throws -> Ok {
        let query = Destroy()
        return try await self.run(query: query)
    }

    /// Confirms QR code authentication on another device. Returns created session on success
    /// - Parameter link: A link from a QR code. The link must be scanned by the in-app camera
    /// - Returns: Created session on success
    public final func confirmQrCodeAuthentication(
        link: String?,
        completion: @escaping (Result<Session, Swift.Error>) -> Void
    ) throws {
        let query = ConfirmQrCodeAuthentication(
            link: link
        )
        self.run(query: query, completion: completion)
    }

    /// Confirms QR code authentication on another device. Returns created session on success
    /// - Parameter link: A link from a QR code. The link must be scanned by the in-app camera
    /// - Returns: Created session on success
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func confirmQrCodeAuthentication(link: String?) async throws -> Session {
        let query = ConfirmQrCodeAuthentication(
            link: link
        )
        return try await self.run(query: query)
    }

    /// Returns all updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization
    /// - Returns: All updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others
    public final func getCurrentState(completion: @escaping (Result<Updates, Swift.Error>) -> Void) throws {
        let query = GetCurrentState()
        self.run(query: query, completion: completion)
    }

    /// Returns all updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization
    /// - Returns: All updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getCurrentState() async throws -> Updates {
        let query = GetCurrentState()
        return try await self.run(query: query)
    }

    /// Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain
    /// - Parameter newEncryptionKey: New encryption key
    public final func setDatabaseEncryptionKey(
        newEncryptionKey: Data?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = SetDatabaseEncryptionKey(
            newEncryptionKey: newEncryptionKey
        )
        self.run(query: query, completion: completion)
    }

    /// Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain
    /// - Parameter newEncryptionKey: New encryption key
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func setDatabaseEncryptionKey(newEncryptionKey: Data?) async throws -> Ok {
        let query = SetDatabaseEncryptionKey(
            newEncryptionKey: newEncryptionKey
        )
        return try await self.run(query: query)
    }

    /// Returns the current state of 2-step verification
    /// - Returns: The current state of 2-step verification
    public final func getPasswordState(completion: @escaping (Result<PasswordState, Swift.Error>) -> Void) throws {
        let query = GetPasswordState()
        self.run(query: query, completion: completion)
    }

    /// Returns the current state of 2-step verification
    /// - Returns: The current state of 2-step verification
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getPasswordState() async throws -> PasswordState {
        let query = GetPasswordState()
        return try await self.run(query: query)
    }

    /// Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed
    /// - Parameter newHint: New password hint; may be empty
    /// - Parameter newPassword: New 2-step verification password of the user; may be empty to remove the password
    /// - Parameter newRecoveryEmailAddress: New recovery email address; may be empty
    /// - Parameter oldPassword: Previous 2-step verification password of the user
    /// - Parameter setRecoveryEmailAddress: Pass true to change also the recovery email address
    public final func setPassword(
        newHint: String?,
        newPassword: String?,
        newRecoveryEmailAddress: String?,
        oldPassword: String?,
        setRecoveryEmailAddress: Bool?,
        completion: @escaping (Result<PasswordState, Swift.Error>) -> Void
    ) throws {
        let query = SetPassword(
            newHint: newHint,
            newPassword: newPassword,
            newRecoveryEmailAddress: newRecoveryEmailAddress,
            oldPassword: oldPassword,
            setRecoveryEmailAddress: setRecoveryEmailAddress
        )
        self.run(query: query, completion: completion)
    }

    /// Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed
    /// - Parameter newHint: New password hint; may be empty
    /// - Parameter newPassword: New 2-step verification password of the user; may be empty to remove the password
    /// - Parameter newRecoveryEmailAddress: New recovery email address; may be empty
    /// - Parameter oldPassword: Previous 2-step verification password of the user
    /// - Parameter setRecoveryEmailAddress: Pass true to change also the recovery email address
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func setPassword(
        newHint: String?,
        newPassword: String?,
        newRecoveryEmailAddress: String?,
        oldPassword: String?,
        setRecoveryEmailAddress: Bool?
    ) async throws -> PasswordState {
        let query = SetPassword(
            newHint: newHint,
            newPassword: newPassword,
            newRecoveryEmailAddress: newRecoveryEmailAddress,
            oldPassword: oldPassword,
            setRecoveryEmailAddress: setRecoveryEmailAddress
        )
        return try await self.run(query: query)
    }

    /// Checks whether the current user is required to set login email address
    public final func isLoginEmailAddressRequired(completion: @escaping (Result<Ok, Swift.Error>) -> Void) throws {
        let query = IsLoginEmailAddressRequired()
        self.run(query: query, completion: completion)
    }

    /// Checks whether the current user is required to set login email address
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func isLoginEmailAddressRequired() async throws -> Ok {
        let query = IsLoginEmailAddressRequired()
        return try await self.run(query: query)
    }

    /// Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty, or the user received suggestedActionSetLoginEmailAddress and isLoginEmailAddressRequired succeeds. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. To use Apple ID/Google ID instead of an email address, call checkLoginEmailAddressCode directly
    /// - Parameter newLoginEmailAddress: New login email address
    public final func setLoginEmailAddress(
        newLoginEmailAddress: String?,
        completion: @escaping (Result<EmailAddressAuthenticationCodeInfo, Swift.Error>) -> Void
    ) throws {
        let query = SetLoginEmailAddress(
            newLoginEmailAddress: newLoginEmailAddress
        )
        self.run(query: query, completion: completion)
    }

    /// Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty, or the user received suggestedActionSetLoginEmailAddress and isLoginEmailAddressRequired succeeds. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. To use Apple ID/Google ID instead of an email address, call checkLoginEmailAddressCode directly
    /// - Parameter newLoginEmailAddress: New login email address
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func setLoginEmailAddress(newLoginEmailAddress: String?) async throws -> EmailAddressAuthenticationCodeInfo {
        let query = SetLoginEmailAddress(
            newLoginEmailAddress: newLoginEmailAddress
        )
        return try await self.run(query: query)
    }

    /// Resends the login email address verification code
    public final func resendLoginEmailAddressCode(completion: @escaping (Result<EmailAddressAuthenticationCodeInfo, Swift.Error>) -> Void) throws {
        let query = ResendLoginEmailAddressCode()
        self.run(query: query, completion: completion)
    }

    /// Resends the login email address verification code
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func resendLoginEmailAddressCode() async throws -> EmailAddressAuthenticationCodeInfo {
        let query = ResendLoginEmailAddressCode()
        return try await self.run(query: query)
    }

    /// Checks the login email address authentication
    /// - Parameter code: Email address authentication to check
    public final func checkLoginEmailAddressCode(
        code: EmailAddressAuthentication?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckLoginEmailAddressCode(
            code: code
        )
        self.run(query: query, completion: completion)
    }

    /// Checks the login email address authentication
    /// - Parameter code: Email address authentication to check
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkLoginEmailAddressCode(code: EmailAddressAuthentication?) async throws -> Ok {
        let query = CheckLoginEmailAddressCode(
            code: code
        )
        return try await self.run(query: query)
    }

    /// Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user
    /// - Parameter password: The 2-step verification password for the current user
    /// - Returns: A 2-step verification recovery email address that was previously set up
    public final func getRecoveryEmailAddress(
        password: String?,
        completion: @escaping (Result<RecoveryEmailAddress, Swift.Error>) -> Void
    ) throws {
        let query = GetRecoveryEmailAddress(
            password: password
        )
        self.run(query: query, completion: completion)
    }

    /// Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user
    /// - Parameter password: The 2-step verification password for the current user
    /// - Returns: A 2-step verification recovery email address that was previously set up
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getRecoveryEmailAddress(password: String?) async throws -> RecoveryEmailAddress {
        let query = GetRecoveryEmailAddress(
            password: password
        )
        return try await self.run(query: query)
    }

    /// Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation
    /// - Parameter newRecoveryEmailAddress: New recovery email address
    /// - Parameter password: The 2-step verification password of the current user
    public final func setRecoveryEmailAddress(
        newRecoveryEmailAddress: String?,
        password: String?,
        completion: @escaping (Result<PasswordState, Swift.Error>) -> Void
    ) throws {
        let query = SetRecoveryEmailAddress(
            newRecoveryEmailAddress: newRecoveryEmailAddress,
            password: password
        )
        self.run(query: query, completion: completion)
    }

    /// Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation
    /// - Parameter newRecoveryEmailAddress: New recovery email address
    /// - Parameter password: The 2-step verification password of the current user
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func setRecoveryEmailAddress(
        newRecoveryEmailAddress: String?,
        password: String?
    ) async throws -> PasswordState {
        let query = SetRecoveryEmailAddress(
            newRecoveryEmailAddress: newRecoveryEmailAddress,
            password: password
        )
        return try await self.run(query: query)
    }

    /// Checks the 2-step verification recovery email address verification code
    /// - Parameter code: Verification code to check
    public final func checkRecoveryEmailAddressCode(
        code: String?,
        completion: @escaping (Result<PasswordState, Swift.Error>) -> Void
    ) throws {
        let query = CheckRecoveryEmailAddressCode(
            code: code
        )
        self.run(query: query, completion: completion)
    }

    /// Checks the 2-step verification recovery email address verification code
    /// - Parameter code: Verification code to check
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func checkRecoveryEmailAddressCode(code: String?) async throws -> PasswordState {
        let query = CheckRecoveryEmailAddressCode(
            code: code
        )
        return try await self.run(query: query)
    }

    /// Resends the 2-step verification recovery email address verification code
    public final func resendRecoveryEmailAddressCode(completion: @escaping (Result<PasswordState, Swift.Error>) -> Void) throws {
        let query = ResendRecoveryEmailAddressCode()
        self.run(query: query, completion: completion)
    }

    /// Resends the 2-step verification recovery email address verification code
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func resendRecoveryEmailAddressCode() async throws -> PasswordState {
        let query = ResendRecoveryEmailAddressCode()
        return try await self.run(query: query)
    }

    /// Cancels verification of the 2-step verification recovery email address
    public final func cancelRecoveryEmailAddressVerification(completion: @escaping (Result<PasswordState, Swift.Error>) -> Void) throws {
        let query = CancelRecoveryEmailAddressVerification()
        self.run(query: query, completion: completion)
    }

    /// Cancels verification of the 2-step verification recovery email address
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func cancelRecoveryEmailAddressVerification() async throws -> PasswordState {
        let query = CancelRecoveryEmailAddressVerification()
        return try await self.run(query: query)
    }

    /// Requests to send a 2-step verification password recovery code to an email address that was previously set up
    public final func requestPasswordRecovery(completion: @escaping (Result<EmailAddressAuthenticationCodeInfo, Swift.Error>) -> Void) throws {
        let query = RequestPasswordRecovery()
        self.run(query: query, completion: completion)
    }

    /// Requests to send a 2-step verification password recovery code to an email address that was previously set up
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func requestPasswordRecovery() async throws -> EmailAddressAuthenticationCodeInfo {
        let query = RequestPasswordRecovery()
        return try await self.run(query: query)
    }

    /// Checks whether a 2-step verification password recovery code sent to an email address is valid
    /// - Parameter recoveryCode: Recovery code to check
    public final func checkPasswordRecoveryCode(
        recoveryCode: String?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckPasswordRecoveryCode(
            recoveryCode: recoveryCode
        )
        self.run(query: query, completion: completion)
    }

    /// Checks whether a 2-step verification password recovery code sent to an email address is valid
    /// - Parameter recoveryCode: Recovery code to check
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkPasswordRecoveryCode(recoveryCode: String?) async throws -> Ok {
        let query = CheckPasswordRecoveryCode(
            recoveryCode: recoveryCode
        )
        return try await self.run(query: query)
    }

    /// Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up
    /// - Parameter newHint: New password hint; may be empty
    /// - Parameter newPassword: New 2-step verification password of the user; may be empty to remove the password
    /// - Parameter recoveryCode: Recovery code to check
    public final func recoverPassword(
        newHint: String?,
        newPassword: String?,
        recoveryCode: String?,
        completion: @escaping (Result<PasswordState, Swift.Error>) -> Void
    ) throws {
        let query = RecoverPassword(
            newHint: newHint,
            newPassword: newPassword,
            recoveryCode: recoveryCode
        )
        self.run(query: query, completion: completion)
    }

    /// Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up
    /// - Parameter newHint: New password hint; may be empty
    /// - Parameter newPassword: New 2-step verification password of the user; may be empty to remove the password
    /// - Parameter recoveryCode: Recovery code to check
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func recoverPassword(
        newHint: String?,
        newPassword: String?,
        recoveryCode: String?
    ) async throws -> PasswordState {
        let query = RecoverPassword(
            newHint: newHint,
            newPassword: newPassword,
            recoveryCode: recoveryCode
        )
        return try await self.run(query: query)
    }

    /// Removes 2-step verification password without previous password and access to recovery email address. The password can't be reset immediately and the request needs to be repeated after the specified time
    public final func resetPassword(completion: @escaping (Result<ResetPasswordResult, Swift.Error>) -> Void) throws {
        let query = ResetPassword()
        self.run(query: query, completion: completion)
    }

    /// Removes 2-step verification password without previous password and access to recovery email address. The password can't be reset immediately and the request needs to be repeated after the specified time
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func resetPassword() async throws -> ResetPasswordResult {
        let query = ResetPassword()
        return try await self.run(query: query)
    }

    /// Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0
    public final func cancelPasswordReset(completion: @escaping (Result<Ok, Swift.Error>) -> Void) throws {
        let query = CancelPasswordReset()
        self.run(query: query, completion: completion)
    }

    /// Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func cancelPasswordReset() async throws -> Ok {
        let query = CancelPasswordReset()
        return try await self.run(query: query)
    }

    /// Creates a new temporary password for processing payments
    /// - Parameter password: The 2-step verification password of the current user
    /// - Parameter validFor: Time during which the temporary password will be valid, in seconds; must be between 60 and 86400
    public final func createTemporaryPassword(
        password: String?,
        validFor: Int?,
        completion: @escaping (Result<TemporaryPasswordState, Swift.Error>) -> Void
    ) throws {
        let query = CreateTemporaryPassword(
            password: password,
            validFor: validFor
        )
        self.run(query: query, completion: completion)
    }

    /// Creates a new temporary password for processing payments
    /// - Parameter password: The 2-step verification password of the current user
    /// - Parameter validFor: Time during which the temporary password will be valid, in seconds; must be between 60 and 86400
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func createTemporaryPassword(
        password: String?,
        validFor: Int?
    ) async throws -> TemporaryPasswordState {
        let query = CreateTemporaryPassword(
            password: password,
            validFor: validFor
        )
        return try await self.run(query: query)
    }

    /// Returns information about the current temporary password
    /// - Returns: Information about the current temporary password
    public final func getTemporaryPasswordState(completion: @escaping (Result<TemporaryPasswordState, Swift.Error>) -> Void) throws {
        let query = GetTemporaryPasswordState()
        self.run(query: query, completion: completion)
    }

    /// Returns information about the current temporary password
    /// - Returns: Information about the current temporary password
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getTemporaryPasswordState() async throws -> TemporaryPasswordState {
        let query = GetTemporaryPasswordState()
        return try await self.run(query: query)
    }

    /// Returns the current user
    /// - Returns: The current user
    public final func getMe(completion: @escaping (Result<User, Swift.Error>) -> Void) throws {
        let query = GetMe()
        self.run(query: query, completion: completion)
    }

    /// Returns the current user
    /// - Returns: The current user
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMe() async throws -> User {
        let query = GetMe()
        return try await self.run(query: query)
    }

    /// Returns information about a user by their identifier. This is an offline method if the current user is not a bot
    /// - Parameter userId: User identifier
    /// - Returns: Information about a user by their identifier
    public final func getUser(
        userId: Int64?,
        completion: @escaping (Result<User, Swift.Error>) -> Void
    ) throws {
        let query = GetUser(
            userId: userId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a user by their identifier. This is an offline method if the current user is not a bot
    /// - Parameter userId: User identifier
    /// - Returns: Information about a user by their identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getUser(userId: Int64?) async throws -> User {
        let query = GetUser(
            userId: userId
        )
        return try await self.run(query: query)
    }

    /// Returns full information about a user by their identifier
    /// - Parameter userId: User identifier
    /// - Returns: Full information about a user by their identifier
    public final func getUserFullInfo(
        userId: Int64?,
        completion: @escaping (Result<UserFullInfo, Swift.Error>) -> Void
    ) throws {
        let query = GetUserFullInfo(
            userId: userId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns full information about a user by their identifier
    /// - Parameter userId: User identifier
    /// - Returns: Full information about a user by their identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getUserFullInfo(userId: Int64?) async throws -> UserFullInfo {
        let query = GetUserFullInfo(
            userId: userId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a basic group by its identifier. This is an offline method if the current user is not a bot
    /// - Parameter basicGroupId: Basic group identifier
    /// - Returns: Information about a basic group by its identifier
    public final func getBasicGroup(
        basicGroupId: Int64?,
        completion: @escaping (Result<BasicGroup, Swift.Error>) -> Void
    ) throws {
        let query = GetBasicGroup(
            basicGroupId: basicGroupId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a basic group by its identifier. This is an offline method if the current user is not a bot
    /// - Parameter basicGroupId: Basic group identifier
    /// - Returns: Information about a basic group by its identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getBasicGroup(basicGroupId: Int64?) async throws -> BasicGroup {
        let query = GetBasicGroup(
            basicGroupId: basicGroupId
        )
        return try await self.run(query: query)
    }

    /// Returns full information about a basic group by its identifier
    /// - Parameter basicGroupId: Basic group identifier
    /// - Returns: Full information about a basic group by its identifier
    public final func getBasicGroupFullInfo(
        basicGroupId: Int64?,
        completion: @escaping (Result<BasicGroupFullInfo, Swift.Error>) -> Void
    ) throws {
        let query = GetBasicGroupFullInfo(
            basicGroupId: basicGroupId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns full information about a basic group by its identifier
    /// - Parameter basicGroupId: Basic group identifier
    /// - Returns: Full information about a basic group by its identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getBasicGroupFullInfo(basicGroupId: Int64?) async throws -> BasicGroupFullInfo {
        let query = GetBasicGroupFullInfo(
            basicGroupId: basicGroupId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a supergroup or a channel by its identifier. This is an offline method if the current user is not a bot
    /// - Parameter supergroupId: Supergroup or channel identifier
    /// - Returns: Information about a supergroup or a channel by its identifier
    public final func getSupergroup(
        supergroupId: Int64?,
        completion: @escaping (Result<Supergroup, Swift.Error>) -> Void
    ) throws {
        let query = GetSupergroup(
            supergroupId: supergroupId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a supergroup or a channel by its identifier. This is an offline method if the current user is not a bot
    /// - Parameter supergroupId: Supergroup or channel identifier
    /// - Returns: Information about a supergroup or a channel by its identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getSupergroup(supergroupId: Int64?) async throws -> Supergroup {
        let query = GetSupergroup(
            supergroupId: supergroupId
        )
        return try await self.run(query: query)
    }

    /// Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute
    /// - Parameter supergroupId: Supergroup or channel identifier
    /// - Returns: Full information about a supergroup or a channel by its identifier, cached for up to 1 minute
    public final func getSupergroupFullInfo(
        supergroupId: Int64?,
        completion: @escaping (Result<SupergroupFullInfo, Swift.Error>) -> Void
    ) throws {
        let query = GetSupergroupFullInfo(
            supergroupId: supergroupId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute
    /// - Parameter supergroupId: Supergroup or channel identifier
    /// - Returns: Full information about a supergroup or a channel by its identifier, cached for up to 1 minute
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getSupergroupFullInfo(supergroupId: Int64?) async throws -> SupergroupFullInfo {
        let query = GetSupergroupFullInfo(
            supergroupId: supergroupId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a secret chat by its identifier. This is an offline method
    /// - Parameter secretChatId: Secret chat identifier
    /// - Returns: Information about a secret chat by its identifier
    public final func getSecretChat(
        secretChatId: Int?,
        completion: @escaping (Result<SecretChat, Swift.Error>) -> Void
    ) throws {
        let query = GetSecretChat(
            secretChatId: secretChatId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a secret chat by its identifier. This is an offline method
    /// - Parameter secretChatId: Secret chat identifier
    /// - Returns: Information about a secret chat by its identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getSecretChat(secretChatId: Int?) async throws -> SecretChat {
        let query = GetSecretChat(
            secretChatId: secretChatId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a chat by its identifier. This is an offline method if the current user is not a bot
    /// - Parameter chatId: Chat identifier
    /// - Returns: Information about a chat by its identifier
    public final func getChat(
        chatId: Int64?,
        completion: @escaping (Result<Chat, Swift.Error>) -> Void
    ) throws {
        let query = GetChat(
            chatId: chatId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a chat by its identifier. This is an offline method if the current user is not a bot
    /// - Parameter chatId: Chat identifier
    /// - Returns: Information about a chat by its identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getChat(chatId: Int64?) async throws -> Chat {
        let query = GetChat(
            chatId: chatId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a message. Returns a 404 error if the message doesn't exist
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Parameter messageId: Identifier of the message to get
    /// - Returns: Information about a message. Returns a 404 error if the message doesn't exist
    public final func getMessage(
        chatId: Int64?,
        messageId: Int64?,
        completion: @escaping (Result<Message, Swift.Error>) -> Void
    ) throws {
        let query = GetMessage(
            chatId: chatId,
            messageId: messageId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a message. Returns a 404 error if the message doesn't exist
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Parameter messageId: Identifier of the message to get
    /// - Returns: Information about a message. Returns a 404 error if the message doesn't exist
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMessage(
        chatId: Int64?,
        messageId: Int64?
    ) async throws -> Message {
        let query = GetMessage(
            chatId: chatId,
            messageId: messageId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a message, if it is available without sending network request. Returns a 404 error if message isn't available locally. This is an offline method
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Parameter messageId: Identifier of the message to get
    /// - Returns: Information about a message, if it is available without sending network request. Returns a 404 error if message isn't available locally
    public final func getMessageLocally(
        chatId: Int64?,
        messageId: Int64?,
        completion: @escaping (Result<Message, Swift.Error>) -> Void
    ) throws {
        let query = GetMessageLocally(
            chatId: chatId,
            messageId: messageId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a message, if it is available without sending network request. Returns a 404 error if message isn't available locally. This is an offline method
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Parameter messageId: Identifier of the message to get
    /// - Returns: Information about a message, if it is available without sending network request. Returns a 404 error if message isn't available locally
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMessageLocally(
        chatId: Int64?,
        messageId: Int64?
    ) async throws -> Message {
        let query = GetMessageLocally(
            chatId: chatId,
            messageId: messageId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage, the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground, the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded, the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade, the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, the message with the request to disable content protection for messageChatHasProtectedContentToggled, the message with the poll for messagePollOptionAdded and messagePollOptionDeleted, and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Parameter messageId: Identifier of the reply message
    /// - Returns: Information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage, the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground, the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded, the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade, the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, the message with the request to disable content protection for messageChatHasProtectedContentToggled, the message with the poll for messagePollOptionAdded and messagePollOptionDeleted, and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist
    public final func getRepliedMessage(
        chatId: Int64?,
        messageId: Int64?,
        completion: @escaping (Result<Message, Swift.Error>) -> Void
    ) throws {
        let query = GetRepliedMessage(
            chatId: chatId,
            messageId: messageId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage, the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground, the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded, the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade, the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, the message with the request to disable content protection for messageChatHasProtectedContentToggled, the message with the poll for messagePollOptionAdded and messagePollOptionDeleted, and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Parameter messageId: Identifier of the reply message
    /// - Returns: Information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage, the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground, the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded, the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade, the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, the message with the request to disable content protection for messageChatHasProtectedContentToggled, the message with the poll for messagePollOptionAdded and messagePollOptionDeleted, and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getRepliedMessage(
        chatId: Int64?,
        messageId: Int64?
    ) async throws -> Message {
        let query = GetRepliedMessage(
            chatId: chatId,
            messageId: messageId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Returns: Information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist
    public final func getChatPinnedMessage(
        chatId: Int64?,
        completion: @escaping (Result<Message, Swift.Error>) -> Void
    ) throws {
        let query = GetChatPinnedMessage(
            chatId: chatId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Returns: Information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getChatPinnedMessage(chatId: Int64?) async throws -> Message {
        let query = GetChatPinnedMessage(
            chatId: chatId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a message with the callback button that originated a callback query; for bots only
    /// - Parameter callbackQueryId: Identifier of the callback query
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Parameter messageId: Message identifier
    /// - Returns: Information about a message with the callback button that originated a callback query
    public final func getCallbackQueryMessage(
        callbackQueryId: TdInt64?,
        chatId: Int64?,
        messageId: Int64?,
        completion: @escaping (Result<Message, Swift.Error>) -> Void
    ) throws {
        let query = GetCallbackQueryMessage(
            callbackQueryId: callbackQueryId,
            chatId: chatId,
            messageId: messageId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a message with the callback button that originated a callback query; for bots only
    /// - Parameter callbackQueryId: Identifier of the callback query
    /// - Parameter chatId: Identifier of the chat the message belongs to
    /// - Parameter messageId: Message identifier
    /// - Returns: Information about a message with the callback button that originated a callback query
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getCallbackQueryMessage(
        callbackQueryId: TdInt64?,
        chatId: Int64?,
        messageId: Int64?
    ) async throws -> Message {
        let query = GetCallbackQueryMessage(
            callbackQueryId: callbackQueryId,
            chatId: chatId,
            messageId: messageId
        )
        return try await self.run(query: query)
    }

    /// Returns information about messages. If a message is not found, returns null on the corresponding position of the result
    /// - Parameter chatId: Identifier of the chat the messages belong to
    /// - Parameter messageIds: Identifiers of the messages to get
    /// - Returns: Information about messages. If a message is not found, returns null on the corresponding position of the result
    public final func getMessages(
        chatId: Int64?,
        messageIds: [Int64]?,
        completion: @escaping (Result<Messages, Swift.Error>) -> Void
    ) throws {
        let query = GetMessages(
            chatId: chatId,
            messageIds: messageIds
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about messages. If a message is not found, returns null on the corresponding position of the result
    /// - Parameter chatId: Identifier of the chat the messages belong to
    /// - Parameter messageIds: Identifiers of the messages to get
    /// - Returns: Information about messages. If a message is not found, returns null on the corresponding position of the result
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMessages(
        chatId: Int64?,
        messageIds: [Int64]?
    ) async throws -> Messages {
        let query = GetMessages(
            chatId: chatId,
            messageIds: messageIds
        )
        return try await self.run(query: query)
    }

    /// Returns properties of a message. This is an offline method
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Properties of a message
    public final func getMessageProperties(
        chatId: Int64?,
        messageId: Int64?,
        completion: @escaping (Result<MessageProperties, Swift.Error>) -> Void
    ) throws {
        let query = GetMessageProperties(
            chatId: chatId,
            messageId: messageId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns properties of a message. This is an offline method
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Properties of a message
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMessageProperties(
        chatId: Int64?,
        messageId: Int64?
    ) async throws -> MessageProperties {
        let query = GetMessageProperties(
            chatId: chatId,
            messageId: messageId
        )
        return try await self.run(query: query)
    }

    /// Returns properties of a poll option. This is an offline method
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Parameter pollOptionId: Unique identifier of the answer option, which properties will be returned
    /// - Returns: Properties of a poll option
    public final func getPollOptionProperties(
        chatId: Int64?,
        messageId: Int64?,
        pollOptionId: String?,
        completion: @escaping (Result<PollOptionProperties, Swift.Error>) -> Void
    ) throws {
        let query = GetPollOptionProperties(
            chatId: chatId,
            messageId: messageId,
            pollOptionId: pollOptionId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns properties of a poll option. This is an offline method
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Parameter pollOptionId: Unique identifier of the answer option, which properties will be returned
    /// - Returns: Properties of a poll option
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getPollOptionProperties(
        chatId: Int64?,
        messageId: Int64?,
        pollOptionId: String?
    ) async throws -> PollOptionProperties {
        let query = GetPollOptionProperties(
            chatId: chatId,
            messageId: messageId,
            pollOptionId: pollOptionId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Information about a message thread
    public final func getMessageThread(
        chatId: Int64?,
        messageId: Int64?,
        completion: @escaping (Result<MessageThreadInfo, Swift.Error>) -> Void
    ) throws {
        let query = GetMessageThread(
            chatId: chatId,
            messageId: messageId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Information about a message thread
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMessageThread(
        chatId: Int64?,
        messageId: Int64?
    ) async throws -> MessageThreadInfo {
        let query = GetMessageThread(
            chatId: chatId,
            messageId: messageId
        )
        return try await self.run(query: query)
    }

    /// Returns read date of a recent outgoing message in a private chat. The method can be called if messageProperties.can_get_read_date == true
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Read date of a recent outgoing message in a private chat
    public final func getMessageReadDate(
        chatId: Int64?,
        messageId: Int64?,
        completion: @escaping (Result<MessageReadDate, Swift.Error>) -> Void
    ) throws {
        let query = GetMessageReadDate(
            chatId: chatId,
            messageId: messageId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns read date of a recent outgoing message in a private chat. The method can be called if messageProperties.can_get_read_date == true
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Read date of a recent outgoing message in a private chat
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMessageReadDate(
        chatId: Int64?,
        messageId: Int64?
    ) async throws -> MessageReadDate {
        let query = GetMessageReadDate(
            chatId: chatId,
            messageId: messageId
        )
        return try await self.run(query: query)
    }

    /// Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if messageProperties.can_get_viewers == true
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned
    public final func getMessageViewers(
        chatId: Int64?,
        messageId: Int64?,
        completion: @escaping (Result<MessageViewers, Swift.Error>) -> Void
    ) throws {
        let query = GetMessageViewers(
            chatId: chatId,
            messageId: messageId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if messageProperties.can_get_viewers == true
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMessageViewers(
        chatId: Int64?,
        messageId: Int64?
    ) async throws -> MessageViewers {
        let query = GetMessageViewers(
            chatId: chatId,
            messageId: messageId
        )
        return try await self.run(query: query)
    }

    /// Returns information about actual author of a message sent on behalf of a channel. The method can be called if messageProperties.can_get_author == true
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Information about actual author of a message sent on behalf of a channel
    public final func getMessageAuthor(
        chatId: Int64?,
        messageId: Int64?,
        completion: @escaping (Result<User, Swift.Error>) -> Void
    ) throws {
        let query = GetMessageAuthor(
            chatId: chatId,
            messageId: messageId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about actual author of a message sent on behalf of a channel. The method can be called if messageProperties.can_get_author == true
    /// - Parameter chatId: Chat identifier
    /// - Parameter messageId: Identifier of the message
    /// - Returns: Information about actual author of a message sent on behalf of a channel
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMessageAuthor(
        chatId: Int64?,
        messageId: Int64?
    ) async throws -> User {
        let query = GetMessageAuthor(
            chatId: chatId,
            messageId: messageId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a file. This is an offline method
    /// - Parameter fileId: Identifier of the file to get
    /// - Returns: Information about a file
    public final func getFile(
        fileId: Int?,
        completion: @escaping (Result<File, Swift.Error>) -> Void
    ) throws {
        let query = GetFile(
            fileId: fileId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a file. This is an offline method
    /// - Parameter fileId: Identifier of the file to get
    /// - Returns: Information about a file
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getFile(fileId: Int?) async throws -> File {
        let query = GetFile(
            fileId: fileId
        )
        return try await self.run(query: query)
    }

    /// Returns information about a file by its remote identifier. This is an offline method. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application
    /// - Parameter fileType: File type; pass null if unknown
    /// - Parameter remoteFileId: Remote identifier of the file to get
    /// - Returns: Information about a file by its remote identifier
    public final func getRemoteFile(
        fileType: FileType?,
        remoteFileId: String?,
        completion: @escaping (Result<File, Swift.Error>) -> Void
    ) throws {
        let query = GetRemoteFile(
            fileType: fileType,
            remoteFileId: remoteFileId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about a file by its remote identifier. This is an offline method. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application
    /// - Parameter fileType: File type; pass null if unknown
    /// - Parameter remoteFileId: Remote identifier of the file to get
    /// - Returns: Information about a file by its remote identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getRemoteFile(
        fileType: FileType?,
        remoteFileId: String?
    ) async throws -> File {
        let query = GetRemoteFile(
            fileType: fileType,
            remoteFileId: remoteFileId
        )
        return try await self.run(query: query)
    }

    /// Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have been loaded
    /// - Parameter chatList: The chat list in which to load chats; pass null to load chats from the main chat list
    /// - Parameter limit: The maximum number of chats to be loaded. For optimal performance, the number of loaded chats is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
    /// - Returns: A 404 error if all chats have been loaded
    public final func loadChats(
        chatList: ChatList?,
        limit: Int?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = LoadChats(
            chatList: chatList,
            limit: limit
        )
        self.run(query: query, completion: completion)
    }

    /// Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have been loaded
    /// - Parameter chatList: The chat list in which to load chats; pass null to load chats from the main chat list
    /// - Parameter limit: The maximum number of chats to be loaded. For optimal performance, the number of loaded chats is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
    /// - Returns: A 404 error if all chats have been loaded
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func loadChats(
        chatList: ChatList?,
        limit: Int?
    ) async throws -> Ok {
        let query = LoadChats(
            chatList: chatList,
            limit: limit
        )
        return try await self.run(query: query)
    }

    /// Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and updates processing instead to maintain chat lists in a consistent state
    /// - Parameter chatList: The chat list in which to return chats; pass null to get chats from the main chat list
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Returns: An ordered list of chats from the beginning of a chat list
    public final func getChats(
        chatList: ChatList?,
        limit: Int?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = GetChats(
            chatList: chatList,
            limit: limit
        )
        self.run(query: query, completion: completion)
    }

    /// Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and updates processing instead to maintain chat lists in a consistent state
    /// - Parameter chatList: The chat list in which to return chats; pass null to get chats from the main chat list
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Returns: An ordered list of chats from the beginning of a chat list
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getChats(
        chatList: ChatList?,
        limit: Int?
    ) async throws -> Chats {
        let query = GetChats(
            chatList: chatList,
            limit: limit
        )
        return try await self.run(query: query)
    }

    /// Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned
    /// - Parameter username: Username to be resolved
    /// - Returns: The chat if found. otherwise, an error is returned
    public final func searchPublicChat(
        username: String?,
        completion: @escaping (Result<Chat, Swift.Error>) -> Void
    ) throws {
        let query = SearchPublicChat(
            username: username
        )
        self.run(query: query, completion: completion)
    }

    /// Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned
    /// - Parameter username: Username to be resolved
    /// - Returns: The chat if found. otherwise, an error is returned
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func searchPublicChat(username: String?) async throws -> Chat {
        let query = SearchPublicChat(
            username: username
        )
        return try await self.run(query: query)
    }

    /// Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. Excludes private chats with contacts and chats from the chat list from the results
    /// - Parameter query: Query to search for
    /// - Returns: A meaningful number of results
    public final func searchPublicChats(
        query: String?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = SearchPublicChats(
            query: query
        )
        self.run(query: query, completion: completion)
    }

    /// Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. Excludes private chats with contacts and chats from the chat list from the results
    /// - Parameter query: Query to search for
    /// - Returns: A meaningful number of results
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func searchPublicChats(query: String?) async throws -> Chats {
        let query = SearchPublicChats(
            query: query
        )
        return try await self.run(query: query)
    }

    /// Searches for the specified query in the title and username of already known chats. This is an offline method. Returns chats in the order seen in the main chat list
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Parameter query: Query to search for. If the query is empty, returns up to 50 recently found chats
    /// - Returns: Chats in the order seen in the main chat list
    public final func searchChats(
        limit: Int?,
        query: String?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = SearchChats(
            limit: limit,
            query: query
        )
        self.run(query: query, completion: completion)
    }

    /// Searches for the specified query in the title and username of already known chats. This is an offline method. Returns chats in the order seen in the main chat list
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Parameter query: Query to search for. If the query is empty, returns up to 50 recently found chats
    /// - Returns: Chats in the order seen in the main chat list
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func searchChats(
        limit: Int?,
        query: String?
    ) async throws -> Chats {
        let query = SearchChats(
            limit: limit,
            query: query
        )
        return try await self.run(query: query)
    }

    /// Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Parameter query: Query to search for
    /// - Returns: Chats in the order seen in the main chat list
    public final func searchChatsOnServer(
        limit: Int?,
        query: String?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = SearchChatsOnServer(
            limit: limit,
            query: query
        )
        self.run(query: query, completion: completion)
    }

    /// Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Parameter query: Query to search for
    /// - Returns: Chats in the order seen in the main chat list
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func searchChatsOnServer(
        limit: Int?,
        query: String?
    ) async throws -> Chats {
        let query = SearchChatsOnServer(
            limit: limit,
            query: query
        )
        return try await self.run(query: query)
    }

    /// Returns a list of channel chats recommended to the current user
    /// - Returns: A list of channel chats recommended to the current user
    public final func getRecommendedChats(completion: @escaping (Result<Chats, Swift.Error>) -> Void) throws {
        let query = GetRecommendedChats()
        self.run(query: query, completion: completion)
    }

    /// Returns a list of channel chats recommended to the current user
    /// - Returns: A list of channel chats recommended to the current user
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getRecommendedChats() async throws -> Chats {
        let query = GetRecommendedChats()
        return try await self.run(query: query)
    }

    /// Returns a list of chats similar to the given chat
    /// - Parameter chatId: Identifier of the target chat; must be an identifier of a channel chat
    /// - Returns: A list of chats similar to the given chat
    public final func getChatSimilarChats(
        chatId: Int64?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = GetChatSimilarChats(
            chatId: chatId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns a list of chats similar to the given chat
    /// - Parameter chatId: Identifier of the target chat; must be an identifier of a channel chat
    /// - Returns: A list of chats similar to the given chat
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getChatSimilarChats(chatId: Int64?) async throws -> Chats {
        let query = GetChatSimilarChats(
            chatId: chatId
        )
        return try await self.run(query: query)
    }

    /// Returns approximate number of chats similar to the given chat
    /// - Parameter chatId: Identifier of the target chat; must be an identifier of a channel chat
    /// - Parameter returnLocal: Pass true to get the number of chats without sending network requests, or -1 if the number of chats is unknown locally
    /// - Returns: Approximate number of chats similar to the given chat
    public final func getChatSimilarChatCount(
        chatId: Int64?,
        returnLocal: Bool?,
        completion: @escaping (Result<Count, Swift.Error>) -> Void
    ) throws {
        let query = GetChatSimilarChatCount(
            chatId: chatId,
            returnLocal: returnLocal
        )
        self.run(query: query, completion: completion)
    }

    /// Returns approximate number of chats similar to the given chat
    /// - Parameter chatId: Identifier of the target chat; must be an identifier of a channel chat
    /// - Parameter returnLocal: Pass true to get the number of chats without sending network requests, or -1 if the number of chats is unknown locally
    /// - Returns: Approximate number of chats similar to the given chat
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getChatSimilarChatCount(
        chatId: Int64?,
        returnLocal: Bool?
    ) async throws -> Count {
        let query = GetChatSimilarChatCount(
            chatId: chatId,
            returnLocal: returnLocal
        )
        return try await self.run(query: query)
    }

    /// Informs TDLib that a chat was opened from the list of similar chats. The method is independent of openChat and closeChat methods
    /// - Parameter chatId: Identifier of the original chat, which similar chats were requested
    /// - Parameter openedChatId: Identifier of the opened chat
    public final func openChatSimilarChat(
        chatId: Int64?,
        openedChatId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = OpenChatSimilarChat(
            chatId: chatId,
            openedChatId: openedChatId
        )
        self.run(query: query, completion: completion)
    }

    /// Informs TDLib that a chat was opened from the list of similar chats. The method is independent of openChat and closeChat methods
    /// - Parameter chatId: Identifier of the original chat, which similar chats were requested
    /// - Parameter openedChatId: Identifier of the opened chat
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func openChatSimilarChat(
        chatId: Int64?,
        openedChatId: Int64?
    ) async throws -> Ok {
        let query = OpenChatSimilarChat(
            chatId: chatId,
            openedChatId: openedChatId
        )
        return try await self.run(query: query)
    }

    /// Returns a list of bots similar to the given bot
    /// - Parameter botUserId: User identifier of the target bot
    /// - Returns: A list of bots similar to the given bot
    public final func getBotSimilarBots(
        botUserId: Int64?,
        completion: @escaping (Result<Users, Swift.Error>) -> Void
    ) throws {
        let query = GetBotSimilarBots(
            botUserId: botUserId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns a list of bots similar to the given bot
    /// - Parameter botUserId: User identifier of the target bot
    /// - Returns: A list of bots similar to the given bot
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getBotSimilarBots(botUserId: Int64?) async throws -> Users {
        let query = GetBotSimilarBots(
            botUserId: botUserId
        )
        return try await self.run(query: query)
    }

    /// Returns approximate number of bots similar to the given bot
    /// - Parameter botUserId: User identifier of the target bot
    /// - Parameter returnLocal: Pass true to get the number of bots without sending network requests, or -1 if the number of bots is unknown locally
    /// - Returns: Approximate number of bots similar to the given bot
    public final func getBotSimilarBotCount(
        botUserId: Int64?,
        returnLocal: Bool?,
        completion: @escaping (Result<Count, Swift.Error>) -> Void
    ) throws {
        let query = GetBotSimilarBotCount(
            botUserId: botUserId,
            returnLocal: returnLocal
        )
        self.run(query: query, completion: completion)
    }

    /// Returns approximate number of bots similar to the given bot
    /// - Parameter botUserId: User identifier of the target bot
    /// - Parameter returnLocal: Pass true to get the number of bots without sending network requests, or -1 if the number of bots is unknown locally
    /// - Returns: Approximate number of bots similar to the given bot
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getBotSimilarBotCount(
        botUserId: Int64?,
        returnLocal: Bool?
    ) async throws -> Count {
        let query = GetBotSimilarBotCount(
            botUserId: botUserId,
            returnLocal: returnLocal
        )
        return try await self.run(query: query)
    }

    /// Informs TDLib that a bot was opened from the list of similar bots
    /// - Parameter botUserId: Identifier of the original bot, which similar bots were requested
    /// - Parameter openedBotUserId: Identifier of the opened bot
    public final func openBotSimilarBot(
        botUserId: Int64?,
        openedBotUserId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = OpenBotSimilarBot(
            botUserId: botUserId,
            openedBotUserId: openedBotUserId
        )
        self.run(query: query, completion: completion)
    }

    /// Informs TDLib that a bot was opened from the list of similar bots
    /// - Parameter botUserId: Identifier of the original bot, which similar bots were requested
    /// - Parameter openedBotUserId: Identifier of the opened bot
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func openBotSimilarBot(
        botUserId: Int64?,
        openedBotUserId: Int64?
    ) async throws -> Ok {
        let query = OpenBotSimilarBot(
            botUserId: botUserId,
            openedBotUserId: openedBotUserId
        )
        return try await self.run(query: query)
    }

    /// Returns a list of frequently used chats
    /// - Parameter category: Category of chats to be returned
    /// - Parameter limit: The maximum number of chats to be returned; up to 30
    /// - Returns: A list of frequently used chats
    public final func getTopChats(
        category: TopChatCategory?,
        limit: Int?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = GetTopChats(
            category: category,
            limit: limit
        )
        self.run(query: query, completion: completion)
    }

    /// Returns a list of frequently used chats
    /// - Parameter category: Category of chats to be returned
    /// - Parameter limit: The maximum number of chats to be returned; up to 30
    /// - Returns: A list of frequently used chats
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getTopChats(
        category: TopChatCategory?,
        limit: Int?
    ) async throws -> Chats {
        let query = GetTopChats(
            category: category,
            limit: limit
        )
        return try await self.run(query: query)
    }

    /// Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled
    /// - Parameter category: Category of frequently used chats
    /// - Parameter chatId: Chat identifier
    public final func removeTopChat(
        category: TopChatCategory?,
        chatId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = RemoveTopChat(
            category: category,
            chatId: chatId
        )
        self.run(query: query, completion: completion)
    }

    /// Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled
    /// - Parameter category: Category of frequently used chats
    /// - Parameter chatId: Chat identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func removeTopChat(
        category: TopChatCategory?,
        chatId: Int64?
    ) async throws -> Ok {
        let query = RemoveTopChat(
            category: category,
            chatId: chatId
        )
        return try await self.run(query: query)
    }

    /// Searches for the specified query in the title and username of up to 50 recently found chats. This is an offline method
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Parameter query: Query to search for
    public final func searchRecentlyFoundChats(
        limit: Int?,
        query: String?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = SearchRecentlyFoundChats(
            limit: limit,
            query: query
        )
        self.run(query: query, completion: completion)
    }

    /// Searches for the specified query in the title and username of up to 50 recently found chats. This is an offline method
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Parameter query: Query to search for
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func searchRecentlyFoundChats(
        limit: Int?,
        query: String?
    ) async throws -> Chats {
        let query = SearchRecentlyFoundChats(
            limit: limit,
            query: query
        )
        return try await self.run(query: query)
    }

    /// Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first
    /// - Parameter chatId: Identifier of the chat to add
    public final func addRecentlyFoundChat(
        chatId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = AddRecentlyFoundChat(
            chatId: chatId
        )
        self.run(query: query, completion: completion)
    }

    /// Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first
    /// - Parameter chatId: Identifier of the chat to add
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func addRecentlyFoundChat(chatId: Int64?) async throws -> Ok {
        let query = AddRecentlyFoundChat(
            chatId: chatId
        )
        return try await self.run(query: query)
    }

    /// Removes a chat from the list of recently found chats
    /// - Parameter chatId: Identifier of the chat to be removed
    public final func removeRecentlyFoundChat(
        chatId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = RemoveRecentlyFoundChat(
            chatId: chatId
        )
        self.run(query: query, completion: completion)
    }

    /// Removes a chat from the list of recently found chats
    /// - Parameter chatId: Identifier of the chat to be removed
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func removeRecentlyFoundChat(chatId: Int64?) async throws -> Ok {
        let query = RemoveRecentlyFoundChat(
            chatId: chatId
        )
        return try await self.run(query: query)
    }

    /// Clears the list of recently found chats
    public final func clearRecentlyFoundChats(completion: @escaping (Result<Ok, Swift.Error>) -> Void) throws {
        let query = ClearRecentlyFoundChats()
        self.run(query: query, completion: completion)
    }

    /// Clears the list of recently found chats
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func clearRecentlyFoundChats() async throws -> Ok {
        let query = ClearRecentlyFoundChats()
        return try await self.run(query: query)
    }

    /// Returns recently opened chats. This is an offline method. Returns chats in the order of last opening
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Returns: Recently opened chats. Returns chats in the order of last opening
    public final func getRecentlyOpenedChats(
        limit: Int?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = GetRecentlyOpenedChats(
            limit: limit
        )
        self.run(query: query, completion: completion)
    }

    /// Returns recently opened chats. This is an offline method. Returns chats in the order of last opening
    /// - Parameter limit: The maximum number of chats to be returned
    /// - Returns: Recently opened chats. Returns chats in the order of last opening
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getRecentlyOpenedChats(limit: Int?) async throws -> Chats {
        let query = GetRecentlyOpenedChats(
            limit: limit
        )
        return try await self.run(query: query)
    }

    /// Checks whether a username can be set for a chat
    /// - Parameter chatId: Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created
    /// - Parameter username: Username to be checked
    public final func checkChatUsername(
        chatId: Int64?,
        username: String?,
        completion: @escaping (Result<CheckChatUsernameResult, Swift.Error>) -> Void
    ) throws {
        let query = CheckChatUsername(
            chatId: chatId,
            username: username
        )
        self.run(query: query, completion: completion)
    }

    /// Checks whether a username can be set for a chat
    /// - Parameter chatId: Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created
    /// - Parameter username: Username to be checked
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func checkChatUsername(
        chatId: Int64?,
        username: String?
    ) async throws -> CheckChatUsernameResult {
        let query = CheckChatUsername(
            chatId: chatId,
            username: username
        )
        return try await self.run(query: query)
    }

    /// Returns a list of public chats of the specified type, owned by the user
    /// - Parameter type: Type of the public chats to return
    /// - Returns: A list of public chats of the specified type, owned by the user
    public final func getCreatedPublicChats(
        type: PublicChatType?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = GetCreatedPublicChats(
            type: type
        )
        self.run(query: query, completion: completion)
    }

    /// Returns a list of public chats of the specified type, owned by the user
    /// - Parameter type: Type of the public chats to return
    /// - Returns: A list of public chats of the specified type, owned by the user
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getCreatedPublicChats(type: PublicChatType?) async throws -> Chats {
        let query = GetCreatedPublicChats(
            type: type
        )
        return try await self.run(query: query)
    }

    /// Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached. The limit can be increased with Telegram Premium
    /// - Parameter type: Type of the public chats, for which to check the limit
    /// - Returns: Corresponding error if the limit was reached
    public final func checkCreatedPublicChatsLimit(
        type: PublicChatType?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = CheckCreatedPublicChatsLimit(
            type: type
        )
        self.run(query: query, completion: completion)
    }

    /// Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached. The limit can be increased with Telegram Premium
    /// - Parameter type: Type of the public chats, for which to check the limit
    /// - Returns: Corresponding error if the limit was reached
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func checkCreatedPublicChatsLimit(type: PublicChatType?) async throws -> Ok {
        let query = CheckCreatedPublicChatsLimit(
            type: type
        )
        return try await self.run(query: query)
    }

    /// Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. To set a returned supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable first
    /// - Returns: A list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. To set a returned supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable first
    public final func getSuitableDiscussionChats(completion: @escaping (Result<Chats, Swift.Error>) -> Void) throws {
        let query = GetSuitableDiscussionChats()
        self.run(query: query, completion: completion)
    }

    /// Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. To set a returned supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable first
    /// - Returns: A list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. To set a returned supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable first
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getSuitableDiscussionChats() async throws -> Chats {
        let query = GetSuitableDiscussionChats()
        return try await self.run(query: query)
    }

    /// Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives the error "CHANNELS_TOO_MUCH". Also, the limit can be increased with Telegram Premium
    /// - Returns: A list of recently inactive supergroups and channels
    public final func getInactiveSupergroupChats(completion: @escaping (Result<Chats, Swift.Error>) -> Void) throws {
        let query = GetInactiveSupergroupChats()
        self.run(query: query, completion: completion)
    }

    /// Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives the error "CHANNELS_TOO_MUCH". Also, the limit can be increased with Telegram Premium
    /// - Returns: A list of recently inactive supergroups and channels
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getInactiveSupergroupChats() async throws -> Chats {
        let query = GetInactiveSupergroupChats()
        return try await self.run(query: query)
    }

    /// Returns a list of channel chats, which can be used as a personal chat
    /// - Returns: A list of channel chats, which can be used as a personal chat
    public final func getSuitablePersonalChats(completion: @escaping (Result<Chats, Swift.Error>) -> Void) throws {
        let query = GetSuitablePersonalChats()
        self.run(query: query, completion: completion)
    }

    /// Returns a list of channel chats, which can be used as a personal chat
    /// - Returns: A list of channel chats, which can be used as a personal chat
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getSuitablePersonalChats() async throws -> Chats {
        let query = GetSuitablePersonalChats()
        return try await self.run(query: query)
    }

    /// Loads more topics in a channel direct messages chat administered by the current user. The loaded topics will be sent through updateDirectMessagesChatTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter limit: The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
    /// - Returns: A 404 error if all topics have been loaded
    public final func loadDirectMessagesChatTopics(
        chatId: Int64?,
        limit: Int?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = LoadDirectMessagesChatTopics(
            chatId: chatId,
            limit: limit
        )
        self.run(query: query, completion: completion)
    }

    /// Loads more topics in a channel direct messages chat administered by the current user. The loaded topics will be sent through updateDirectMessagesChatTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter limit: The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
    /// - Returns: A 404 error if all topics have been loaded
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func loadDirectMessagesChatTopics(
        chatId: Int64?,
        limit: Int?
    ) async throws -> Ok {
        let query = LoadDirectMessagesChatTopics(
            chatId: chatId,
            limit: limit
        )
        return try await self.run(query: query)
    }

    /// Returns information about the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter topicId: Identifier of the topic to get
    /// - Returns: Information about the topic in a channel direct messages chat administered by the current user
    public final func getDirectMessagesChatTopic(
        chatId: Int64?,
        topicId: Int64?,
        completion: @escaping (Result<DirectMessagesChatTopic, Swift.Error>) -> Void
    ) throws {
        let query = GetDirectMessagesChatTopic(
            chatId: chatId,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns information about the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter topicId: Identifier of the topic to get
    /// - Returns: Information about the topic in a channel direct messages chat administered by the current user
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getDirectMessagesChatTopic(
        chatId: Int64?,
        topicId: Int64?
    ) async throws -> DirectMessagesChatTopic {
        let query = GetDirectMessagesChatTopic(
            chatId: chatId,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Returns messages in the topic in a channel direct messages chat administered by the current user. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter fromMessageId: Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
    /// - Parameter topicId: Identifier of the topic which messages will be fetched
    /// - Returns: Messages in the topic in a channel direct messages chat administered by the current user. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
    public final func getDirectMessagesChatTopicHistory(
        chatId: Int64?,
        fromMessageId: Int64?,
        limit: Int?,
        offset: Int?,
        topicId: Int64?,
        completion: @escaping (Result<Messages, Swift.Error>) -> Void
    ) throws {
        let query = GetDirectMessagesChatTopicHistory(
            chatId: chatId,
            fromMessageId: fromMessageId,
            limit: limit,
            offset: offset,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns messages in the topic in a channel direct messages chat administered by the current user. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter fromMessageId: Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
    /// - Parameter topicId: Identifier of the topic which messages will be fetched
    /// - Returns: Messages in the topic in a channel direct messages chat administered by the current user. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getDirectMessagesChatTopicHistory(
        chatId: Int64?,
        fromMessageId: Int64?,
        limit: Int?,
        offset: Int?,
        topicId: Int64?
    ) async throws -> Messages {
        let query = GetDirectMessagesChatTopicHistory(
            chatId: chatId,
            fromMessageId: fromMessageId,
            limit: limit,
            offset: offset,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Returns the last message sent in the topic in a channel direct messages chat administered by the current user no later than the specified date
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter date: Point in time (Unix timestamp) relative to which to search for messages
    /// - Parameter topicId: Identifier of the topic which messages will be fetched
    /// - Returns: The last message sent in the topic in a channel direct messages chat administered by the current user no later than the specified date
    public final func getDirectMessagesChatTopicMessageByDate(
        chatId: Int64?,
        date: Int?,
        topicId: Int64?,
        completion: @escaping (Result<Message, Swift.Error>) -> Void
    ) throws {
        let query = GetDirectMessagesChatTopicMessageByDate(
            chatId: chatId,
            date: date,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns the last message sent in the topic in a channel direct messages chat administered by the current user no later than the specified date
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter date: Point in time (Unix timestamp) relative to which to search for messages
    /// - Parameter topicId: Identifier of the topic which messages will be fetched
    /// - Returns: The last message sent in the topic in a channel direct messages chat administered by the current user no later than the specified date
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getDirectMessagesChatTopicMessageByDate(
        chatId: Int64?,
        date: Int?,
        topicId: Int64?
    ) async throws -> Message {
        let query = GetDirectMessagesChatTopicMessageByDate(
            chatId: chatId,
            date: date,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Deletes all messages in the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter topicId: Identifier of the topic which messages will be deleted
    public final func deleteDirectMessagesChatTopicHistory(
        chatId: Int64?,
        topicId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = DeleteDirectMessagesChatTopicHistory(
            chatId: chatId,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Deletes all messages in the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter topicId: Identifier of the topic which messages will be deleted
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func deleteDirectMessagesChatTopicHistory(
        chatId: Int64?,
        topicId: Int64?
    ) async throws -> Ok {
        let query = DeleteDirectMessagesChatTopicHistory(
            chatId: chatId,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Deletes all messages between the specified dates in the topic in a channel direct messages chat administered by the current user. Messages sent in the last 30 seconds will not be deleted
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter maxDate: The maximum date of the messages to delete
    /// - Parameter minDate: The minimum date of the messages to delete
    /// - Parameter topicId: Identifier of the topic which messages will be deleted
    public final func deleteDirectMessagesChatTopicMessagesByDate(
        chatId: Int64?,
        maxDate: Int?,
        minDate: Int?,
        topicId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = DeleteDirectMessagesChatTopicMessagesByDate(
            chatId: chatId,
            maxDate: maxDate,
            minDate: minDate,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Deletes all messages between the specified dates in the topic in a channel direct messages chat administered by the current user. Messages sent in the last 30 seconds will not be deleted
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter maxDate: The maximum date of the messages to delete
    /// - Parameter minDate: The minimum date of the messages to delete
    /// - Parameter topicId: Identifier of the topic which messages will be deleted
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func deleteDirectMessagesChatTopicMessagesByDate(
        chatId: Int64?,
        maxDate: Int?,
        minDate: Int?,
        topicId: Int64?
    ) async throws -> Ok {
        let query = DeleteDirectMessagesChatTopicMessagesByDate(
            chatId: chatId,
            maxDate: maxDate,
            minDate: minDate,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Changes the marked as unread state of the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter isMarkedAsUnread: New value of is_marked_as_unread
    /// - Parameter topicId: Topic identifier
    public final func setDirectMessagesChatTopicIsMarkedAsUnread(
        chatId: Int64?,
        isMarkedAsUnread: Bool?,
        topicId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = SetDirectMessagesChatTopicIsMarkedAsUnread(
            chatId: chatId,
            isMarkedAsUnread: isMarkedAsUnread,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Changes the marked as unread state of the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Chat identifier of the channel direct messages chat
    /// - Parameter isMarkedAsUnread: New value of is_marked_as_unread
    /// - Parameter topicId: Topic identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func setDirectMessagesChatTopicIsMarkedAsUnread(
        chatId: Int64?,
        isMarkedAsUnread: Bool?,
        topicId: Int64?
    ) async throws -> Ok {
        let query = SetDirectMessagesChatTopicIsMarkedAsUnread(
            chatId: chatId,
            isMarkedAsUnread: isMarkedAsUnread,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Removes all pinned messages from the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Identifier of the chat
    /// - Parameter topicId: Topic identifier
    public final func unpinAllDirectMessagesChatTopicMessages(
        chatId: Int64?,
        topicId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = UnpinAllDirectMessagesChatTopicMessages(
            chatId: chatId,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Removes all pinned messages from the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Identifier of the chat
    /// - Parameter topicId: Topic identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func unpinAllDirectMessagesChatTopicMessages(
        chatId: Int64?,
        topicId: Int64?
    ) async throws -> Ok {
        let query = UnpinAllDirectMessagesChatTopicMessages(
            chatId: chatId,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Removes all unread reactions in the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Identifier of the chat
    /// - Parameter topicId: Topic identifier
    public final func readAllDirectMessagesChatTopicReactions(
        chatId: Int64?,
        topicId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = ReadAllDirectMessagesChatTopicReactions(
            chatId: chatId,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Removes all unread reactions in the topic in a channel direct messages chat administered by the current user
    /// - Parameter chatId: Identifier of the chat
    /// - Parameter topicId: Topic identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func readAllDirectMessagesChatTopicReactions(
        chatId: Int64?,
        topicId: Int64?
    ) async throws -> Ok {
        let query = ReadAllDirectMessagesChatTopicReactions(
            chatId: chatId,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Returns the total number of Telegram Stars received by the channel chat for direct messages from the given topic
    /// - Parameter chatId: Chat identifier of the channel direct messages chat administered by the current user
    /// - Parameter topicId: Identifier of the topic
    /// - Returns: The total number of Telegram Stars received by the channel chat for direct messages from the given topic
    public final func getDirectMessagesChatTopicRevenue(
        chatId: Int64?,
        topicId: Int64?,
        completion: @escaping (Result<StarCount, Swift.Error>) -> Void
    ) throws {
        let query = GetDirectMessagesChatTopicRevenue(
            chatId: chatId,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns the total number of Telegram Stars received by the channel chat for direct messages from the given topic
    /// - Parameter chatId: Chat identifier of the channel direct messages chat administered by the current user
    /// - Parameter topicId: Identifier of the topic
    /// - Returns: The total number of Telegram Stars received by the channel chat for direct messages from the given topic
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getDirectMessagesChatTopicRevenue(
        chatId: Int64?,
        topicId: Int64?
    ) async throws -> StarCount {
        let query = GetDirectMessagesChatTopicRevenue(
            chatId: chatId,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user
    /// - Parameter canSendUnpaidMessages: Pass true to allow unpaid messages; pass false to disallow unpaid messages
    /// - Parameter chatId: Chat identifier
    /// - Parameter refundPayments: Pass true to refund the user previously paid messages
    /// - Parameter topicId: Identifier of the topic
    public final func toggleDirectMessagesChatTopicCanSendUnpaidMessages(
        canSendUnpaidMessages: Bool?,
        chatId: Int64?,
        refundPayments: Bool?,
        topicId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = ToggleDirectMessagesChatTopicCanSendUnpaidMessages(
            canSendUnpaidMessages: canSendUnpaidMessages,
            chatId: chatId,
            refundPayments: refundPayments,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user
    /// - Parameter canSendUnpaidMessages: Pass true to allow unpaid messages; pass false to disallow unpaid messages
    /// - Parameter chatId: Chat identifier
    /// - Parameter refundPayments: Pass true to refund the user previously paid messages
    /// - Parameter topicId: Identifier of the topic
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func toggleDirectMessagesChatTopicCanSendUnpaidMessages(
        canSendUnpaidMessages: Bool?,
        chatId: Int64?,
        refundPayments: Bool?,
        topicId: Int64?
    ) async throws -> Ok {
        let query = ToggleDirectMessagesChatTopicCanSendUnpaidMessages(
            canSendUnpaidMessages: canSendUnpaidMessages,
            chatId: chatId,
            refundPayments: refundPayments,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded
    /// - Parameter limit: The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
    /// - Returns: A 404 error if all topics have been loaded
    public final func loadSavedMessagesTopics(
        limit: Int?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = LoadSavedMessagesTopics(
            limit: limit
        )
        self.run(query: query, completion: completion)
    }

    /// Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded
    /// - Parameter limit: The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
    /// - Returns: A 404 error if all topics have been loaded
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func loadSavedMessagesTopics(limit: Int?) async throws -> Ok {
        let query = LoadSavedMessagesTopics(
            limit: limit
        )
        return try await self.run(query: query)
    }

    /// Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
    /// - Parameter fromMessageId: Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic which messages will be fetched
    /// - Returns: Messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
    public final func getSavedMessagesTopicHistory(
        fromMessageId: Int64?,
        limit: Int?,
        offset: Int?,
        savedMessagesTopicId: Int64?,
        completion: @escaping (Result<Messages, Swift.Error>) -> Void
    ) throws {
        let query = GetSavedMessagesTopicHistory(
            fromMessageId: fromMessageId,
            limit: limit,
            offset: offset,
            savedMessagesTopicId: savedMessagesTopicId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
    /// - Parameter fromMessageId: Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic which messages will be fetched
    /// - Returns: Messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getSavedMessagesTopicHistory(
        fromMessageId: Int64?,
        limit: Int?,
        offset: Int?,
        savedMessagesTopicId: Int64?
    ) async throws -> Messages {
        let query = GetSavedMessagesTopicHistory(
            fromMessageId: fromMessageId,
            limit: limit,
            offset: offset,
            savedMessagesTopicId: savedMessagesTopicId
        )
        return try await self.run(query: query)
    }

    /// Returns the last message sent in a Saved Messages topic no later than the specified date
    /// - Parameter date: Point in time (Unix timestamp) relative to which to search for messages
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic which message will be returned
    /// - Returns: The last message sent in a Saved Messages topic no later than the specified date
    public final func getSavedMessagesTopicMessageByDate(
        date: Int?,
        savedMessagesTopicId: Int64?,
        completion: @escaping (Result<Message, Swift.Error>) -> Void
    ) throws {
        let query = GetSavedMessagesTopicMessageByDate(
            date: date,
            savedMessagesTopicId: savedMessagesTopicId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns the last message sent in a Saved Messages topic no later than the specified date
    /// - Parameter date: Point in time (Unix timestamp) relative to which to search for messages
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic which message will be returned
    /// - Returns: The last message sent in a Saved Messages topic no later than the specified date
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getSavedMessagesTopicMessageByDate(
        date: Int?,
        savedMessagesTopicId: Int64?
    ) async throws -> Message {
        let query = GetSavedMessagesTopicMessageByDate(
            date: date,
            savedMessagesTopicId: savedMessagesTopicId
        )
        return try await self.run(query: query)
    }

    /// Deletes all messages in a Saved Messages topic
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic which messages will be deleted
    public final func deleteSavedMessagesTopicHistory(
        savedMessagesTopicId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = DeleteSavedMessagesTopicHistory(
            savedMessagesTopicId: savedMessagesTopicId
        )
        self.run(query: query, completion: completion)
    }

    /// Deletes all messages in a Saved Messages topic
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic which messages will be deleted
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func deleteSavedMessagesTopicHistory(savedMessagesTopicId: Int64?) async throws -> Ok {
        let query = DeleteSavedMessagesTopicHistory(
            savedMessagesTopicId: savedMessagesTopicId
        )
        return try await self.run(query: query)
    }

    /// Deletes all messages between the specified dates in a Saved Messages topic. Messages sent in the last 30 seconds will not be deleted
    /// - Parameter maxDate: The maximum date of the messages to delete
    /// - Parameter minDate: The minimum date of the messages to delete
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic which messages will be deleted
    public final func deleteSavedMessagesTopicMessagesByDate(
        maxDate: Int?,
        minDate: Int?,
        savedMessagesTopicId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = DeleteSavedMessagesTopicMessagesByDate(
            maxDate: maxDate,
            minDate: minDate,
            savedMessagesTopicId: savedMessagesTopicId
        )
        self.run(query: query, completion: completion)
    }

    /// Deletes all messages between the specified dates in a Saved Messages topic. Messages sent in the last 30 seconds will not be deleted
    /// - Parameter maxDate: The maximum date of the messages to delete
    /// - Parameter minDate: The minimum date of the messages to delete
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic which messages will be deleted
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func deleteSavedMessagesTopicMessagesByDate(
        maxDate: Int?,
        minDate: Int?,
        savedMessagesTopicId: Int64?
    ) async throws -> Ok {
        let query = DeleteSavedMessagesTopicMessagesByDate(
            maxDate: maxDate,
            minDate: minDate,
            savedMessagesTopicId: savedMessagesTopicId
        )
        return try await self.run(query: query)
    }

    /// Changes the pinned state of a Saved Messages topic. There can be up to getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium
    /// - Parameter isPinned: Pass true to pin the topic; pass false to unpin it
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic to pin or unpin
    public final func toggleSavedMessagesTopicIsPinned(
        isPinned: Bool?,
        savedMessagesTopicId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = ToggleSavedMessagesTopicIsPinned(
            isPinned: isPinned,
            savedMessagesTopicId: savedMessagesTopicId
        )
        self.run(query: query, completion: completion)
    }

    /// Changes the pinned state of a Saved Messages topic. There can be up to getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium
    /// - Parameter isPinned: Pass true to pin the topic; pass false to unpin it
    /// - Parameter savedMessagesTopicId: Identifier of Saved Messages topic to pin or unpin
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func toggleSavedMessagesTopicIsPinned(
        isPinned: Bool?,
        savedMessagesTopicId: Int64?
    ) async throws -> Ok {
        let query = ToggleSavedMessagesTopicIsPinned(
            isPinned: isPinned,
            savedMessagesTopicId: savedMessagesTopicId
        )
        return try await self.run(query: query)
    }

    /// Changes the order of pinned Saved Messages topics
    /// - Parameter savedMessagesTopicIds: Identifiers of the new pinned Saved Messages topics
    public final func setPinnedSavedMessagesTopics(
        savedMessagesTopicIds: [Int64]?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = SetPinnedSavedMessagesTopics(
            savedMessagesTopicIds: savedMessagesTopicIds
        )
        self.run(query: query, completion: completion)
    }

    /// Changes the order of pinned Saved Messages topics
    /// - Parameter savedMessagesTopicIds: Identifiers of the new pinned Saved Messages topics
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func setPinnedSavedMessagesTopics(savedMessagesTopicIds: [Int64]?) async throws -> Ok {
        let query = SetPinnedSavedMessagesTopics(
            savedMessagesTopicIds: savedMessagesTopicIds
        )
        return try await self.run(query: query)
    }

    /// Returns a list of common group chats with a given user. Chats are sorted by their type and creation date
    /// - Parameter limit: The maximum number of chats to be returned; up to 100
    /// - Parameter offsetChatId: Chat identifier starting from which to return chats; use 0 for the first request
    /// - Parameter userId: User identifier
    /// - Returns: A list of common group chats with a given user
    public final func getGroupsInCommon(
        limit: Int?,
        offsetChatId: Int64?,
        userId: Int64?,
        completion: @escaping (Result<Chats, Swift.Error>) -> Void
    ) throws {
        let query = GetGroupsInCommon(
            limit: limit,
            offsetChatId: offsetChatId,
            userId: userId
        )
        self.run(query: query, completion: completion)
    }

    /// Returns a list of common group chats with a given user. Chats are sorted by their type and creation date
    /// - Parameter limit: The maximum number of chats to be returned; up to 100
    /// - Parameter offsetChatId: Chat identifier starting from which to return chats; use 0 for the first request
    /// - Parameter userId: User identifier
    /// - Returns: A list of common group chats with a given user
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getGroupsInCommon(
        limit: Int?,
        offsetChatId: Int64?,
        userId: Int64?
    ) async throws -> Chats {
        let query = GetGroupsInCommon(
            limit: limit,
            offsetChatId: offsetChatId,
            userId: userId
        )
        return try await self.run(query: query)
    }

    /// Returns messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib. This is an offline method if only_local is true
    /// - Parameter chatId: Chat identifier
    /// - Parameter fromMessageId: Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
    /// - Parameter onlyLocal: Pass true to get only messages that are available without sending network requests
    /// - Returns: Messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
    public final func getChatHistory(
        chatId: Int64?,
        fromMessageId: Int64?,
        limit: Int?,
        offset: Int?,
        onlyLocal: Bool?,
        completion: @escaping (Result<Messages, Swift.Error>) -> Void
    ) throws {
        let query = GetChatHistory(
            chatId: chatId,
            fromMessageId: fromMessageId,
            limit: limit,
            offset: offset,
            onlyLocal: onlyLocal
        )
        self.run(query: query, completion: completion)
    }

    /// Returns messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib. This is an offline method if only_local is true
    /// - Parameter chatId: Chat identifier
    /// - Parameter fromMessageId: Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
    /// - Parameter onlyLocal: Pass true to get only messages that are available without sending network requests
    /// - Returns: Messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getChatHistory(
        chatId: Int64?,
        fromMessageId: Int64?,
        limit: Int?,
        offset: Int?,
        onlyLocal: Bool?
    ) async throws -> Messages {
        let query = GetChatHistory(
            chatId: chatId,
            fromMessageId: fromMessageId,
            limit: limit,
            offset: offset,
            onlyLocal: onlyLocal
        )
        return try await self.run(query: query)
    }

    /// Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
    /// - Parameter chatId: Chat identifier
    /// - Parameter fromMessageId: Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter messageId: Message identifier, which thread history needs to be returned
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
    /// - Returns: Messages in a message thread of a message. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
    public final func getMessageThreadHistory(
        chatId: Int64?,
        fromMessageId: Int64?,
        limit: Int?,
        messageId: Int64?,
        offset: Int?,
        completion: @escaping (Result<Messages, Swift.Error>) -> Void
    ) throws {
        let query = GetMessageThreadHistory(
            chatId: chatId,
            fromMessageId: fromMessageId,
            limit: limit,
            messageId: messageId,
            offset: offset
        )
        self.run(query: query, completion: completion)
    }

    /// Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
    /// - Parameter chatId: Chat identifier
    /// - Parameter fromMessageId: Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter messageId: Message identifier, which thread history needs to be returned
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
    /// - Returns: Messages in a message thread of a message. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func getMessageThreadHistory(
        chatId: Int64?,
        fromMessageId: Int64?,
        limit: Int?,
        messageId: Int64?,
        offset: Int?
    ) async throws -> Messages {
        let query = GetMessageThreadHistory(
            chatId: chatId,
            fromMessageId: fromMessageId,
            limit: limit,
            messageId: messageId,
            offset: offset
        )
        return try await self.run(query: query)
    }

    /// Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat
    /// - Parameter chatId: Chat identifier
    /// - Parameter removeFromChatList: Pass true to remove the chat from all chat lists
    /// - Parameter revoke: Pass true to delete chat history for all users
    public final func deleteChatHistory(
        chatId: Int64?,
        removeFromChatList: Bool?,
        revoke: Bool?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = DeleteChatHistory(
            chatId: chatId,
            removeFromChatList: removeFromChatList,
            revoke: revoke
        )
        self.run(query: query, completion: completion)
    }

    /// Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat
    /// - Parameter chatId: Chat identifier
    /// - Parameter removeFromChatList: Pass true to remove the chat from all chat lists
    /// - Parameter revoke: Pass true to delete chat history for all users
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func deleteChatHistory(
        chatId: Int64?,
        removeFromChatList: Bool?,
        revoke: Bool?
    ) async throws -> Ok {
        let query = DeleteChatHistory(
            chatId: chatId,
            removeFromChatList: removeFromChatList,
            revoke: revoke
        )
        return try await self.run(query: query)
    }

    /// Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members. Use the field chat.can_be_deleted_for_all_users to find whether the method can be applied to the chat
    /// - Parameter chatId: Chat identifier
    public final func deleteChat(
        chatId: Int64?,
        completion: @escaping (Result<Ok, Swift.Error>) -> Void
    ) throws {
        let query = DeleteChat(
            chatId: chatId
        )
        self.run(query: query, completion: completion)
    }

    /// Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members. Use the field chat.can_be_deleted_for_all_users to find whether the method can be applied to the chat
    /// - Parameter chatId: Chat identifier
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    @discardableResult
    public final func deleteChat(chatId: Int64?) async throws -> Ok {
        let query = DeleteChat(
            chatId: chatId
        )
        return try await self.run(query: query)
    }

    /// Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query (searchSecretMessages must be used instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit. A combination of query, sender_id, filter and topic_id search criteria is expected to be supported, only if it is required for Telegram official application implementation
    /// - Parameter chatId: Identifier of the chat in which to search messages
    /// - Parameter filter: Additional filter for messages to search; pass null to search for all messages
    /// - Parameter fromMessageId: Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages
    /// - Parameter query: Query to search for
    /// - Parameter senderId: Identifier of the sender of messages to search for; pass null to search for messages from any sender. Not supported in secret chats
    /// - Parameter topicId: Pass topic identifier to search messages only in specific topic; pass null to search for messages in all topics
    /// - Returns: The results in reverse chronological order, i.e. in order of decreasing message_id. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    public final func searchChatMessages(
        chatId: Int64?,
        filter: SearchMessagesFilter?,
        fromMessageId: Int64?,
        limit: Int?,
        offset: Int?,
        query: String?,
        senderId: MessageSender?,
        topicId: MessageTopic?,
        completion: @escaping (Result<FoundChatMessages, Swift.Error>) -> Void
    ) throws {
        let query = SearchChatMessages(
            chatId: chatId,
            filter: filter,
            fromMessageId: fromMessageId,
            limit: limit,
            offset: offset,
            query: query,
            senderId: senderId,
            topicId: topicId
        )
        self.run(query: query, completion: completion)
    }

    /// Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query (searchSecretMessages must be used instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit. A combination of query, sender_id, filter and topic_id search criteria is expected to be supported, only if it is required for Telegram official application implementation
    /// - Parameter chatId: Identifier of the chat in which to search messages
    /// - Parameter filter: Additional filter for messages to search; pass null to search for all messages
    /// - Parameter fromMessageId: Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
    /// - Parameter limit: The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter offset: Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages
    /// - Parameter query: Query to search for
    /// - Parameter senderId: Identifier of the sender of messages to search for; pass null to search for messages from any sender. Not supported in secret chats
    /// - Parameter topicId: Pass topic identifier to search messages only in specific topic; pass null to search for messages in all topics
    /// - Returns: The results in reverse chronological order, i.e. in order of decreasing message_id. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func searchChatMessages(
        chatId: Int64?,
        filter: SearchMessagesFilter?,
        fromMessageId: Int64?,
        limit: Int?,
        offset: Int?,
        query: String?,
        senderId: MessageSender?,
        topicId: MessageTopic?
    ) async throws -> FoundChatMessages {
        let query = SearchChatMessages(
            chatId: chatId,
            filter: filter,
            fromMessageId: fromMessageId,
            limit: limit,
            offset: offset,
            query: query,
            senderId: senderId,
            topicId: topicId
        )
        return try await self.run(query: query)
    }

    /// Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter chatList: Chat list in which to search messages; pass null to search in all chats regardless of their chat list. Only Main and Archive chat lists are supported
    /// - Parameter chatTypeFilter: Additional filter for type of the chat of the searched messages; pass null to search for messages in all chats
    /// - Parameter filter: Additional filter for messages to search; pass null to search for all messages. Filters searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, searchMessagesFilterUnreadPollVote, searchMessagesFilterFailedToSend, and searchMessagesFilterPinned are unsupported in this function
    /// - Parameter limit: The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter maxDate: If not 0, the maximum date of the messages to return
    /// - Parameter minDate: If not 0, the minimum date of the messages to return
    /// - Parameter offset: Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results
    /// - Parameter query: Query to search for
    /// - Returns: The results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    public final func searchMessages(
        chatList: ChatList?,
        chatTypeFilter: SearchMessagesChatTypeFilter?,
        filter: SearchMessagesFilter?,
        limit: Int?,
        maxDate: Int?,
        minDate: Int?,
        offset: String?,
        query: String?,
        completion: @escaping (Result<FoundMessages, Swift.Error>) -> Void
    ) throws {
        let query = SearchMessages(
            chatList: chatList,
            chatTypeFilter: chatTypeFilter,
            filter: filter,
            limit: limit,
            maxDate: maxDate,
            minDate: minDate,
            offset: offset,
            query: query
        )
        self.run(query: query, completion: completion)
    }

    /// Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter chatList: Chat list in which to search messages; pass null to search in all chats regardless of their chat list. Only Main and Archive chat lists are supported
    /// - Parameter chatTypeFilter: Additional filter for type of the chat of the searched messages; pass null to search for messages in all chats
    /// - Parameter filter: Additional filter for messages to search; pass null to search for all messages. Filters searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, searchMessagesFilterUnreadPollVote, searchMessagesFilterFailedToSend, and searchMessagesFilterPinned are unsupported in this function
    /// - Parameter limit: The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    /// - Parameter maxDate: If not 0, the maximum date of the messages to return
    /// - Parameter minDate: If not 0, the minimum date of the messages to return
    /// - Parameter offset: Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results
    /// - Parameter query: Query to search for
    /// - Returns: The results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
    @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
    public final func searchMessages(
        chatList: ChatList?,
        chatTypeFilter: SearchMessagesChatTypeFilter?,
        filter: SearchMessagesFilter?,
        limit: Int?,
        maxDate: Int?,
        minDate: Int?,
        offset: String?,
        query: String?
    ) async throws -> FoundMessages {
        let query = SearchMessages(
            chatList: chatList,
            chatTypeFilter: chatTypeFilter,
            filter: filter,
            limit: limit,
            maxDate: maxDate,
            minDate: minDate,
            offset: offset,
            query: query
        )
        return try await self.run(query: query)
    }

    /// S
Download .txt
gitextract_z0lds0ov/

├── .github/
│   └── workflows/
│       └── ci.yml
├── .gitignore
├── .swiftpm/
│   └── xcode/
│       ├── package.xcworkspace/
│       │   └── xcshareddata/
│       │       └── IDEWorkspaceChecks.plist
│       └── xcshareddata/
│           └── xcschemes/
│               └── TDLibKit.xcscheme
├── LICENSE
├── Package.resolved
├── Package.swift
├── README.md
├── Sources/
│   └── TDLibKit/
│       ├── Generated/
│       │   ├── API/
│       │   │   ├── TDLibApi.swift
│       │   │   ├── TdApi.swift
│       │   │   └── TdClient.swift
│       │   ├── Models/
│       │   │   ├── AccentColor.swift
│       │   │   ├── AcceptCall.swift
│       │   │   ├── AcceptOauthRequest.swift
│       │   │   ├── AcceptTermsOfService.swift
│       │   │   ├── AcceptedGiftTypes.swift
│       │   │   ├── AccountInfo.swift
│       │   │   ├── AccountTtl.swift
│       │   │   ├── ActivateStoryStealthMode.swift
│       │   │   ├── ActiveStoryState.swift
│       │   │   ├── AddBotMediaPreview.swift
│       │   │   ├── AddChatFolderByInviteLink.swift
│       │   │   ├── AddChatMember.swift
│       │   │   ├── AddChatMembers.swift
│       │   │   ├── AddChatToList.swift
│       │   │   ├── AddChecklistTasks.swift
│       │   │   ├── AddContact.swift
│       │   │   ├── AddCustomServerLanguagePack.swift
│       │   │   ├── AddFavoriteSticker.swift
│       │   │   ├── AddFileToDownloads.swift
│       │   │   ├── AddGiftCollectionGifts.swift
│       │   │   ├── AddLocalMessage.swift
│       │   │   ├── AddLogMessage.swift
│       │   │   ├── AddLoginPasskey.swift
│       │   │   ├── AddMessageReaction.swift
│       │   │   ├── AddNetworkStatistics.swift
│       │   │   ├── AddOffer.swift
│       │   │   ├── AddPaidMessageReaction.swift
│       │   │   ├── AddPendingLiveStoryReaction.swift
│       │   │   ├── AddPendingPaidMessageReaction.swift
│       │   │   ├── AddPollOption.swift
│       │   │   ├── AddProfileAudio.swift
│       │   │   ├── AddProxy.swift
│       │   │   ├── AddQuickReplyShortcutInlineQueryResultMessage.swift
│       │   │   ├── AddQuickReplyShortcutMessage.swift
│       │   │   ├── AddQuickReplyShortcutMessageAlbum.swift
│       │   │   ├── AddRecentSticker.swift
│       │   │   ├── AddRecentlyFoundChat.swift
│       │   │   ├── AddSavedAnimation.swift
│       │   │   ├── AddSavedNotificationSound.swift
│       │   │   ├── AddStickerToSet.swift
│       │   │   ├── AddStoryAlbumStories.swift
│       │   │   ├── AddTextCompositionStyle.swift
│       │   │   ├── AddedProxies.swift
│       │   │   ├── AddedProxy.swift
│       │   │   ├── AddedReaction.swift
│       │   │   ├── AddedReactions.swift
│       │   │   ├── Address.swift
│       │   │   ├── AdvertisementSponsor.swift
│       │   │   ├── AffiliateInfo.swift
│       │   │   ├── AffiliateProgramInfo.swift
│       │   │   ├── AffiliateProgramParameters.swift
│       │   │   ├── AffiliateProgramSortOrder.swift
│       │   │   ├── AffiliateType.swift
│       │   │   ├── AgeVerificationParameters.swift
│       │   │   ├── AllowBotToSendMessages.swift
│       │   │   ├── AllowUnpaidMessagesFromUser.swift
│       │   │   ├── AlternativeVideo.swift
│       │   │   ├── AnimatedChatPhoto.swift
│       │   │   ├── AnimatedEmoji.swift
│       │   │   ├── Animation.swift
│       │   │   ├── Animations.swift
│       │   │   ├── AnswerCallbackQuery.swift
│       │   │   ├── AnswerCustomQuery.swift
│       │   │   ├── AnswerGuestQuery.swift
│       │   │   ├── AnswerInlineQuery.swift
│       │   │   ├── AnswerPreCheckoutQuery.swift
│       │   │   ├── AnswerShippingQuery.swift
│       │   │   ├── AnswerWebAppQuery.swift
│       │   │   ├── ApplyPremiumGiftCode.swift
│       │   │   ├── ApproveSuggestedPost.swift
│       │   │   ├── ArchiveChatListSettings.swift
│       │   │   ├── AssignAppStoreTransaction.swift
│       │   │   ├── AssignGooglePlayTransaction.swift
│       │   │   ├── AssignStoreTransaction.swift
│       │   │   ├── AttachmentMenuBot.swift
│       │   │   ├── AttachmentMenuBotColor.swift
│       │   │   ├── AttributeCraftPersistenceProbability.swift
│       │   │   ├── AuctionBid.swift
│       │   │   ├── AuctionRound.swift
│       │   │   ├── AuctionState.swift
│       │   │   ├── Audio.swift
│       │   │   ├── Audios.swift
│       │   │   ├── AuthenticationCodeInfo.swift
│       │   │   ├── AuthenticationCodeType.swift
│       │   │   ├── AuthorizationState.swift
│       │   │   ├── AutoDownloadSettings.swift
│       │   │   ├── AutoDownloadSettingsPresets.swift
│       │   │   ├── AutosaveSettings.swift
│       │   │   ├── AutosaveSettingsException.swift
│       │   │   ├── AutosaveSettingsScope.swift
│       │   │   ├── AvailableGift.swift
│       │   │   ├── AvailableGifts.swift
│       │   │   ├── AvailableReaction.swift
│       │   │   ├── AvailableReactions.swift
│       │   │   ├── Background.swift
│       │   │   ├── BackgroundFill.swift
│       │   │   ├── BackgroundType.swift
│       │   │   ├── Backgrounds.swift
│       │   │   ├── BanChatMember.swift
│       │   │   ├── BanGroupCallParticipants.swift
│       │   │   ├── BankCardActionOpenUrl.swift
│       │   │   ├── BankCardInfo.swift
│       │   │   ├── BasicGroup.swift
│       │   │   ├── BasicGroupFullInfo.swift
│       │   │   ├── Birthdate.swift
│       │   │   ├── BlockList.swift
│       │   │   ├── BlockMessageSenderFromReplies.swift
│       │   │   ├── BoostChat.swift
│       │   │   ├── BotAccessSettings.swift
│       │   │   ├── BotCommand.swift
│       │   │   ├── BotCommandScope.swift
│       │   │   ├── BotCommands.swift
│       │   │   ├── BotInfo.swift
│       │   │   ├── BotMediaPreview.swift
│       │   │   ├── BotMediaPreviewInfo.swift
│       │   │   ├── BotMediaPreviews.swift
│       │   │   ├── BotMenuButton.swift
│       │   │   ├── BotTransactionPurpose.swift
│       │   │   ├── BotVerification.swift
│       │   │   ├── BotVerificationParameters.swift
│       │   │   ├── BotWriteAccessAllowReason.swift
│       │   │   ├── BuiltInTheme.swift
│       │   │   ├── BusinessAwayMessageSchedule.swift
│       │   │   ├── BusinessAwayMessageSettings.swift
│       │   │   ├── BusinessBotManageBar.swift
│       │   │   ├── BusinessBotRights.swift
│       │   │   ├── BusinessChatLink.swift
│       │   │   ├── BusinessChatLinkInfo.swift
│       │   │   ├── BusinessChatLinks.swift
│       │   │   ├── BusinessConnectedBot.swift
│       │   │   ├── BusinessConnection.swift
│       │   │   ├── BusinessFeature.swift
│       │   │   ├── BusinessFeaturePromotionAnimation.swift
│       │   │   ├── BusinessFeatures.swift
│       │   │   ├── BusinessGreetingMessageSettings.swift
│       │   │   ├── BusinessInfo.swift
│       │   │   ├── BusinessLocation.swift
│       │   │   ├── BusinessMessage.swift
│       │   │   ├── BusinessMessages.swift
│       │   │   ├── BusinessOpeningHours.swift
│       │   │   ├── BusinessOpeningHoursInterval.swift
│       │   │   ├── BusinessRecipients.swift
│       │   │   ├── BusinessStartPage.swift
│       │   │   ├── ButtonStyle.swift
│       │   │   ├── BuyGiftUpgrade.swift
│       │   │   ├── Call.swift
│       │   │   ├── CallDiscardReason.swift
│       │   │   ├── CallId.swift
│       │   │   ├── CallProblem.swift
│       │   │   ├── CallProtocol.swift
│       │   │   ├── CallServer.swift
│       │   │   ├── CallServerType.swift
│       │   │   ├── CallState.swift
│       │   │   ├── CallbackQueryAnswer.swift
│       │   │   ├── CallbackQueryPayload.swift
│       │   │   ├── CanBotSendMessages.swift
│       │   │   ├── CanPostStory.swift
│       │   │   ├── CanPostStoryResult.swift
│       │   │   ├── CanPurchaseFromStore.swift
│       │   │   ├── CanPurchasePremium.swift
│       │   │   ├── CanSendGift.swift
│       │   │   ├── CanSendGiftResult.swift
│       │   │   ├── CanSendMessageToUser.swift
│       │   │   ├── CanSendMessageToUserResult.swift
│       │   │   ├── CanSendStory.swift
│       │   │   ├── CanSendStoryResult.swift
│       │   │   ├── CanTransferOwnership.swift
│       │   │   ├── CanTransferOwnershipResult.swift
│       │   │   ├── CancelDownloadFile.swift
│       │   │   ├── CancelPasswordReset.swift
│       │   │   ├── CancelPreliminaryUploadFile.swift
│       │   │   ├── CancelRecoveryEmailAddressVerification.swift
│       │   │   ├── ChangeImportedContacts.swift
│       │   │   ├── ChangeStickerSet.swift
│       │   │   ├── ChannelTransactionPurpose.swift
│       │   │   ├── Chat.swift
│       │   │   ├── ChatAction.swift
│       │   │   ├── ChatActionBar.swift
│       │   │   ├── ChatActiveStories.swift
│       │   │   ├── ChatAdministrator.swift
│       │   │   ├── ChatAdministratorRights.swift
│       │   │   ├── ChatAdministrators.swift
│       │   │   ├── ChatAffiliateProgram.swift
│       │   │   ├── ChatAffiliatePrograms.swift
│       │   │   ├── ChatAvailableReactions.swift
│       │   │   ├── ChatBackground.swift
│       │   │   ├── ChatBoost.swift
│       │   │   ├── ChatBoostFeatures.swift
│       │   │   ├── ChatBoostLevelFeatures.swift
│       │   │   ├── ChatBoostLink.swift
│       │   │   ├── ChatBoostLinkInfo.swift
│       │   │   ├── ChatBoostSlot.swift
│       │   │   ├── ChatBoostSlots.swift
│       │   │   ├── ChatBoostSource.swift
│       │   │   ├── ChatBoostStatus.swift
│       │   │   ├── ChatEvent.swift
│       │   │   ├── ChatEventAction.swift
│       │   │   ├── ChatEventLogFilters.swift
│       │   │   ├── ChatEvents.swift
│       │   │   ├── ChatFolder.swift
│       │   │   ├── ChatFolderIcon.swift
│       │   │   ├── ChatFolderInfo.swift
│       │   │   ├── ChatFolderInviteLink.swift
│       │   │   ├── ChatFolderInviteLinkInfo.swift
│       │   │   ├── ChatFolderInviteLinks.swift
│       │   │   ├── ChatFolderName.swift
│       │   │   ├── ChatInviteLink.swift
│       │   │   ├── ChatInviteLinkCount.swift
│       │   │   ├── ChatInviteLinkCounts.swift
│       │   │   ├── ChatInviteLinkInfo.swift
│       │   │   ├── ChatInviteLinkMember.swift
│       │   │   ├── ChatInviteLinkMembers.swift
│       │   │   ├── ChatInviteLinkSubscriptionInfo.swift
│       │   │   ├── ChatInviteLinks.swift
│       │   │   ├── ChatJoinRequest.swift
│       │   │   ├── ChatJoinRequests.swift
│       │   │   ├── ChatJoinRequestsInfo.swift
│       │   │   ├── ChatList.swift
│       │   │   ├── ChatLists.swift
│       │   │   ├── ChatLocation.swift
│       │   │   ├── ChatMember.swift
│       │   │   ├── ChatMemberStatus.swift
│       │   │   ├── ChatMembers.swift
│       │   │   ├── ChatMembersFilter.swift
│       │   │   ├── ChatMessageSender.swift
│       │   │   ├── ChatMessageSenders.swift
│       │   │   ├── ChatNearby.swift
│       │   │   ├── ChatNotificationSettings.swift
│       │   │   ├── ChatPermissions.swift
│       │   │   ├── ChatPhoto.swift
│       │   │   ├── ChatPhotoInfo.swift
│       │   │   ├── ChatPhotoSticker.swift
│       │   │   ├── ChatPhotoStickerType.swift
│       │   │   ├── ChatPhotos.swift
│       │   │   ├── ChatPosition.swift
│       │   │   ├── ChatRevenueAmount.swift
│       │   │   ├── ChatRevenueStatistics.swift
│       │   │   ├── ChatRevenueTransaction.swift
│       │   │   ├── ChatRevenueTransactionType.swift
│       │   │   ├── ChatRevenueTransactions.swift
│       │   │   ├── ChatRevenueWithdrawalState.swift
│       │   │   ├── ChatSource.swift
│       │   │   ├── ChatStatistics.swift
│       │   │   ├── ChatStatisticsAdministratorActionsInfo.swift
│       │   │   ├── ChatStatisticsInteractionInfo.swift
│       │   │   ├── ChatStatisticsInviterInfo.swift
│       │   │   ├── ChatStatisticsMessageSenderInfo.swift
│       │   │   ├── ChatStatisticsObjectType.swift
│       │   │   ├── ChatTheme.swift
│       │   │   ├── ChatTransactionPurpose.swift
│       │   │   ├── ChatType.swift
│       │   │   ├── Chats.swift
│       │   │   ├── ChatsNearby.swift
│       │   │   ├── CheckAuthenticationBotToken.swift
│       │   │   ├── CheckAuthenticationCode.swift
│       │   │   ├── CheckAuthenticationEmailCode.swift
│       │   │   ├── CheckAuthenticationPasskey.swift
│       │   │   ├── CheckAuthenticationPassword.swift
│       │   │   ├── CheckAuthenticationPasswordRecoveryCode.swift
│       │   │   ├── CheckAuthenticationPremiumPurchase.swift
│       │   │   ├── CheckBotUsername.swift
│       │   │   ├── CheckChatFolderInviteLink.swift
│       │   │   ├── CheckChatInviteLink.swift
│       │   │   ├── CheckChatUsername.swift
│       │   │   ├── CheckChatUsernameResult.swift
│       │   │   ├── CheckCreatedPublicChatsLimit.swift
│       │   │   ├── CheckEmailAddressVerificationCode.swift
│       │   │   ├── CheckLoginEmailAddressCode.swift
│       │   │   ├── CheckOauthRequestMatchCode.swift
│       │   │   ├── CheckPasswordRecoveryCode.swift
│       │   │   ├── CheckPhoneNumberCode.swift
│       │   │   ├── CheckPremiumGiftCode.swift
│       │   │   ├── CheckQuickReplyShortcutName.swift
│       │   │   ├── CheckRecoveryEmailAddressCode.swift
│       │   │   ├── CheckStickerSetName.swift
│       │   │   ├── CheckStickerSetNameResult.swift
│       │   │   ├── CheckWebAppFileDownload.swift
│       │   │   ├── Checklist.swift
│       │   │   ├── ChecklistTask.swift
│       │   │   ├── CleanFileName.swift
│       │   │   ├── ClearAllDraftMessages.swift
│       │   │   ├── ClearAutosaveSettingsExceptions.swift
│       │   │   ├── ClearImportedContacts.swift
│       │   │   ├── ClearRecentEmojiStatuses.swift
│       │   │   ├── ClearRecentReactions.swift
│       │   │   ├── ClearRecentStickers.swift
│       │   │   ├── ClearRecentlyFoundChats.swift
│       │   │   ├── ClearSearchedForHashtags.swift
│       │   │   ├── ClearSearchedForTags.swift
│       │   │   ├── ClickAnimatedEmojiMessage.swift
│       │   │   ├── ClickChatSponsoredMessage.swift
│       │   │   ├── ClickPremiumSubscriptionButton.swift
│       │   │   ├── ClickVideoMessageAdvertisement.swift
│       │   │   ├── Close.swift
│       │   │   ├── CloseBirthdayUser.swift
│       │   │   ├── CloseChat.swift
│       │   │   ├── CloseGiftAuction.swift
│       │   │   ├── CloseSecretChat.swift
│       │   │   ├── CloseStory.swift
│       │   │   ├── CloseWebApp.swift
│       │   │   ├── ClosedVectorPath.swift
│       │   │   ├── CollectibleItemInfo.swift
│       │   │   ├── CollectibleItemType.swift
│       │   │   ├── CommitPendingLiveStoryReactions.swift
│       │   │   ├── CommitPendingPaidMessageReactions.swift
│       │   │   ├── ComposeTextWithAi.swift
│       │   │   ├── ConfirmQrCodeAuthentication.swift
│       │   │   ├── ConfirmSession.swift
│       │   │   ├── ConnectAffiliateProgram.swift
│       │   │   ├── ConnectChatAffiliateProgram.swift
│       │   │   ├── ConnectedAffiliateProgram.swift
│       │   │   ├── ConnectedAffiliatePrograms.swift
│       │   │   ├── ConnectedWebsite.swift
│       │   │   ├── ConnectedWebsites.swift
│       │   │   ├── ConnectionState.swift
│       │   │   ├── Contact.swift
│       │   │   ├── Count.swift
│       │   │   ├── Countries.swift
│       │   │   ├── CountryInfo.swift
│       │   │   ├── CraftGift.swift
│       │   │   ├── CraftGiftResult.swift
│       │   │   ├── CreateBasicGroupChat.swift
│       │   │   ├── CreateBot.swift
│       │   │   ├── CreateBusinessChatLink.swift
│       │   │   ├── CreateCall.swift
│       │   │   ├── CreateChatFolder.swift
│       │   │   ├── CreateChatFolderInviteLink.swift
│       │   │   ├── CreateChatInviteLink.swift
│       │   │   ├── CreateChatSubscriptionInviteLink.swift
│       │   │   ├── CreateForumTopic.swift
│       │   │   ├── CreateGiftCollection.swift
│       │   │   ├── CreateGroupCall.swift
│       │   │   ├── CreateInvoiceLink.swift
│       │   │   ├── CreateNewBasicGroupChat.swift
│       │   │   ├── CreateNewSecretChat.swift
│       │   │   ├── CreateNewStickerSet.swift
│       │   │   ├── CreateNewSupergroupChat.swift
│       │   │   ├── CreatePrivateChat.swift
│       │   │   ├── CreateSecretChat.swift
│       │   │   ├── CreateStoryAlbum.swift
│       │   │   ├── CreateSupergroupChat.swift
│       │   │   ├── CreateTemporaryPassword.swift
│       │   │   ├── CreateTextCompositionStyle.swift
│       │   │   ├── CreateVideoChat.swift
│       │   │   ├── CreatedBasicGroupChat.swift
│       │   │   ├── CurrentWeather.swift
│       │   │   ├── CustomRequestResult.swift
│       │   │   ├── Data.swift
│       │   │   ├── DatabaseStatistics.swift
│       │   │   ├── Date.swift
│       │   │   ├── DateRange.swift
│       │   │   ├── DateTimeFormattingType.swift
│       │   │   ├── DateTimePartPrecision.swift
│       │   │   ├── DatedFile.swift
│       │   │   ├── DeclineGroupCallInvitation.swift
│       │   │   ├── DeclineOauthRequest.swift
│       │   │   ├── DeclineSuggestedPost.swift
│       │   │   ├── DecryptGroupCallData.swift
│       │   │   ├── DeepLinkInfo.swift
│       │   │   ├── DeleteAccount.swift
│       │   │   ├── DeleteAllCallMessages.swift
│       │   │   ├── DeleteAllRecentMessageReactionsFromSender.swift
│       │   │   ├── DeleteAllRevokedChatInviteLinks.swift
│       │   │   ├── DeleteBotMediaPreviews.swift
│       │   │   ├── DeleteBusinessChatLink.swift
│       │   │   ├── DeleteBusinessConnectedBot.swift
│       │   │   ├── DeleteBusinessMessages.swift
│       │   │   ├── DeleteBusinessStory.swift
│       │   │   ├── DeleteChat.swift
│       │   │   ├── DeleteChatBackground.swift
│       │   │   ├── DeleteChatFolder.swift
│       │   │   ├── DeleteChatFolderInviteLink.swift
│       │   │   ├── DeleteChatHistory.swift
│       │   │   ├── DeleteChatMessagesByDate.swift
│       │   │   ├── DeleteChatMessagesBySender.swift
│       │   │   ├── DeleteChatReplyMarkup.swift
│       │   │   ├── DeleteCommands.swift
│       │   │   ├── DeleteDefaultBackground.swift
│       │   │   ├── DeleteDirectMessagesChatTopicHistory.swift
│       │   │   ├── DeleteDirectMessagesChatTopicMessagesByDate.swift
│       │   │   ├── DeleteFile.swift
│       │   │   ├── DeleteForumTopic.swift
│       │   │   ├── DeleteGiftCollection.swift
│       │   │   ├── DeleteGroupCallMessages.swift
│       │   │   ├── DeleteGroupCallMessagesBySender.swift
│       │   │   ├── DeleteLanguagePack.swift
│       │   │   ├── DeleteMessageReactionsFromSender.swift
│       │   │   ├── DeleteMessages.swift
│       │   │   ├── DeletePassportElement.swift
│       │   │   ├── DeletePollOption.swift
│       │   │   ├── DeleteProfilePhoto.swift
│       │   │   ├── DeleteQuickReplyShortcut.swift
│       │   │   ├── DeleteQuickReplyShortcutMessages.swift
│       │   │   ├── DeleteRevokedChatInviteLink.swift
│       │   │   ├── DeleteSavedCredentials.swift
│       │   │   ├── DeleteSavedMessagesTopicHistory.swift
│       │   │   ├── DeleteSavedMessagesTopicMessagesByDate.swift
│       │   │   ├── DeleteSavedOrderInfo.swift
│       │   │   ├── DeleteStickerSet.swift
│       │   │   ├── DeleteStory.swift
│       │   │   ├── DeleteStoryAlbum.swift
│       │   │   ├── DeleteTextCompositionStyle.swift
│       │   │   ├── Destroy.swift
│       │   │   ├── DeviceToken.swift
│       │   │   ├── DiceStickers.swift
│       │   │   ├── DiffEntity.swift
│       │   │   ├── DiffEntityType.swift
│       │   │   ├── DiffText.swift
│       │   │   ├── DirectMessagesChatTopic.swift
│       │   │   ├── DisableAllSupergroupUsernames.swift
│       │   │   ├── DisableProxy.swift
│       │   │   ├── DiscardCall.swift
│       │   │   ├── DisconnectAffiliateProgram.swift
│       │   │   ├── DisconnectAllWebsites.swift
│       │   │   ├── DisconnectChatAffiliateProgram.swift
│       │   │   ├── DisconnectWebsite.swift
│       │   │   ├── Document.swift
│       │   │   ├── DownloadFile.swift
│       │   │   ├── DownloadedFileCounts.swift
│       │   │   ├── DraftMessage.swift
│       │   │   ├── DropGiftOriginalDetails.swift
│       │   │   ├── EditBotMediaPreview.swift
│       │   │   ├── EditBusinessChatLink.swift
│       │   │   ├── EditBusinessMessageCaption.swift
│       │   │   ├── EditBusinessMessageChecklist.swift
│       │   │   ├── EditBusinessMessageLiveLocation.swift
│       │   │   ├── EditBusinessMessageMedia.swift
│       │   │   ├── EditBusinessMessageReplyMarkup.swift
│       │   │   ├── EditBusinessMessageText.swift
│       │   │   ├── EditBusinessStory.swift
│       │   │   ├── EditChatFolder.swift
│       │   │   ├── EditChatFolderInviteLink.swift
│       │   │   ├── EditChatInviteLink.swift
│       │   │   ├── EditChatSubscriptionInviteLink.swift
│       │   │   ├── EditCustomLanguagePackInfo.swift
│       │   │   ├── EditForumTopic.swift
│       │   │   ├── EditInlineMessageCaption.swift
│       │   │   ├── EditInlineMessageLiveLocation.swift
│       │   │   ├── EditInlineMessageMedia.swift
│       │   │   ├── EditInlineMessageReplyMarkup.swift
│       │   │   ├── EditInlineMessageText.swift
│       │   │   ├── EditMessageCaption.swift
│       │   │   ├── EditMessageChecklist.swift
│       │   │   ├── EditMessageLiveLocation.swift
│       │   │   ├── EditMessageMedia.swift
│       │   │   ├── EditMessageReplyMarkup.swift
│       │   │   ├── EditMessageSchedulingState.swift
│       │   │   ├── EditMessageText.swift
│       │   │   ├── EditProxy.swift
│       │   │   ├── EditQuickReplyMessage.swift
│       │   │   ├── EditStarSubscription.swift
│       │   │   ├── EditStory.swift
│       │   │   ├── EditStoryCover.swift
│       │   │   ├── EditTextCompositionStyle.swift
│       │   │   ├── EditUserStarSubscription.swift
│       │   │   ├── EmailAddressAuthentication.swift
│       │   │   ├── EmailAddressAuthenticationCodeInfo.swift
│       │   │   ├── EmailAddressResetState.swift
│       │   │   ├── EmojiCategories.swift
│       │   │   ├── EmojiCategory.swift
│       │   │   ├── EmojiCategorySource.swift
│       │   │   ├── EmojiCategoryType.swift
│       │   │   ├── EmojiChatTheme.swift
│       │   │   ├── EmojiKeyword.swift
│       │   │   ├── EmojiKeywords.swift
│       │   │   ├── EmojiReaction.swift
│       │   │   ├── EmojiStatus.swift
│       │   │   ├── EmojiStatusCustomEmojis.swift
│       │   │   ├── EmojiStatusType.swift
│       │   │   ├── EmojiStatuses.swift
│       │   │   ├── Emojis.swift
│       │   │   ├── EnableProxy.swift
│       │   │   ├── EncryptGroupCallData.swift
│       │   │   ├── EncryptedCredentials.swift
│       │   │   ├── EncryptedPassportElement.swift
│       │   │   ├── EndGroupCall.swift
│       │   │   ├── EndGroupCallRecording.swift
│       │   │   ├── EndGroupCallScreenSharing.swift
│       │   │   ├── Error.swift
│       │   │   ├── FactCheck.swift
│       │   │   ├── FailedToAddMember.swift
│       │   │   ├── FailedToAddMembers.swift
│       │   │   ├── File.swift
│       │   │   ├── FileDownload.swift
│       │   │   ├── FileDownloadedPrefixSize.swift
│       │   │   ├── FilePart.swift
│       │   │   ├── FileType.swift
│       │   │   ├── FinishFileGeneration.swift
│       │   │   ├── FirebaseAuthenticationSettings.swift
│       │   │   ├── FirebaseDeviceVerificationParameters.swift
│       │   │   ├── FixTextWithAi.swift
│       │   │   ├── FixedText.swift
│       │   │   ├── FormattedText.swift
│       │   │   ├── ForumTopic.swift
│       │   │   ├── ForumTopicIcon.swift
│       │   │   ├── ForumTopicInfo.swift
│       │   │   ├── ForumTopics.swift
│       │   │   ├── ForwardMessages.swift
│       │   │   ├── ForwardSource.swift
│       │   │   ├── FoundAffiliateProgram.swift
│       │   │   ├── FoundAffiliatePrograms.swift
│       │   │   ├── FoundChatBoosts.swift
│       │   │   ├── FoundChatMessages.swift
│       │   │   ├── FoundFileDownloads.swift
│       │   │   ├── FoundMessages.swift
│       │   │   ├── FoundPosition.swift
│       │   │   ├── FoundPositions.swift
│       │   │   ├── FoundPublicPosts.swift
│       │   │   ├── FoundStories.swift
│       │   │   ├── FoundUsers.swift
│       │   │   ├── FoundWebApp.swift
│       │   │   ├── Game.swift
│       │   │   ├── GameHighScore.swift
│       │   │   ├── GameHighScores.swift
│       │   │   ├── GetAccountTtl.swift
│       │   │   ├── GetActiveLiveLocationMessages.swift
│       │   │   ├── GetActiveSessions.swift
│       │   │   ├── GetAllPassportElements.swift
│       │   │   ├── GetAllStickerEmojis.swift
│       │   │   ├── GetAnimatedEmoji.swift
│       │   │   ├── GetApplicationConfig.swift
│       │   │   ├── GetApplicationDownloadLink.swift
│       │   │   ├── GetArchiveChatListSettings.swift
│       │   │   ├── GetArchivedStickerSets.swift
│       │   │   ├── GetAttachedStickerSets.swift
│       │   │   ├── GetAttachmentMenuBot.swift
│       │   │   ├── GetAuthenticationPasskeyParameters.swift
│       │   │   ├── GetAuthorizationState.swift
│       │   │   ├── GetAutoDownloadSettingsPresets.swift
│       │   │   ├── GetAutosaveSettings.swift
│       │   │   ├── GetAvailableChatBoostSlots.swift
│       │   │   ├── GetAvailableGifts.swift
│       │   │   ├── GetBackgroundUrl.swift
│       │   │   ├── GetBankCardInfo.swift
│       │   │   ├── GetBasicGroup.swift
│       │   │   ├── GetBasicGroupFullInfo.swift
│       │   │   ├── GetBlockedMessageSenders.swift
│       │   │   ├── GetBotInfoDescription.swift
│       │   │   ├── GetBotInfoShortDescription.swift
│       │   │   ├── GetBotMediaPreviewInfo.swift
│       │   │   ├── GetBotMediaPreviews.swift
│       │   │   ├── GetBotName.swift
│       │   │   ├── GetBotSimilarBotCount.swift
│       │   │   ├── GetBotSimilarBots.swift
│       │   │   ├── GetBotToken.swift
│       │   │   ├── GetBusinessAccountStarAmount.swift
│       │   │   ├── GetBusinessChatLinkInfo.swift
│       │   │   ├── GetBusinessChatLinks.swift
│       │   │   ├── GetBusinessConnectedBot.swift
│       │   │   ├── GetBusinessConnection.swift
│       │   │   ├── GetBusinessFeatures.swift
│       │   │   ├── GetCallbackQueryAnswer.swift
│       │   │   ├── GetCallbackQueryMessage.swift
│       │   │   ├── GetChat.swift
│       │   │   ├── GetChatActiveStories.swift
│       │   │   ├── GetChatAdministrators.swift
│       │   │   ├── GetChatAffiliateProgram.swift
│       │   │   ├── GetChatAffiliatePrograms.swift
│       │   │   ├── GetChatArchivedStories.swift
│       │   │   ├── GetChatAvailableMessageSenders.swift
│       │   │   ├── GetChatAvailablePaidMessageReactionSenders.swift
│       │   │   ├── GetChatBoostFeatures.swift
│       │   │   ├── GetChatBoostLevelFeatures.swift
│       │   │   ├── GetChatBoostLink.swift
│       │   │   ├── GetChatBoostLinkInfo.swift
│       │   │   ├── GetChatBoostStatus.swift
│       │   │   ├── GetChatBoosts.swift
│       │   │   ├── GetChatEventLog.swift
│       │   │   ├── GetChatFolder.swift
│       │   │   ├── GetChatFolderChatCount.swift
│       │   │   ├── GetChatFolderChatsToLeave.swift
│       │   │   ├── GetChatFolderDefaultIconName.swift
│       │   │   ├── GetChatFolderInviteLinks.swift
│       │   │   ├── GetChatFolderNewChats.swift
│       │   │   ├── GetChatHistory.swift
│       │   │   ├── GetChatInviteLink.swift
│       │   │   ├── GetChatInviteLinkCounts.swift
│       │   │   ├── GetChatInviteLinkMembers.swift
│       │   │   ├── GetChatInviteLinks.swift
│       │   │   ├── GetChatJoinRequests.swift
│       │   │   ├── GetChatListsToAddChat.swift
│       │   │   ├── GetChatMember.swift
│       │   │   ├── GetChatMessageByDate.swift
│       │   │   ├── GetChatMessageCalendar.swift
│       │   │   ├── GetChatMessageCount.swift
│       │   │   ├── GetChatMessagePosition.swift
│       │   │   ├── GetChatNotificationSettingsExceptions.swift
│       │   │   ├── GetChatOwnerAfterLeaving.swift
│       │   │   ├── GetChatPinnedMessage.swift
│       │   │   ├── GetChatPostedToChatPageStories.swift
│       │   │   ├── GetChatRevenueStatistics.swift
│       │   │   ├── GetChatRevenueTransactions.swift
│       │   │   ├── GetChatRevenueWithdrawalUrl.swift
│       │   │   ├── GetChatScheduledMessages.swift
│       │   │   ├── GetChatSimilarChatCount.swift
│       │   │   ├── GetChatSimilarChats.swift
│       │   │   ├── GetChatSparseMessagePositions.swift
│       │   │   ├── GetChatSponsoredMessages.swift
│       │   │   ├── GetChatStatistics.swift
│       │   │   ├── GetChatStoryAlbums.swift
│       │   │   ├── GetChatStoryInteractions.swift
│       │   │   ├── GetChats.swift
│       │   │   ├── GetChatsForChatFolderInviteLink.swift
│       │   │   ├── GetChatsToPostStories.swift
│       │   │   ├── GetChatsToSendStories.swift
│       │   │   ├── GetCloseFriends.swift
│       │   │   ├── GetCollectibleItemInfo.swift
│       │   │   ├── GetCommands.swift
│       │   │   ├── GetConnectedAffiliateProgram.swift
│       │   │   ├── GetConnectedAffiliatePrograms.swift
│       │   │   ├── GetConnectedWebsites.swift
│       │   │   ├── GetContacts.swift
│       │   │   ├── GetCountries.swift
│       │   │   ├── GetCountryCode.swift
│       │   │   ├── GetCountryFlagEmoji.swift
│       │   │   ├── GetCreatedPublicChats.swift
│       │   │   ├── GetCurrentState.swift
│       │   │   ├── GetCurrentWeather.swift
│       │   │   ├── GetCustomEmojiReactionAnimations.swift
│       │   │   ├── GetCustomEmojiStickers.swift
│       │   │   ├── GetDatabaseStatistics.swift
│       │   │   ├── GetDeepLinkInfo.swift
│       │   │   ├── GetDefaultBackgroundCustomEmojiStickers.swift
│       │   │   ├── GetDefaultChatEmojiStatuses.swift
│       │   │   ├── GetDefaultChatPhotoCustomEmojiStickers.swift
│       │   │   ├── GetDefaultEmojiStatuses.swift
│       │   │   ├── GetDefaultMessageAutoDeleteTime.swift
│       │   │   ├── GetDefaultProfilePhotoCustomEmojiStickers.swift
│       │   │   ├── GetDirectMessagesChatTopic.swift
│       │   │   ├── GetDirectMessagesChatTopicHistory.swift
│       │   │   ├── GetDirectMessagesChatTopicMessageByDate.swift
│       │   │   ├── GetDirectMessagesChatTopicRevenue.swift
│       │   │   ├── GetDisallowedChatEmojiStatuses.swift
│       │   │   ├── GetEmojiCategories.swift
│       │   │   ├── GetEmojiReaction.swift
│       │   │   ├── GetEmojiSuggestionsUrl.swift
│       │   │   ├── GetExternalLink.swift
│       │   │   ├── GetExternalLinkInfo.swift
│       │   │   ├── GetFavoriteStickers.swift
│       │   │   ├── GetFile.swift
│       │   │   ├── GetFileDownloadedPrefixSize.swift
│       │   │   ├── GetFileExtension.swift
│       │   │   ├── GetFileMimeType.swift
│       │   │   ├── GetForumTopic.swift
│       │   │   ├── GetForumTopicDefaultIcons.swift
│       │   │   ├── GetForumTopicHistory.swift
│       │   │   ├── GetForumTopicLink.swift
│       │   │   ├── GetForumTopics.swift
│       │   │   ├── GetGameHighScores.swift
│       │   │   ├── GetGiftAuctionAcquiredGifts.swift
│       │   │   ├── GetGiftAuctionState.swift
│       │   │   ├── GetGiftChatThemes.swift
│       │   │   ├── GetGiftCollections.swift
│       │   │   ├── GetGiftUpgradePreview.swift
│       │   │   ├── GetGiftUpgradeVariants.swift
│       │   │   ├── GetGiftsForCrafting.swift
│       │   │   ├── GetGiveawayInfo.swift
│       │   │   ├── GetGreetingStickers.swift
│       │   │   ├── GetGrossingWebAppBots.swift
│       │   │   ├── GetGroupCall.swift
│       │   │   ├── GetGroupCallInviteLink.swift
│       │   │   ├── GetGroupCallParticipants.swift
│       │   │   ├── GetGroupCallStreamSegment.swift
│       │   │   ├── GetGroupCallStreams.swift
│       │   │   ├── GetGroupsInCommon.swift
│       │   │   ├── GetImportedContactCount.swift
│       │   │   ├── GetInactiveSupergroupChats.swift
│       │   │   ├── GetInlineGameHighScores.swift
│       │   │   ├── GetInlineQueryResults.swift
│       │   │   ├── GetInstalledBackgrounds.swift
│       │   │   ├── GetInstalledStickerSets.swift
│       │   │   ├── GetInternalLink.swift
│       │   │   ├── GetInternalLinkType.swift
│       │   │   ├── GetJsonString.swift
│       │   │   ├── GetJsonValue.swift
│       │   │   ├── GetKeywordEmojis.swift
│       │   │   ├── GetLanguagePackInfo.swift
│       │   │   ├── GetLanguagePackString.swift
│       │   │   ├── GetLanguagePackStrings.swift
│       │   │   ├── GetLinkPreview.swift
│       │   │   ├── GetLiveStoryAvailableMessageSenders.swift
│       │   │   ├── GetLiveStoryRtmpUrl.swift
│       │   │   ├── GetLiveStoryStreamer.swift
│       │   │   ├── GetLiveStoryTopDonors.swift
│       │   │   ├── GetLocalizationTargetInfo.swift
│       │   │   ├── GetLogStream.swift
│       │   │   ├── GetLogTagVerbosityLevel.swift
│       │   │   ├── GetLogTags.swift
│       │   │   ├── GetLogVerbosityLevel.swift
│       │   │   ├── GetLoginPasskeys.swift
│       │   │   ├── GetLoginUrl.swift
│       │   │   ├── GetLoginUrlInfo.swift
│       │   │   ├── GetMainWebApp.swift
│       │   │   ├── GetManagedBotAccessSettings.swift
│       │   │   ├── GetManagedBotToken.swift
│       │   │   ├── GetMapThumbnailFile.swift
│       │   │   ├── GetMarkdownText.swift
│       │   │   ├── GetMe.swift
│       │   │   ├── GetMenuButton.swift
│       │   │   ├── GetMessage.swift
│       │   │   ├── GetMessageAddedReactions.swift
│       │   │   ├── GetMessageAuthor.swift
│       │   │   ├── GetMessageAvailableReactions.swift
│       │   │   ├── GetMessageEffect.swift
│       │   │   ├── GetMessageEmbeddingCode.swift
│       │   │   ├── GetMessageFileType.swift
│       │   │   ├── GetMessageImportConfirmationText.swift
│       │   │   ├── GetMessageLink.swift
│       │   │   ├── GetMessageLinkInfo.swift
│       │   │   ├── GetMessageLocally.swift
│       │   │   ├── GetMessageProperties.swift
│       │   │   ├── GetMessagePublicForwards.swift
│       │   │   ├── GetMessageReadDate.swift
│       │   │   ├── GetMessageStatistics.swift
│       │   │   ├── GetMessageThread.swift
│       │   │   ├── GetMessageThreadHistory.swift
│       │   │   ├── GetMessageViewers.swift
│       │   │   ├── GetMessages.swift
│       │   │   ├── GetNetworkStatistics.swift
│       │   │   ├── GetNewChatPrivacySettings.swift
│       │   │   ├── GetOauthLinkInfo.swift
│       │   │   ├── GetOption.swift
│       │   │   ├── GetOwnedBots.swift
│       │   │   ├── GetOwnedStickerSets.swift
│       │   │   ├── GetPaidMessageRevenue.swift
│       │   │   ├── GetPasskeyParameters.swift
│       │   │   ├── GetPassportAuthorizationForm.swift
│       │   │   ├── GetPassportAuthorizationFormAvailableElements.swift
│       │   │   ├── GetPassportElement.swift
│       │   │   ├── GetPasswordState.swift
│       │   │   ├── GetPaymentForm.swift
│       │   │   ├── GetPaymentReceipt.swift
│       │   │   ├── GetPersonalChatHistory.swift
│       │   │   ├── GetPhoneNumberInfo.swift
│       │   │   ├── GetPhoneNumberInfoSync.swift
│       │   │   ├── GetPollOptionProperties.swift
│       │   │   ├── GetPollVoteStatistics.swift
│       │   │   ├── GetPollVoters.swift
│       │   │   ├── GetPopularWebAppBots.swift
│       │   │   ├── GetPreferredCountryLanguage.swift
│       │   │   ├── GetPremiumFeatures.swift
│       │   │   ├── GetPremiumGiftCodePaymentOptions.swift
│       │   │   ├── GetPremiumGiftPaymentOptions.swift
│       │   │   ├── GetPremiumGiveawayInfo.swift
│       │   │   ├── GetPremiumGiveawayPaymentOptions.swift
│       │   │   ├── GetPremiumInfoSticker.swift
│       │   │   ├── GetPremiumLimit.swift
│       │   │   ├── GetPremiumState.swift
│       │   │   ├── GetPremiumStickerExamples.swift
│       │   │   ├── GetPremiumStickers.swift
│       │   │   ├── GetPreparedInlineMessage.swift
│       │   │   ├── GetPreparedKeyboardButton.swift
│       │   │   ├── GetProxies.swift
│       │   │   ├── GetProxyLink.swift
│       │   │   ├── GetPublicPostSearchLimits.swift
│       │   │   ├── GetPushReceiverId.swift
│       │   │   ├── GetReadDatePrivacySettings.swift
│       │   │   ├── GetReceivedGift.swift
│       │   │   ├── GetReceivedGifts.swift
│       │   │   ├── GetRecentEmojiStatuses.swift
│       │   │   ├── GetRecentInlineBots.swift
│       │   │   ├── GetRecentStickers.swift
│       │   │   ├── GetRecentlyOpenedChats.swift
│       │   │   ├── GetRecentlyVisitedTMeUrls.swift
│       │   │   ├── GetRecommendedChatFolders.swift
│       │   │   ├── GetRecommendedChats.swift
│       │   │   ├── GetRecoveryEmailAddress.swift
│       │   │   ├── GetRemoteFile.swift
│       │   │   ├── GetRepliedMessage.swift
│       │   │   ├── GetSavedAnimations.swift
│       │   │   ├── GetSavedMessagesTags.swift
│       │   │   ├── GetSavedMessagesTopicHistory.swift
│       │   │   ├── GetSavedMessagesTopicMessageByDate.swift
│       │   │   ├── GetSavedNotificationSound.swift
│       │   │   ├── GetSavedNotificationSounds.swift
│       │   │   ├── GetSavedOrderInfo.swift
│       │   │   ├── GetScopeNotificationSettings.swift
│       │   │   ├── GetSearchSponsoredChats.swift
│       │   │   ├── GetSearchedForHashtags.swift
│       │   │   ├── GetSearchedForTags.swift
│       │   │   ├── GetSecretChat.swift
│       │   │   ├── GetStakeDiceState.swift
│       │   │   ├── GetStarAdAccountUrl.swift
│       │   │   ├── GetStarGiftPaymentOptions.swift
│       │   │   ├── GetStarGiveawayPaymentOptions.swift
│       │   │   ├── GetStarPaymentOptions.swift
│       │   │   ├── GetStarRevenueStatistics.swift
│       │   │   ├── GetStarSubscriptions.swift
│       │   │   ├── GetStarTransactions.swift
│       │   │   ├── GetStarWithdrawalUrl.swift
│       │   │   ├── GetStatisticalGraph.swift
│       │   │   ├── GetStickerEmojis.swift
│       │   │   ├── GetStickerOutline.swift
│       │   │   ├── GetStickerOutlineSvgPath.swift
│       │   │   ├── GetStickerSet.swift
│       │   │   ├── GetStickerSetName.swift
│       │   │   ├── GetStickers.swift
│       │   │   ├── GetStorageStatistics.swift
│       │   │   ├── GetStorageStatisticsFast.swift
│       │   │   ├── GetStory.swift
│       │   │   ├── GetStoryAlbumStories.swift
│       │   │   ├── GetStoryAvailableReactions.swift
│       │   │   ├── GetStoryInteractions.swift
│       │   │   ├── GetStoryNotificationSettingsExceptions.swift
│       │   │   ├── GetStoryPublicForwards.swift
│       │   │   ├── GetStoryStatistics.swift
│       │   │   ├── GetSuggestedFileName.swift
│       │   │   ├── GetSuggestedStickerSetName.swift
│       │   │   ├── GetSuitableDiscussionChats.swift
│       │   │   ├── GetSuitablePersonalChats.swift
│       │   │   ├── GetSupergroup.swift
│       │   │   ├── GetSupergroupFullInfo.swift
│       │   │   ├── GetSupergroupMembers.swift
│       │   │   ├── GetSupportName.swift
│       │   │   ├── GetSupportUser.swift
│       │   │   ├── GetTemporaryPasswordState.swift
│       │   │   ├── GetTextCompositionStyleExample.swift
│       │   │   ├── GetTextEntities.swift
│       │   │   ├── GetThemeParametersJsonString.swift
│       │   │   ├── GetThemedChatEmojiStatuses.swift
│       │   │   ├── GetThemedEmojiStatuses.swift
│       │   │   ├── GetTimeZones.swift
│       │   │   ├── GetTonRevenueStatistics.swift
│       │   │   ├── GetTonTransactions.swift
│       │   │   ├── GetTonWithdrawalUrl.swift
│       │   │   ├── GetTopChats.swift
│       │   │   ├── GetTrendingStickerSets.swift
│       │   │   ├── GetUpgradedGift.swift
│       │   │   ├── GetUpgradedGiftEmojiStatuses.swift
│       │   │   ├── GetUpgradedGiftValueInfo.swift
│       │   │   ├── GetUpgradedGiftVariants.swift
│       │   │   ├── GetUpgradedGiftWithdrawalUrl.swift
│       │   │   ├── GetUpgradedGiftsPromotionalAnimation.swift
│       │   │   ├── GetUser.swift
│       │   │   ├── GetUserChatBoosts.swift
│       │   │   ├── GetUserFullInfo.swift
│       │   │   ├── GetUserGift.swift
│       │   │   ├── GetUserGifts.swift
│       │   │   ├── GetUserLink.swift
│       │   │   ├── GetUserPrivacySettingRules.swift
│       │   │   ├── GetUserProfileAudios.swift
│       │   │   ├── GetUserProfilePhotos.swift
│       │   │   ├── GetUserSupportInfo.swift
│       │   │   ├── GetVideoChatAvailableParticipants.swift
│       │   │   ├── GetVideoChatInviteLink.swift
│       │   │   ├── GetVideoChatRtmpUrl.swift
│       │   │   ├── GetVideoChatStreamSegment.swift
│       │   │   ├── GetVideoChatStreams.swift
│       │   │   ├── GetVideoMessageAdvertisements.swift
│       │   │   ├── GetWebAppLinkUrl.swift
│       │   │   ├── GetWebAppPlaceholder.swift
│       │   │   ├── GetWebAppUrl.swift
│       │   │   ├── GetWebPageInstantView.swift
│       │   │   ├── GetWebPagePreview.swift
│       │   │   ├── Gift.swift
│       │   │   ├── GiftAuction.swift
│       │   │   ├── GiftAuctionAcquiredGift.swift
│       │   │   ├── GiftAuctionAcquiredGifts.swift
│       │   │   ├── GiftAuctionState.swift
│       │   │   ├── GiftBackground.swift
│       │   │   ├── GiftChatTheme.swift
│       │   │   ├── GiftChatThemes.swift
│       │   │   ├── GiftCollection.swift
│       │   │   ├── GiftCollections.swift
│       │   │   ├── GiftForResale.swift
│       │   │   ├── GiftForResaleOrder.swift
│       │   │   ├── GiftPremiumWithStars.swift
│       │   │   ├── GiftPurchaseLimits.swift
│       │   │   ├── GiftPurchaseOfferState.swift
│       │   │   ├── GiftResaleParameters.swift
│       │   │   ├── GiftResalePrice.swift
│       │   │   ├── GiftResaleResult.swift
│       │   │   ├── GiftSettings.swift
│       │   │   ├── GiftUpgradePreview.swift
│       │   │   ├── GiftUpgradePrice.swift
│       │   │   ├── GiftUpgradeVariants.swift
│       │   │   ├── Gifts.swift
│       │   │   ├── GiftsForCrafting.swift
│       │   │   ├── GiftsForResale.swift
│       │   │   ├── GiveawayInfo.swift
│       │   │   ├── GiveawayParameters.swift
│       │   │   ├── GiveawayParticipantStatus.swift
│       │   │   ├── GiveawayPrize.swift
│       │   │   ├── GroupCall.swift
│       │   │   ├── GroupCallDataChannel.swift
│       │   │   ├── GroupCallId.swift
│       │   │   ├── GroupCallInfo.swift
│       │   │   ├── GroupCallJoinParameters.swift
│       │   │   ├── GroupCallMessage.swift
│       │   │   ├── GroupCallMessageLevel.swift
│       │   │   ├── GroupCallParticipant.swift
│       │   │   ├── GroupCallParticipantVideoInfo.swift
│       │   │   ├── GroupCallParticipants.swift
│       │   │   ├── GroupCallRecentSpeaker.swift
│       │   │   ├── GroupCallStream.swift
│       │   │   ├── GroupCallStreams.swift
│       │   │   ├── GroupCallVideoQuality.swift
│       │   │   ├── GroupCallVideoSourceGroup.swift
│       │   │   ├── Hashtags.swift
│       │   │   ├── HideContactCloseBirthdays.swift
│       │   │   ├── HideSuggestedAction.swift
│       │   │   ├── HttpUrl.swift
│       │   │   ├── IdentityDocument.swift
│       │   │   ├── ImportContacts.swift
│       │   │   ├── ImportMessages.swift
│       │   │   ├── ImportedContact.swift
│       │   │   ├── ImportedContacts.swift
│       │   │   ├── IncreaseGiftAuctionBid.swift
│       │   │   ├── InlineKeyboardButton.swift
│       │   │   ├── InlineKeyboardButtonType.swift
│       │   │   ├── InlineMessageId.swift
│       │   │   ├── InlineQueryResult.swift
│       │   │   ├── InlineQueryResults.swift
│       │   │   ├── InlineQueryResultsButton.swift
│       │   │   ├── InlineQueryResultsButtonType.swift
│       │   │   ├── InputBackground.swift
│       │   │   ├── InputBusinessChatLink.swift
│       │   │   ├── InputBusinessStartPage.swift
│       │   │   ├── InputCall.swift
│       │   │   ├── InputChatPhoto.swift
│       │   │   ├── InputChatTheme.swift
│       │   │   ├── InputChecklist.swift
│       │   │   ├── InputChecklistTask.swift
│       │   │   ├── InputCredentials.swift
│       │   │   ├── InputFile.swift
│       │   │   ├── InputGroupCall.swift
│       │   │   ├── InputIdentityDocument.swift
│       │   │   ├── InputInlineQueryResult.swift
│       │   │   ├── InputInvoice.swift
│       │   │   ├── InputMessageContent.swift
│       │   │   ├── InputMessageReplyTo.swift
│       │   │   ├── InputPaidMedia.swift
│       │   │   ├── InputPaidMediaType.swift
│       │   │   ├── InputPassportElement.swift
│       │   │   ├── InputPassportElementError.swift
│       │   │   ├── InputPassportElementErrorSource.swift
│       │   │   ├── InputPersonalDocument.swift
│       │   │   ├── InputPollOption.swift
│       │   │   ├── InputPollType.swift
│       │   │   ├── InputSticker.swift
│       │   │   ├── InputStoryArea.swift
│       │   │   ├── InputStoryAreaType.swift
│       │   │   ├── InputStoryAreas.swift
│       │   │   ├── InputStoryContent.swift
│       │   │   ├── InputSuggestedPostInfo.swift
│       │   │   ├── InputTextQuote.swift
│       │   │   ├── InputThumbnail.swift
│       │   │   ├── InternalLinkType.swift
│       │   │   ├── InviteGroupCallParticipant.swift
│       │   │   ├── InviteGroupCallParticipantResult.swift
│       │   │   ├── InviteGroupCallParticipants.swift
│       │   │   ├── InviteLinkChatType.swift
│       │   │   ├── InviteVideoChatParticipants.swift
│       │   │   ├── Invoice.swift
│       │   │   ├── IsLoginEmailAddressRequired.swift
│       │   │   ├── IsProfileAudio.swift
│       │   │   ├── JoinChat.swift
│       │   │   ├── JoinChatByInviteLink.swift
│       │   │   ├── JoinGroupCall.swift
│       │   │   ├── JoinLiveStory.swift
│       │   │   ├── JoinVideoChat.swift
│       │   │   ├── JsonObjectMember.swift
│       │   │   ├── JsonValue.swift
│       │   │   ├── KeyboardButton.swift
│       │   │   ├── KeyboardButtonSource.swift
│       │   │   ├── KeyboardButtonType.swift
│       │   │   ├── LabeledPricePart.swift
│       │   │   ├── LanguagePackInfo.swift
│       │   │   ├── LanguagePackString.swift
│       │   │   ├── LanguagePackStringValue.swift
│       │   │   ├── LanguagePackStrings.swift
│       │   │   ├── LaunchPrepaidGiveaway.swift
│       │   │   ├── LaunchPrepaidPremiumGiveaway.swift
│       │   │   ├── LeaveChat.swift
│       │   │   ├── LeaveGroupCall.swift
│       │   │   ├── LinkPreview.swift
│       │   │   ├── LinkPreviewAlbumMedia.swift
│       │   │   ├── LinkPreviewOptions.swift
│       │   │   ├── LinkPreviewType.swift
│       │   │   ├── ListenToAudio.swift
│       │   │   ├── LiveStoryDonors.swift
│       │   │   ├── LoadActiveStories.swift
│       │   │   ├── LoadChats.swift
│       │   │   ├── LoadDirectMessagesChatTopics.swift
│       │   │   ├── LoadGroupCallParticipants.swift
│       │   │   ├── LoadQuickReplyShortcutMessages.swift
│       │   │   ├── LoadQuickReplyShortcuts.swift
│       │   │   ├── LoadSavedMessagesTopics.swift
│       │   │   ├── LocalFile.swift
│       │   │   ├── LocalizationTargetInfo.swift
│       │   │   ├── Location.swift
│       │   │   ├── LocationAddress.swift
│       │   │   ├── LogOut.swift
│       │   │   ├── LogStream.swift
│       │   │   ├── LogTags.swift
│       │   │   ├── LogVerbosityLevel.swift
│       │   │   ├── LoginUrlInfo.swift
│       │   │   ├── MainWebApp.swift
│       │   │   ├── MarkChecklistTasksAsDone.swift
│       │   │   ├── MaskPoint.swift
│       │   │   ├── MaskPosition.swift
│       │   │   ├── Message.swift
│       │   │   ├── MessageAutoDeleteTime.swift
│       │   │   ├── MessageCalendar.swift
│       │   │   ├── MessageCalendarDay.swift
│       │   │   ├── MessageContent.swift
│       │   │   ├── MessageCopyOptions.swift
│       │   │   ├── MessageEffect.swift
│       │   │   ├── MessageEffectType.swift
│       │   │   ├── MessageExtendedMedia.swift
│       │   │   ├── MessageFileType.swift
│       │   │   ├── MessageForwardInfo.swift
│       │   │   ├── MessageImportInfo.swift
│       │   │   ├── MessageInteractionInfo.swift
│       │   │   ├── MessageLink.swift
│       │   │   ├── MessageLinkInfo.swift
│       │   │   ├── MessageOrigin.swift
│       │   │   ├── MessagePosition.swift
│       │   │   ├── MessagePositions.swift
│       │   │   ├── MessageProperties.swift
│       │   │   ├── MessageReaction.swift
│       │   │   ├── MessageReactions.swift
│       │   │   ├── MessageReadDate.swift
│       │   │   ├── MessageReplyInfo.swift
│       │   │   ├── MessageReplyTo.swift
│       │   │   ├── MessageSchedulingState.swift
│       │   │   ├── MessageSelfDestructType.swift
│       │   │   ├── MessageSendOptions.swift
│       │   │   ├── MessageSender.swift
│       │   │   ├── MessageSenders.swift
│       │   │   ├── MessageSendingState.swift
│       │   │   ├── MessageSource.swift
│       │   │   ├── MessageSponsor.swift
│       │   │   ├── MessageStatistics.swift
│       │   │   ├── MessageThreadInfo.swift
│       │   │   ├── MessageTopic.swift
│       │   │   ├── MessageViewer.swift
│       │   │   ├── MessageViewers.swift
│       │   │   ├── Messages.swift
│       │   │   ├── Minithumbnail.swift
│       │   │   ├── NetworkStatistics.swift
│       │   │   ├── NetworkStatisticsEntry.swift
│       │   │   ├── NetworkType.swift
│       │   │   ├── NewChatPrivacySettings.swift
│       │   │   ├── Notification.swift
│       │   │   ├── NotificationGroup.swift
│       │   │   ├── NotificationGroupType.swift
│       │   │   ├── NotificationSettingsScope.swift
│       │   │   ├── NotificationSound.swift
│       │   │   ├── NotificationSounds.swift
│       │   │   ├── NotificationType.swift
│       │   │   ├── OauthLinkInfo.swift
│       │   │   ├── Ok.swift
│       │   │   ├── OpenBotSimilarBot.swift
│       │   │   ├── OpenChat.swift
│       │   │   ├── OpenChatSimilarChat.swift
│       │   │   ├── OpenGiftAuction.swift
│       │   │   ├── OpenMessageContent.swift
│       │   │   ├── OpenSponsoredChat.swift
│       │   │   ├── OpenStory.swift
│       │   │   ├── OpenWebApp.swift
│       │   │   ├── OptimizeStorage.swift
│       │   │   ├── OptionValue.swift
│       │   │   ├── OrderInfo.swift
│       │   │   ├── Outline.swift
│       │   │   ├── PageBlock.swift
│       │   │   ├── PageBlockCaption.swift
│       │   │   ├── PageBlockHorizontalAlignment.swift
│       │   │   ├── PageBlockListItem.swift
│       │   │   ├── PageBlockRelatedArticle.swift
│       │   │   ├── PageBlockTableCell.swift
│       │   │   ├── PageBlockVerticalAlignment.swift
│       │   │   ├── PaidMedia.swift
│       │   │   ├── PaidReactionType.swift
│       │   │   ├── PaidReactor.swift
│       │   │   ├── ParseMarkdown.swift
│       │   │   ├── ParseTextEntities.swift
│       │   │   ├── Passkey.swift
│       │   │   ├── Passkeys.swift
│       │   │   ├── PassportAuthorizationForm.swift
│       │   │   ├── PassportElement.swift
│       │   │   ├── PassportElementError.swift
│       │   │   ├── PassportElementErrorSource.swift
│       │   │   ├── PassportElementType.swift
│       │   │   ├── PassportElements.swift
│       │   │   ├── PassportElementsWithErrors.swift
│       │   │   ├── PassportRequiredElement.swift
│       │   │   ├── PassportSuitableElement.swift
│       │   │   ├── PasswordState.swift
│       │   │   ├── PaymentForm.swift
│       │   │   ├── PaymentFormType.swift
│       │   │   ├── PaymentOption.swift
│       │   │   ├── PaymentProvider.swift
│       │   │   ├── PaymentReceipt.swift
│       │   │   ├── PaymentReceiptType.swift
│       │   │   ├── PaymentResult.swift
│       │   │   ├── PersonalDetails.swift
│       │   │   ├── PersonalDocument.swift
│       │   │   ├── PhoneNumberAuthenticationSettings.swift
│       │   │   ├── PhoneNumberCodeType.swift
│       │   │   ├── PhoneNumberInfo.swift
│       │   │   ├── Photo.swift
│       │   │   ├── PhotoSize.swift
│       │   │   ├── PinChatMessage.swift
│       │   │   ├── PingProxy.swift
│       │   │   ├── PlaceGiftAuctionBid.swift
│       │   │   ├── Point.swift
│       │   │   ├── Poll.swift
│       │   │   ├── PollOption.swift
│       │   │   ├── PollOptionProperties.swift
│       │   │   ├── PollType.swift
│       │   │   ├── PollVoteRestrictionReason.swift
│       │   │   ├── PollVoteStatistics.swift
│       │   │   ├── PollVoter.swift
│       │   │   ├── PollVoters.swift
│       │   │   ├── PostStory.swift
│       │   │   ├── PreliminaryUploadFile.swift
│       │   │   ├── PremiumFeature.swift
│       │   │   ├── PremiumFeaturePromotionAnimation.swift
│       │   │   ├── PremiumFeatures.swift
│       │   │   ├── PremiumGiftCodeInfo.swift
│       │   │   ├── PremiumGiftCodePaymentOption.swift
│       │   │   ├── PremiumGiftCodePaymentOptions.swift
│       │   │   ├── PremiumGiftPaymentOption.swift
│       │   │   ├── PremiumGiftPaymentOptions.swift
│       │   │   ├── PremiumGiveawayInfo.swift
│       │   │   ├── PremiumGiveawayParameters.swift
│       │   │   ├── PremiumGiveawayParticipantStatus.swift
│       │   │   ├── PremiumGiveawayPaymentOption.swift
│       │   │   ├── PremiumGiveawayPaymentOptions.swift
│       │   │   ├── PremiumLimit.swift
│       │   │   ├── PremiumLimitType.swift
│       │   │   ├── PremiumPaymentOption.swift
│       │   │   ├── PremiumSource.swift
│       │   │   ├── PremiumState.swift
│       │   │   ├── PremiumStatePaymentOption.swift
│       │   │   ├── PremiumStoryFeature.swift
│       │   │   ├── PrepaidGiveaway.swift
│       │   │   ├── PrepaidPremiumGiveaway.swift
│       │   │   ├── PreparedInlineMessage.swift
│       │   │   ├── PreparedInlineMessageId.swift
│       │   │   ├── ProcessChatFolderNewChats.swift
│       │   │   ├── ProcessChatHasProtectedContentDisableRequest.swift
│       │   │   ├── ProcessChatJoinRequest.swift
│       │   │   ├── ProcessChatJoinRequests.swift
│       │   │   ├── ProcessGiftPurchaseOffer.swift
│       │   │   ├── ProcessPushNotification.swift
│       │   │   ├── ProductInfo.swift
│       │   │   ├── ProfileAccentColor.swift
│       │   │   ├── ProfileAccentColors.swift
│       │   │   ├── ProfilePhoto.swift
│       │   │   ├── ProfileTab.swift
│       │   │   ├── Proxies.swift
│       │   │   ├── Proxy.swift
│       │   │   ├── ProxyType.swift
│       │   │   ├── PublicChatType.swift
│       │   │   ├── PublicForward.swift
│       │   │   ├── PublicForwards.swift
│       │   │   ├── PublicPostSearchLimits.swift
│       │   │   ├── PushMessageContent.swift
│       │   │   ├── PushReceiverId.swift
│       │   │   ├── QuickReplyMessage.swift
│       │   │   ├── QuickReplyMessages.swift
│       │   │   ├── QuickReplyShortcut.swift
│       │   │   ├── RateSpeechRecognition.swift
│       │   │   ├── ReactionNotificationSettings.swift
│       │   │   ├── ReactionNotificationSource.swift
│       │   │   ├── ReactionType.swift
│       │   │   ├── ReactionUnavailabilityReason.swift
│       │   │   ├── ReadAllChatMentions.swift
│       │   │   ├── ReadAllChatPollVotes.swift
│       │   │   ├── ReadAllChatReactions.swift
│       │   │   ├── ReadAllDirectMessagesChatTopicReactions.swift
│       │   │   ├── ReadAllForumTopicMentions.swift
│       │   │   ├── ReadAllForumTopicPollVotes.swift
│       │   │   ├── ReadAllForumTopicReactions.swift
│       │   │   ├── ReadAllMessageThreadMentions.swift
│       │   │   ├── ReadAllMessageThreadReactions.swift
│       │   │   ├── ReadBusinessMessage.swift
│       │   │   ├── ReadChatList.swift
│       │   │   ├── ReadDatePrivacySettings.swift
│       │   │   ├── ReadFilePart.swift
│       │   │   ├── ReaddQuickReplyShortcutMessages.swift
│       │   │   ├── ReceivedGift.swift
│       │   │   ├── ReceivedGifts.swift
│       │   │   ├── RecognizeSpeech.swift
│       │   │   ├── RecommendedChatFolder.swift
│       │   │   ├── RecommendedChatFolders.swift
│       │   │   ├── RecoverAuthenticationPassword.swift
│       │   │   ├── RecoverPassword.swift
│       │   │   ├── RecoveryEmailAddress.swift
│       │   │   ├── RefundStarPayment.swift
│       │   │   ├── RegisterDevice.swift
│       │   │   ├── RegisterUser.swift
│       │   │   ├── RemoteFile.swift
│       │   │   ├── RemoveAllFilesFromDownloads.swift
│       │   │   ├── RemoveBusinessConnectedBotFromChat.swift
│       │   │   ├── RemoveChatActionBar.swift
│       │   │   ├── RemoveContacts.swift
│       │   │   ├── RemoveFavoriteSticker.swift
│       │   │   ├── RemoveFileFromDownloads.swift
│       │   │   ├── RemoveGiftCollectionGifts.swift
│       │   │   ├── RemoveInstalledBackground.swift
│       │   │   ├── RemoveLoginPasskey.swift
│       │   │   ├── RemoveMessageReaction.swift
│       │   │   ├── RemoveMessageSenderBotVerification.swift
│       │   │   ├── RemoveNotification.swift
│       │   │   ├── RemoveNotificationGroup.swift
│       │   │   ├── RemovePendingLiveStoryReactions.swift
│       │   │   ├── RemovePendingPaidMessageReactions.swift
│       │   │   ├── RemoveProfileAudio.swift
│       │   │   ├── RemoveProxy.swift
│       │   │   ├── RemoveRecentHashtag.swift
│       │   │   ├── RemoveRecentSticker.swift
│       │   │   ├── RemoveRecentlyFoundChat.swift
│       │   │   ├── RemoveSavedAnimation.swift
│       │   │   ├── RemoveSavedNotificationSound.swift
│       │   │   ├── RemoveSearchedForHashtag.swift
│       │   │   ├── RemoveSearchedForTag.swift
│       │   │   ├── RemoveStickerFromSet.swift
│       │   │   ├── RemoveStoryAlbumStories.swift
│       │   │   ├── RemoveTextCompositionStyle.swift
│       │   │   ├── RemoveTopChat.swift
│       │   │   ├── ReorderActiveUsernames.swift
│       │   │   ├── ReorderBotActiveUsernames.swift
│       │   │   ├── ReorderBotMediaPreviews.swift
│       │   │   ├── ReorderChatFolders.swift
│       │   │   ├── ReorderGiftCollectionGifts.swift
│       │   │   ├── ReorderGiftCollections.swift
│       │   │   ├── ReorderInstalledStickerSets.swift
│       │   │   ├── ReorderQuickReplyShortcuts.swift
│       │   │   ├── ReorderStoryAlbumStories.swift
│       │   │   ├── ReorderStoryAlbums.swift
│       │   │   ├── ReorderSupergroupActiveUsernames.swift
│       │   │   ├── ReplaceLiveStoryRtmpUrl.swift
│       │   │   ├── ReplacePrimaryChatInviteLink.swift
│       │   │   ├── ReplaceStickerInSet.swift
│       │   │   ├── ReplaceVideoChatRtmpUrl.swift
│       │   │   ├── ReplyMarkup.swift
│       │   │   ├── ReportAuthenticationCodeMissing.swift
│       │   │   ├── ReportChat.swift
│       │   │   ├── ReportChatPhoto.swift
│       │   │   ├── ReportChatResult.swift
│       │   │   ├── ReportChatSponsoredMessage.swift
│       │   │   ├── ReportChatSponsoredMessageOption.swift
│       │   │   ├── ReportChatSponsoredMessageResult.swift
│       │   │   ├── ReportMessageReactions.swift
│       │   │   ├── ReportOption.swift
│       │   │   ├── ReportPhoneNumberCodeMissing.swift
│       │   │   ├── ReportReason.swift
│       │   │   ├── ReportSponsoredChat.swift
│       │   │   ├── ReportSponsoredResult.swift
│       │   │   ├── ReportStory.swift
│       │   │   ├── ReportStoryResult.swift
│       │   │   ├── ReportSupergroupAntiSpamFalsePositive.swift
│       │   │   ├── ReportSupergroupSpam.swift
│       │   │   ├── ReportVideoMessageAdvertisement.swift
│       │   │   ├── RequestAuthenticationPasswordRecovery.swift
│       │   │   ├── RequestPasswordRecovery.swift
│       │   │   ├── RequestQrCodeAuthentication.swift
│       │   │   ├── ResendAuthenticationCode.swift
│       │   │   ├── ResendCodeReason.swift
│       │   │   ├── ResendEmailAddressVerificationCode.swift
│       │   │   ├── ResendLoginEmailAddressCode.swift
│       │   │   ├── ResendMessages.swift
│       │   │   ├── ResendPhoneNumberCode.swift
│       │   │   ├── ResendRecoveryEmailAddressCode.swift
│       │   │   ├── ResetAllNotificationSettings.swift
│       │   │   ├── ResetAuthenticationEmailAddress.swift
│       │   │   ├── ResetInstalledBackgrounds.swift
│       │   │   ├── ResetNetworkStatistics.swift
│       │   │   ├── ResetPassword.swift
│       │   │   ├── ResetPasswordResult.swift
│       │   │   ├── RestrictionInfo.swift
│       │   │   ├── ReuseStarSubscription.swift
│       │   │   ├── RevenueWithdrawalState.swift
│       │   │   ├── RevokeChatInviteLink.swift
│       │   │   ├── RevokeGroupCallInviteLink.swift
│       │   │   ├── RichText.swift
│       │   │   ├── RtmpUrl.swift
│       │   │   ├── SaveApplicationLogEvent.swift
│       │   │   ├── SavePreparedInlineMessage.swift
│       │   │   ├── SavePreparedKeyboardButton.swift
│       │   │   ├── SavedCredentials.swift
│       │   │   ├── SavedMessagesTag.swift
│       │   │   ├── SavedMessagesTags.swift
│       │   │   ├── SavedMessagesTopic.swift
│       │   │   ├── SavedMessagesTopicType.swift
│       │   │   ├── ScopeAutosaveSettings.swift
│       │   │   ├── ScopeNotificationSettings.swift
│       │   │   ├── SearchAffiliatePrograms.swift
│       │   │   ├── SearchBackground.swift
│       │   │   ├── SearchCallMessages.swift
│       │   │   ├── SearchChatAffiliateProgram.swift
│       │   │   ├── SearchChatMembers.swift
│       │   │   ├── SearchChatMessages.swift
│       │   │   ├── SearchChatRecentLocationMessages.swift
│       │   │   ├── SearchChats.swift
│       │   │   ├── SearchChatsNearby.swift
│       │   │   ├── SearchChatsOnServer.swift
│       │   │   ├── SearchContacts.swift
│       │   │   ├── SearchEmojis.swift
│       │   │   ├── SearchFileDownloads.swift
│       │   │   ├── SearchGiftsForResale.swift
│       │   │   ├── SearchHashtags.swift
│       │   │   ├── SearchInstalledStickerSets.swift
│       │   │   ├── SearchMessages.swift
│       │   │   ├── SearchMessagesChatTypeFilter.swift
│       │   │   ├── SearchMessagesFilter.swift
│       │   │   ├── SearchOutgoingDocumentMessages.swift
│       │   │   ├── SearchPublicChat.swift
│       │   │   ├── SearchPublicChats.swift
│       │   │   ├── SearchPublicHashtagMessages.swift
│       │   │   ├── SearchPublicMessagesByTag.swift
│       │   │   ├── SearchPublicPosts.swift
│       │   │   ├── SearchPublicStoriesByLocation.swift
│       │   │   ├── SearchPublicStoriesByTag.swift
│       │   │   ├── SearchPublicStoriesByVenue.swift
│       │   │   ├── SearchQuote.swift
│       │   │   ├── SearchRecentlyFoundChats.swift
│       │   │   ├── SearchSavedMessages.swift
│       │   │   ├── SearchSecretMessages.swift
│       │   │   ├── SearchStickerSet.swift
│       │   │   ├── SearchStickerSets.swift
│       │   │   ├── SearchStickers.swift
│       │   │   ├── SearchStringsByPrefix.swift
│       │   │   ├── SearchTextCompositionStyle.swift
│       │   │   ├── SearchUserByPhoneNumber.swift
│       │   │   ├── SearchUserByToken.swift
│       │   │   ├── SearchWebApp.swift
│       │   │   ├── Seconds.swift
│       │   │   ├── SecretChat.swift
│       │   │   ├── SecretChatState.swift
│       │   │   ├── SellGift.swift
│       │   │   ├── SendAuthenticationFirebaseSms.swift
│       │   │   ├── SendBotStartMessage.swift
│       │   │   ├── SendBusinessMessage.swift
│       │   │   ├── SendBusinessMessageAlbum.swift
│       │   │   ├── SendCallDebugInformation.swift
│       │   │   ├── SendCallLog.swift
│       │   │   ├── SendCallRating.swift
│       │   │   ├── SendCallSignalingData.swift
│       │   │   ├── SendChatAction.swift
│       │   │   ├── SendCustomRequest.swift
│       │   │   ├── SendEmailAddressVerificationCode.swift
│       │   │   ├── SendGift.swift
│       │   │   ├── SendGiftPurchaseOffer.swift
│       │   │   ├── SendGroupCallMessage.swift
│       │   │   ├── SendInlineQueryResultMessage.swift
│       │   │   ├── SendMessage.swift
│       │   │   ├── SendMessageAlbum.swift
│       │   │   ├── SendMessageViewMetrics.swift
│       │   │   ├── SendPassportAuthorizationForm.swift
│       │   │   ├── SendPaymentForm.swift
│       │   │   ├── SendPhoneNumberCode.swift
│       │   │   ├── SendPhoneNumberFirebaseSms.swift
│       │   │   ├── SendQuickReplyShortcutMessages.swift
│       │   │   ├── SendResoldGift.swift
│       │   │   ├── SendStory.swift
│       │   │   ├── SendTextMessageDraft.swift
│       │   │   ├── SendWebAppCustomRequest.swift
│       │   │   ├── SendWebAppData.swift
│       │   │   ├── SentGift.swift
│       │   │   ├── SentWebAppMessage.swift
│       │   │   ├── Session.swift
│       │   │   ├── SessionType.swift
│       │   │   ├── Sessions.swift
│       │   │   ├── SetAccentColor.swift
│       │   │   ├── SetAccountTtl.swift
│       │   │   ├── SetAlarm.swift
│       │   │   ├── SetApplicationVerificationToken.swift
│       │   │   ├── SetArchiveChatListSettings.swift
│       │   │   ├── SetAuthenticationEmailAddress.swift
│       │   │   ├── SetAuthenticationPhoneNumber.swift
│       │   │   ├── SetAuthenticationPremiumPurchaseTransaction.swift
│       │   │   ├── SetAutoDownloadSettings.swift
│       │   │   ├── SetAutosaveSettings.swift
│       │   │   ├── SetBio.swift
│       │   │   ├── SetBirthdate.swift
│       │   │   ├── SetBotInfoDescription.swift
│       │   │   ├── SetBotInfoShortDescription.swift
│       │   │   ├── SetBotName.swift
│       │   │   ├── SetBotProfilePhoto.swift
│       │   │   ├── SetBotUpdatesStatus.swift
│       │   │   ├── SetBusinessAccountBio.swift
│       │   │   ├── SetBusinessAccountGiftSettings.swift
│       │   │   ├── SetBusinessAccountName.swift
│       │   │   ├── SetBusinessAccountProfilePhoto.swift
│       │   │   ├── SetBusinessAccountUsername.swift
│       │   │   ├── SetBusinessAwayMessageSettings.swift
│       │   │   ├── SetBusinessConnectedBot.swift
│       │   │   ├── SetBusinessGreetingMessageSettings.swift
│       │   │   ├── SetBusinessLocation.swift
│       │   │   ├── SetBusinessMessageIsPinned.swift
│       │   │   ├── SetBusinessOpeningHours.swift
│       │   │   ├── SetBusinessStartPage.swift
│       │   │   ├── SetChatAccentColor.swift
│       │   │   ├── SetChatActiveStoriesList.swift
│       │   │   ├── SetChatAffiliateProgram.swift
│       │   │   ├── SetChatAvailableReactions.swift
│       │   │   ├── SetChatBackground.swift
│       │   │   ├── SetChatClientData.swift
│       │   │   ├── SetChatDescription.swift
│       │   │   ├── SetChatDirectMessagesGroup.swift
│       │   │   ├── SetChatDiscussionGroup.swift
│       │   │   ├── SetChatDraftMessage.swift
│       │   │   ├── SetChatEmojiStatus.swift
│       │   │   ├── SetChatLocation.swift
│       │   │   ├── SetChatMemberStatus.swift
│       │   │   ├── SetChatMemberTag.swift
│       │   │   ├── SetChatMessageAutoDeleteTime.swift
│       │   │   ├── SetChatMessageSender.swift
│       │   │   ├── SetChatNotificationSettings.swift
│       │   │   ├── SetChatPaidMessageStarCount.swift
│       │   │   ├── SetChatPermissions.swift
│       │   │   ├── SetChatPhoto.swift
│       │   │   ├── SetChatPinnedStories.swift
│       │   │   ├── SetChatProfileAccentColor.swift
│       │   │   ├── SetChatSlowModeDelay.swift
│       │   │   ├── SetChatTheme.swift
│       │   │   ├── SetChatTitle.swift
│       │   │   ├── SetCloseFriends.swift
│       │   │   ├── SetCommands.swift
│       │   │   ├── SetCustomEmojiStickerSetThumbnail.swift
│       │   │   ├── SetCustomLanguagePack.swift
│       │   │   ├── SetCustomLanguagePackString.swift
│       │   │   ├── SetDatabaseEncryptionKey.swift
│       │   │   ├── SetDefaultBackground.swift
│       │   │   ├── SetDefaultChannelAdministratorRights.swift
│       │   │   ├── SetDefaultGroupAdministratorRights.swift
│       │   │   ├── SetDefaultMessageAutoDeleteTime.swift
│       │   │   ├── SetDefaultReactionType.swift
│       │   │   ├── SetDirectMessagesChatTopicDraftMessage.swift
│       │   │   ├── SetDirectMessagesChatTopicIsMarkedAsUnread.swift
│       │   │   ├── SetEmojiStatus.swift
│       │   │   ├── SetFileGenerationProgress.swift
│       │   │   ├── SetForumTopicNotificationSettings.swift
│       │   │   ├── SetGameScore.swift
│       │   │   ├── SetGiftCollectionName.swift
│       │   │   ├── SetGiftResalePrice.swift
│       │   │   ├── SetGiftSettings.swift
│       │   │   ├── SetGroupCallPaidMessageStarCount.swift
│       │   │   ├── SetGroupCallParticipantIsSpeaking.swift
│       │   │   ├── SetGroupCallParticipantVolumeLevel.swift
│       │   │   ├── SetGroupCallTitle.swift
│       │   │   ├── SetInactiveSessionTtl.swift
│       │   │   ├── SetInlineGameScore.swift
│       │   │   ├── SetLiveStoryMessageSender.swift
│       │   │   ├── SetLocation.swift
│       │   │   ├── SetLogStream.swift
│       │   │   ├── SetLogTagVerbosityLevel.swift
│       │   │   ├── SetLogVerbosityLevel.swift
│       │   │   ├── SetLoginEmailAddress.swift
│       │   │   ├── SetMainProfileTab.swift
│       │   │   ├── SetManagedBotAccessSettings.swift
│       │   │   ├── SetMenuButton.swift
│       │   │   ├── SetMessageFactCheck.swift
│       │   │   ├── SetMessageReactions.swift
│       │   │   ├── SetMessageSenderBlockList.swift
│       │   │   ├── SetMessageSenderBotVerification.swift
│       │   │   ├── SetName.swift
│       │   │   ├── SetNetworkType.swift
│       │   │   ├── SetNewChatPrivacySettings.swift
│       │   │   ├── SetOption.swift
│       │   │   ├── SetPaidMessageReactionType.swift
│       │   │   ├── SetPassportElement.swift
│       │   │   ├── SetPassportElementErrors.swift
│       │   │   ├── SetPassword.swift
│       │   │   ├── SetPersonalChat.swift
│       │   │   ├── SetPinnedChats.swift
│       │   │   ├── SetPinnedForumTopics.swift
│       │   │   ├── SetPinnedGifts.swift
│       │   │   ├── SetPinnedSavedMessagesTopics.swift
│       │   │   ├── SetPollAnswer.swift
│       │   │   ├── SetProfileAccentColor.swift
│       │   │   ├── SetProfileAudioPosition.swift
│       │   │   ├── SetProfilePhoto.swift
│       │   │   ├── SetQuickReplyShortcutName.swift
│       │   │   ├── SetReactionNotificationSettings.swift
│       │   │   ├── SetReadDatePrivacySettings.swift
│       │   │   ├── SetRecoveryEmailAddress.swift
│       │   │   ├── SetSavedMessagesTagLabel.swift
│       │   │   ├── SetScopeNotificationSettings.swift
│       │   │   ├── SetStickerEmojis.swift
│       │   │   ├── SetStickerKeywords.swift
│       │   │   ├── SetStickerMaskPosition.swift
│       │   │   ├── SetStickerPositionInSet.swift
│       │   │   ├── SetStickerSetThumbnail.swift
│       │   │   ├── SetStickerSetTitle.swift
│       │   │   ├── SetStoryAlbumName.swift
│       │   │   ├── SetStoryPrivacySettings.swift
│       │   │   ├── SetStoryReaction.swift
│       │   │   ├── SetSupergroupCustomEmojiStickerSet.swift
│       │   │   ├── SetSupergroupMainProfileTab.swift
│       │   │   ├── SetSupergroupStickerSet.swift
│       │   │   ├── SetSupergroupUnrestrictBoostCount.swift
│       │   │   ├── SetSupergroupUsername.swift
│       │   │   ├── SetTdlibParameters.swift
│       │   │   ├── SetUpgradedGiftColors.swift
│       │   │   ├── SetUserEmojiStatus.swift
│       │   │   ├── SetUserNote.swift
│       │   │   ├── SetUserPersonalProfilePhoto.swift
│       │   │   ├── SetUserPrivacySettingRules.swift
│       │   │   ├── SetUserSupportInfo.swift
│       │   │   ├── SetUsername.swift
│       │   │   ├── SetVideoChatDefaultParticipant.swift
│       │   │   ├── SetVideoChatTitle.swift
│       │   │   ├── SettingsSection.swift
│       │   │   ├── ShareChatWithBot.swift
│       │   │   ├── SharePhoneNumber.swift
│       │   │   ├── ShareUsersWithBot.swift
│       │   │   ├── SharedChat.swift
│       │   │   ├── SharedUser.swift
│       │   │   ├── ShippingOption.swift
│       │   │   ├── SpeechRecognitionResult.swift
│       │   │   ├── SponsoredChat.swift
│       │   │   ├── SponsoredChats.swift
│       │   │   ├── SponsoredMessage.swift
│       │   │   ├── SponsoredMessages.swift
│       │   │   ├── StakeDiceState.swift
│       │   │   ├── StarAmount.swift
│       │   │   ├── StarCount.swift
│       │   │   ├── StarGiveawayPaymentOption.swift
│       │   │   ├── StarGiveawayPaymentOptions.swift
│       │   │   ├── StarGiveawayWinnerOption.swift
│       │   │   ├── StarPaymentOption.swift
│       │   │   ├── StarPaymentOptions.swift
│       │   │   ├── StarRevenueStatistics.swift
│       │   │   ├── StarRevenueStatus.swift
│       │   │   ├── StarSubscription.swift
│       │   │   ├── StarSubscriptionPricing.swift
│       │   │   ├── StarSubscriptionType.swift
│       │   │   ├── StarSubscriptions.swift
│       │   │   ├── StarTransaction.swift
│       │   │   ├── StarTransactionDirection.swift
│       │   │   ├── StarTransactionPartner.swift
│       │   │   ├── StarTransactionSource.swift
│       │   │   ├── StarTransactionType.swift
│       │   │   ├── StarTransactions.swift
│       │   │   ├── StartGroupCallRecording.swift
│       │   │   ├── StartGroupCallScreenSharing.swift
│       │   │   ├── StartLiveStory.swift
│       │   │   ├── StartLiveStoryResult.swift
│       │   │   ├── StartScheduledGroupCall.swift
│       │   │   ├── StartScheduledVideoChat.swift
│       │   │   ├── StatisticalGraph.swift
│       │   │   ├── StatisticalValue.swift
│       │   │   ├── Sticker.swift
│       │   │   ├── StickerFormat.swift
│       │   │   ├── StickerFullType.swift
│       │   │   ├── StickerSet.swift
│       │   │   ├── StickerSetInfo.swift
│       │   │   ├── StickerSets.swift
│       │   │   ├── StickerType.swift
│       │   │   ├── Stickers.swift
│       │   │   ├── StopBusinessPoll.swift
│       │   │   ├── StopPoll.swift
│       │   │   ├── StorageStatistics.swift
│       │   │   ├── StorageStatisticsByChat.swift
│       │   │   ├── StorageStatisticsByFileType.swift
│       │   │   ├── StorageStatisticsFast.swift
│       │   │   ├── StorePaymentPurpose.swift
│       │   │   ├── StoreTransaction.swift
│       │   │   ├── Stories.swift
│       │   │   ├── Story.swift
│       │   │   ├── StoryAlbum.swift
│       │   │   ├── StoryAlbums.swift
│       │   │   ├── StoryArea.swift
│       │   │   ├── StoryAreaPosition.swift
│       │   │   ├── StoryAreaType.swift
│       │   │   ├── StoryContent.swift
│       │   │   ├── StoryContentType.swift
│       │   │   ├── StoryFullId.swift
│       │   │   ├── StoryInfo.swift
│       │   │   ├── StoryInteraction.swift
│       │   │   ├── StoryInteractionInfo.swift
│       │   │   ├── StoryInteractionType.swift
│       │   │   ├── StoryInteractions.swift
│       │   │   ├── StoryList.swift
│       │   │   ├── StoryOrigin.swift
│       │   │   ├── StoryPrivacySettings.swift
│       │   │   ├── StoryRepostInfo.swift
│       │   │   ├── StoryStatistics.swift
│       │   │   ├── StoryVideo.swift
│       │   │   ├── SuggestUserBirthdate.swift
│       │   │   ├── SuggestUserProfilePhoto.swift
│       │   │   ├── SuggestedAction.swift
│       │   │   ├── SuggestedPostInfo.swift
│       │   │   ├── SuggestedPostPrice.swift
│       │   │   ├── SuggestedPostRefundReason.swift
│       │   │   ├── SuggestedPostState.swift
│       │   │   ├── SummarizeMessage.swift
│       │   │   ├── Supergroup.swift
│       │   │   ├── SupergroupFullInfo.swift
│       │   │   ├── SupergroupMembersFilter.swift
│       │   │   ├── SynchronizeLanguagePack.swift
│       │   │   ├── TMeUrl.swift
│       │   │   ├── TMeUrlType.swift
│       │   │   ├── TMeUrls.swift
│       │   │   ├── TargetChat.swift
│       │   │   ├── TargetChatTypes.swift
│       │   │   ├── TelegramPaymentPurpose.swift
│       │   │   ├── TemporaryPasswordState.swift
│       │   │   ├── TerminateAllOtherSessions.swift
│       │   │   ├── TerminateSession.swift
│       │   │   ├── TermsOfService.swift
│       │   │   ├── TestBytes.swift
│       │   │   ├── TestCallBytes.swift
│       │   │   ├── TestCallEmpty.swift
│       │   │   ├── TestCallString.swift
│       │   │   ├── TestCallVectorInt.swift
│       │   │   ├── TestCallVectorIntObject.swift
│       │   │   ├── TestCallVectorString.swift
│       │   │   ├── TestCallVectorStringObject.swift
│       │   │   ├── TestGetDifference.swift
│       │   │   ├── TestInt.swift
│       │   │   ├── TestNetwork.swift
│       │   │   ├── TestProxy.swift
│       │   │   ├── TestReturnError.swift
│       │   │   ├── TestSquareInt.swift
│       │   │   ├── TestString.swift
│       │   │   ├── TestUseUpdate.swift
│       │   │   ├── TestVectorInt.swift
│       │   │   ├── TestVectorIntObject.swift
│       │   │   ├── TestVectorString.swift
│       │   │   ├── TestVectorStringObject.swift
│       │   │   ├── Text.swift
│       │   │   ├── TextCompositionStyle.swift
│       │   │   ├── TextCompositionStyleExample.swift
│       │   │   ├── TextEntities.swift
│       │   │   ├── TextEntity.swift
│       │   │   ├── TextEntityType.swift
│       │   │   ├── TextParseMode.swift
│       │   │   ├── TextQuote.swift
│       │   │   ├── ThemeParameters.swift
│       │   │   ├── ThemeSettings.swift
│       │   │   ├── Thumbnail.swift
│       │   │   ├── ThumbnailFormat.swift
│       │   │   ├── TimeZone.swift
│       │   │   ├── TimeZones.swift
│       │   │   ├── ToggleAllDownloadsArePaused.swift
│       │   │   ├── ToggleBotCanManageEmojiStatus.swift
│       │   │   ├── ToggleBotIsAddedToAttachmentMenu.swift
│       │   │   ├── ToggleBotUsernameIsActive.swift
│       │   │   ├── ToggleBusinessConnectedBotChatIsPaused.swift
│       │   │   ├── ToggleChatDefaultDisableNotification.swift
│       │   │   ├── ToggleChatFolderTags.swift
│       │   │   ├── ToggleChatGiftNotifications.swift
│       │   │   ├── ToggleChatHasProtectedContent.swift
│       │   │   ├── ToggleChatIsMarkedAsUnread.swift
│       │   │   ├── ToggleChatIsPinned.swift
│       │   │   ├── ToggleChatIsTranslatable.swift
│       │   │   ├── ToggleChatViewAsTopics.swift
│       │   │   ├── ToggleDirectMessagesChatTopicCanSendUnpaidMessages.swift
│       │   │   ├── ToggleDownloadIsPaused.swift
│       │   │   ├── ToggleForumTopicIsClosed.swift
│       │   │   ├── ToggleForumTopicIsPinned.swift
│       │   │   ├── ToggleGeneralForumTopicIsHidden.swift
│       │   │   ├── ToggleGiftIsSaved.swift
│       │   │   ├── ToggleGroupCallAreMessagesAllowed.swift
│       │   │   ├── ToggleGroupCallEnabledStartNotification.swift
│       │   │   ├── ToggleGroupCallIsMyVideoEnabled.swift
│       │   │   ├── ToggleGroupCallIsMyVideoPaused.swift
│       │   │   ├── ToggleGroupCallMuteNewParticipants.swift
│       │   │   ├── ToggleGroupCallParticipantIsHandRaised.swift
│       │   │   ├── ToggleGroupCallParticipantIsMuted.swift
│       │   │   ├── ToggleGroupCallScreenSharingIsPaused.swift
│       │   │   ├── ToggleHasSponsoredMessagesEnabled.swift
│       │   │   ├── TogglePaidMessageReactionIsAnonymous.swift
│       │   │   ├── ToggleSavedMessagesTopicIsPinned.swift
│       │   │   ├── ToggleSessionCanAcceptCalls.swift
│       │   │   ├── ToggleSessionCanAcceptSecretChats.swift
│       │   │   ├── ToggleStoryIsPostedToChatPage.swift
│       │   │   ├── ToggleSupergroupCanHaveSponsoredMessages.swift
│       │   │   ├── ToggleSupergroupHasAggressiveAntiSpamEnabled.swift
│       │   │   ├── ToggleSupergroupHasAutomaticTranslation.swift
│       │   │   ├── ToggleSupergroupHasHiddenMembers.swift
│       │   │   ├── ToggleSupergroupIsAllHistoryAvailable.swift
│       │   │   ├── ToggleSupergroupIsBroadcastGroup.swift
│       │   │   ├── ToggleSupergroupIsForum.swift
│       │   │   ├── ToggleSupergroupJoinByRequest.swift
│       │   │   ├── ToggleSupergroupJoinToSendMessages.swift
│       │   │   ├── ToggleSupergroupSignMessages.swift
│       │   │   ├── ToggleSupergroupUsernameIsActive.swift
│       │   │   ├── ToggleUsernameIsActive.swift
│       │   │   ├── ToggleVideoChatEnabledStartNotification.swift
│       │   │   ├── ToggleVideoChatMuteNewParticipants.swift
│       │   │   ├── TonRevenueStatistics.swift
│       │   │   ├── TonRevenueStatus.swift
│       │   │   ├── TonTransaction.swift
│       │   │   ├── TonTransactionType.swift
│       │   │   ├── TonTransactions.swift
│       │   │   ├── TopChatCategory.swift
│       │   │   ├── TransactionDirection.swift
│       │   │   ├── TransferBusinessAccountStars.swift
│       │   │   ├── TransferChatOwnership.swift
│       │   │   ├── TransferGift.swift
│       │   │   ├── TranslateMessageText.swift
│       │   │   ├── TranslateText.swift
│       │   │   ├── TrendingStickerSets.swift
│       │   │   ├── UnconfirmedSession.swift
│       │   │   ├── UnpinAllChatMessages.swift
│       │   │   ├── UnpinAllDirectMessagesChatTopicMessages.swift
│       │   │   ├── UnpinAllForumTopicMessages.swift
│       │   │   ├── UnpinAllMessageThreadMessages.swift
│       │   │   ├── UnpinChatMessage.swift
│       │   │   ├── UnreadReaction.swift
│       │   │   ├── Update.swift
│       │   │   ├── Updates.swift
│       │   │   ├── UpgradeBasicGroupChatToSupergroupChat.swift
│       │   │   ├── UpgradeGift.swift
│       │   │   ├── UpgradeGiftResult.swift
│       │   │   ├── UpgradedGift.swift
│       │   │   ├── UpgradedGiftAttributeId.swift
│       │   │   ├── UpgradedGiftAttributeRarity.swift
│       │   │   ├── UpgradedGiftBackdrop.swift
│       │   │   ├── UpgradedGiftBackdropColors.swift
│       │   │   ├── UpgradedGiftBackdropCount.swift
│       │   │   ├── UpgradedGiftColors.swift
│       │   │   ├── UpgradedGiftModel.swift
│       │   │   ├── UpgradedGiftModelCount.swift
│       │   │   ├── UpgradedGiftOrigin.swift
│       │   │   ├── UpgradedGiftOriginalDetails.swift
│       │   │   ├── UpgradedGiftSymbol.swift
│       │   │   ├── UpgradedGiftSymbolCount.swift
│       │   │   ├── UpgradedGiftValueInfo.swift
│       │   │   ├── UploadStickerFile.swift
│       │   │   ├── User.swift
│       │   │   ├── UserAuctionBid.swift
│       │   │   ├── UserFullInfo.swift
│       │   │   ├── UserGift.swift
│       │   │   ├── UserGifts.swift
│       │   │   ├── UserLink.swift
│       │   │   ├── UserPrivacySetting.swift
│       │   │   ├── UserPrivacySettingRule.swift
│       │   │   ├── UserPrivacySettingRules.swift
│       │   │   ├── UserRating.swift
│       │   │   ├── UserStatus.swift
│       │   │   ├── UserSupportInfo.swift
│       │   │   ├── UserTransactionPurpose.swift
│       │   │   ├── UserType.swift
│       │   │   ├── Usernames.swift
│       │   │   ├── Users.swift
│       │   │   ├── ValidateOrderInfo.swift
│       │   │   ├── ValidatedOrderInfo.swift
│       │   │   ├── VectorPathCommand.swift
│       │   │   ├── Venue.swift
│       │   │   ├── VerificationStatus.swift
│       │   │   ├── Video.swift
│       │   │   ├── VideoChat.swift
│       │   │   ├── VideoChatStream.swift
│       │   │   ├── VideoChatStreams.swift
│       │   │   ├── VideoMessageAdvertisement.swift
│       │   │   ├── VideoMessageAdvertisements.swift
│       │   │   ├── VideoNote.swift
│       │   │   ├── VideoStoryboard.swift
│       │   │   ├── ViewMessages.swift
│       │   │   ├── ViewPremiumFeature.swift
│       │   │   ├── ViewSponsoredChat.swift
│       │   │   ├── ViewTrendingStickerSets.swift
│       │   │   ├── ViewVideoMessageAdvertisement.swift
│       │   │   ├── VoiceNote.swift
│       │   │   ├── WebApp.swift
│       │   │   ├── WebAppInfo.swift
│       │   │   ├── WebAppOpenMode.swift
│       │   │   ├── WebAppOpenParameters.swift
│       │   │   ├── WebPage.swift
│       │   │   ├── WebPageInstantView.swift
│       │   │   └── WriteGeneratedFilePart.swift
│       │   └── Supporting/
│       │       ├── DTO.swift
│       │       ├── DtoCodingKeys.swift
│       │       ├── JSONDecoder+Result.swift
│       │       ├── Logger.swift
│       │       └── TdInt64.swift
│       ├── Supporting/
│       │   ├── ConcurrentDictionary.swift
│       │   └── RWLock.swift
│       ├── TDLibClientManager.swift
│       └── TdClientImpl.swift
├── Tests/
│   └── TDLibKitTests/
│       └── TDLibKitTests.swift
├── scripts/
│   ├── parse_tdlib_version.py
│   ├── release.py
│   ├── swift_package_generator.py
│   ├── test.sh
│   ├── tl2swift/
│   │   ├── .gitattributes
│   │   ├── .gitignore
│   │   ├── Package.swift
│   │   ├── README.md
│   │   └── Sources/
│   │       ├── TlParserLib/
│   │       │   ├── Application.swift
│   │       │   ├── Composer/
│   │       │   │   ├── Composer.swift
│   │       │   │   ├── EnumComposer.swift
│   │       │   │   ├── MethodsComposer.swift
│   │       │   │   ├── StructComposer.swift
│   │       │   │   └── Supporting/
│   │       │   │       ├── ClientProtocolComposer.swift
│   │       │   │       ├── CodingKeysComposer.swift
│   │       │   │       ├── DecoderHelperComposer.swift
│   │       │   │       ├── DtoComposer.swift
│   │       │   │       ├── LoggerCimposer.swift
│   │       │   │       └── TdInt64Composer.swift
│   │       │   ├── Helper/
│   │       │   │   ├── CharacterSet.swift
│   │       │   │   ├── FileWriter.swift
│   │       │   │   ├── Log.swift
│   │       │   │   ├── Scanner.swift
│   │       │   │   ├── String+Format.swift
│   │       │   │   ├── String+Line.swift
│   │       │   │   └── TypesHelper.swift
│   │       │   ├── Model/
│   │       │   │   ├── Implementation.swift
│   │       │   │   └── Schema.swift
│   │       │   └── Parser/
│   │       │       └── Parser.swift
│   │       └── tl2swift/
│   │           └── main.swift
│   ├── update.py
│   └── utils.py
└── versions.json
Download .txt
SYMBOL INDEX (5 symbols across 5 files)

FILE: scripts/parse_tdlib_version.py
  function parse_tdlib (line 5) | def parse_tdlib(mode: str) -> str:

FILE: scripts/release.py
  function main (line 7) | def main():

FILE: scripts/swift_package_generator.py
  function get_file_content (line 4) | def get_file_content(tdlibframework_version):

FILE: scripts/update.py
  function main (line 10) | def main(tdlibframework_version: str = None):

FILE: scripts/utils.py
  function run_command (line 4) | def run_command(command: list, check: bool = True):
Condensed preview — 1823 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (6,349K chars).
[
  {
    "path": ".github/workflows/ci.yml",
    "chars": 3513,
    "preview": "name: CI\n\n# Controls when the workflow will run\non:\n  push:\n    branches: [main]\n    paths:\n      - \"version\" # on versi"
  },
  {
    "path": ".gitignore",
    "chars": 227,
    "preview": ".DS_Store\n/.build\n/Packages\n/*.xcodeproj\nxcuserdata/\nDerivedData/\n.swiftpm/xcode/package.xcworkspace/contents.xcworkspac"
  },
  {
    "path": ".swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "chars": 238,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": ".swiftpm/xcode/xcshareddata/xcschemes/TDLibKit.xcscheme",
    "chars": 2696,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1420\"\n   version = \"1.3\">\n   <BuildAction\n      "
  },
  {
    "path": "LICENSE",
    "chars": 1084,
    "preview": "MIT License\n\nCopyright (c) 2021 Sergey Akentev (@Kylmakalle)\n\nPermission is hereby granted, free of charge, to any perso"
  },
  {
    "path": "Package.resolved",
    "chars": 343,
    "preview": "{\n  \"object\": {\n    \"pins\": [\n      {\n        \"package\": \"TDLibFramework\",\n        \"repositoryURL\": \"https://github.com/"
  },
  {
    "path": "Package.swift",
    "chars": 956,
    "preview": "// swift-tools-version:5.3\n// The swift-tools-version declares the minimum version of Swift required to build this packa"
  },
  {
    "path": "README.md",
    "chars": 6926,
    "preview": "# TDLibKit\n\n[![CI](https://github.com/Swiftgram/TDLibKit/actions/workflows/ci.yml/badge.svg)](https://github.com/Swiftgr"
  },
  {
    "path": "Sources/TDLibKit/Generated/API/TDLibApi.swift",
    "chars": 1484205,
    "preview": "//\n//  TDLibApi.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7"
  },
  {
    "path": "Sources/TDLibKit/Generated/API/TdApi.swift",
    "chars": 1479896,
    "preview": "//\n//  TdApi.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7a70"
  },
  {
    "path": "Sources/TDLibKit/Generated/API/TdClient.swift",
    "chars": 812,
    "preview": "//\n//  TdClient.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AccentColor.swift",
    "chars": 1473,
    "preview": "//\n//  AccentColor.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.6"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AcceptCall.swift",
    "chars": 595,
    "preview": "//\n//  AcceptCall.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AcceptOauthRequest.swift",
    "chars": 1249,
    "preview": "//\n//  AcceptOauthRequest.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AcceptTermsOfService.swift",
    "chars": 499,
    "preview": "//\n//  AcceptTermsOfService.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AcceptedGiftTypes.swift",
    "chars": 1277,
    "preview": "//\n//  AcceptedGiftTypes.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AccountInfo.swift",
    "chars": 1491,
    "preview": "//\n//  AccountInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.6"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AccountTtl.swift",
    "chars": 571,
    "preview": "//\n//  AccountTtl.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ActivateStoryStealthMode.swift",
    "chars": 552,
    "preview": "//\n//  ActivateStoryStealthMode.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based o"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ActiveStoryState.swift",
    "chars": 2093,
    "preview": "//\n//  ActiveStoryState.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddBotMediaPreview.swift",
    "chars": 1320,
    "preview": "//\n//  AddBotMediaPreview.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddChatFolderByInviteLink.swift",
    "chars": 717,
    "preview": "//\n//  AddChatFolderByInviteLink.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddChatMember.swift",
    "chars": 969,
    "preview": "//\n//  AddChatMember.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddChatMembers.swift",
    "chars": 951,
    "preview": "//\n//  AddChatMembers.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddChatToList.swift",
    "chars": 733,
    "preview": "//\n//  AddChatToList.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddChecklistTasks.swift",
    "chars": 851,
    "preview": "//\n//  AddChecklistTasks.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddContact.swift",
    "chars": 1136,
    "preview": "//\n//  AddContact.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddCustomServerLanguagePack.swift",
    "chars": 626,
    "preview": "//\n//  AddCustomServerLanguagePack.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Base"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddFavoriteSticker.swift",
    "chars": 744,
    "preview": "//\n//  AddFavoriteSticker.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddFileToDownloads.swift",
    "chars": 1430,
    "preview": "//\n//  AddFileToDownloads.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddGiftCollectionGifts.swift",
    "chars": 1239,
    "preview": "//\n//  AddGiftCollectionGifts.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddLocalMessage.swift",
    "chars": 1363,
    "preview": "//\n//  AddLocalMessage.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddLogMessage.swift",
    "chars": 671,
    "preview": "//\n//  AddLogMessage.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddLoginPasskey.swift",
    "chars": 773,
    "preview": "//\n//  AddLoginPasskey.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddMessageReaction.swift",
    "chars": 1353,
    "preview": "//\n//  AddMessageReaction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddNetworkStatistics.swift",
    "chars": 578,
    "preview": "//\n//  AddNetworkStatistics.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddOffer.swift",
    "chars": 1232,
    "preview": "//\n//  AddOffer.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddPaidMessageReaction.swift",
    "chars": 1178,
    "preview": "//\n//  AddPaidMessageReaction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddPendingLiveStoryReaction.swift",
    "chars": 1002,
    "preview": "//\n//  AddPendingLiveStoryReaction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Base"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddPendingPaidMessageReaction.swift",
    "chars": 1256,
    "preview": "//\n//  AddPendingPaidMessageReaction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Ba"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddPollOption.swift",
    "chars": 817,
    "preview": "//\n//  AddPollOption.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddProfileAudio.swift",
    "chars": 1115,
    "preview": "//\n//  AddProfileAudio.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddProxy.swift",
    "chars": 733,
    "preview": "//\n//  AddProxy.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddQuickReplyShortcutInlineQueryResultMessage.swift",
    "chars": 1670,
    "preview": "//\n//  AddQuickReplyShortcutInlineQueryResultMessage.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddQuickReplyShortcutMessage.swift",
    "chars": 1349,
    "preview": "//\n//  AddQuickReplyShortcutMessage.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Bas"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddQuickReplyShortcutMessageAlbum.swift",
    "chars": 1309,
    "preview": "//\n//  AddQuickReplyShortcutMessageAlbum.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddRecentSticker.swift",
    "chars": 1036,
    "preview": "//\n//  AddRecentSticker.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddRecentlyFoundChat.swift",
    "chars": 596,
    "preview": "//\n//  AddRecentlyFoundChat.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddSavedAnimation.swift",
    "chars": 809,
    "preview": "//\n//  AddSavedAnimation.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddSavedNotificationSound.swift",
    "chars": 628,
    "preview": "//\n//  AddSavedNotificationSound.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddStickerToSet.swift",
    "chars": 855,
    "preview": "//\n//  AddStickerToSet.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddStoryAlbumStories.swift",
    "chars": 1135,
    "preview": "//\n//  AddStoryAlbumStories.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddTextCompositionStyle.swift",
    "chars": 609,
    "preview": "//\n//  AddTextCompositionStyle.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddedProxies.swift",
    "chars": 457,
    "preview": "//\n//  AddedProxies.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddedProxy.swift",
    "chars": 1030,
    "preview": "//\n//  AddedProxy.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddedReaction.swift",
    "chars": 921,
    "preview": "//\n//  AddedReaction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AddedReactions.swift",
    "chars": 824,
    "preview": "//\n//  AddedReactions.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Address.swift",
    "chars": 1071,
    "preview": "//\n//  Address.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7a"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AdvertisementSponsor.swift",
    "chars": 830,
    "preview": "//\n//  AdvertisementSponsor.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AffiliateInfo.swift",
    "chars": 1032,
    "preview": "//\n//  AffiliateInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AffiliateProgramInfo.swift",
    "chars": 1181,
    "preview": "//\n//  AffiliateProgramInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AffiliateProgramParameters.swift",
    "chars": 921,
    "preview": "//\n//  AffiliateProgramParameters.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AffiliateProgramSortOrder.swift",
    "chars": 2034,
    "preview": "//\n//  AffiliateProgramSortOrder.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AffiliateType.swift",
    "chars": 2581,
    "preview": "//\n//  AffiliateType.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AgeVerificationParameters.swift",
    "chars": 997,
    "preview": "//\n//  AgeVerificationParameters.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AllowBotToSendMessages.swift",
    "chars": 493,
    "preview": "//\n//  AllowBotToSendMessages.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AllowUnpaidMessagesFromUser.swift",
    "chars": 757,
    "preview": "//\n//  AllowUnpaidMessagesFromUser.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Base"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AlternativeVideo.swift",
    "chars": 1129,
    "preview": "//\n//  AlternativeVideo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AnimatedChatPhoto.swift",
    "chars": 781,
    "preview": "//\n//  AnimatedChatPhoto.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AnimatedEmoji.swift",
    "chars": 1382,
    "preview": "//\n//  AnimatedEmoji.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Animation.swift",
    "chars": 1769,
    "preview": "//\n//  Animation.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Animations.swift",
    "chars": 451,
    "preview": "//\n//  Animations.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AnswerCallbackQuery.swift",
    "chars": 1075,
    "preview": "//\n//  AnswerCallbackQuery.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDL"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AnswerCustomQuery.swift",
    "chars": 623,
    "preview": "//\n//  AnswerCustomQuery.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AnswerGuestQuery.swift",
    "chars": 656,
    "preview": "//\n//  AnswerGuestQuery.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AnswerInlineQuery.swift",
    "chars": 1487,
    "preview": "//\n//  AnswerInlineQuery.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AnswerPreCheckoutQuery.swift",
    "chars": 709,
    "preview": "//\n//  AnswerPreCheckoutQuery.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AnswerShippingQuery.swift",
    "chars": 860,
    "preview": "//\n//  AnswerShippingQuery.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDL"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AnswerWebAppQuery.swift",
    "chars": 773,
    "preview": "//\n//  AnswerWebAppQuery.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ApplyPremiumGiftCode.swift",
    "chars": 443,
    "preview": "//\n//  ApplyPremiumGiftCode.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ApproveSuggestedPost.swift",
    "chars": 1107,
    "preview": "//\n//  ApproveSuggestedPost.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ArchiveChatListSettings.swift",
    "chars": 1409,
    "preview": "//\n//  ArchiveChatListSettings.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AssignAppStoreTransaction.swift",
    "chars": 664,
    "preview": "//\n//  AssignAppStoreTransaction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AssignGooglePlayTransaction.swift",
    "chars": 1014,
    "preview": "//\n//  AssignGooglePlayTransaction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Base"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AssignStoreTransaction.swift",
    "chars": 706,
    "preview": "//\n//  AssignStoreTransaction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AttachmentMenuBot.swift",
    "chars": 4981,
    "preview": "//\n//  AttachmentMenuBot.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AttachmentMenuBotColor.swift",
    "chars": 663,
    "preview": "//\n//  AttachmentMenuBotColor.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AttributeCraftPersistenceProbability.swift",
    "chars": 887,
    "preview": "//\n//  AttributeCraftPersistenceProbability.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AuctionBid.swift",
    "chars": 763,
    "preview": "//\n//  AuctionBid.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AuctionRound.swift",
    "chars": 958,
    "preview": "//\n//  AuctionRound.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AuctionState.swift",
    "chars": 5587,
    "preview": "//\n//  AuctionState.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Audio.swift",
    "chars": 2034,
    "preview": "//\n//  Audio.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7a70"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Audios.swift",
    "chars": 581,
    "preview": "//\n//  Audios.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7a7"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AuthenticationCodeInfo.swift",
    "chars": 1020,
    "preview": "//\n//  AuthenticationCodeInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AuthenticationCodeType.swift",
    "chars": 11994,
    "preview": "//\n//  AuthenticationCodeType.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AuthorizationState.swift",
    "chars": 13719,
    "preview": "//\n//  AuthorizationState.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AutoDownloadSettings.swift",
    "chars": 2117,
    "preview": "//\n//  AutoDownloadSettings.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AutoDownloadSettingsPresets.swift",
    "chars": 972,
    "preview": "//\n//  AutoDownloadSettingsPresets.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Base"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AutosaveSettings.swift",
    "chars": 1156,
    "preview": "//\n//  AutosaveSettings.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AutosaveSettingsException.swift",
    "chars": 693,
    "preview": "//\n//  AutosaveSettingsException.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AutosaveSettingsScope.swift",
    "chars": 2750,
    "preview": "//\n//  AutosaveSettingsScope.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on T"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AvailableGift.swift",
    "chars": 1005,
    "preview": "//\n//  AvailableGift.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AvailableGifts.swift",
    "chars": 488,
    "preview": "//\n//  AvailableGifts.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AvailableReaction.swift",
    "chars": 629,
    "preview": "//\n//  AvailableReaction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/AvailableReactions.swift",
    "chars": 1612,
    "preview": "//\n//  AvailableReactions.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Background.swift",
    "chars": 1182,
    "preview": "//\n//  Background.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BackgroundFill.swift",
    "chars": 3414,
    "preview": "//\n//  BackgroundFill.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BackgroundType.swift",
    "chars": 4744,
    "preview": "//\n//  BackgroundType.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Backgrounds.swift",
    "chars": 461,
    "preview": "//\n//  Backgrounds.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.6"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BanChatMember.swift",
    "chars": 1442,
    "preview": "//\n//  BanChatMember.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BanGroupCallParticipants.swift",
    "chars": 856,
    "preview": "//\n//  BanGroupCallParticipants.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based o"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BankCardActionOpenUrl.swift",
    "chars": 570,
    "preview": "//\n//  BankCardActionOpenUrl.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on T"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BankCardInfo.swift",
    "chars": 634,
    "preview": "//\n//  BankCardInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BasicGroup.swift",
    "chars": 1152,
    "preview": "//\n//  BasicGroup.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BasicGroupFullInfo.swift",
    "chars": 2006,
    "preview": "//\n//  BasicGroupFullInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Birthdate.swift",
    "chars": 633,
    "preview": "//\n//  Birthdate.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BlockList.swift",
    "chars": 1413,
    "preview": "//\n//  BlockList.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BlockMessageSenderFromReplies.swift",
    "chars": 1057,
    "preview": "//\n//  BlockMessageSenderFromReplies.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Ba"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BoostChat.swift",
    "chars": 693,
    "preview": "//\n//  BoostChat.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotAccessSettings.swift",
    "chars": 737,
    "preview": "//\n//  BotAccessSettings.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotCommand.swift",
    "chars": 560,
    "preview": "//\n//  BotCommand.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotCommandScope.swift",
    "chars": 4539,
    "preview": "//\n//  BotCommandScope.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotCommands.swift",
    "chars": 587,
    "preview": "//\n//  BotCommands.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.6"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotInfo.swift",
    "chars": 5657,
    "preview": "//\n//  BotInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7a"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotMediaPreview.swift",
    "chars": 719,
    "preview": "//\n//  BotMediaPreview.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotMediaPreviewInfo.swift",
    "chars": 780,
    "preview": "//\n//  BotMediaPreviewInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDL"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotMediaPreviews.swift",
    "chars": 482,
    "preview": "//\n//  BotMediaPreviews.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotMenuButton.swift",
    "chars": 744,
    "preview": "//\n//  BotMenuButton.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotTransactionPurpose.swift",
    "chars": 4016,
    "preview": "//\n//  BotTransactionPurpose.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on T"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotVerification.swift",
    "chars": 1028,
    "preview": "//\n//  BotVerification.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotVerificationParameters.swift",
    "chars": 1328,
    "preview": "//\n//  BotVerificationParameters.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BotWriteAccessAllowReason.swift",
    "chars": 3665,
    "preview": "//\n//  BotWriteAccessAllowReason.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BuiltInTheme.swift",
    "chars": 2092,
    "preview": "//\n//  BuiltInTheme.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessAwayMessageSchedule.swift",
    "chars": 2748,
    "preview": "//\n//  BusinessAwayMessageSchedule.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Base"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessAwayMessageSettings.swift",
    "chars": 1165,
    "preview": "//\n//  BusinessAwayMessageSettings.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Base"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessBotManageBar.swift",
    "chars": 995,
    "preview": "//\n//  BusinessBotManageBar.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessBotRights.swift",
    "chars": 3159,
    "preview": "//\n//  BusinessBotRights.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessChatLink.swift",
    "chars": 841,
    "preview": "//\n//  BusinessChatLink.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessChatLinkInfo.swift",
    "chars": 662,
    "preview": "//\n//  BusinessChatLinkInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessChatLinks.swift",
    "chars": 481,
    "preview": "//\n//  BusinessChatLinks.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessConnectedBot.swift",
    "chars": 806,
    "preview": "//\n//  BusinessConnectedBot.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessConnection.swift",
    "chars": 1276,
    "preview": "//\n//  BusinessConnection.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessFeature.swift",
    "chars": 4574,
    "preview": "//\n//  BusinessFeature.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessFeaturePromotionAnimation.swift",
    "chars": 674,
    "preview": "//\n//  BusinessFeaturePromotionAnimation.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessFeatures.swift",
    "chars": 529,
    "preview": "//\n//  BusinessFeatures.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessGreetingMessageSettings.swift",
    "chars": 1071,
    "preview": "//\n//  BusinessGreetingMessageSettings.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessInfo.swift",
    "chars": 2537,
    "preview": "//\n//  BusinessInfo.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessLocation.swift",
    "chars": 623,
    "preview": "//\n//  BusinessLocation.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessMessage.swift",
    "chars": 686,
    "preview": "//\n//  BusinessMessage.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessMessages.swift",
    "chars": 515,
    "preview": "//\n//  BusinessMessages.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessOpeningHours.swift",
    "chars": 702,
    "preview": "//\n//  BusinessOpeningHours.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessOpeningHoursInterval.swift",
    "chars": 878,
    "preview": "//\n//  BusinessOpeningHoursInterval.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Bas"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessRecipients.swift",
    "chars": 1687,
    "preview": "//\n//  BusinessRecipients.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BusinessStartPage.swift",
    "chars": 763,
    "preview": "//\n//  BusinessStartPage.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ButtonStyle.swift",
    "chars": 1843,
    "preview": "//\n//  ButtonStyle.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.6"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/BuyGiftUpgrade.swift",
    "chars": 964,
    "preview": "//\n//  BuyGiftUpgrade.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Call.swift",
    "chars": 1093,
    "preview": "//\n//  Call.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7a708"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CallDiscardReason.swift",
    "chars": 3492,
    "preview": "//\n//  CallDiscardReason.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CallId.swift",
    "chars": 403,
    "preview": "//\n//  CallId.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7a7"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CallProblem.swift",
    "chars": 3467,
    "preview": "//\n//  CallProblem.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.6"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CallProtocol.swift",
    "chars": 1082,
    "preview": "//\n//  CallProtocol.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CallServer.swift",
    "chars": 913,
    "preview": "//\n//  CallServer.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CallServerType.swift",
    "chars": 2778,
    "preview": "//\n//  CallServerType.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CallState.swift",
    "chars": 6024,
    "preview": "//\n//  CallState.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CallbackQueryAnswer.swift",
    "chars": 734,
    "preview": "//\n//  CallbackQueryAnswer.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDL"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CallbackQueryPayload.swift",
    "chars": 3359,
    "preview": "//\n//  CallbackQueryPayload.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanBotSendMessages.swift",
    "chars": 588,
    "preview": "//\n//  CanBotSendMessages.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanPostStory.swift",
    "chars": 631,
    "preview": "//\n//  CanPostStory.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanPostStoryResult.swift",
    "chars": 5985,
    "preview": "//\n//  CanPostStoryResult.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanPurchaseFromStore.swift",
    "chars": 571,
    "preview": "//\n//  CanPurchaseFromStore.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanPurchasePremium.swift",
    "chars": 544,
    "preview": "//\n//  CanPurchasePremium.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanSendGift.swift",
    "chars": 487,
    "preview": "//\n//  CanSendGift.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.6"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanSendGiftResult.swift",
    "chars": 1825,
    "preview": "//\n//  CanSendGiftResult.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanSendMessageToUser.swift",
    "chars": 715,
    "preview": "//\n//  CanSendMessageToUser.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanSendMessageToUserResult.swift",
    "chars": 3161,
    "preview": "//\n//  CanSendMessageToUserResult.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanSendStory.swift",
    "chars": 617,
    "preview": "//\n//  CanSendStory.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanSendStoryResult.swift",
    "chars": 4614,
    "preview": "//\n//  CanSendStoryResult.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanTransferOwnership.swift",
    "chars": 399,
    "preview": "//\n//  CanTransferOwnership.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CanTransferOwnershipResult.swift",
    "chars": 3617,
    "preview": "//\n//  CanTransferOwnershipResult.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CancelDownloadFile.swift",
    "chars": 746,
    "preview": "//\n//  CancelDownloadFile.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CancelPasswordReset.swift",
    "chars": 417,
    "preview": "//\n//  CancelPasswordReset.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDL"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CancelPreliminaryUploadFile.swift",
    "chars": 553,
    "preview": "//\n//  CancelPreliminaryUploadFile.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Base"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/CancelRecoveryEmailAddressVerification.swift",
    "chars": 414,
    "preview": "//\n//  CancelRecoveryEmailAddressVerification.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be los"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChangeImportedContacts.swift",
    "chars": 755,
    "preview": "//\n//  ChangeImportedContacts.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChangeStickerSet.swift",
    "chars": 823,
    "preview": "//\n//  ChangeStickerSet.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChannelTransactionPurpose.swift",
    "chars": 3557,
    "preview": "//\n//  ChannelTransactionPurpose.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/Chat.swift",
    "chars": 9462,
    "preview": "//\n//  Chat.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-7a708"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatAction.swift",
    "chars": 8238,
    "preview": "//\n//  ChatAction.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatActionBar.swift",
    "chars": 6339,
    "preview": "//\n//  ChatActionBar.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatActiveStories.swift",
    "chars": 1847,
    "preview": "//\n//  ChatActiveStories.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatAdministrator.swift",
    "chars": 960,
    "preview": "//\n//  ChatAdministrator.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatAdministratorRights.swift",
    "chars": 4546,
    "preview": "//\n//  ChatAdministratorRights.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatAdministrators.swift",
    "chars": 519,
    "preview": "//\n//  ChatAdministrators.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLi"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatAffiliateProgram.swift",
    "chars": 1646,
    "preview": "//\n//  ChatAffiliateProgram.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TD"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatAffiliatePrograms.swift",
    "chars": 916,
    "preview": "//\n//  ChatAffiliatePrograms.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on T"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatAvailableReactions.swift",
    "chars": 2712,
    "preview": "//\n//  ChatAvailableReactions.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatBackground.swift",
    "chars": 729,
    "preview": "//\n//  ChatBackground.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1."
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatBoost.swift",
    "chars": 1033,
    "preview": "//\n//  ChatBoost.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib 1.8.64-"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatBoostFeatures.swift",
    "chars": 3130,
    "preview": "//\n//  ChatBoostFeatures.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on TDLib"
  },
  {
    "path": "Sources/TDLibKit/Generated/Models/ChatBoostLevelFeatures.swift",
    "chars": 3556,
    "preview": "//\n//  ChatBoostLevelFeatures.swift\n//  tl2swift\n//\n//  Generated automatically. Any changes will be lost!\n//  Based on "
  }
]

// ... and 1623 more files (download for full content)

About this extraction

This page contains the full source code of the Swiftgram/TDLibKit GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 1823 files (5.7 MB), approximately 1.6M tokens, and a symbol index with 5 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!