17 lines
515 B
Go
17 lines
515 B
Go
|
|
//go:build !whatsapp_native
|
||
|
|
|
||
|
|
package channels
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
|
||
|
|
"github.com/sipeed/picoclaw/pkg/bus"
|
||
|
|
"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(cfg config.WhatsAppConfig, bus *bus.MessageBus, storePath string) (Channel, error) {
|
||
|
|
return nil, fmt.Errorf("whatsapp native not compiled in; build with -tags whatsapp_native")
|
||
|
|
}
|