| 1 | <?php |
||
| 21 | class TelegramHandler extends AbstractProcessingHandler { |
||
| 22 | |||
| 23 | private $telegram; |
||
| 24 | |||
| 25 | |||
| 26 | /** |
||
| 27 | * @param String $token Bot Token (Hint: BotFather) |
||
| 28 | * @param Integer $chatId ChatId (Hint: Retrieve via https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getUpdates) |
||
| 29 | * @param Intger $level The minimum logging level at which this handler will be triggered |
||
| 30 | * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not |
||
| 31 | */ |
||
| 32 | public function __construct($token, $chatId, $level = Logger::DEBUG, $bubble = true) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritDoc} |
||
| 41 | */ |
||
| 42 | protected function write(array $record) |
||
| 46 | } |
||
| 47 |