{"id":13983955,"url":"https://github.com/appleboy/drone-telegram","last_synced_at":"2025-05-15T12:04:19.649Z","repository":{"id":43832054,"uuid":"69949167","full_name":"appleboy/drone-telegram","owner":"appleboy","description":"Drone plugin for sending Telegram notifications","archived":false,"fork":false,"pushed_at":"2024-12-12T00:26:33.000Z","size":2293,"stargazers_count":105,"open_issues_count":17,"forks_count":29,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-02T09:22:58.581Z","etag":null,"topics":["docker","docker-image","drone","drone-plugin","telegram","telegram-api","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appleboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.paypal.me/appleboy46"]}},"created_at":"2016-10-04T09:02:44.000Z","updated_at":"2025-02-21T01:20:49.000Z","dependencies_parsed_at":"2023-11-24T22:32:15.951Z","dependency_job_id":"7b190d14-f079-428d-b371-b783cc2a3011","html_url":"https://github.com/appleboy/drone-telegram","commit_stats":{"total_commits":224,"total_committers":12,"mean_commits":"18.666666666666668","dds":0.0669642857142857,"last_synced_commit":"893f3c30bfcbf2f9780653ef44ac67b74c21022b"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/drone-telegram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252744739,"owners_count":21797676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","docker-image","drone","drone-plugin","telegram","telegram-api","telegram-bot"],"created_at":"2024-08-09T05:02:04.297Z","updated_at":"2025-05-15T12:04:19.586Z","avatar_url":"https://github.com/appleboy.png","language":"Go","readme":"# drone-telegram\n\n![logo](./images/logo.png)\n\n[![GoDoc](https://godoc.org/github.com/appleboy/drone-telegram?status.svg)](https://godoc.org/github.com/appleboy/drone-telegram)\n[![codecov](https://codecov.io/gh/appleboy/drone-telegram/branch/master/graph/badge.svg)](https://codecov.io/gh/appleboy/drone-telegram)\n[![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/drone-telegram)](https://goreportcard.com/report/github.com/appleboy/drone-telegram)\n\n[Drone](https://github.com/drone/drone) plugin for sending telegram notifications. For the usage\ninformation and a listing of the available options please take a look at [the docs](http://plugins.drone.io/appleboy/drone-telegram/).\n\n## Feature\n\n* [x] Send with Text Message. (`markdown` or `html` format)\n* [x] Send with New Photo.\n* [x] Send with New Document.\n* [x] Send with New Audio.\n* [x] Send with New Voice.\n* [x] Send with New Location.\n* [x] Send with New Venue.\n* [x] Send with New Video.\n* [x] Send with New Sticker.\n\n## Build or Download a binary\n\nThe pre-compiled binaries can be downloaded from [release page](https://github.com/appleboy/drone-telegram/releases). Support the following OS type.\n\n* Windows amd64/386\n* Linux arm/amd64/386\n* Darwin amd64/386\n\nWith `Go` installed\n\n```sh\ngo get -u -v github.com/appleboy/drone-telegram\n```\n\nor build the binary with the following command:\n\n```sh\nexport GOOS=linux\nexport GOARCH=amd64\nexport CGO_ENABLED=0\nexport GO111MODULE=on\n\ngo test -cover ./...\n\ngo build -v -a -tags netgo -o release/linux/amd64/drone-telegram .\n```\n\n## Testing\n\nTest the package with the following command:\n\n```sh\nmake test\n```\n\n## Usage\n\nExecute from the working directory:\n\n```sh\ndocker run --rm \\\n  -e PLUGIN_TOKEN=xxxxxxx \\\n  -e PLUGIN_TO=xxxxxxx \\\n  -e PLUGIN_MESSAGE=test \\\n  -e PLUGIN_MESSAGE_FILE=testmessage.md \\  \n  -e PLUGIN_PHOTO=tests/github.png \\\n  -e PLUGIN_DOCUMENT=tests/gophercolor.png \\\n  -e PLUGIN_STICKER=tests/github-logo.png \\\n  -e PLUGIN_AUDIO=tests/audio.mp3 \\\n  -e PLUGIN_VOICE=tests/voice.ogg \\\n  -e PLUGIN_LOCATION=\"24.9163213 121.1424972\" \\\n  -e PLUGIN_VENUE=\"24.9163213 121.1424972 title address\" \\\n  -e PLUGIN_VIDEO=tests/video.mp4 \\\n  -e PLUGIN_DEBUG=true \\\n  -e PLUGIN_ONLY_MATCH_EMAIL=false \\\n  -e PLUGIN_FORMAT=markdown \\\n  -e DRONE_REPO_OWNER=appleboy \\\n  -e DRONE_REPO_NAME=go-hello \\\n  -e DRONE_COMMIT_SHA=e5e82b5eb3737205c25955dcc3dcacc839b7be52 \\\n  -e DRONE_COMMIT_BRANCH=master \\\n  -e DRONE_COMMIT_LINK=https://github.com/appleboy/go-hello/compare/master... \\\n  -e DRONE_COMMIT_AUTHOR=appleboy \\\n  -e DRONE_COMMIT_AUTHOR_EMAIL=appleboy@gmail.com \\\n  -e DRONE_BUILD_NUMBER=1 \\\n  -e DRONE_BUILD_STATUS=success \\\n  -e DRONE_BUILD_LINK=http://github.com/appleboy/go-hello \\\n  -e DRONE_TAG=1.0.0 \\\n  -e DRONE_JOB_STARTED=1477550550 \\\n  -e DRONE_JOB_FINISHED=1477550750 \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  appleboy/drone-telegram\n```\n\nLoad all environments from file.\n\n```bash\ndocker run --rm \\\n  -e PLUGIN_ENV_FILE=your_env_file_path \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  appleboy/drone-telegram\n```\n","funding_links":["https://www.paypal.me/appleboy46"],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdrone-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fdrone-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdrone-telegram/lists"}