Versions in this module Expand all Collapse all v1 v1.0.0 Oct 1, 2024 Changes in this version + const BroadcastServer + const DefaultUserServer + const GroupServer + const HiddenUserServer + const HostedServer + const InteropServer + const LegacyUserServer + const MessengerServer + const NewsletterServer + var BroadcastServerJID = NewJID("", BroadcastServer) + var EmptyJID = JID + var GroupServerJID = NewJID("", GroupServer) + var MetaAIJID = NewJID("13135550002", DefaultUserServer) + var OfficialBusinessJID = NewJID("16505361212", LegacyUserServer) + var PSAJID = NewJID("0", LegacyUserServer) + var ServerJID = NewJID("", DefaultUserServer) + var StatusBroadcastJID = NewJID("status", BroadcastServer) + type BasicCallMeta struct + CallCreator JID + CallID string + From 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 BusinessHoursConfig struct + CloseTime string + DayOfWeek string + Mode string + OpenTime string + type BusinessMessageLinkTarget struct + IsSigned bool + JID JID + Message string + PushName string + VerifiedLevel string + VerifiedName string + type BusinessProfile struct + Address string + BusinessHours []BusinessHoursConfig + BusinessHoursTimeZone string + Categories []Category + Email string + JID JID + ProfileOptions map[string]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 + 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 + GroupCreated time.Time + JID JID + MemberAddMode GroupMemberAddMode + OwnerJID JID + ParticipantVersionID string + Participants []GroupParticipant + 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 + type GroupParent struct + DefaultMembershipApprovalMode string + IsParent bool + type GroupParticipant struct + AddRequest *GroupParticipantAddRequest + DisplayName string + Error int + IsAdmin bool + IsSuperAdmin bool + JID JID + LID JID + type GroupParticipantAddRequest struct + Code string + Expiration time.Time + type GroupTopic struct + Topic string + TopicDeleted bool + TopicID string + TopicSetAt time.Time + TopicSetBy JID + type GroupUnlinkReason string + const GroupUnlinkReasonDefault + const GroupUnlinkReasonDelete + type IsOnWhatsAppResponse struct + IsIn bool + JID JID + Query 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 interface{}) 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) MarshalText() ([]byte, error) + func (jid JID) SignalAddress() *signalProtocol.SignalAddress + 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 + 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 + BroadcastListOwner JID + Chat JID + IsFromMe bool + IsGroup bool + Sender JID + func (ms *MessageSource) IsIncomingBroadcast() bool + func (ms *MessageSource) SourceString() string + type MsgBotInfo struct + EditSenderTimestampMS time.Time + EditTargetID MessageID + EditType BotEditType + type MsgMetaInfo struct + TargetID MessageID + TargetSender JID + type NewsletterKeyType string + const NewsletterKeyTypeInvite + const NewsletterKeyTypeJID + type NewsletterMessage struct + Message *waProto.Message + MessageServerID MessageServerID + ReactionCounts map[string]int + 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 Presence string + const PresenceAvailable + const PresenceUnavailable + type PrivacySetting string + const PrivacySettingAll + const PrivacySettingContactBlacklist + const PrivacySettingContacts + const PrivacySettingKnown + const PrivacySettingMatchLastSeen + const PrivacySettingNone + const PrivacySettingUndefined + type PrivacySettingType string + const PrivacySettingTypeCallAdd + const PrivacySettingTypeGroupAdd + const PrivacySettingTypeLastSeen + const PrivacySettingTypeOnline + const PrivacySettingTypeProfile + const PrivacySettingTypeReadReceipts + const PrivacySettingTypeStatus + type PrivacySettings struct + CallAdd PrivacySetting + GroupAdd PrivacySetting + LastSeen PrivacySetting + Online PrivacySetting + Profile PrivacySetting + ReadReceipts PrivacySetting + Status PrivacySetting + type ProfilePictureInfo struct + DirectPath string + 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 StatusPrivacy struct + IsDefault bool + List []JID + Type StatusPrivacyType + type StatusPrivacyType string + const StatusPrivacyTypeBlacklist + const StatusPrivacyTypeContacts + const StatusPrivacyTypeWhitelist + type UserInfo struct + Devices []JID + PictureID string + Status string + VerifiedName *VerifiedName + type VerifiedName struct + Certificate *waProto.VerifiedNameCertificate + Details *waProto.VerifiedNameCertificate_Details + type WrappedNewsletterState struct + Type NewsletterState Other modules containing this package github.com/snaril/wsapp/v2