wa

package
v0.0.0-...-2ed53ce Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("wa", fx.Provide(NewEvent))

Functions

func RegisterHandlers

func RegisterHandlers(log *gofx.Logger, e *Event) whatsapp.EventHandler

Types

type Event

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

func NewEvent

func NewEvent(log *gofx.Logger) *Event

func (*Event) OnAppState

func (e *Event) OnAppState(v *events.AppState)

func (*Event) OnAppSyncComplete

func (e *Event) OnAppSyncComplete(v *events.AppStateSyncComplete, cli *whatsmeow.Client, sessionID string)

func (*Event) OnConnected

func (e *Event) OnConnected(cli *whatsmeow.Client, sessionID string)

func (*Event) OnDelete

func (e *Event) OnDelete(v *events.DeleteForMe)

func (*Event) OnHistorySync

func (e *Event) OnHistorySync(v *events.HistorySync)

func (*Event) OnLoggedOut

func (e *Event) OnLoggedOut(v *events.LoggedOut)

func (*Event) OnMessage

func (e *Event) OnMessage(v *events.Message)

func (*Event) OnPairSuccess

func (e *Event) OnPairSuccess(v *events.PairSuccess)

func (*Event) OnPresence

func (e *Event) OnPresence(v *events.Presence)

func (*Event) OnReceipt

func (e *Event) OnReceipt(v *events.Receipt)

func (*Event) OnReplaced

func (e *Event) OnReplaced(v *events.StreamReplaced)

Jump to

Keyboard shortcuts

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