devskyfly/yii-extension-telegram-target

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

This package is auto-updated.

Last update: 2022-09-25 10:11:08 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