Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I catch a 400 error exception? #197

Open
liggth opened this issue Jul 22, 2024 · 0 comments
Open

How do I catch a 400 error exception? #197

liggth opened this issue Jul 22, 2024 · 0 comments

Comments

@liggth
Copy link

liggth commented Jul 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant