lexasoft/php-censor-telegram-plugin

该软件包已被弃用且不再维护。未建议替代软件包。

PHP Censor 的 Telegram 插件

2.0.1 2018-02-04 16:47 UTC

This package is not auto-updated.

Last update: 2020-03-23 20:10:50 UTC


README

该软件包已被弃用且不再维护。作者建议使用内建的 PHP Censor 插件

SensioLabsInsight

Codacy Badge

PHP-Censor-Telegram-Plugin

PHP Censor 的 Telegram 插件

安装

首先 - composer require lexasoft/php-censor-telegram-plugin

添加到项目

在 PHP Censor 项目配置部分添加 Telegram 触发器

complete:
    telegram:
        api_key: "<YOUR_BOT_TOKEN_HERE>"
        message: "[%ICON_BUILD%] [%PROJECT_TITLE%](%PROJECT_URI%) - [Build #%BUILD%](%BUILD_URI%) has finished for commit [%SHORT_COMMIT% (%COMMIT_EMAIL%)](%COMMIT_URI%) on branch [%BRANCH%](%BRANCH_URI%)"
        recipients:
            - <user id>
            - "-<group id>"
            - "@<channel id>"
        send_log: true