{"repo":"grkamil/laravel-telegram-logging","free":true,"listed":false,"github":"https://github.com/grkamil/laravel-telegram-logging","clone":"git clone https://github.com/grkamil/laravel-telegram-logging.git","description":"Send logs to Telegram chat via Telegram bot","language":"PHP","stars":162,"topics":["laravel","l5-repository","logging","logger","telegram","telegram-bot","php"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Laravel Telegram logger Send logs to Telegram chat via Telegram bot Install Define Telegram Bot Token and chat id (users telegram id) and set as environment parameters. Add to .env Add to config/logging.php file new channel: If your default log channel is a stack, you can add it to the stack channel like this Or you can simply change the default log channel in the .env Publish config file and views Telegram Logging Formats You can choose among two different formats that you can specify in the .env file like this : It is possible to create other blade templates and reference them in the TELEGRAM LOGGER TEMPLATE entry Create bot For using this package you need to create Telegram bot 1. Go to @BotFather in the Telegram 2. Send /newbot 3. Set up name and bot-name for your bot. 4. Get token and add it to your .env file (it is written above) 5. Go to your bot and send /start message Change log template at runtime 1. Change config for template. 2. Use Log as usual. Configuring a different chat id or token per channel 1. Add chat id , token or timeout to channels in config/logging.php . Overrides config('telegram.chat id') . 2. Use Log as usual. Lumen support To make it work with Lumen, you need also run two steps: 1. Place config/telegram-logger.php file with following code: 2. Uncomment and configure the file at bootstrap/app.php 3. Place default Laravel/Lumen logging file to config/logging.php (to add new channel). Proxy support To use a proxy server, set the variable in the .env ","default_branch":null,"files":null,"tree":[],"storefront":"/r/grkamil","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/grkamil/laravel-telegram-logging/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}