telegram
telegram copied to clipboard
How do I catch a 400 error exception?
I got error: Telegram responded with an error `400 - Bad Request: can't parse entities: Can't find end tag corresponding to start tag "i"
I want to catch this error and send it to my email. How do I catch it?
try { $telegramMessage = TelegramMessage::create()->to($notifiable->routes['telegram'])->content($message)->options(['parse_mode' => $this->parseMode]); } catch (\Throwable $e) { exit(); }