Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 850 Bytes

telegram_notify.md

File metadata and controls

29 lines (23 loc) · 850 Bytes

Plugin Telegram Notify

Telegram plugin for PHP Censor.

Options

  • auth_token [string, required] - API token.
  • recipients [array, required] - Recipients.
  • message [string, optional] - Message.
  • send_log [bool, optional] - Send log.

Add to project

In the PHP Censor Project config section add the Telegram trigger

complete:
    telegram_notify_step:
        plugin: telegram_notify
        auth_token: "<YOUR_BOT_TOKEN_HERE>"
        message:    "[%ICON_BUILD%] [%PROJECT_TITLE%](%PROJECT_LINK%) - [Build #%BUILD_ID%](%BUILD_LINK%) has finished for commit [%SHORT_COMMIT_ID% (%COMMITTER_EMAIL%)](%COMMIT_LINK%) on branch [%BRANCH%](%BRANCH_LINK%)"
        recipients:
            - "<user id>"
            - "-<group id>"
            - "@<channel id>"
        send_log: true