Documentation ¶
Index ¶
- Constants
- func MakeFBMessageID(messageID string) networkid.MessageID
- func MakeFBPortalID(portal int64) networkid.PortalID
- func MakeMessageID(parsed ParsedMessageID) networkid.MessageID
- func MakeMessagePartID(i int) networkid.PartID
- func MakeUserID(user int64) networkid.UserID
- func MakeUserLoginID(user int64) networkid.UserLoginID
- func MakeWAMessageID(chat, sender types.JID, id types.MessageID) networkid.MessageID
- func MakeWAPortalID(jid types.JID) networkid.PortalID
- func MakeWAUserID(jid types.JID) networkid.UserID
- func ParseFBPortalID(portal networkid.PortalID) int64
- func ParseIDFromString(id string) (int64, error)
- func ParseUserID(user networkid.UserID) int64
- func ParseUserLoginID(user networkid.UserLoginID) int64
- func ParseWAPortalID(portal networkid.PortalID, server string) types.JID
- type GhostMetadata
- type MessageMetadata
- type ParsedFBMessageID
- type ParsedMessageID
- type ParsedWAMessageID
- type PortalMetadata
- type PushKeys
- type UserLoginMetadata
Constants ¶
View Source
const ( MessageIDPrefixFB = "fb" MessageIDPrefixWA = "wa" )
Variables ¶
This section is empty.
Functions ¶
func MakeFBMessageID ¶
func MakeFBPortalID ¶
func MakeMessageID ¶
func MakeMessageID(parsed ParsedMessageID) networkid.MessageID
func MakeMessagePartID ¶
func MakeUserID ¶
func MakeUserLoginID ¶
func MakeUserLoginID(user int64) networkid.UserLoginID
func MakeWAMessageID ¶
func ParseFBPortalID ¶
func ParseIDFromString ¶
func ParseUserID ¶
func ParseUserLoginID ¶
func ParseUserLoginID(user networkid.UserLoginID) int64
Types ¶
type GhostMetadata ¶
type GhostMetadata struct {
Username string `json:"username,omitempty"`
}
type MessageMetadata ¶
type MessageMetadata struct {
EditTimestamp int64 `json:"edit_timestamp,omitempty"`
}
type ParsedFBMessageID ¶
type ParsedFBMessageID struct {
ID string
}
func (ParsedFBMessageID) String ¶
func (p ParsedFBMessageID) String() string
type ParsedMessageID ¶
type ParsedMessageID interface { String() string // contains filtered or unexported methods }
func ParseMessageID ¶
func ParseMessageID(messageID networkid.MessageID) ParsedMessageID
type ParsedWAMessageID ¶
func (ParsedWAMessageID) String ¶
func (p ParsedWAMessageID) String() string
type PortalMetadata ¶
type PortalMetadata struct { ThreadType table.ThreadType `json:"thread_type"` WhatsAppServer string `json:"whatsapp_server,omitempty"` FetchAttempted atomic.Bool `json:"-"` }
type UserLoginMetadata ¶
type UserLoginMetadata struct { Platform types.Platform `json:"platform"` Cookies *cookies.Cookies `json:"cookies"` WADeviceID uint16 `json:"wa_device_id,omitempty"` PushKeys *PushKeys `json:"push_keys,omitempty"` }
func (*UserLoginMetadata) GeneratePushKeys ¶ added in v0.4.1
func (m *UserLoginMetadata) GeneratePushKeys()
Click to show internal directories.
Click to hide internal directories.