KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
TelegramHandler
★ 20
Open GitHub ↗
Handle logs with telegram bot
Download README (.md)
Explore Similar Repositories
examples
:
No description available.
contractmanager
:
ContractManager is a contract management software for the Jameica platform.
Personal-Assistant
:
Household Intelligent Assistant
lvartisan
:
Laravel artisan command for creating view.
THREE.Text
:
THREE.TextMesh for three.js
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
TelegramHandler
?
Download (.md)
# TelegramHandler [](https://insight.sensiolabs.com/projects/82a67d29-9cc3-4300-abf3-3fb99c681b92) [](https://scrutinizer-ci.com/g/ide2/TelegramHandler/?branch=master) [](https://scrutinizer-ci.com/g/ide2/TelegramHandler/build-status/master) Handle logs with telegram bot Simple monolog with telegram ## Installation Install the latest version with ```bash composer require ide2/telegram-handler ``` ## Basic Usage ```php <?php require 'vendor/autoload.php'; use Monolog\Logger; use Monolog\Handler\StreamHandler; use TelegramHandler\TelegramHandler; use TelegramHandler\TelegramFormatter; // create a log channel $token = '123456:abcdefgdkjaskldjas'; $chat_id = 123456789; $log = new Logger('MyTestApplication'); $handler = new TelegramHandler($token, $chat_id, Logger::INFO); $handler->setFormatter(new TelegramFormatter()); $log->pushHandler($handler); $log->addInfo('Lorem ipsum dolor sit.', ['test', 'test test']); $log->addError('Lorem ipsum dolor sit.'); ```