/**
* Get the notification's delivery channels.
*
* @return array<int, string>
*/
public function via(object $notifiable): array
{
return ['mail', 'zapmizer'];
}
/**
* Get the WhatsApp representation of the notification.
*/
public function toZapmizer(object $notifiable)
{
$message = 'This is a message!' . PHP_EOL;
//WID must follow the WhatsApp pattern, example: 558181643260; [email protected][email protected](groups)
return ZapmizerMessage::create(from: config('zapmizer.from_number'), to: $notifiable->wid)->type('chat')->text($message)->send();
}