{"id":15692297,"url":"https://github.com/cbrgm/telegram-github-action","last_synced_at":"2026-02-01T14:02:14.091Z","repository":{"id":212366590,"uuid":"731269173","full_name":"cbrgm/telegram-github-action","owner":"cbrgm","description":"Send (text) messages to a Telegram chat from GitHub Actions","archived":false,"fork":false,"pushed_at":"2026-01-19T18:24:27.000Z","size":155,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-20T00:47:17.033Z","etag":null,"topics":["action","gihub-actions","github","go","message","telegram"],"latest_commit_sha":null,"homepage":"https://cbrgm.net","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbrgm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"ko_fi":"chrisbargmann"}},"created_at":"2023-12-13T17:47:09.000Z","updated_at":"2026-01-19T18:24:31.000Z","dependencies_parsed_at":"2023-12-17T02:25:37.393Z","dependency_job_id":"6133f895-f653-4f66-96b6-9686f84e2eb2","html_url":"https://github.com/cbrgm/telegram-github-action","commit_stats":{"total_commits":64,"total_committers":3,"mean_commits":"21.333333333333332","dds":0.609375,"last_synced_commit":"aa62f721f665e799a2f11f575c3e63d0592f4d67"},"previous_names":["cbrgm/telegram-github-action"],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/cbrgm/telegram-github-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Ftelegram-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Ftelegram-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Ftelegram-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Ftelegram-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbrgm","download_url":"https://codeload.github.com/cbrgm/telegram-github-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Ftelegram-github-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28980159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T13:38:33.235Z","status":"ssl_error","status_checked_at":"2026-02-01T13:38:32.912Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","gihub-actions","github","go","message","telegram"],"created_at":"2024-10-03T18:31:06.296Z","updated_at":"2026-02-01T14:02:14.041Z","avatar_url":"https://github.com/cbrgm.png","language":"Go","readme":"# Telegram GitHub Action\n\n**Send (text) messages to a Telegram chat from GitHub Actions.**\n\n[![GitHub release](https://img.shields.io/github/release/cbrgm/telegram-github-action.svg)](https://github.com/cbrgm/telegram-github-action)\n[![Go Report Card](https://goreportcard.com/badge/github.com/cbrgm/telegram-github-action)](https://goreportcard.com/report/github.com/cbrgm/telegram-github-action)\n[![go-lint-test](https://github.com/cbrgm/telegram-github-action/actions/workflows/go-lint-test.yml/badge.svg)](https://github.com/cbrgm/telegram-github-action/actions/workflows/go-lint-test.yml)\n[![go-binaries](https://github.com/cbrgm/telegram-github-action/actions/workflows/go-binaries.yml/badge.svg)](https://github.com/cbrgm/telegram-github-action/actions/workflows/go-binaries.yml)\n[![container](https://github.com/cbrgm/telegram-github-action/actions/workflows/container.yml/badge.svg)](https://github.com/cbrgm/telegram-github-action/actions/workflows/container.yml)\n\n## Inputs\n\n- `token`: **Required** - Telegram bot's authorization token. Use GitHub secrets.\n- `to`: **Required** - Unique identifier or username of the target Telegram chat.\n- `thread-id`: (Optional) Thread identifier in a Telegram supergroup.\n    - The message won’t be sent if `to` isn’t a supergroup and `thread-id` is set.\n- `message`: Optional - Text message to send. If omitted, bot's information is fetched.\n- `parse-mode`: Optional - Mode for parsing text entities (`markdown` or `html`).\n- `disable-web-page-preview`: Optional - Disables link previews.\n- `disable-notification`: Optional - Sends message silently.\n- `protect-content`: Optional - Protects message content from forwarding/saving.\n- `dry-run`: Optional - If set, do not send a real message but print the details instead.\n\n### Workflow Usage\n\n```yaml\nname: Send Telegram Message\n\non: [push]\n\njobs:\n  notify:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Send Telegram Message\n        uses: cbrgm/telegram-github-action@v1\n        with:\n          token: ${{ secrets.TELEGRAM_TOKEN }}\n          to: ${{ secrets.TELEGRAM_CHAT_ID }}\n          message: \"New commit pushed to repository\"\n```\n\n#### Example Workflow: Inline Messages and Variable Templating\n\nThis workflow triggers a Telegram message notification when a new tag is published in the repository.\n\n```yaml\nname: Inline Message Workflow\n\non:\n  push:\n    branches: [main]\n\njobs:\n  send-inline-message:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Send Inline Telegram Message\n        uses: cbrgm/telegram-github-action@v1\n        with:\n          token: ${{ secrets.TELEGRAM_TOKEN }}\n          to: ${{ secrets.TELEGRAM_CHAT_ID }}\n          message: |\n            New commit by ${{ github.actor }}!\n            Commit: ${{ github.event.head_commit.message }}\n            Repository: ${{ github.repository }}\n            View changes: https://github.com/${{ github.repository }}/commit/${{ github.sha }}\n```\n\n### Example Workflow: Notification on New GitHub Release\n\nThis workflow triggers a Telegram message notification when a new release is published in the repository.\n\n```yaml\nname: Release Notification\n\non:\n  release:\n    types: [published]\n\njobs:\n  notify-on-release:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Send Telegram Notification on New Release\n        uses: cbrgm/telegram-github-action@v1\n        with:\n          token: ${{ secrets.TELEGRAM_TOKEN }}\n          to: ${{ secrets.TELEGRAM_CHAT_ID }}\n          message: |\n            🚀 New Release Published!\n            Release Name: ${{ github.event.release.name }}\n            Tag: ${{ github.event.release.tag_name }}\n            Actor: ${{ github.actor }}\n            Repository: ${{ github.repository }}\n            Check it out: ${{ github.event.release.html_url }}j\n\n```\n\n### Creating a Telegram Bot and Obtaining a Token\n\n1. Chat with [BotFather](https://t.me/botfather) on Telegram.\n2. Follow prompts to name your bot and get a token.\n3. Store the token as a GitHub secret (`TELEGRAM_TOKEN`).\n\n### Obtaining the Chat ID\nRun the following command:\n```bash\ncurl https://api.telegram.org/bot\u003ctoken\u003e/getUpdates\n```\nReplace \u003ctoken\u003e with your bot's token to find your `chat_id` (`TELEGRAM_CHAT_ID`).\n\n\n### Obtaining the Thread ID\nThe easiest way to get the thread ID is as follows: Post a message in that thread, then right-click it and choose Copy Message Link. Paste it onto a scratchpad and you will notice that it has the following structure https://t.me/c/XXXXXXXXXX/YY/ZZ . The thread ID is YY (integer).\n### Local Development\n\nYou can build this action from source using `Go`:\n\n```bash\nmake build\n```\n\n## Contributing \u0026 License\n\n* **Contributions Welcome!**: Interested in improving or adding features? Check our [Contributing Guide](https://github.com/cbrgm/telegram-github-action/blob/main/CONTRIBUTING.md) for instructions on submitting changes and setting up development environment.\n* **Open-Source \u0026 Free**: Developed in my spare time, available for free under [Apache 2.0 License](https://github.com/cbrgm/telegram-github-action/blob/main/LICENSE). License details your rights and obligations.\n* **Your Involvement Matters**: Code contributions, suggestions, feedback crucial for improvement and success. Let's maintain it as a useful resource for all 🌍.\n","funding_links":["https://ko-fi.com/chrisbargmann"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrgm%2Ftelegram-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbrgm%2Ftelegram-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrgm%2Ftelegram-github-action/lists"}