2019-02-17 12:42:28 +08:00
2019-02-17 12:42:28 +08:00
2019-02-17 12:16:37 +08:00
2019-02-17 11:17:02 +08:00
2019-02-17 12:24:49 +08:00
2019-02-16 23:25:42 +08:00
2019-02-17 12:42:28 +08:00

🚀 Telegram for GitHub Actions

GitHub Action for sending a Telegram notification message.

Usage

action "Post message to Telegram" {
  uses = "appleboy/telegram-action@master"
  secrets = [
    "TELEGRAM_TOKEN",
    "TELEGRAM_TO",
  ]
  args = "A new commit has been pushed."
}

Secrets

Geting started with Telegram Bot API.

  • TELEGRAM_TOKEN: Telegram authorization token.
  • TELEGRAM_TO: Unique identifier for this chat.

How to get unique identifier from telegram api:

$ curl https://api.telegram.org/bot<token>/getUpdates

See the result: (get chat id like 65382999)

{
  "ok": true,
  "result": [
    {
      "update_id": 664568113,
      "message": {
        "message_id": 8423,
        "from": {
          "id": 65382999,
          "is_bot": false,
          "first_name": "Bo-Yi",
          "last_name": "Wu (appleboy)",
          "username": "appleboy46",
          "language_code": "en"
        },
        "chat": {
          "id": 65382999,
          "first_name": "Bo-Yi",
          "last_name": "Wu (appleboy)",
          "username": "appleboy46",
          "type": "private"
        },
        "date": 1550333434,
        "text": "?"
      }
    }
  ]
}
S
Description
No description provided
Readme MIT 2.1 MiB
Languages
Dockerfile 60.5%
Shell 39.5%