handler

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(handlers map[string]any, bot *whatsapp.Bot)

Types

type DebugAttributes added in v1.1.0

type DebugAttributes struct {
	Enabled bool     `mapstructure:"enabled"`
	JIDs    []string `mapstructure:"jids"`
}

type DebugHandler added in v1.1.0

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

func NewDebugHandler added in v1.1.0

func NewDebugHandler(cli *whatsmeow.Client, attrs DebugAttributes) *DebugHandler

func (*DebugHandler) EventHandler added in v1.1.0

func (h *DebugHandler) EventHandler() func(any)

type MediaDownloadAttributes

type MediaDownloadAttributes struct {
	Enabled bool     `mapstructure:"enabled"`
	JIDs    []string `mapstructure:"jids"`
	Storage struct {
		Service map[string]any `mapstructure:"service"`
	} `mapstructure:"storage"`
}

type MediaDownloadHandler

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

func (*MediaDownloadHandler) EventHandler

func (h *MediaDownloadHandler) EventHandler() func(any)

Jump to

Keyboard shortcuts

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