Download the PHP package smart-gamma/symfony-errors-telegram-bot without Composer
On this page you can find all versions of the php package smart-gamma/symfony-errors-telegram-bot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smart-gamma/symfony-errors-telegram-bot
More information about smart-gamma/symfony-errors-telegram-bot
Files in smart-gamma/symfony-errors-telegram-bot
Package symfony-errors-telegram-bot
Short Description The Telegram bot allows to send notifications about Symfony critical errors to the configured project's chat
License MIT
Informations about the package symfony-errors-telegram-bot
Smart Gamma Telegram bot bundle for Symfony errors project's chat notifications
The Telegram bot allow to send notifications about Symfony critical errors to the configured project chat
1. Install
`
2. Configuration
2.1. Activate the bundle
Symfony version < 4.0
Add to AppKernel.php
`
Symfony with dotenv
add to app/config/service.yaml
`
Define "BASE_URI" at .env or replace it with your env variable that defines base uri of your project.
Symfony without dotenv
add to parameter.yml
`
2.2. Add configuration
Put the file gamma_errors_bot.yaml to vendor/packages folder at app/config
`
3. Creating a bot
Start a conversation with @BotFather.
`
4. Get chat identifier
After the created bot was added to your project's group you should retrieve its chat_id
Make POST request to URL: https://api.telegram.org/bot_token_/getUpdates
Example:
Request
`
Response
`
chat_id is the number "-111111".
- Slack support
In order to have additional channel of notification you can enable Slack with webhook integration
-
add "Incoming WebHooks" app to your Slack and copy webhook url from the settings
- configure
`
All versions of symfony-errors-telegram-bot with dependencies
symfony/swiftmailer-bundle Version ^2.3|^3.0|^4.0
symfony/twig-bundle Version ^2.3|^3.0|^4.0
symfony/console Version ^2.3|^3.0|^4.0
telegram-bot/api Version ^2.3
simonbackx/slack-php-webhook Version ^1.0