Skip to content

Commit

Permalink
wth.
Browse files Browse the repository at this point in the history
  • Loading branch information
Saifallak committed Jul 25, 2024
1 parent ba2dfea commit f4ac9e2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Cloudwa.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,10 @@ public function sendOTP(): array|Collection
->timeout(5)
->throw()
->post("https://cloudwa.net/api/v3/$team/otps", [
'session_uuid' => $this->sessionUuid ?? config('cloudwa.uuids.default'),
'phone' => $phone,
'message' => $this->message ?? null,
'schedule_at' => $this->scheduleAt,
'type' => filled($this->file) ? 'IMAGE' : 'TEXT',
'image' => $this->file ?? null,
'code' => $this->message,
'expires_at' => $this->scheduleAt->addMinutes(10),
'reference_number' => $this->reference,
]);

return self::generateWaCallback(
Expand Down

0 comments on commit f4ac9e2

Please sign in to comment.