Files
picoclaw/pkg/channels/whatsapp_native/whatsapp_native_stub.go
T
Cytown 667fc85d54 refactor(config): make config.Channel to multiple instance support
add new field type to Channel struct
config.channels refactor to channel_list
update config version to 3
update the docs
2026-04-13 22:21:21 +08:00

29 lines
662 B
Go

//go:build !whatsapp_native
package whatsapp
import (
"fmt"
"github.com/sipeed/picoclaw/pkg/bus"
"github.com/sipeed/picoclaw/pkg/channels"
"github.com/sipeed/picoclaw/pkg/config"
)
// NewWhatsAppNativeChannel returns an error when the binary was not built with -tags whatsapp_native.
// Build with: go build -tags whatsapp_native ./cmd/...
func NewWhatsAppNativeChannel(
bc *config.Channel,
name string,
cfg *config.WhatsAppSettings,
bus *bus.MessageBus,
storePath string,
) (channels.Channel, error) {
_ = bc
_ = name
_ = cfg
_ = bus
_ = storePath
return nil, fmt.Errorf("whatsapp native not compiled in; build with -tags whatsapp_native")
}