whatsapp

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WhatsAppClient = make(map[string]*whatsmeow.Client)
View Source
var (
	WhatsAppClientProxyURL string
)
View Source
var WhatsAppDatastore *sqlstore.Container

Functions

func WhatsAppCheckJID added in v1.7.1

func WhatsAppCheckJID(jid string, id string) (types.JID, error)

func WhatsAppCheckRegistered added in v1.7.1

func WhatsAppCheckRegistered(jid string, id string) error

func WhatsAppComposeJID

func WhatsAppComposeJID(id string) types.JID

func WhatsAppComposeStatus

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

func WhatsAppDecomposeJID

func WhatsAppDecomposeJID(id string) string

func WhatsAppGenerateQR

func WhatsAppGenerateQR(qrChan <-chan whatsmeow.QRChannelItem) (string, int)

func WhatsAppGetJID

func WhatsAppGetJID(jid string, id string) types.JID

func WhatsAppGetUserAgent added in v1.5.1

func WhatsAppGetUserAgent(agentType string) waproto.DeviceProps_PlatformType

func WhatsAppGetUserOS added in v1.6.3

func WhatsAppGetUserOS() string

func WhatsAppGroupGet added in v1.7.0

func WhatsAppGroupGet(jid string) ([]types.GroupInfo, error)

func WhatsAppGroupJoin added in v1.7.0

func WhatsAppGroupJoin(jid string, link string) (string, error)

func WhatsAppGroupLeave added in v1.7.0

func WhatsAppGroupLeave(jid string, gjid string) error

func WhatsAppInitClient

func WhatsAppInitClient(device *store.Device, jid string)

func WhatsAppIsClientOK

func WhatsAppIsClientOK(jid string) error

func WhatsAppLogin

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

func WhatsAppLoginPair added in v1.6.0

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

func WhatsAppLogout

func WhatsAppLogout(jid string) error

func WhatsAppMessageDelete added in v1.7.0

func WhatsAppMessageDelete(ctx context.Context, jid string, rjid string, msgid string) error

func WhatsAppMessageEdit added in v1.7.1

func WhatsAppMessageEdit(ctx context.Context, jid string, rjid string, msgid string, message string) (string, error)

func WhatsAppMessageReact added in v1.7.2

func WhatsAppMessageReact(ctx context.Context, jid string, rjid string, msgid string, emoji string) (string, error)

func WhatsAppPresence added in v1.6.5

func WhatsAppPresence(jid string, isAvailable bool)

func WhatsAppReconnect

func WhatsAppReconnect(jid string) error

func WhatsAppSendAudio

func WhatsAppSendAudio(ctx context.Context, jid string, rjid string, audioBytes []byte, audioType string) (string, error)

func WhatsAppSendContact

func WhatsAppSendContact(ctx context.Context, jid string, rjid string, contactName string, contactNumber string) (string, error)

func WhatsAppSendDocument

func WhatsAppSendDocument(ctx context.Context, jid string, rjid string, fileBytes []byte, fileType string, fileName string) (string, error)

func WhatsAppSendImage

func WhatsAppSendImage(ctx context.Context, jid string, rjid string, imageBytes []byte, imageType string, imageCaption string, isViewOnce bool) (string, error)
func WhatsAppSendLink(ctx context.Context, jid string, rjid string, linkCaption string, linkURL string) (string, error)

func WhatsAppSendLocation

func WhatsAppSendLocation(ctx context.Context, jid string, rjid string, latitude float64, longitude float64) (string, error)

func WhatsAppSendPoll added in v1.7.1

func WhatsAppSendPoll(ctx context.Context, jid string, rjid string, question string, options []string, isMultiAnswer bool) (string, error)

func WhatsAppSendSticker

func WhatsAppSendSticker(ctx context.Context, jid string, rjid string, stickerBytes []byte) (string, error)

func WhatsAppSendText

func WhatsAppSendText(ctx context.Context, jid string, rjid string, message string) (string, error)

func WhatsAppSendVideo

func WhatsAppSendVideo(ctx context.Context, jid string, rjid string, videoBytes []byte, videoType string, videoCaption string, isViewOnce bool) (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