{"id":13988969,"url":"https://github.com/dashezup/github-webhook-to-telegram","last_synced_at":"2025-07-11T15:36:51.915Z","repository":{"id":44740312,"uuid":"359879503","full_name":"dashezup/github-webhook-to-telegram","owner":"dashezup","description":"Receive GitHub webhook events and send to Telegram chats with AIOHTTP through Telegram Bot API","archived":false,"fork":false,"pushed_at":"2022-02-01T10:11:39.000Z","size":31,"stargazers_count":44,"open_issues_count":2,"forks_count":36,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T07:05:29.832Z","etag":null,"topics":["aiohttp","bot","github","telegram","telegram-bot","telegram-bot-api","webhook"],"latest_commit_sha":null,"homepage":"https://t.me/ezupdev","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dashezup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2021-04-20T16:19:09.000Z","updated_at":"2025-04-04T17:06:49.000Z","dependencies_parsed_at":"2022-09-09T08:51:44.710Z","dependency_job_id":null,"html_url":"https://github.com/dashezup/github-webhook-to-telegram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dashezup/github-webhook-to-telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashezup%2Fgithub-webhook-to-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashezup%2Fgithub-webhook-to-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashezup%2Fgithub-webhook-to-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashezup%2Fgithub-webhook-to-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashezup","download_url":"https://codeload.github.com/dashezup/github-webhook-to-telegram/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashezup%2Fgithub-webhook-to-telegram/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264841967,"owners_count":23671907,"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":["aiohttp","bot","github","telegram","telegram-bot","telegram-bot-api","webhook"],"created_at":"2024-08-09T13:01:27.480Z","updated_at":"2025-07-11T15:36:51.865Z","avatar_url":"https://github.com/dashezup.png","language":"Python","readme":"## GitHub Webhook to Telegram\n\nReceive GitHub webhook events and send to Telegram chats\nwith [AIOHTTP](https://github.com/aio-libs/aiohttp)\nthrough [Telegram Bot API](https://core.telegram.org/bots/api#sendmessage)\n\nWhat this project do is very simple, it does not use any Telegram Bot API\nframework/library nor receive updates from Telegram, but calling `sendMessage`\nmethod of Telegram Bot API directly by sending `GET` requests through AIOHTTP.\nIt should be able to be used along with any existing Telegram bot without\nconflicts.\n\n1. Receive GitHub webhooks (`POST` request)\n2. Verify the SHA256 signature\n3. Format and send the text to a Telegram chat through \"sendMessage\" method of\n   Telegram Bot API (`GET` request)\n\n### Heroku\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/dashezup/github-webhook-to-telegram)\n\n### Setup\n\nYou need a Telegram bot token, create a Telegram bot with\n[BotFather](https://t.me/BotFather) if you don't have one yet.\n\n#### Configuration\n\n1. Go to your GitHub project `Settings - Webhooks - Add webhook`, fill \"Payload\n   URL\", \"Content Type\" (must be `application/json`) and \"Secret\". You can also\n   do this after start running the project.\n2. Copy `config_sample.json` to `config.json` to configure it. `chat_id` can be\n   user id or group/channel id/username, make sure the bot is `/start`ed or\n   member of the chat with permission to send messages\n3. Configure reverse proxy for this app, corresponding configuration for Nginx\n   looks like this\n   ```\n   location /github {\n       rewrite ^/github(.*) /$1 break;\n       proxy_pass http://127.0.0.1:12345;\n   }\n   ```\n\n#### Run\n\n```\nvirtualenv venv\nvenv/bin/pip install -U -r requirements.txt\nvenv/bin/python main.py\n```\n\n### LICENSE\n\nAGPL-3.0-or-later\n\n```\n\n    github-webhook-to-telegram, receive GitHub webhooks and send to Telegram\n    Copyright (C) 2021  Dash Eclipse\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Affero General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero General Public License\n    along with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n\n```\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashezup%2Fgithub-webhook-to-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashezup%2Fgithub-webhook-to-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashezup%2Fgithub-webhook-to-telegram/lists"}