Telegram notification
\Illuminate\Support\Facades\Notification::route('telegram', \App\Models\User::find(1)->telegram_chat_id)->notify(new TelegramSimpleMessage());
TelegramSimpleMessage:
content("New certificate")
;
}
public function routeNotificationForTelegram()
{
return $this->telegram_user_id;
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}