)
const (
- // whatsappSendTime is the longest time of a send.
- whatsappSendTime = 30 * time.Second
+ // whatsappSendTimeout is the longest time of a send.
+ whatsappSendTimeout = 30 * time.Second
// whatsappSendBytes is the most bytes of the text of a send.
whatsappSendBytes = 65536
return "", err
}
- sendCtx, cancel := context.WithTimeout(ctx, whatsappSendTime)
+ sendCtx, cancel := context.WithTimeout(ctx, whatsappSendTimeout)
defer cancel()
response, err := link.client.SendMessage(sendCtx, jid, &waE2E.Message{