whatsapp

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WhatsAppClientProxyURL string
	WhatsAppOAIGPTTag      string
)
View Source
var WhatsAppClient *whatsmeow.Client
View Source
var WhatsAppDatastore *sqlstore.Container
View Source
var WhatsAppOAIGPTRegex *regexp.Regexp

Functions

func WhatsAppComposeStatus

func WhatsAppComposeStatus(rjid types.JID, isComposing bool, isAudio bool)

func WhatsAppGetUserAgent added in v1.4.1

func WhatsAppGetUserAgent(agentType string) waproto.DeviceProps_PlatformType

func WhatsAppGetUserOS added in v1.5.0

func WhatsAppGetUserOS() string

func WhatsAppHandler

func WhatsAppHandler(event interface{})

func WhatsAppInitClient

func WhatsAppInitClient(device *store.Device)

func WhatsAppLogin

func WhatsAppLogin(jid string) (string, int, error)

func WhatsAppLogout

func WhatsAppLogout() error

func WhatsAppPresence added in v1.5.1

func WhatsAppPresence(isAvailable bool)

func WhatsAppReconnect

func WhatsAppReconnect() error

func WhatsAppSendGPTResponse added in v1.1.1

func WhatsAppSendGPTResponse(ctx context.Context, event *events.Message, response string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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