whatsapp

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageCallback added in v1.1.0

type MessageCallback func(senderName string, senderId types.JID, chatId types.JID, content string, timestamp time.Time)

type WhatsAppClient

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

func NewClient

func NewClient() WhatsAppClient

func (*WhatsAppClient) PrintGroupList

func (w *WhatsAppClient) PrintGroupList() error

func (*WhatsAppClient) RegisterDevice

func (w *WhatsAppClient) RegisterDevice() error

func (*WhatsAppClient) SendMessage added in v1.1.0

func (w *WhatsAppClient) SendMessage(message string, groupId types.JID) error

func (*WhatsAppClient) SetMessageCallback added in v1.1.0

func (w *WhatsAppClient) SetMessageCallback(callback MessageCallback)

func (*WhatsAppClient) StartBot added in v1.1.0

func (w *WhatsAppClient) StartBot() error

Jump to

Keyboard shortcuts

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