Documentation
¶
Index ¶
- type 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
- type Contact
- type MessageContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
Api struct
func (*Api) DownloadImageToFile ¶
DownloadImageToFile downloads an image from cache to the Downloads folder
func (*Api) DownloadMedia ¶
func (*Api) FetchContacts ¶
func (*Api) FetchMessagesPaged ¶
func (*Api) GetCachedAvatar ¶
GetCachedAvatar retrieves or downloads and caches an avatar for a JID
func (*Api) GetCachedImages ¶
GetCachedImages retrieves multiple cached images by message IDs (batch operation) Returns map of message IDs to data URLs
func (*Api) GetChatList ¶
func (a *Api) GetChatList() ([]ChatElement, error)
func (*Api) GetCustomCSS ¶
func (*Api) GetCustomJS ¶
func (*Api) GetSettings ¶
func (*Api) OnSecondInstanceLaunch ¶
func (a *Api) OnSecondInstanceLaunch(secondInstanceData options.SecondInstanceData)
func (*Api) Reinitialize ¶
func (*Api) SaveSettings ¶
func (*Api) SendChatPresence ¶
func (a *Api) SendChatPresence(jid string, cp types.ChatPresence, cpm types.ChatPresenceMedia) error
func (*Api) SendMessage ¶
func (a *Api) SendMessage(chatJID string, content MessageContent) (string, error)
func (*Api) SetCustomCSS ¶
func (*Api) SetCustomJS ¶
type ChatElement ¶
Click to show internal directories.
Click to hide internal directories.