More management tools
Some checks failed
CI / Test (1.22) (push) Failing after -30m28s
CI / Lint (push) Failing after -30m32s
CI / Build (push) Failing after -30m31s
CI / Test (1.23) (push) Failing after -30m31s

This commit is contained in:
2026-03-04 22:30:40 +02:00
parent 4a716bb82d
commit 4b44340c58
25 changed files with 3094 additions and 230 deletions

View File

@@ -19,6 +19,8 @@ import (
"go.mau.fi/whatsmeow/types"
)
const defaultBusinessAPIMediaTimeout = 5 * time.Minute
// Client represents a WhatsApp Business API client
type Client struct {
id string
@@ -61,7 +63,7 @@ func NewClient(cfg config.WhatsAppConfig, eventBus *events.EventBus, mediaConfig
phoneNumber: cfg.PhoneNumber,
config: *cfg.BusinessAPI,
httpClient: &http.Client{
Timeout: 30 * time.Second,
Timeout: defaultBusinessAPIMediaTimeout,
},
eventBus: eventBus,
mediaConfig: mediaConfig,