2026-02-23 03:22:32 +00:00
|
|
|
//go:build !whatsapp_native
|
|
|
|
|
|
2026-02-27 06:35:52 +00:00
|
|
|
package whatsapp
|
2026-02-23 03:22:32 +00:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
|
|
"github.com/sipeed/picoclaw/pkg/bus"
|
2026-02-27 06:35:52 +00:00
|
|
|
"github.com/sipeed/picoclaw/pkg/channels"
|
2026-02-23 03:22:32 +00:00
|
|
|
"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/...
|
2026-02-27 09:35:50 +00:00
|
|
|
func NewWhatsAppNativeChannel(
|
|
|
|
|
cfg config.WhatsAppConfig,
|
|
|
|
|
bus *bus.MessageBus,
|
|
|
|
|
storePath string,
|
|
|
|
|
) (channels.Channel, error) {
|
2026-02-23 03:22:32 +00:00
|
|
|
return nil, fmt.Errorf("whatsapp native not compiled in; build with -tags whatsapp_native")
|
|
|
|
|
}
|