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 BotServer + const BroadcastServer + const DefaultUserServer + const GroupServer + const HiddenUserServer + const HostedLIDServer + const HostedServer + const InteropServer + const LegacyUserServer + const MessengerServer + const NewsletterServer + var BotJIDMap = map[JID]JID + var BroadcastServerJID = NewJID("", BroadcastServer) + var EmptyJID = JID + var GroupServerJID = NewJID("", GroupServer) + var HostedDomain = uint8(128) + var HostedLIDDomain = uint8(129) + var LIDDomain = uint8(1) + var LegacyPSAJID = NewJID("0", LegacyUserServer) + var MetaAIJID = NewJID("13135550002", DefaultUserServer) + var NewMetaAIJID = NewJID("867051314767696", BotServer) + var OfficialBusinessJID = NewJID("16505361212", LegacyUserServer) + var PSAJID = NewJID("0", DefaultUserServer) + var ServerJID = NewJID("", DefaultUserServer) + var StatusBroadcastJID = NewJID("status", BroadcastServer) + var WhatsAppDomain = uint8(0) + type AddressingMode string + const AddressingModeLID + const AddressingModePN + type AllowedCredential struct + ID jsonbytes.UnpaddedURLBytes + Transports []string + Type string + type BasicCallMeta struct + CallCreator JID + CallCreatorAlt JID + CallID string + From JID + GroupJID JID + Timestamp time.Time + type Blocklist struct + DHash string + JIDs []JID + type BotEditType string + const EditTypeFirst + const EditTypeInner + const EditTypeLast + type BotListInfo struct + BotJID JID + PersonaID string + type BotProfileCommand struct + Description string + Name string + type BotProfileInfo struct + Attributes string + Category string + Commands []BotProfileCommand + CommandsDescription string + Description string + IsDefault bool + JID JID + Name string + PersonaID string + Prompts []string + type BroadcastRecipient struct + LID JID + PN JID + type BusinessAddress struct + City string + CountryCode string + PostalCode string + Region string + Street1 string + Street2 string + type BusinessCatalogPage struct + Next string + Previous string + Products []BusinessProduct + type BusinessCollection struct + ID string + Name string + Next string + Previous string + Products []BusinessProduct + Status BusinessCollectionStatus + type BusinessCollectionMove struct + CollectionID string + FromIndex int + ToIndex int + type BusinessCollectionMutationResult struct + ID string + ReviewStatus string + type BusinessCollectionPage struct + Collections []BusinessCollection + Next string + type BusinessCollectionStatus struct + CanAppeal bool + CommerceURL string + RejectReason string + Status string + type BusinessCollectionUpdate struct + AddProductIDs []string + Name *string + RemoveProductIDs []string + type BusinessComplianceInfo struct + CountryCodeOrigin string + ImporterAddress *BusinessAddress + ImporterName string + type BusinessDimensions struct + Height int + Width int + type BusinessEligibility struct + Features []BusinessFeatureEligibility + type BusinessFacebookBusiness struct + CatalogID string + CatalogState string + DisplayName string + ID string + type BusinessFacebookPage struct + DisplayName string + HasActiveCTWAAd bool + HasCreatedAd bool + ID string + ProfilePictureURL string + ProfileSync string + ShowOnProfile bool + WhatsAppAsPageButton bool + type BusinessFeature string + const BusinessFeatureBBPro + const BusinessFeatureGenAI + const BusinessFeatureGenAIImage + const BusinessFeatureMarketingMessages + const BusinessFeatureMetaOne + const BusinessFeatureMetaVerified + type BusinessFeatureEligibility struct + AdditionalParams string + Expiration int64 + Feature BusinessFeature + ShowPrivacyInterstitial *bool + Status string + V1Enabled *bool + type BusinessHoursConfig struct + CloseTime string + DayOfWeek string + Mode string + OpenTime string + type BusinessHoursDay struct + CloseTime int + DayOfWeek string + Mode string + OpenTime int + type BusinessHoursUpdate struct + Days []BusinessHoursDay + TimeZone string + type BusinessInstagramProfessional struct + DisplayName string + Handle string + ProfilePictureURL string + ShowOnProfile bool + type BusinessLinkedAccounts struct + FacebookBusiness *BusinessFacebookBusiness + FacebookPage *BusinessFacebookPage + InstagramProfessional *BusinessInstagramProfessional + WhatsAppAdIdentity *BusinessWhatsAppAdIdentity + type BusinessMerchantCompliance struct + CustomerCare BusinessMerchantContact + EntityName string + EntityType BusinessMerchantEntityType + EntityTypeCustom string + GrievanceOfficer BusinessMerchantOfficer + IsRegistered bool + type BusinessMerchantContact struct + Email string + LandlineNumber string + MobileNumber string + type BusinessMerchantEntityType string + const BusinessMerchantEntityLimitedLiabilityPartnership + const BusinessMerchantEntityOther + const BusinessMerchantEntityPartnership + const BusinessMerchantEntityPrivateCompany + const BusinessMerchantEntityPublicCompany + const BusinessMerchantEntitySoleProprietorship + type BusinessMerchantOfficer struct + Email string + LandlineNumber string + MobileNumber string + Name string + type BusinessMessageLinkTarget struct + IsSigned bool + JID JID + Message string + PushName string + VerifiedLevel string + VerifiedName string + type BusinessProduct struct + Availability string + BelongsTo string + Compliance *BusinessComplianceInfo + ComplianceCategory string + Currency string + Description string + Hidden bool + ID string + MaxAvailable int + Media BusinessProductMedia + Name string + Price string + RetailerID string + SalePrice *BusinessSalePrice + Sanctioned bool + ShimmedURL string + Status BusinessProductStatus + URL string + VariantInfo *BusinessProductVariant + type BusinessProductImage struct + ID string + OriginalURL string + RequestURL string + type BusinessProductInput struct + Compliance *BusinessComplianceInfo + ComplianceCategory string + Currency string + Description string + Hidden bool + ImageURLs []string + Name string + Price string + RetailerID string + SalePrice string + URL string + VideoURLs []string + type BusinessProductMedia struct + Images []BusinessProductImage + Videos []BusinessProductVideo + type BusinessProductStatus struct + CanAppeal bool + Status string + type BusinessProductVariant struct + Availability BusinessVariantAvailability + ListingDetails BusinessVariantListing + Types []BusinessVariantType + VariantProperties []BusinessVariantProperty + type BusinessProductVideo struct + ID string + OriginalURL string + ThumbnailURL string + type BusinessProfile struct + Address string + BusinessHours []BusinessHoursConfig + BusinessHoursTimeZone string + Categories []Category + CoverPhotoID string + Description string + Email string + JID JID + ProfileOptions map[string]string + Websites []string + type BusinessProfileUpdate struct + Address *string + Description *string + Email *string + Hours *BusinessHoursUpdate + Websites *[]string + type BusinessSalePrice struct + EndDate string + Price string + StartDate string + type BusinessVariantAvailability struct + Listings []BusinessVariantAvailabilityItem + type BusinessVariantAvailabilityItem struct + Available bool + Options []BusinessVariantProperty + ProductID string + type BusinessVariantListing struct + Description string + LowestPrice string + MultiPrice string + type BusinessVariantOption struct + Thumbnail *BusinessVariantThumbnail + Value string + type BusinessVariantProperty struct + Name string + Value string + type BusinessVariantThumbnail struct + ID string + OriginalDimensions BusinessDimensions + OriginalURL string + RequestURL string + type BusinessVariantType struct + Name string + Options []BusinessVariantOption + type BusinessWhatsAppAdIdentity struct + HasActiveCTWAAd bool + HasCreatedAd bool + ID string + type CallRemoteMeta struct + RemotePlatform string + RemoteVersion string + type Category struct + ID string + Name string + type ChatPresence string + const ChatPresenceComposing + const ChatPresencePaused + type ChatPresenceMedia string + const ChatPresenceMediaAudio + const ChatPresenceMediaText + type ContactInfo struct + BusinessName string + FirstName string + Found bool + FullName string + PushName string + RedactedPhone string + Username string + type ContactQRLinkTarget struct + JID JID + PushName string + Type string + type DeviceSentMeta struct + DestinationJID string + Phash string + type EditAttribute string + const EditAttributeAdminEdit + const EditAttributeAdminRevoke + const EditAttributeEmpty + const EditAttributeMessageEdit + const EditAttributePinInChat + const EditAttributeSenderRevoke + type GraphQLError struct + Extensions GraphQLErrorExtensions + Message string + Path []string + func (gqle GraphQLError) Error() string + type GraphQLErrorExtensions struct + ErrorCode int + IsRetryable bool + Severity string + type GraphQLErrors []GraphQLError + func (gqles GraphQLErrors) Error() string + func (gqles GraphQLErrors) Unwrap() []error + type GraphQLResponse struct + Data json.RawMessage + Errors GraphQLErrors + type GroupAnnounce struct + AnnounceVersionID string + IsAnnounce bool + type GroupDelete struct + DeleteReason string + Deleted bool + type GroupEphemeral struct + DisappearingTimer uint32 + IsEphemeral bool + type GroupIncognito struct + IsIncognito bool + type GroupInfo struct + AddressingMode AddressingMode + CreatorCountryCode string + GroupCreated time.Time + JID JID + MemberAddMode GroupMemberAddMode + OwnerJID JID + OwnerPN JID + ParticipantCount int + ParticipantVersionID string + Participants []GroupParticipant + Suspended bool + type GroupIsDefaultSub struct + IsDefaultSubGroup bool + type GroupLinkChange struct + Group GroupLinkTarget + Type GroupLinkChangeType + UnlinkReason GroupUnlinkReason + type GroupLinkChangeType string + const GroupLinkChangeTypeParent + const GroupLinkChangeTypeSibling + const GroupLinkChangeTypeSub + type GroupLinkTarget struct + JID JID + type GroupLinkedParent struct + LinkedParentJID JID + type GroupLocked struct + IsLocked bool + type GroupMemberAddMode string + const GroupMemberAddModeAdmin + const GroupMemberAddModeAllMember + type GroupMembershipApprovalMode struct + IsJoinApprovalRequired bool + type GroupName struct + Name string + NameSetAt time.Time + NameSetBy JID + NameSetByPN JID + type GroupParent struct + DefaultMembershipApprovalMode string + IsParent bool + type GroupParticipant struct + AddRequest *GroupParticipantAddRequest + DisplayName string + Error int + IsAdmin bool + IsSuperAdmin bool + JID JID + LID JID + PhoneNumber JID + Username string + type GroupParticipantAddRequest struct + Code string + Expiration time.Time + type GroupParticipantRequest struct + JID JID + RequestedAt time.Time + type GroupTopic struct + Topic string + TopicDeleted bool + TopicID string + TopicSetAt time.Time + TopicSetBy JID + TopicSetByPN JID + type GroupUnlinkReason string + const GroupUnlinkReasonDefault + const GroupUnlinkReasonDelete + type IsOnWhatsAppResponse struct + IsIn bool + JID JID + PhoneNumber JID + Query string + Username string + VerifiedName *VerifiedName + type JID struct + Device uint16 + Integrator uint16 + RawAgent uint8 + Server string + User string + func NewADJID(user string, agent, device uint8) JID + func NewJID(user, server string) JID + func ParseJID(jid string) (JID, error) + func (jid *JID) Scan(src any) error + func (jid *JID) UnmarshalText(val []byte) error + func (jid JID) ADString() string + func (jid JID) ActualAgent() uint8 + func (jid JID) IsBot() bool + func (jid JID) IsBroadcastList() bool + func (jid JID) IsEmpty() bool + func (jid JID) IsZero() bool + func (jid JID) MarshalText() ([]byte, error) + func (jid JID) SignalAddress() *signalProtocol.SignalAddress + func (jid JID) SignalAddressUser() string + func (jid JID) String() string + func (jid JID) ToNonAD() JID + func (jid JID) UserInt() uint64 + func (jid JID) Value() (driver.Value, error) + type LocalChatSettings struct + Archived bool + Found bool + MutedUntil time.Time + Pinned bool + type MessageID = string + type MessageInfo struct + Category string + DeviceSentMeta *DeviceSentMeta + Edit EditAttribute + ID MessageID + IsNewsletterStatus bool + MediaType string + MsgBotInfo MsgBotInfo + MsgMetaInfo MsgMetaInfo + Multicast bool + PushName string + ServerID MessageServerID + Timestamp time.Time + Type string + VerifiedName *VerifiedName + type MessageServerID = int + type MessageSource struct + AddressingMode AddressingMode + BroadcastListOwner JID + BroadcastRecipients []BroadcastRecipient + Chat JID + IsFromMe bool + IsGroup bool + RecipientAlt JID + Sender JID + SenderAlt JID + func (ms *MessageSource) IsIncomingBroadcast() bool + func (ms *MessageSource) SourceString() string + type MsgBotInfo struct + EditSenderTimestampMS time.Time + EditTargetID MessageID + EditType BotEditType + type MsgMetaInfo struct + DeprecatedLIDSession *bool + TargetChat JID + TargetID MessageID + TargetSender JID + ThreadMessageID MessageID + ThreadMessageSenderJID JID + type NewsletterKeyType string + const NewsletterKeyTypeInvite + const NewsletterKeyTypeJID + type NewsletterMessage struct + Message *waE2E.Message + MessageID MessageID + MessageServerID MessageServerID + ReactionCounts map[string]int + Timestamp time.Time + Type string + ViewsCount int + type NewsletterMetadata struct + ID JID + State WrappedNewsletterState + ThreadMeta NewsletterThreadMetadata + ViewerMeta *NewsletterViewerMetadata + type NewsletterMuteState string + const NewsletterMuteOff + const NewsletterMuteOn + func (nms *NewsletterMuteState) UnmarshalText(text []byte) error + type NewsletterMuted struct + Muted bool + type NewsletterPrivacy string + const NewsletterPrivacyPrivate + const NewsletterPrivacyPublic + func (np *NewsletterPrivacy) UnmarshalText(text []byte) error + type NewsletterReactionSettings struct + Value NewsletterReactionsMode + type NewsletterReactionsMode string + const NewsletterReactionsModeAll + const NewsletterReactionsModeBasic + const NewsletterReactionsModeBlocklist + const NewsletterReactionsModeNone + type NewsletterRole string + const NewsletterRoleAdmin + const NewsletterRoleGuest + const NewsletterRoleOwner + const NewsletterRoleSubscriber + func (nr *NewsletterRole) UnmarshalText(text []byte) error + type NewsletterSettings struct + ReactionCodes NewsletterReactionSettings + type NewsletterState string + const NewsletterStateActive + const NewsletterStateGeoSuspended + const NewsletterStateSuspended + func (ns *NewsletterState) UnmarshalText(text []byte) error + type NewsletterText struct + ID string + Text string + UpdateTime jsontime.UnixMicroString + type NewsletterThreadMetadata struct + CreationTime jsontime.UnixString + Description NewsletterText + InviteCode string + Name NewsletterText + Picture *ProfilePictureInfo + Preview ProfilePictureInfo + Settings NewsletterSettings + SubscriberCount int + VerificationState NewsletterVerificationState + type NewsletterVerificationState string + const NewsletterVerificationStateUnverified + const NewsletterVerificationStateVerified + func (nvs *NewsletterVerificationState) UnmarshalText(text []byte) error + type NewsletterViewerMetadata struct + Mute NewsletterMuteState + Role NewsletterRole + type OrderDetails struct + CatalogID string + CreatedAt time.Time + ID string + Price OrderPrice + Products []OrderProduct + type OrderPrice struct + Currency string + PriceStatus string + Subtotal int64 + Total int64 + type OrderProduct struct + Currency string + ID string + ImageID string + ImageURL string + Name string + Price int64 + Quantity int + VariantInfo VariantInfo + type Presence string + const PresenceAvailable + const PresenceUnavailable + type PrivacySetting string + const PrivacySettingAll + const PrivacySettingContactAllowlist + const PrivacySettingContactBlacklist + const PrivacySettingContacts + const PrivacySettingKnown + const PrivacySettingMatchLastSeen + const PrivacySettingNone + const PrivacySettingOff + const PrivacySettingOnStandard + const PrivacySettingUndefined + type PrivacySettingType string + const PrivacySettingTypeCallAdd + const PrivacySettingTypeDefense + const PrivacySettingTypeGroupAdd + const PrivacySettingTypeLastSeen + const PrivacySettingTypeMessages + const PrivacySettingTypeOnline + const PrivacySettingTypeProfile + const PrivacySettingTypeReadReceipts + const PrivacySettingTypeStatus + const PrivacySettingTypeStickers + type PrivacySettings struct + CallAdd PrivacySetting + Defense PrivacySetting + GroupAdd PrivacySetting + LastSeen PrivacySetting + Messages PrivacySetting + Online PrivacySetting + Profile PrivacySetting + ReadReceipts PrivacySetting + Status PrivacySetting + Stickers PrivacySetting + type ProfilePictureInfo struct + DirectPath string + Hash []byte + ID string + Type string + URL string + type ReceiptType string + const ReceiptTypeDelivered + const ReceiptTypeHistorySync + const ReceiptTypeInactive + const ReceiptTypePeerMsg + const ReceiptTypePlayed + const ReceiptTypePlayedSelf + const ReceiptTypeRead + const ReceiptTypeReadSelf + const ReceiptTypeRetry + const ReceiptTypeSender + const ReceiptTypeServerError + func (rt ReceiptType) GoString() string + type SetStatusEmoji struct + Content string + type SetStatusInput struct + Duration jsontime.Seconds + Emoji *SetStatusEmoji + Text *string + type StatusPrivacy struct + IsDefault bool + List []JID + Type StatusPrivacyType + type StatusPrivacyType string + const StatusPrivacyTypeBlacklist + const StatusPrivacyTypeContacts + const StatusPrivacyTypeWhitelist + type StickerPack struct + Animated int + Description string + FileSize string + ImageDataHash string + Lottie int + Name string + PreviewImageIDs []string + Publisher string + StickerPackID string + Stickers []*StickerPackItem + TrayImageID string + TrayImagePreview string + type StickerPackItem struct + AccessibilityText string + DirectPath string + Emojis []string + EncFileHash []byte + FileHash []byte + FileSize int64 + Handle string + Height int + MediaKey []byte + MimeType string + PreviewWebpID string + StickerHashWithoutMeta []byte + URL string + Width int + func (spi *StickerPackItem) GetDirectPath() string + func (spi *StickerPackItem) GetFileEncSHA256() []byte + func (spi *StickerPackItem) GetFileSHA256() []byte + func (spi *StickerPackItem) GetFileSizeBytes() int64 + func (spi *StickerPackItem) GetMediaKey() []byte + type UserInfo struct + Devices []JID + LID JID + PictureID string + Status string + Username string + VerifiedName *VerifiedName + type UsernameResolution struct + KeyRequired bool + LID JID + Username string + type VariantInfo struct + Properties string + type VerifiedName struct + ActualActors int + Certificate *waVnameCert.VerifiedNameCertificate + Details *waVnameCert.VerifiedNameCertificate_Details + HostStorage int + PrivacyModeTS time.Time + VerifiedLevel string + Version int + type WebAuthnPublicKey struct + AllowCredentials []AllowedCredential + Challenge jsonbytes.UnpaddedURLBytes + Extensions map[string]any + RelyingPartID string + Timeout int + UserVerification string + type WebAuthnResponse struct + ID string + RawID jsonbytes.UnpaddedURLBytes + Response WebAuthnResponseData + Type string + type WebAuthnResponseData struct + AuthenticatorData jsonbytes.UnpaddedURLBytes + ClientDataJSON jsonbytes.UnpaddedURLBytes + Signature jsonbytes.UnpaddedURLBytes + UserHandle *jsonbytes.UnpaddedURLBytes + type WrappedNewsletterState struct + Type NewsletterState