- What does smart-gamma/symfony-errors-telegram-bot do?
- It is a Symfony bundle that sends application errors and exceptions to a Telegram chat using the Telegram Bot API. It supports configurable log levels and message formatting, making it a lightweight way to receive real-time error alerts. It is installed with Composer like other Symfony bundles.
- How do I install smart-gamma/symfony-errors-telegram-bot with Composer?
- Install it with Composer using composer require smart-gamma/symfony-errors-telegram-bot. Then register the bundle in your Symfony application and add the required Telegram bot token and chat ID configuration. Check the repository README for the exact bundle registration and configuration keys for your Symfony version.
- Does smart-gamma/symfony-errors-telegram-bot work with Laravel?
- No, it is built as a Symfony bundle rather than a native Laravel package. Laravel developers would need deep Symfony integration to use it and would not get the usual Laravel service provider and config publishing experience. For Laravel, a Monolog Telegram handler or a Laravel-specific notification package is usually a better fit.
- How do I configure the Telegram bot token and chat ID?
- You configure the Telegram Bot API credentials in your Symfony bundle configuration, typically including the bot token and the target chat ID. Create a bot with BotFather, add it to the project chat, and use the chat identifier where alerts should be posted. The README should list the exact configuration keys and required values.
- Can I control which error log levels are sent to Telegram?
- Yes, the package supports configurable log levels, so you can decide which severity of errors and exceptions are forwarded to Telegram. This helps avoid alert noise by sending only warnings, errors, critical events, or whatever threshold you choose. Review the configuration options in the README to set the level that fits your project.
- Which Symfony versions are supported by smart-gamma/symfony-errors-telegram-bot?
- The provided context does not list specific supported Symfony versions. Check the package composer.json and README for the exact Symfony framework and PHP version constraints before installing. Composer will also tell you if your application version conflicts with the package requirements.
- How can I test that Telegram error notifications are working?
- Trigger a test exception in a non-production environment or temporarily lower the configured log level so a test error is forwarded. Confirm that the message arrives in the configured Telegram chat and that the bot has permission to post there. Keep the bot token out of version control and use a dedicated test chat where possible.
- Is smart-gamma/symfony-errors-telegram-bot safe to use in production?
- It can be used in production, but error messages may contain stack traces or request details, so review what is sent to Telegram before enabling it broadly. Use a dedicated private chat and restrict who can access the bot. Also consider Telegram rate limits and alert volume so critical errors are not buried in noise.
- Can I customize the Telegram error message formatting?
- Yes, the package advertises configurable message formatting for Telegram alerts. You can adjust how errors and exceptions are presented so the chat message is readable for your team. The exact template options and placeholders depend on the bundle configuration, so check the README for supported settings.
- What are alternatives to sending Symfony errors to Telegram?
- Common alternatives include Sentry, Flare, or a Monolog handler that sends logs to Telegram or another chat service. This package is a good fit when you want a lightweight Telegram-only alerting setup inside Symfony. For full error tracking, grouping, and release context, a dedicated error monitoring service is usually more feature-rich.