Versions in this module Expand all Collapse all v0 v0.1.1 Aug 11, 2026retracted v0.1.0 Aug 10, 2026retracted v0.0.0 Aug 11, 2026 Changes in this version + const BusinessMessageLinkDirectPrefix + const BusinessMessageLinkPrefix + const ContactQRLinkDirectPrefix + const ContactQRLinkPrefix + const DisappearingTimer24Hours + const DisappearingTimer7Days + const DisappearingTimer90Days + const DisappearingTimerOff + const EditWindow + const FBArmadilloMessageVersion + const FBConsumerMessageVersion + const FBMessageApplicationVersion + const FBMessageVersion + const IGMessageApplicationVersion + const InviteLinkPrefix + const MinPreKeyCount + const NackDBOperationFailed + const NackInvalidHostedCompanionStanza + const NackInvalidProtobuf + const NackMessageDeletedOnPeer + const NackMissingMessageSecret + const NackParsingError + const NackSignalErrorOldCounter + const NackUnhandledError + const NackUnrecognizedStanza + const NackUnrecognizedStanzaClass + const NackUnrecognizedStanzaType + const NackUnsupportedAdminRevoke + const NackUnsupportedLIDGroup + const NewsletterLinkPrefix + const NoiseHandshakeResponseTimeout + const QRChannelEventCode + const QRChannelEventError + const QRChannelEventPasskeyRequest + const QRChannelEventPasskeyResponse + const RemoveReactionText + const WACertIssuerSerial + const WantedPreKeyCount + const WebMessageIDPrefix + var AdvAccountSignaturePrefix = []byte + var AdvDeviceSignaturePrefix = []byte + var AdvHostedAccountSignaturePrefix = []byte + var AdvHostedDeviceSignaturePrefix = []byte + var DefaultStatusPrivacy = []types.StatusPrivacy + var ErrAlreadyConnected = errors.New("websocket is already connected") + var ErrAppStateUpdate = errors.New("server returned error updating app state") + var ErrBroadcastListUnsupported = errors.New("sending to non-status broadcast lists is not yet supported") + var ErrBusinessMessageLinkNotFound = errors.New("that business message link does not exist or has been revoked") + var ErrBusinessTokenRecoveryRequired = errors.New("business access token recovery is required on the primary device") + var ErrBusinessTokenTooManyAttempts = errors.New("business access token request was rate limited") + var ErrClientIsNil = errors.New("client is nil") + var ErrContactQRLinkNotFound = errors.New("that contact QR link does not exist or has been revoked") + var ErrEventAlreadyProcessed = errors.New("event was already processed") + var ErrFileLengthMismatch = errors.New("file length does not match") + var ErrGroupInviteLinkUnauthorized = errors.New("you don't have the permission to get the group's invite link") + var ErrGroupNotFound = errors.New("that group does not exist") + var ErrIQBadRequest error = &IQError + var ErrIQDisconnected = &DisconnectedError + var ErrIQForbidden error = &IQError + var ErrIQGone error = &IQError + var ErrIQInternalServerError error = &IQError + var ErrIQLocked error = &IQError + var ErrIQNotAcceptable error = &IQError + var ErrIQNotAllowed error = &IQError + var ErrIQNotAuthorized error = &IQError + var ErrIQNotFound error = &IQError + var ErrIQPartialServerError error = &IQError + var ErrIQRateOverLimit error = &IQError + var ErrIQResourceLimit error = &IQError + var ErrIQServiceUnavailable error = &IQError + var ErrIQTimedOut = errors.New("info query timed out") + var ErrIdentityKeyReaderUnsupported = errors.New("identity store does not support batch identity-key reads") + var ErrIdentityVerificationRequiresLID = errors.New("identity verification requires an @lid user ID") + var ErrInvalidDisappearingTimer = errors.New("invalid disappearing timer provided") + var ErrInvalidImageFormat = errors.New("the given data is not a valid image") + var ErrInvalidInlineBotID = errors.New("invalid inline bot ID") + var ErrInvalidMediaEncSHA256 = errors.New("hash of media ciphertext doesn't match") + var ErrInvalidMediaHMAC = errors.New("invalid media hmac") + var ErrInvalidMediaSHA256 = errors.New("hash of media plaintext doesn't match") + var ErrInvalidUnencryptedMediaSHA256 = errors.New("hash of unencrypted media doesn't match") + var ErrInviteLinkInvalid = errors.New("that group invite link is not valid") + var ErrInviteLinkRevoked = errors.New("that group invite link has been revoked") + var ErrMediaDownloadFailedWith403 = DownloadHTTPError + var ErrMediaDownloadFailedWith404 = DownloadHTTPError + var ErrMediaDownloadFailedWith410 = DownloadHTTPError + var ErrMediaNotAvailableOnPhone = errors.New("media no longer available on phone") + var ErrMessageTimedOut = errors.New("timed out waiting for message send response") + var ErrNoPrivacyToken = errors.New("no privacy token stored") + var ErrNoPushName = errors.New("can't send presence without PushName set") + var ErrNoSession = errors.New("can't encrypt message for device: no signal session established") + var ErrNoURLPresent = errors.New("no url present") + var ErrNotConnected = errors.New("websocket not connected") + var ErrNotEncryptedCommentMessage = errors.New("given message isn't an encrypted comment message") + var ErrNotEncryptedReactionMessage = errors.New("given message isn't an encrypted reaction message") + var ErrNotInGroup = errors.New("you're not participating in that group") + var ErrNotLoggedIn = errors.New("the store doesn't contain a device JID") + var ErrNotPollUpdateMessage = errors.New("given message isn't a poll update message") + var ErrNotSecretEncryptedMessage = errors.New("given message isn't a secret encrypted message") + var ErrNothingDownloadableFound = errors.New("didn't find any attachments in message") + var ErrOriginalMessageSecretNotFound = errors.New("original message secret key not found") + var ErrPairInvalidDeviceIdentityHMAC = errors.New("invalid device identity HMAC in pair success message") + var ErrPairInvalidDeviceSignature = errors.New("invalid device signature in pair success message") + var ErrPairRejectedLocally = errors.New("local PrePairCallback rejected pairing") + var ErrPhoneNumberIsNotInternational = errors.New("international phone number required (must not start with 0)") + var ErrPhoneNumberTooShort = errors.New("phone number too short") + var ErrProfilePictureNotSet = errors.New("that user or group does not have a profile picture") + var ErrProfilePictureUnauthorized = errors.New("the user has hidden their profile picture from you") + var ErrQRAlreadyConnected = errors.New("GetQRChannel must be called before connecting") + var ErrQRStoreContainsID = errors.New(...) + var ErrRecipientADJID = errors.New("message recipient must be a user JID with no device part") + var ErrServerReturnedError = errors.New("server returned error") + var ErrTooShortFile = errors.New("file too short") + var ErrUnknownMediaRetryError = errors.New("unknown media retry error") + var ErrUnknownMediaType = errors.New("unknown media type") + var ErrUnknownServer = errors.New("can't send message to unknown server") + var ErrUsernameNotFound = errors.New("username not found") + var EventAlreadyProcessed = ErrEventAlreadyProcessed + var KeepAliveIntervalMax = 30 * time.Second + var KeepAliveIntervalMin = 20 * time.Second + var KeepAliveMaxFailTime = 3 * time.Minute + var KeepAliveResponseDeadline = 10 * time.Second + var QRChannelClientOutdated = QRChannelItem + var QRChannelErrUnexpectedEvent = QRChannelItem + var QRChannelScannedWithoutMultidevice = QRChannelItem + var QRChannelSuccess = QRChannelItem + var QRChannelTimeout = QRChannelItem + var RequestFromPhoneDelay = 5 * time.Second + var WACertPubKey = [...]byte + func BuildAppStateRecoveryRequest(collection appstate.WAPatchName) *waE2E.Message + func BuildBusinessAddressMessage(params BusinessAddressMessageParams) (*waE2E.Message, error) + func BuildBusinessFlowMessage(params BusinessFlowMessageParams) (*waE2E.Message, error) + func BuildBusinessListMessage(params BusinessListMessageParams) (*waE2E.Message, error) + func BuildBusinessNativeFlowButtonsMessage(params BusinessNativeFlowButtonsMessageParams) (*waE2E.Message, error) + func BuildBusinessOrderMessage(params BusinessOrderMessageParams) (*waE2E.Message, error) + func BuildBusinessProductListMessage(params BusinessProductListMessageParams) (*waE2E.Message, error) + func BuildBusinessProductMessage(params BusinessProductMessageParams) (*waE2E.Message, error) + func BuildFatalAppStateExceptionNotification(collections ...appstate.WAPatchName) *waE2E.Message + func BuildRequestPhoneNumberMessage(contextInfo *waE2E.ContextInfo) *waE2E.Message + func BuildSharePhoneNumberMessage() *waE2E.Message + func DecryptMediaRetryNotification(evt *events.MediaRetry, mediaKey []byte) (*waMmsRetry.MediaRetryNotification, error) + func GenerateFacebookMessageID() int64 + func GenerateMessageID() types.MessageID + func GetLatestVersion(ctx context.Context, httpClient *http.Client) (*store.WAVersionContainer, error) + func HashPollOptions(optionNames []string) [][]byte + func ParseDisappearingTimerString(val string) (time.Duration, bool) + type APNsPushConfig struct + MsgIDEncKey []byte + Token string + VoIPToken string + func (apc *APNsPushConfig) GetPushConfigAttrs() waBinary.Attrs + type BusinessAddressMessageParams struct + Body string + ButtonText string + ContextInfo *waE2E.ContextInfo + Footer string + type BusinessFlowMessageParams struct + Body string + ButtonText string + ContextInfo *waE2E.ContextInfo + DataJSON string + FlowAction string + FlowID string + FlowToken string + Footer string + Screen string + type BusinessListMessageParams struct + ButtonText string + ContextInfo *waE2E.ContextInfo + Description string + Footer string + Sections []BusinessListSection + Title string + type BusinessListRow struct + Description string + ID string + Title string + type BusinessListSection struct + Rows []BusinessListRow + Title string + type BusinessNativeFlowButton struct + Name string + ParamsJSON string + type BusinessNativeFlowButtonsMessageParams struct + Body string + Buttons []BusinessNativeFlowButton + ContextInfo *waE2E.ContextInfo + Footer string + Title string + type BusinessOrderMessageParams struct + CatalogType string + ContextInfo *waE2E.ContextInfo + ItemCount int32 + Message string + OrderID string + OrderTitle string + SellerJID types.JID + Status waE2E.OrderMessage_OrderStatus + Thumbnail []byte + Token string + TotalAmount1000 int64 + TotalCurrencyCode string + type BusinessProductListMessageParams struct + BusinessOwnerJID types.JID + ButtonText string + ContextInfo *waE2E.ContextInfo + Description string + Footer string + Sections []BusinessProductSection + Title string + type BusinessProductMessageParams struct + Body string + BusinessOwnerJID types.JID + ContextInfo *waE2E.ContextInfo + CurrencyCode string + Description string + Footer string + PriceAmount1000 int64 + ProductID string + ProductImage *waE2E.ImageMessage + ProductImageCount uint32 + RetailerID string + SalePriceAmount1000 int64 + SalePricePresent bool + Title string + URL string + type BusinessProductSection struct + ProductIDs []string + Title string + type Client struct + AppStateDebugLogs bool + AutoReconnectErrors int + AutoReconnectHook func(error) bool + AutoTrustIdentity bool + AutomaticMessageRerequestFromPhone bool + BackgroundEventCtx context.Context + DisableHistorySyncMediaDelete bool + DisableHistorySyncReceipt bool + DisableHistorySyncStorage bool + DisableLoginAutoReconnect bool + DisableManualHistorySyncReceipt bool + DisabledFeatures DisabledFeatures + EmitAppStateEventsOnFullSync bool + EmitLabelEventsOnFullSync bool + EmitQuickReplyEventsOnFullSync bool + EnableAutoReconnect bool + EnableDecryptedEventBuffer bool + ErrorOnSubscribePresenceWithoutToken bool + GetClientPayload func() *waWa6.ClientPayload + GetMessageForRetry func(requester, to types.JID, id types.MessageID) *waE2E.Message + InitialAutoReconnect bool + LastSuccessfulConnect time.Time + Log waLog.Logger + ManualHistorySyncDownload bool + MessengerConfig *MessengerConfig + PrePairCallback func(jid types.JID, platform, businessName string) bool + PreRetryCallback func(receipt *events.Receipt, id types.MessageID, retryCount int, ...) bool + QRClientType PairClientType + RawNodeHandler RawNodeHandler + RefreshCAT func(context.Context) error + SendReportingTokens bool + SocketConfig *SocketConfig + Store *store.Device + SynchronousAck bool + UseRetryMessageStore bool + UserAgent string + WebSocketHeaders http.Header + func NewClient(deviceStore *store.Device, log waLog.Logger) *Client + func (cli *Client) AcceptTOSNotice(ctx context.Context, noticeID, stage string) error + func (cli *Client) AddEventHandler(handler EventHandler) uint32 + func (cli *Client) AddEventHandlerWithSuccessStatus(handler EventHandlerWithSuccessStatus) uint32 + func (cli *Client) AppealBusinessCollection(ctx context.Context, collectionID, reason string) error + func (cli *Client) AppealBusinessProduct(ctx context.Context, productID, reason string) error + func (cli *Client) BuildEdit(chat types.JID, id types.MessageID, newContent *waE2E.Message) *waE2E.Message + func (cli *Client) BuildHistorySyncRequest(lastKnownMessageInfo *types.MessageInfo, count int) *waE2E.Message + func (cli *Client) BuildMessageKey(chat, sender types.JID, id types.MessageID) *waCommon.MessageKey + func (cli *Client) BuildPollCreation(name string, optionNames []string, selectableOptionCount int) *waE2E.Message + func (cli *Client) BuildPollVote(ctx context.Context, pollInfo *types.MessageInfo, optionNames []string) (*waE2E.Message, error) + func (cli *Client) BuildReaction(chat, sender types.JID, id types.MessageID, reaction string) *waE2E.Message + func (cli *Client) BuildRevoke(chat, sender types.JID, id types.MessageID) *waE2E.Message + func (cli *Client) BuildUnavailableMessageRequest(chat, sender types.JID, id string) *waE2E.Message + func (cli *Client) Connect() error + func (cli *Client) ConnectContext(ctx context.Context) error + func (cli *Client) CreateBusinessCatalog(ctx context.Context) error + func (cli *Client) CreateBusinessCollection(ctx context.Context, name string, productIDs []string) (*types.BusinessCollectionMutationResult, error) + func (cli *Client) CreateBusinessProduct(ctx context.Context, input types.BusinessProductInput, width, height int) (*types.BusinessProduct, error) + func (cli *Client) CreateGroup(ctx context.Context, req ReqCreateGroup) (*types.GroupInfo, error) + func (cli *Client) CreateNewsletter(ctx context.Context, params CreateNewsletterParams) (*types.NewsletterMetadata, error) + func (cli *Client) DangerousInternals() *DangerousInternalClient + func (cli *Client) DecryptComment(ctx context.Context, comment *events.Message) (*waE2E.Message, error) + func (cli *Client) DecryptPollVote(ctx context.Context, vote *events.Message) (*waE2E.PollVoteMessage, error) + func (cli *Client) DecryptReaction(ctx context.Context, reaction *events.Message) (*waE2E.ReactionMessage, error) + func (cli *Client) DecryptSecretEncryptedMessage(ctx context.Context, evt *events.Message) (*waE2E.Message, error) + func (cli *Client) DeleteBusinessCollections(ctx context.Context, collectionIDs []string) error + func (cli *Client) DeleteBusinessCoverPhoto(ctx context.Context, coverID string) error + func (cli *Client) DeleteBusinessProducts(ctx context.Context, productIDs []string) (int, error) + func (cli *Client) DeleteMedia(ctx context.Context, appInfo MediaType, directPath string, encFileHash []byte, ...) error + func (cli *Client) DeleteNewsletter(ctx context.Context, jid types.JID) error + func (cli *Client) Disconnect() + func (cli *Client) Download(ctx context.Context, msg DownloadableMessage) ([]byte, error) + func (cli *Client) DownloadAny(ctx context.Context, msg *waE2E.Message) (data []byte, err error) + func (cli *Client) DownloadFB(ctx context.Context, transport *waMediaTransport.WAMediaTransport_Integral, ...) ([]byte, error) + func (cli *Client) DownloadFBToFile(ctx context.Context, transport *waMediaTransport.WAMediaTransport_Integral, ...) error + func (cli *Client) DownloadHistorySync(ctx context.Context, notif *waE2E.HistorySyncNotification, ...) (*waHistorySync.HistorySync, error) + func (cli *Client) DownloadMediaWithOnlyPath(ctx context.Context, directPath string) ([]byte, error) + func (cli *Client) DownloadMediaWithOnlyPathToFile(ctx context.Context, directPath string, file File) error + func (cli *Client) DownloadMediaWithPath(ctx context.Context, directPath string, encFileHash, fileHash, mediaKey []byte, ...) (data []byte, err error) + func (cli *Client) DownloadMediaWithPathToFile(ctx context.Context, directPath string, encFileHash, fileHash, mediaKey []byte, ...) error + func (cli *Client) DownloadThumbnail(ctx context.Context, msg DownloadableThumbnail) ([]byte, error) + func (cli *Client) DownloadToFile(ctx context.Context, msg DownloadableMessage, file File) error + func (cli *Client) EncryptComment(ctx context.Context, rootMsgInfo *types.MessageInfo, comment *waE2E.Message) (*waE2E.Message, error) + func (cli *Client) EncryptPollVote(ctx context.Context, pollInfo *types.MessageInfo, vote *waE2E.PollVoteMessage) (*waE2E.PollUpdateMessage, error) + func (cli *Client) EncryptReaction(ctx context.Context, rootMsgInfo *types.MessageInfo, ...) (*waE2E.EncReactionMessage, error) + func (cli *Client) FetchAppState(ctx context.Context, name appstate.WAPatchName, fullSync, onlyIfNotSynced bool) error + func (cli *Client) FetchStickerPack(ctx context.Context, packID string) (*types.StickerPack, error) + func (cli *Client) FollowNewsletter(ctx context.Context, jid types.JID) error + func (cli *Client) GenerateMessageID() types.MessageID + func (cli *Client) GetBlocklist(ctx context.Context) (*types.Blocklist, error) + func (cli *Client) GetBotListV2(ctx context.Context) ([]types.BotListInfo, error) + func (cli *Client) GetBotProfiles(ctx context.Context, botInfo []types.BotListInfo) ([]types.BotProfileInfo, error) + func (cli *Client) GetBusinessEligibility(ctx context.Context, features ...types.BusinessFeature) (*types.BusinessEligibility, error) + func (cli *Client) GetBusinessLinkedAccounts(ctx context.Context) (*types.BusinessLinkedAccounts, error) + func (cli *Client) GetBusinessMerchantCompliance(ctx context.Context) (*types.BusinessMerchantCompliance, error) + func (cli *Client) GetBusinessProfile(ctx context.Context, jid types.JID) (*types.BusinessProfile, error) + func (cli *Client) GetCatalog(ctx context.Context, business types.JID, params GetCatalogParams) (*types.BusinessCatalogPage, error) + func (cli *Client) GetCatalogProduct(ctx context.Context, business types.JID, productID string) (*types.BusinessProduct, error) + func (cli *Client) GetCatalogProducts(ctx context.Context, business types.JID, productIDs []string) ([]types.BusinessProduct, error) + func (cli *Client) GetContactQRLink(ctx context.Context, revoke bool) (string, error) + func (cli *Client) GetGroupInfo(ctx context.Context, jid types.JID) (*types.GroupInfo, error) + func (cli *Client) GetGroupInfoFromInvite(ctx context.Context, jid, inviter types.JID, code string, expiration int64) (*types.GroupInfo, error) + func (cli *Client) GetGroupInfoFromLink(ctx context.Context, code string) (*types.GroupInfo, error) + func (cli *Client) GetGroupInviteLink(ctx context.Context, jid types.JID, reset bool) (string, error) + func (cli *Client) GetGroupRequestParticipants(ctx context.Context, jid types.JID) ([]types.GroupParticipantRequest, error) + func (cli *Client) GetIdentityVerificationCodes(ctx context.Context, userID types.JID) (*IdentityVerificationCodes, error) + func (cli *Client) GetJoinedGroups(ctx context.Context) ([]*types.GroupInfo, error) + func (cli *Client) GetLinkedGroupsParticipants(ctx context.Context, community types.JID) ([]types.JID, error) + func (cli *Client) GetNewsletterInfo(ctx context.Context, jid types.JID) (*types.NewsletterMetadata, error) + func (cli *Client) GetNewsletterInfoWithInvite(ctx context.Context, key string) (*types.NewsletterMetadata, error) + func (cli *Client) GetNewsletterMessageUpdates(ctx context.Context, jid types.JID, params *GetNewsletterUpdatesParams) ([]*types.NewsletterMessage, error) + func (cli *Client) GetNewsletterMessages(ctx context.Context, jid types.JID, params *GetNewsletterMessagesParams) ([]*types.NewsletterMessage, error) + func (cli *Client) GetOrderDetails(ctx context.Context, orderID, tokenBase64 string) (*types.OrderDetails, error) + func (cli *Client) GetPrivacySettings(ctx context.Context) (settings types.PrivacySettings) + func (cli *Client) GetProductCollection(ctx context.Context, business types.JID, collectionID string, ...) (*types.BusinessCollection, error) + func (cli *Client) GetProductCollections(ctx context.Context, business types.JID, params GetCollectionsParams) (*types.BusinessCollectionPage, error) + func (cli *Client) GetProfilePictureInfo(ctx context.Context, jid types.JID, params *GetProfilePictureParams) (*types.ProfilePictureInfo, error) + func (cli *Client) GetQRChannel(ctx context.Context) (<-chan QRChannelItem, error) + func (cli *Client) GetServerPushNotificationConfig(ctx context.Context) (*waBinary.Node, error) + func (cli *Client) GetStatusPrivacy(ctx context.Context) ([]types.StatusPrivacy, error) + func (cli *Client) GetSubGroups(ctx context.Context, community types.JID) ([]*types.GroupLinkTarget, error) + func (cli *Client) GetSubscribedNewsletters(ctx context.Context) ([]*types.NewsletterMetadata, error) + func (cli *Client) GetUserDevices(ctx context.Context, jids []types.JID) ([]types.JID, error) + func (cli *Client) GetUserDevicesContext(ctx context.Context, jids []types.JID) ([]types.JID, error) + func (cli *Client) GetUserInfo(ctx context.Context, jids []types.JID) (map[types.JID]types.UserInfo, error) + func (cli *Client) IsConnected() bool + func (cli *Client) IsLoggedIn() bool + func (cli *Client) IsOnWhatsApp(ctx context.Context, phones []string) ([]types.IsOnWhatsAppResponse, error) + func (cli *Client) JoinGroupWithInvite(ctx context.Context, jid, inviter types.JID, code string, expiration int64) error + func (cli *Client) JoinGroupWithLink(ctx context.Context, code string) (types.JID, error) + func (cli *Client) LeaveGroup(ctx context.Context, jid types.JID) error + func (cli *Client) LinkGroup(ctx context.Context, parent, child types.JID) error + func (cli *Client) Logout(ctx context.Context) error + func (cli *Client) MarkNotDirty(ctx context.Context, cleanType string, ts time.Time) error + func (cli *Client) MarkRead(ctx context.Context, ids []types.MessageID, timestamp time.Time, ...) error + func (cli *Client) NewsletterMarkViewed(ctx context.Context, jid types.JID, serverIDs []types.MessageServerID) error + func (cli *Client) NewsletterSendReaction(ctx context.Context, jid types.JID, serverID types.MessageServerID, ...) error + func (cli *Client) NewsletterSubscribeLiveUpdates(ctx context.Context, jid types.JID) (time.Duration, error) + func (cli *Client) NewsletterToggleMute(ctx context.Context, jid types.JID, mute bool) error + func (cli *Client) PairPhone(ctx context.Context, phone string, showPushNotification bool, ...) (string, error) + func (cli *Client) ParseWebMessage(chatJID types.JID, webMsg *waWeb.WebMessageInfo) (*events.Message, error) + func (cli *Client) RegisterForPushNotifications(ctx context.Context, pc PushConfig) error + func (cli *Client) RejectCall(ctx context.Context, callFrom types.JID, callID string) error + func (cli *Client) RemoveEventHandler(id uint32) bool + func (cli *Client) RemoveEventHandlers() + func (cli *Client) ReorderBusinessCollections(ctx context.Context, moves []types.BusinessCollectionMove) error + func (cli *Client) ResetConnection() + func (cli *Client) ResolveBusinessMessageLink(ctx context.Context, code string) (*types.BusinessMessageLinkTarget, error) + func (cli *Client) ResolveContactQRLink(ctx context.Context, code string) (*types.ContactQRLinkTarget, error) + func (cli *Client) ResolveLID(ctx context.Context, phone types.JID) (types.JID, error) + func (cli *Client) ResolveUsername(ctx context.Context, username, key string) (types.UsernameResolution, error) + func (cli *Client) RevokeMessage(ctx context.Context, chat types.JID, id types.MessageID) (SendResponse, error) + func (cli *Client) SendAppState(ctx context.Context, patch appstate.PatchInfo) error + func (cli *Client) SendChatPresence(ctx context.Context, jid types.JID, state types.ChatPresence, ...) error + func (cli *Client) SendFBMessage(ctx context.Context, to types.JID, message armadillo.RealMessageApplicationSub, ...) (resp SendResponse, err error) + func (cli *Client) SendHistorySyncServerErrorReceipt(ctx context.Context, msgID types.MessageID, mediaKey []byte) error + func (cli *Client) SendMediaRetryReceipt(ctx context.Context, message *types.MessageInfo, mediaKey []byte) error + func (cli *Client) SendMessage(ctx context.Context, to types.JID, message *waE2E.Message, ...) (resp SendResponse, err error) + func (cli *Client) SendPasskeyConfirmation(ctx context.Context) error + func (cli *Client) SendPasskeyResponse(ctx context.Context, passkeyResp *types.WebAuthnResponse) error + func (cli *Client) SendPeerMessage(ctx context.Context, message *waE2E.Message) (SendResponse, error) + func (cli *Client) SendPresence(ctx context.Context, state types.Presence) error + func (cli *Client) SendProtocolMessageReceipt(ctx context.Context, id types.MessageID, msgType types.ReceiptType) error + func (cli *Client) SetBusinessCartEnabled(ctx context.Context, enabled bool) error + func (cli *Client) SetBusinessCoverPhoto(ctx context.Context, image []byte) (string, error) + func (cli *Client) SetBusinessMerchantCompliance(ctx context.Context, info types.BusinessMerchantCompliance) (*types.BusinessMerchantCompliance, error) + func (cli *Client) SetBusinessProductVisibility(ctx context.Context, productID string, hidden bool) error + func (cli *Client) SetDefaultDisappearingTimer(ctx context.Context, timer time.Duration) (err error) + func (cli *Client) SetDisappearingTimer(ctx context.Context, chat types.JID, timer time.Duration, settingTS time.Time) (err error) + func (cli *Client) SetForceActiveDeliveryReceipts(active bool) + func (cli *Client) SetGroupAnnounce(ctx context.Context, jid types.JID, announce bool) error + func (cli *Client) SetGroupDescription(ctx context.Context, jid types.JID, description string) error + func (cli *Client) SetGroupJoinApprovalMode(ctx context.Context, jid types.JID, mode bool) error + func (cli *Client) SetGroupLocked(ctx context.Context, jid types.JID, locked bool) error + func (cli *Client) SetGroupMemberAddMode(ctx context.Context, jid types.JID, mode types.GroupMemberAddMode) error + func (cli *Client) SetGroupName(ctx context.Context, jid types.JID, name string) error + func (cli *Client) SetGroupPhoto(ctx context.Context, jid types.JID, avatar []byte) (string, error) + func (cli *Client) SetGroupTopic(ctx context.Context, jid types.JID, previousID, newID, topic string) error + func (cli *Client) SetMaxParallelRetryReceiptHandling(n int64) + func (cli *Client) SetMediaHTTPClient(h *http.Client) + func (cli *Client) SetPassive(ctx context.Context, passive bool) error + func (cli *Client) SetPreLoginHTTPClient(h *http.Client) + func (cli *Client) SetPrivacySetting(ctx context.Context, name types.PrivacySettingType, value types.PrivacySetting) (settings types.PrivacySettings, err error) + func (cli *Client) SetProxy(proxy Proxy, opts ...SetProxyOptions) + func (cli *Client) SetProxyAddress(addr string, opts ...SetProxyOptions) error + func (cli *Client) SetSOCKSProxy(px proxy.Dialer, opts ...SetProxyOptions) + func (cli *Client) SetStatusMessage(ctx context.Context, status types.SetStatusInput) error + func (cli *Client) SetWebsocketHTTPClient(h *http.Client) + func (cli *Client) StoreLIDPNMapping(ctx context.Context, first, second types.JID) + func (cli *Client) SubscribePresence(ctx context.Context, jid types.JID) error + func (cli *Client) TryFetchPrivacySettings(ctx context.Context, ignoreCache bool) (*types.PrivacySettings, error) + func (cli *Client) UnfollowNewsletter(ctx context.Context, jid types.JID) error + func (cli *Client) UnlinkGroup(ctx context.Context, parent, child types.JID) error + func (cli *Client) UpdateBlocklist(ctx context.Context, jid types.JID, action events.BlocklistChangeAction) (*types.Blocklist, error) + func (cli *Client) UpdateBusinessCollection(ctx context.Context, collectionID string, ...) (*types.BusinessCollectionMutationResult, error) + func (cli *Client) UpdateBusinessProduct(ctx context.Context, productID string, input types.BusinessProductInput, ...) (*types.BusinessProduct, error) + func (cli *Client) UpdateBusinessProfile(ctx context.Context, update types.BusinessProfileUpdate) error + func (cli *Client) UpdateGroupParticipants(ctx context.Context, jid types.JID, participantChanges []types.JID, ...) ([]types.GroupParticipant, error) + func (cli *Client) UpdateGroupRequestParticipants(ctx context.Context, jid types.JID, participantChanges []types.JID, ...) ([]types.GroupParticipant, error) + func (cli *Client) Upload(ctx context.Context, plaintext []byte, appInfo MediaType) (resp UploadResponse, err error) + func (cli *Client) UploadBusinessProductImage(ctx context.Context, image []byte) (string, error) + func (cli *Client) UploadNewsletter(ctx context.Context, data []byte, appInfo MediaType) (resp UploadResponse, err error) + func (cli *Client) UploadNewsletterReader(ctx context.Context, data io.ReadSeeker, appInfo MediaType) (resp UploadResponse, err error) + func (cli *Client) UploadReader(ctx context.Context, plaintext io.Reader, tempFile io.ReadWriteSeeker, ...) (resp UploadResponse, err error) + func (cli *Client) WaitForConnection(timeout time.Duration) bool + type CreateNewsletterParams struct + Description string + Name string + Picture []byte + type DangerousInfoQuery = infoQuery + type DangerousInfoQueryType = infoQueryType + type DangerousInternalClient struct + func (int *DangerousInternalClient) AddRecentMessage(ctx context.Context, to types.JID, id types.MessageID, wa *waE2E.Message, ...) error + func (int *DangerousInternalClient) ApplyAppStatePatches(ctx context.Context, name appstate.WAPatchName, state appstate.HashState, ...) (appstate.HashState, error) + func (int *DangerousInternalClient) AutoReconnect(ctx context.Context) + func (int *DangerousInternalClient) BackgroundIfAsyncAck(fn func()) + func (int *DangerousInternalClient) BufferedDecrypt(ctx context.Context, ciphertext []byte, serverTimestamp time.Time, ...) (plaintext []byte, ciphertextHash [32]byte, err error) + func (int *DangerousInternalClient) CacheGroupInfo(groupInfo *types.GroupInfo, lock bool) ([]store.LIDMapping, []store.RedactedPhoneEntry) + func (int *DangerousInternalClient) CancelDelayedRequestFromPhone(msgID types.MessageID) + func (int *DangerousInternalClient) CancelResponse(reqID string, ch chan *waBinary.Node) + func (int *DangerousInternalClient) ClearDelayedMessageRequests() + func (int *DangerousInternalClient) ClearNCTSalt(ctx context.Context) error + func (int *DangerousInternalClient) ClearResponseWaiters(node *waBinary.Node) + func (int *DangerousInternalClient) ClearUntrustedIdentity(ctx context.Context, target types.JID) error + func (int *DangerousInternalClient) CloseSocketWaitChan() + func (int *DangerousInternalClient) CollectEventsToDispatch(ctx context.Context, name appstate.WAPatchName, mutations []appstate.Mutation, ...) error + func (int *DangerousInternalClient) Connect(ctx context.Context) error + func (int *DangerousInternalClient) DecryptBotMessage(ctx context.Context, messageSecret []byte, msMsg messageEncryptedSecret, ...) ([]byte, error) + func (int *DangerousInternalClient) DecryptDM(ctx context.Context, child *waBinary.Node, from types.JID, isPreKey bool, ...) ([]byte, *[32]byte, error) + func (int *DangerousInternalClient) DecryptGroupMsg(ctx context.Context, child *waBinary.Node, from types.JID, chat types.JID, ...) ([]byte, *[32]byte, error) + func (int *DangerousInternalClient) DecryptMessages(ctx context.Context, info *types.MessageInfo, node *waBinary.Node) + func (int *DangerousInternalClient) DecryptMsgSecret(ctx context.Context, msg *events.Message, useCase MsgSecretType, ...) ([]byte, error) + func (int *DangerousInternalClient) DelayedRequestMessageFromPhone(info *types.MessageInfo) + func (int *DangerousInternalClient) DeleteExpiredPrivacyTokens() + func (int *DangerousInternalClient) DispatchAppState(ctx context.Context, name appstate.WAPatchName, mutation appstate.Mutation, ...) (eventToDispatch any) + func (int *DangerousInternalClient) DispatchEvent(evt any) (handlerFailed bool) + func (int *DangerousInternalClient) DoHandshake(ctx context.Context, fs *socket.FrameSocket, ephemeralKP keys.KeyPair) error + func (int *DangerousInternalClient) DoMediaDownloadRequest(ctx context.Context, url string) (*http.Response, error) + func (int *DangerousInternalClient) DownloadAndDecrypt(ctx context.Context, url string, mediaKey []byte, appInfo MediaType, ...) (data []byte, err error) + func (int *DangerousInternalClient) DownloadAndDecryptToFile(ctx context.Context, url string, mediaKey []byte, appInfo MediaType, ...) error + func (int *DangerousInternalClient) DownloadEncryptedMedia(ctx context.Context, url string, checksum []byte) (file, mac []byte, err error) + func (int *DangerousInternalClient) DownloadEncryptedMediaToFile(ctx context.Context, url string, checksum []byte, file File) ([]byte, error) + func (int *DangerousInternalClient) DownloadExternalAppStateBlob(ctx context.Context, ref *waServerSync.ExternalBlobReference) ([]byte, error) + func (int *DangerousInternalClient) DownloadMedia(ctx context.Context, url string) ([]byte, error) + func (int *DangerousInternalClient) DownloadMediaToFile(ctx context.Context, url string, file io.Writer) (int64, []byte, error) + func (int *DangerousInternalClient) DownloadPossiblyEncryptedMediaWithRetries(ctx context.Context, url string, checksum []byte) (file, mac []byte, err error) + func (int *DangerousInternalClient) DownloadPossiblyEncryptedMediaWithRetriesToFile(ctx context.Context, url string, checksum []byte, file File) (mac []byte, err error) + func (int *DangerousInternalClient) EncryptMessageForDevice(ctx context.Context, plaintext []byte, to types.JID, bundle *prekey.Bundle, ...) (*waBinary.Node, bool, error) + func (int *DangerousInternalClient) EncryptMessageForDeviceAndWrap(ctx context.Context, plaintext []byte, ...) (*waBinary.Node, bool, error) + func (int *DangerousInternalClient) EncryptMessageForDeviceAndWrapV3(ctx context.Context, payload *waMsgTransport.MessageTransport_Payload, ...) (*waBinary.Node, error) + func (int *DangerousInternalClient) EncryptMessageForDeviceV3(ctx context.Context, payload *waMsgTransport.MessageTransport_Payload, ...) (*waBinary.Node, error) + func (int *DangerousInternalClient) EncryptMessageForDevices(ctx context.Context, allDevices []types.JID, id string, ...) ([]waBinary.Node, bool, error) + func (int *DangerousInternalClient) EncryptMessageForDevicesV3(ctx context.Context, allDevices []types.JID, ownID types.JID, id string, ...) ([]waBinary.Node, error) + func (int *DangerousInternalClient) EncryptMsgSecret(ctx context.Context, ownID, chat, origSender types.JID, ...) (ciphertext, iv []byte, err error) + func (int *DangerousInternalClient) EnsureTCToken(ctx context.Context, jid types.JID) (token []byte, err error) + func (int *DangerousInternalClient) ExpectDisconnect() + func (int *DangerousInternalClient) FetchAppState(ctx context.Context, name appstate.WAPatchName, fullSync, onlyIfNotSynced bool) ([]any, error) + func (int *DangerousInternalClient) FetchAppStatePatches(ctx context.Context, name appstate.WAPatchName, fromVersion uint64, ...) (*appstate.PatchList, error) + func (int *DangerousInternalClient) FetchPreKeys(ctx context.Context, users []types.JID) (map[types.JID]preKeyResp, error) + func (int *DangerousInternalClient) FetchPreKeysNoError(ctx context.Context, retryDevices []types.JID) map[types.JID]*prekey.Bundle + func (int *DangerousInternalClient) FilterContacts(mutations []appstate.Mutation) ([]appstate.Mutation, []store.ContactEntry) + func (int *DangerousInternalClient) GenerateCsToken(ctx context.Context, jid types.JID) []byte + func (int *DangerousInternalClient) GenerateRequestID() string + func (int *DangerousInternalClient) GetBroadcastListParticipants(ctx context.Context, jid types.JID) ([]types.JID, error) + func (int *DangerousInternalClient) GetCachedGroupData(ctx context.Context, jid types.JID) (*groupMetaCache, error) + func (int *DangerousInternalClient) GetCompanionRef(ctx context.Context) (string, error) + func (int *DangerousInternalClient) GetFBIDDevices(ctx context.Context, jids []types.JID) ([]types.JID, error) + func (int *DangerousInternalClient) GetFBIDDevicesInternal(ctx context.Context, jids []types.JID) (*waBinary.Node, error) + func (int *DangerousInternalClient) GetGroupInfo(ctx context.Context, jid types.JID, lockParticipantCache bool) (*types.GroupInfo, error) + func (int *DangerousInternalClient) GetMessageContent(baseNode waBinary.Node, message *waE2E.Message, msgAttrs waBinary.Attrs, ...) []waBinary.Node + func (int *DangerousInternalClient) GetMessageForRetry(ctx context.Context, receipt *events.Receipt, messageID types.MessageID) (*RecentMessage, error) + func (int *DangerousInternalClient) GetMessageReportingToken(msgProtobuf []byte, msg *waE2E.Message, senderJID, remoteJID types.JID, ...) waBinary.Node + func (int *DangerousInternalClient) GetNewsletterInfo(ctx context.Context, input map[string]any, fetchViewerMeta bool) (*types.NewsletterMetadata, error) + func (int *DangerousInternalClient) GetOwnID() types.JID + func (int *DangerousInternalClient) GetOwnLID() types.JID + func (int *DangerousInternalClient) GetPasskeyRequestOptions(ctx context.Context) (*types.WebAuthnPublicKey, error) + func (int *DangerousInternalClient) GetQRClientType() PairClientType + func (int *DangerousInternalClient) GetRecentMessage(to types.JID, id types.MessageID) RecentMessage + func (int *DangerousInternalClient) GetServerPreKeyCount(ctx context.Context) (int, error) + func (int *DangerousInternalClient) GetSocketWaitChan() <-chan struct{} + func (int *DangerousInternalClient) GetStatusBroadcastRecipients(ctx context.Context) ([]types.JID, error) + func (int *DangerousInternalClient) GetTCTokenSenderTS(jid types.JID) time.Time + func (int *DangerousInternalClient) GetUnifiedSessionID() string + func (int *DangerousInternalClient) HandleAccountSyncNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleAppStateNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleAppStateRecovery(ctx context.Context, reqID types.MessageID, ...) bool + func (int *DangerousInternalClient) HandleAppStateSyncKeyShare(ctx context.Context, keys *waE2E.AppStateSyncKeyShare) + func (int *DangerousInternalClient) HandleBlocklist(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleCallEvent(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleChatState(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleCodePairNotification(ctx context.Context, parentNode *waBinary.Node) error + func (int *DangerousInternalClient) HandleConnectFailure(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleConnectSuccess(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleDecryptedArmadillo(ctx context.Context, info *types.MessageInfo, decrypted []byte, retryCount int) (handlerFailed, protobufFailed bool) + func (int *DangerousInternalClient) HandleDecryptedMessage(ctx context.Context, info *types.MessageInfo, msg *waE2E.Message, ...) (handlerFailed bool) + func (int *DangerousInternalClient) HandleDeviceNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleEncryptNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleEncryptedMessage(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleFBDeviceNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleFrame(ctx context.Context, data []byte) + func (int *DangerousInternalClient) HandleGroupedReceipt(partialReceipt events.Receipt, participants *waBinary.Node) (cancelled bool) + func (int *DangerousInternalClient) HandleHistoricalPushNames(ctx context.Context, names []*waHistorySync.Pushname) + func (int *DangerousInternalClient) HandleHistorySyncNotificationLoop() + func (int *DangerousInternalClient) HandleIB(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleIQ(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleMediaRetryNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleMexNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleNewsletterNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleOwnDevicesNotification(ctx context.Context, node *waBinary.Node, fromJID types.JID) + func (int *DangerousInternalClient) HandlePair(ctx context.Context, deviceIdentityBytes []byte, ...) error + func (int *DangerousInternalClient) HandlePairDevice(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandlePairSuccess(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandlePasskeyContinuationNotification(ctx context.Context, node *waBinary.Node) error + func (int *DangerousInternalClient) HandlePasskeyNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandlePictureNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandlePlaceholderResendResponse(msg *waE2E.PeerDataOperationRequestResponseMessage) (ok bool) + func (int *DangerousInternalClient) HandlePlaintextMessage(ctx context.Context, info *types.MessageInfo, node *waBinary.Node) (handlerFailed bool) + func (int *DangerousInternalClient) HandlePresence(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandlePrivacySettingsNotification(ctx context.Context, privacyNode *waBinary.Node) + func (int *DangerousInternalClient) HandlePrivacyTokenNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleProtocolMessage(ctx context.Context, info *types.MessageInfo, msg *waE2E.Message) (ok bool) + func (int *DangerousInternalClient) HandleReceipt(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleRetryReceipt(ctx context.Context, receipt *events.Receipt, node *waBinary.Node) error + func (int *DangerousInternalClient) HandleSenderKeyDistributionMessage(ctx context.Context, chat, from types.JID, axolotlSKDM []byte) + func (int *DangerousInternalClient) HandleStatusNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleStreamError(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandleUnencryptedMessage(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) HandlerQueueLoop(evtCtx, connCtx context.Context) + func (int *DangerousInternalClient) ImmediateRequestMessageFromPhone(ctx context.Context, info *types.MessageInfo) + func (int *DangerousInternalClient) IsExpectedDisconnect() bool + func (int *DangerousInternalClient) IssuePrivacyToken(ctx context.Context, jid types.JID, timestamp time.Time) (*waBinary.Node, error) + func (int *DangerousInternalClient) IssuePrivacyTokenAndSave(jid types.JID, senderTimestamp time.Time) + func (int *DangerousInternalClient) KeepAliveLoop(ctx, connCtx context.Context) + func (int *DangerousInternalClient) MakeDeviceIdentityNode() waBinary.Node + func (int *DangerousInternalClient) MakeQRData(ref []byte, clientType PairClientType) string + func (int *DangerousInternalClient) MaybeDeferredAck(ctx context.Context, node *waBinary.Node) func(...*bool) + func (int *DangerousInternalClient) MigrateSessionStore(ctx context.Context, pn, lid types.JID) + func (int *DangerousInternalClient) OnDisconnect(ctx context.Context, ns *socket.NoiseSocket, remote bool) + func (int *DangerousInternalClient) ParseBlocklist(node *waBinary.Node) *types.Blocklist + func (int *DangerousInternalClient) ParseBusinessProfile(node *waBinary.Node) (*types.BusinessProfile, error) + func (int *DangerousInternalClient) ParseGroupChange(node *waBinary.Node) (*events.GroupInfo, []store.LIDMapping, error) + func (int *DangerousInternalClient) ParseGroupCreate(parentNode, node *waBinary.Node) (*events.JoinedGroup, []store.LIDMapping, []store.RedactedPhoneEntry, error) + func (int *DangerousInternalClient) ParseGroupNode(groupNode *waBinary.Node) (*types.GroupInfo, error) + func (int *DangerousInternalClient) ParseGroupNotification(node *waBinary.Node) (any, []store.LIDMapping, []store.RedactedPhoneEntry, error) + func (int *DangerousInternalClient) ParseMessageInfo(node *waBinary.Node) (*types.MessageInfo, error) + func (int *DangerousInternalClient) ParseMessageSource(node *waBinary.Node, requireParticipant bool) (source types.MessageSource, err error) + func (int *DangerousInternalClient) ParseMsgBotInfo(node waBinary.Node) (botInfo types.MsgBotInfo, err error) + func (int *DangerousInternalClient) ParseMsgMetaInfo(node waBinary.Node) (metaInfo types.MsgMetaInfo, err error) + func (int *DangerousInternalClient) ParseNewsletterMessages(node *waBinary.Node) []*types.NewsletterMessage + func (int *DangerousInternalClient) ParsePrivacySettings(privacyNode *waBinary.Node, settings *types.PrivacySettings) *events.PrivacySettings + func (int *DangerousInternalClient) ParseReceipt(node *waBinary.Node) (*events.Receipt, []waBinary.Node, error) + func (int *DangerousInternalClient) PrepareMessageNode(ctx context.Context, to types.JID, id types.MessageID, message *waE2E.Message, ...) (*waBinary.Node, []types.JID, error) + func (int *DangerousInternalClient) PrepareMessageNodeV3(ctx context.Context, to, ownID types.JID, id types.MessageID, ...) (*waBinary.Node, []types.JID, error) + func (int *DangerousInternalClient) PreparePeerMessageNode(ctx context.Context, to types.JID, id types.MessageID, message *waE2E.Message, ...) (*waBinary.Node, error) + func (int *DangerousInternalClient) ProcessProtocolParts(ctx context.Context, info *types.MessageInfo, msg *waE2E.Message) (ok bool) + func (int *DangerousInternalClient) QueryMediaConn(ctx context.Context) (*MediaConn, error) + func (int *DangerousInternalClient) RawUpload(ctx context.Context, dataToUpload io.Reader, uploadSize uint64, ...) error + func (int *DangerousInternalClient) ReceiveResponse(ctx context.Context, data *waBinary.Node) bool + func (int *DangerousInternalClient) RefreshMediaConn(ctx context.Context, force bool) (*MediaConn, error) + func (int *DangerousInternalClient) RequestAppStateKeys(ctx context.Context, rawKeyIDs [][]byte) + func (int *DangerousInternalClient) RequestMissingAppStateKeys(ctx context.Context, patches *appstate.PatchList) + func (int *DangerousInternalClient) ResetExpectedDisconnect() + func (int *DangerousInternalClient) ResolveTCTokenStorageLID(ctx context.Context, jid types.JID) types.JID + func (int *DangerousInternalClient) RetryFrame(ctx context.Context, reqType, id string, data []byte, origResp *waBinary.Node, ...) (*waBinary.Node, error) + func (int *DangerousInternalClient) SendAck(ctx context.Context, node *waBinary.Node, error int) + func (int *DangerousInternalClient) SendAppState(ctx context.Context, patch appstate.PatchInfo, allowRetry bool) error + func (int *DangerousInternalClient) SendDM(ctx context.Context, ownID, to types.JID, id types.MessageID, ...) (string, []byte, error) + func (int *DangerousInternalClient) SendDMV3(ctx context.Context, to, ownID types.JID, id types.MessageID, ...) ([]byte, string, error) + func (int *DangerousInternalClient) SendGroup(ctx context.Context, ownID, to types.JID, participants []types.JID, ...) (string, []byte, error) + func (int *DangerousInternalClient) SendGroupIQ(ctx context.Context, iqType infoQueryType, jid types.JID, ...) (*waBinary.Node, error) + func (int *DangerousInternalClient) SendGroupV3(ctx context.Context, to, ownID types.JID, id types.MessageID, ...) (string, []byte, error) + func (int *DangerousInternalClient) SendIQ(ctx context.Context, query infoQuery) (*waBinary.Node, error) + func (int *DangerousInternalClient) SendIQAsync(ctx context.Context, query infoQuery) (<-chan *waBinary.Node, error) + func (int *DangerousInternalClient) SendIQAsyncAndGetData(ctx context.Context, query *infoQuery) (<-chan *waBinary.Node, []byte, error) + func (int *DangerousInternalClient) SendKeepAlive(ctx context.Context) (isSuccess, shouldContinue bool) + func (int *DangerousInternalClient) SendMessageReceipt(ctx context.Context, info *types.MessageInfo, node *waBinary.Node) + func (int *DangerousInternalClient) SendMexIQ(ctx context.Context, queryID string, variables any) (json.RawMessage, error) + func (int *DangerousInternalClient) SendNewsletter(ctx context.Context, to types.JID, id types.MessageID, message *waE2E.Message, ...) ([]byte, error) + func (int *DangerousInternalClient) SendNode(ctx context.Context, node waBinary.Node) error + func (int *DangerousInternalClient) SendNodeAndGetData(ctx context.Context, node waBinary.Node) ([]byte, error) + func (int *DangerousInternalClient) SendPairError(ctx context.Context, id string, code int, text string) + func (int *DangerousInternalClient) SendPeerMessage(ctx context.Context, to types.JID, id types.MessageID, message *waE2E.Message, ...) ([]byte, error) + func (int *DangerousInternalClient) SendRetryReceipt(ctx context.Context, node *waBinary.Node, info *types.MessageInfo, ...) + func (int *DangerousInternalClient) SendUnifiedSession() + func (int *DangerousInternalClient) SetSynchronousMessageNameUpdates(enabled bool) + func (int *DangerousInternalClient) SetTCTokenSenderTS(jid types.JID, ts time.Time) + func (int *DangerousInternalClient) SetTransport(transport *http.Transport, opt SetProxyOptions) + func (int *DangerousInternalClient) ShouldIncludeReportingToken(message *waE2E.Message) bool + func (int *DangerousInternalClient) ShouldRecreateSession(ctx context.Context, retryCount int, jid types.JID) (reason string, recreate bool) + func (int *DangerousInternalClient) StoreGlobalSettings(ctx context.Context, settings *waHistorySync.GlobalSettings) + func (int *DangerousInternalClient) StoreHistoricalMessageSecrets(ctx context.Context, conversations []*waHistorySync.Conversation) + func (int *DangerousInternalClient) StoreHistoricalPNLIDMappings(ctx context.Context, mappings []*waHistorySync.PhoneNumberToLIDMapping) + func (int *DangerousInternalClient) StoreLIDSyncMessage(ctx context.Context, msg []byte) + func (int *DangerousInternalClient) StoreMessageSecret(ctx context.Context, info *types.MessageInfo, msg *waE2E.Message) + func (int *DangerousInternalClient) StoreNCTSalt(ctx context.Context, salt []byte) error + func (int *DangerousInternalClient) TryHandleCodePairNotification(ctx context.Context, parentNode *waBinary.Node) + func (int *DangerousInternalClient) TryHandlePasskeyContinuationNotification(ctx context.Context, node *waBinary.Node) + func (int *DangerousInternalClient) TryHandleRetryReceipt(ctx context.Context, receipt *events.Receipt, node *waBinary.Node) + func (int *DangerousInternalClient) UnlockedCleanupTCTokenSenderTSMap() + func (int *DangerousInternalClient) UnlockedConnect(ctx context.Context) error + func (int *DangerousInternalClient) UnlockedDisconnect() + func (int *DangerousInternalClient) UpdateBusinessName(ctx context.Context, user, userAlt types.JID, messageInfo *types.MessageInfo, ...) + func (int *DangerousInternalClient) UpdateGroupParticipantCache(evt *events.GroupInfo) + func (int *DangerousInternalClient) UpdatePushName(ctx context.Context, user, userAlt types.JID, messageInfo *types.MessageInfo, ...) + func (int *DangerousInternalClient) UploadPreKeys(ctx context.Context, initialUpload bool) + func (int *DangerousInternalClient) Usync(ctx context.Context, jids []types.JID, mode, context string, ...) (*waBinary.Node, error) + func (int *DangerousInternalClient) ValidateAndSetTCTokenSenderTS(jid types.JID, storedSenderTimestamp time.Time) bool + func (int *DangerousInternalClient) WaitResponse(reqID string) chan *waBinary.Node + type DisabledFeatures struct + Signal bool + type DisconnectedError struct + Action string + Node *waBinary.Node + func (err *DisconnectedError) Error() string + func (err *DisconnectedError) Is(other error) bool + type DownloadHTTPError struct + func (dhe DownloadHTTPError) Error() string + func (dhe DownloadHTTPError) Is(other error) bool + type DownloadableMessage interface + GetDirectPath func() string + GetFileEncSHA256 func() []byte + GetFileSHA256 func() []byte + GetMediaKey func() []byte + type DownloadableThumbnail interface + GetMediaKey func() []byte + GetThumbnailDirectPath func() string + GetThumbnailEncSHA256 func() []byte + GetThumbnailSHA256 func() []byte + type ElementMissingError struct + In string + Tag string + func (eme *ElementMissingError) Error() string + type EventHandler func(evt any) + type EventHandlerWithSuccessStatus func(evt any) bool + type FCMPushConfig struct + Token string + func (fpc *FCMPushConfig) GetPushConfigAttrs() waBinary.Attrs + type File interface + Stat func() (os.FileInfo, error) + Truncate func(size int64) error + type GetCatalogParams struct + After string + Height int + Limit int + Width int + type GetCollectionsParams struct + After string + CollectionLimit int + Height int + ItemLimit int + Width int + type GetNewsletterMessagesParams struct + Before types.MessageServerID + Count int + type GetNewsletterUpdatesParams struct + After types.MessageServerID + Count int + Since time.Time + type GetProfilePictureParams struct + CommonGID types.JID + ExistingID string + InviteCode string + IsCommunity bool + PersonaID string + Preview bool + type IQError struct + Code int + ErrorNode *waBinary.Node + RawNode *waBinary.Node + Text string + func (iqe *IQError) Error() string + func (iqe *IQError) Is(other error) bool + type IdentityVerificationCodes struct + DisplayQRCode []byte + NumericCode string + PhoneNumber types.JID + UserID types.JID + Username string + VerificationQRCode []byte + type MediaConn struct + Auth string + AuthTTL int + FetchedAt time.Time + Hosts []MediaConnHost + MaxBuckets int + TTL int + func (mc *MediaConn) Expiry() time.Time + type MediaConnHost struct + Hostname string + type MediaType string + const MediaAppState + const MediaAudio + const MediaDocument + const MediaHistory + const MediaImage + const MediaLinkThumbnail + const MediaStickerPack + const MediaVideo + func GetMediaType(msg DownloadableMessage) MediaType + type MediaTypeable interface + GetMediaType func() MediaType + type MessageDebugTimings struct + GetDevices time.Duration + GetParticipants time.Duration + GroupEncrypt time.Duration + LIDFetch time.Duration + Marshal time.Duration + PeerEncrypt time.Duration + Queue time.Duration + Resp time.Duration + Retry time.Duration + Send time.Duration + func (mdt MessageDebugTimings) MarshalZerologObject(evt *zerolog.Event) + type MessengerConfig struct + BaseURL string + UserAgent string + WebsocketURL string + type MsgSecretType string + const EncSecretBotMsg + const EncSecretComment + const EncSecretEventEdit + const EncSecretEventResponse + const EncSecretMessageEdit + const EncSecretPollAddOption + const EncSecretPollEdit + const EncSecretPollVote + const EncSecretReaction + const EncSecretReportToken + type PairClientType string + const PairClientAndroid + const PairClientChrome + const PairClientEdge + const PairClientElectron + const PairClientFirefox + const PairClientIE + const PairClientMacOS + const PairClientOpera + const PairClientOtherWebClient + const PairClientSafari + const PairClientUWP + const PairClientUnknown + type PairDatabaseError struct + DBErr error + Message string + func (err *PairDatabaseError) Error() string + func (err *PairDatabaseError) Unwrap() error + type PairProtoError struct + Message string + ProtoErr error + func (err *PairProtoError) Error() string + func (err *PairProtoError) Unwrap() error + type ParticipantChange string + const ParticipantChangeAdd + const ParticipantChangeDemote + const ParticipantChangePromote + const ParticipantChangeRemove + type ParticipantRequestChange string + const ParticipantChangeApprove + const ParticipantChangeReject + type Proxy = func(*http.Request) (*url.URL, error) + type PushConfig interface + GetPushConfigAttrs func() waBinary.Attrs + type QRChannelItem struct + Code string + Error error + Event string + PasskeyConfirmation *events.PairPasskeyConfirmation + PasskeyRequest *events.PairPasskeyRequest + Timeout time.Duration + type RawNodeHandler func(ctx context.Context, node *waBinary.Node) (modified *waBinary.Node, drop bool) + type RecentMessage struct + func (rm RecentMessage) IsEmpty() bool + type ReqCreateGroup struct + CreateKey types.MessageID + MemberAddMode types.GroupMemberAddMode + Name string + Participants []types.JID + type SendRequestExtra struct + AdditionalNodes *[]waBinary.Node + ID types.MessageID + InlineBotJID types.JID + MediaHandle string + Meta *types.MsgMetaInfo + Peer bool + Timeout time.Duration + type SendResponse struct + DebugTimings MessageDebugTimings + ID types.MessageID + PHashMismatch bool + Sender types.JID + ServerID types.MessageServerID + Timestamp time.Time + type SetProxyOptions struct + NoMedia bool + NoWebsocket bool + OnlyLogin bool + type SocketConfig struct + NoiseCertificateAuthority *[32]byte + Origin string + URL string + type UploadResponse struct + DirectPath string + FileEncSHA256 []byte + FileLength uint64 + FileSHA256 []byte + Handle string + MediaKey []byte + ObjectID string + URL string + type UsyncQueryExtras struct + BotListInfo []types.BotListInfo + IncludePrivacyToken bool + Username string + UsernameKey string + type WebPushConfig struct + Auth []byte + Endpoint string + P256DH []byte + func (wpc *WebPushConfig) GetPushConfigAttrs() waBinary.Attrs