Versions in this module Expand all Collapse all v0 v0.0.0 Jan 3, 2026 Changes in this version + type Api struct + func New() *Api + func (a *Api) DownloadImageToFile(messageID string) error + func (a *Api) DownloadMedia(chatJID string, messageID string) (string, error) + func (a *Api) FetchContacts() ([]Contact, error) + func (a *Api) FetchGroups() ([]wa.Group, error) + func (a *Api) FetchMessagesPaged(jid string, limit int, beforeTimestamp int64) ([]store.Message, error) + func (a *Api) GetCachedAvatar(jid string) (string, error) + func (a *Api) GetCachedImage(messageID string) (string, error) + func (a *Api) GetCachedImages(messageIDs []string) (map[string]string, error) + func (a *Api) GetChatList() ([]ChatElement, error) + func (a *Api) GetContact(jid types.JID) (*Contact, error) + func (a *Api) GetCustomCSS() string + func (a *Api) GetCustomJS() string + func (a *Api) GetProfile(jidStr string) (Contact, error) + func (a *Api) GetSettings() map[string]any + func (a *Api) Login() error + func (a *Api) OnSecondInstanceLaunch(secondInstanceData options.SecondInstanceData) + func (a *Api) Reinitialize() error + func (a *Api) SaveSettings(s map[string]any) + func (a *Api) SendChatPresence(jid string, cp types.ChatPresence, cpm types.ChatPresenceMedia) error + func (a *Api) SendMessage(chatJID string, content MessageContent) (string, error) + func (a *Api) SetCustomCSS(css string) error + func (a *Api) SetCustomJS(js string) error + func (a *Api) Startup(ctx context.Context) + type ChatElement struct + LatestMessage string + LatestTS int64 + type Contact struct + AvatarURL string + FullName string + IsBusiness bool + JID string + PushName string + Short string + type MessageContent struct + Base64Data string + QuotedMessageID string + Text string + Type string