Versions in this module Expand all Collapse all v0 v0.1.1 Aug 22, 2026 v0.1.0 Jul 26, 2026 Changes in this version + type Address struct + Number string + UUID string + Username string + type AnswerMessage struct + ID int64 + type Attachment struct + Caption string + ContentType string + Filename string + Height int + ID string + Size int64 + UploadTimestamp int64 + Width int + type BlockParams struct + GroupID string + Recipient string + type BusyMessage struct + ID int64 + type CallMessage struct + AnswerMessage *AnswerMessage + BusyMessage *BusyMessage + HangupMessage *HangupMessage + OfferMessage *OfferMessage + type Client struct + func NewClient(baseURL, account string) *Client + func (c *Client) Account() string + func (c *Client) BaseURL() string + func (c *Client) Block(ctx context.Context, params BlockParams) error + func (c *Client) Call(ctx context.Context, method string, params any) (json.RawMessage, error) + func (c *Client) GetProfile(ctx context.Context, recipient string) (*Profile, error) + func (c *Client) ListContacts(ctx context.Context) ([]Contact, error) + func (c *Client) ListGroups(ctx context.Context) ([]Group, error) + func (c *Client) MarkRead(ctx context.Context, recipient string, timestamps []int64) error + func (c *Client) React(ctx context.Context, params ReactParams) error + func (c *Client) Send(ctx context.Context, params SendParams) (*SendResult, error) + func (c *Client) SendTyping(ctx context.Context, params TypingParams) error + func (c *Client) SetExpiration(ctx context.Context, recipient string, seconds int) error + func (c *Client) Unblock(ctx context.Context, params BlockParams) error + func (c *Client) UpdateProfile(ctx context.Context, params UpdateProfileParams) error + func (c *Client) WithHTTPClient(client *http.Client) *Client + type Contact struct + Address Address + Color string + IsBlocked bool + Name string + Number string + UUID string + type Daemon struct + func NewDaemon(cfg DaemonConfig) *Daemon + func (d *Daemon) BaseURL() string + func (d *Daemon) Error() error + func (d *Daemon) IsReachable(ctx context.Context) bool + func (d *Daemon) IsRunning() bool + func (d *Daemon) MemoryUsage(ctx context.Context) (uint64, error) + func (d *Daemon) Restart(ctx context.Context) error + func (d *Daemon) Start(ctx context.Context) error + func (d *Daemon) Stop() error + func (d *Daemon) Wait() error + func (d *Daemon) Watch(ctx context.Context, cfg WatchConfig) error + type DaemonConfig struct + Account string + CLIPath string + HTTPHost string + HTTPPort int + IgnoreAttachments bool + IgnoreStories bool + JavaMaxHeapMB int + ReceiveMode string + SendReadReceipts bool + type DataMessage struct + Attachments []Attachment + ExpiresInSeconds int + GroupInfo *GroupInfo + Mentions []MentionInfo + Message string + Quote *QuoteInfo + Reaction *Reaction + Sticker *Sticker + Timestamp int64 + ViewOnce bool + type Envelope struct + CallMessage *CallMessage + DataMessage *DataMessage + ReceiptMessage *ReceiptMessage + ServerDeliveredAt int64 + ServerReceivedAt int64 + Source string + SourceDevice int + SourceName string + SourceNumber string + SourceUUID string + SyncMessage *SyncMessage + Timestamp int64 + TypingMessage *TypingMessage + type EnvelopeHandler func(Envelope) error + type Group struct + Admins []string + Description string + GroupInviteLink string + ID string + IsBlocked bool + IsMember bool + Members []string + Name string + PendingMembers []string + PermissionAddMember string + PermissionEditDetails string + PermissionSendMessages string + RequestingMembers []string + type GroupInfo struct + GroupID string + Type string + type HangupMessage struct + ID int64 + type Listener struct + func NewListener(client *Client) *Listener + func (l *Listener) Listen(ctx context.Context, handler EnvelopeHandler) error + type Mention struct + Length int + Start int + UUID string + type MentionInfo struct + Length int + Start int + UUID string + type MessageEnvelope struct + Account string + Envelope Envelope + type OfferMessage struct + ID int64 + Type string + type Profile struct + Address Address + ExpiresIn int + IsBlocked bool + Name string + type Quote struct + Author string + Message string + Timestamp int64 + type QuoteInfo struct + Attachments []Attachment + Author string + AuthorUUID string + ID int64 + Text string + type RPCError struct + Code int + Data json.RawMessage + Message string + func (e *RPCError) Error() string + type RPCRequest struct + ID string + JSONRPC string + Method string + Params any + type RPCResponse struct + Error *RPCError + ID string + JSONRPC string + Result json.RawMessage + type ReactParams struct + Emoji string + GroupID string + Recipient string + Remove bool + TargetAuthor string + TargetTimestamp int64 + type Reaction struct + Emoji string + IsRemove bool + TargetAuthor string + TargetAuthorUUID string + TargetTimestamp int64 + type ReadMessage struct + Sender string + Timestamp int64 + type ReceiptMessage struct + Timestamps []int64 + Type string + type RecipientResult struct + NetworkFailure bool + RecipientAddress Address + Type string + UnregisteredFailure bool + type SendParams struct + Attachments []string + GroupID string + Mentions []Mention + Message string + Quote *Quote + Recipient string + Recipients []string + type SendResult struct + Results []RecipientResult + Timestamp int64 + type SentMessage struct + Attachments []Attachment + Destination string + DestinationUUID string + ExpiresInSeconds int + GroupInfo *GroupInfo + Message string + Timestamp int64 + type Sticker struct + PackID string + StickerID int + type SyncMessage struct + ReadMessages []ReadMessage + SentMessage *SentMessage + type TypingMessage struct + Action string + GroupID string + Timestamp int64 + type TypingParams struct + GroupID string + Recipient string + Stop bool + type UpdateProfileParams struct + About string + AboutEmoji string + Avatar string + Name string + type WatchConfig struct + ConsecutiveHits int + Interval time.Duration + MemoryLimit uint64 + OnError func(err error) + OnRestart func(rss uint64)