telegram icon indicating copy to clipboard operation
telegram copied to clipboard

How do I catch a 400 error exception?

Open liggth opened this issue 1 year ago • 0 comments

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(); }

liggth avatar Jul 22 '24 08:07 liggth