client

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func GetClient

func GetClient() (*Client, error)

func NewClientForRegistration

func NewClientForRegistration() (*Client, error)

func (*Client) AddEventHandler

func (c *Client) AddEventHandler(handler whatsmeow.EventHandler)

func (*Client) DataDir

func (c *Client) DataDir() string

func (*Client) Disconnect

func (c *Client) Disconnect()

func (*Client) Download

func (c *Client) Download(msg whatsmeow.DownloadableMessage) ([]byte, error)

func (*Client) GetAllContacts

func (c *Client) GetAllContacts() (map[types.JID]types.ContactInfo, error)

func (*Client) GetJoinedGroups

func (c *Client) GetJoinedGroups() ([]*types.GroupInfo, error)

func (*Client) HandlerDataPath

func (c *Client) HandlerDataPath(name string) string

func (*Client) Register

func (c *Client) Register() error

func (*Client) ResolveRecipient

func (c *Client) ResolveRecipient(recipient string, isGroup bool) (types.JID, error)

func (*Client) SendAudio added in v0.6.0

func (c *Client) SendAudio(recipientJID types.JID, audioPath string) error

func (*Client) SendFile

func (c *Client) SendFile(recipientJID types.JID, filePath string) error

func (*Client) SendImage

func (c *Client) SendImage(recipientJID types.JID, imagePath string) error

func (*Client) SendText

func (c *Client) SendText(recipientJID types.JID, message string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL