{"id":16198133,"url":"https://github.com/xinthink/webhooks","last_synced_at":"2026-02-22T14:06:57.356Z","repository":{"id":38804736,"uuid":"201162930","full_name":"xinthink/webhooks","owner":"xinthink","description":"Firebase cloud functions as Webhooks","archived":false,"fork":false,"pushed_at":"2022-12-11T01:14:50.000Z","size":991,"stargazers_count":1,"open_issues_count":21,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T20:52:07.200Z","etag":null,"topics":["firebase-cloud-functions","telegram-bot","travis-ci","webhooks"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/xinthink.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":null,"security":null,"support":null}},"created_at":"2019-08-08T02:31:46.000Z","updated_at":"2020-11-13T10:13:15.000Z","dependencies_parsed_at":"2022-09-18T10:31:35.628Z","dependency_job_id":null,"html_url":"https://github.com/xinthink/webhooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinthink%2Fwebhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinthink%2Fwebhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinthink%2Fwebhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinthink%2Fwebhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xinthink","download_url":"https://codeload.github.com/xinthink/webhooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713851,"owners_count":20983781,"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":["firebase-cloud-functions","telegram-bot","travis-ci","webhooks"],"created_at":"2024-10-10T09:11:36.029Z","updated_at":"2025-10-19T05:14:22.459Z","avatar_url":"https://github.com/xinthink.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Firebase cloud functions] as Webhooks\n\n[![Build Status][ci-badge]][ci]\n[![MIT][license-badge]][license]\n\n## Broadcast [Travis CI] results to a [Telegram] Channel\n\nFirst, get your own [Telegram Bot] token.\n\nCreate file *functions/src/local.ts*, with content:\n  ```js\n  export const BOT = {\n    token: '\u003ctelegram-bot-token\u003e',\n    apiPrefix: 'https://api.telegram.org/bot\u003ctelegram-bot-token\u003e',\n    chatId: '\u003ctelegram-chat-id\u003e',\n  };\n  ```\n\nThe `chatId` can be a Telegram Channel or a Group, you can find it easily through [Telegram Web].\n\n  - **Channel**: find this in the browser address bar: `im?p=c\u003cchannel-id\u003e_xxx`, `chatId` for this channel will be `-100\u003cchannel-id\u003e`\n  - Likewise, for **Group** `im?p=g\u003cgroup-id\u003e`, the `chatId` will be `-\u003cgroup-id\u003e`\n\nFinally, don't forget to add your bot to the Channel or Group!\n\n## Deployment\n\n- Run `firebase init`\n- or create *.firebaserc* manually\n  ```json\n  {\n    \"projects\": {\n      \"default\": \"\u003cfirebase-project-id\u003e\"\n    }\n  }\n  ```\n- run `(cd functions \u0026\u0026 yarn deploy)`\n\n[Firebase Cloud Functions]: https://firebase.google.com/docs/functions\n[Telegram]: https://telegram.org/\n[Telegram Bot]: https://core.telegram.org/bots\n[Telegram Web]: https://web.telegram.org\n[license-badge]: https://img.shields.io/dub/l/vibe-d.svg\n[license]: https://raw.githubusercontent.com/xinthink/webhooks/master/LICENSE\n[ci-badge]: https://travis-ci.org/xinthink/webhooks.svg?branch=master\n[ci]: https://travis-ci.org/xinthink/webhooks\n[Travis CI]: https://travis-ci.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinthink%2Fwebhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxinthink%2Fwebhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinthink%2Fwebhooks/lists"}