devskyfly/yii-extension-telegram-target

v1.0.1 2021-11-25 08:22 UTC

This package is auto-updated.

Last update: 2024-04-25 13:30:27 UTC


README

Realize telegram chat as log target.

Config targets.

'components' = [
    'log' => [
        'targets' => [
        [
            'class' => 'devskyfly\yiiExtensionTelegramTarget\TelegramTarget',
            'chatId' => "",
            'botToken' => "BOT:TOKEN",
            'botUserName' => 'BOTNAME',
            'levels' => ['error', 'warning'],
            'categories' => ['yii\db\*'],
            'except' => [
                    'yii\web\*',
            ],
        ],
        ...
    ]
]

Bot config and group create