{"id":26356781,"url":"https://github.com/au5ton/serverless-bot","last_synced_at":"2026-05-17T20:11:59.417Z","repository":{"id":38781263,"uuid":"242457086","full_name":"au5ton/serverless-bot","owner":"au5ton","description":"🛰 [indev] Serverless Telegram bot template code for use with Firebase Cloud Functions","archived":false,"fork":false,"pushed_at":"2023-01-09T21:56:14.000Z","size":353,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T13:36:29.982Z","etag":null,"topics":["firebase","serverless","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/au5ton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-23T04:38:17.000Z","updated_at":"2022-01-24T06:23:31.000Z","dependencies_parsed_at":"2023-02-08T14:20:24.100Z","dependency_job_id":null,"html_url":"https://github.com/au5ton/serverless-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":"au5ton/serverless-api","purl":"pkg:github/au5ton/serverless-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/au5ton%2Fserverless-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/au5ton%2Fserverless-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/au5ton%2Fserverless-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/au5ton%2Fserverless-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/au5ton","download_url":"https://codeload.github.com/au5ton/serverless-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/au5ton%2Fserverless-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33153666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["firebase","serverless","telegram-bot"],"created_at":"2025-03-16T13:32:01.575Z","updated_at":"2026-05-17T20:11:59.397Z","avatar_url":"https://github.com/au5ton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"serverless-bot\n==============\n\nServerless Telegram bot template code for use with Firebase Cloud Functions\n\n## Demo\nhttps://telegram.me/serverless_tgbot_example_bot\n\n## Features\n\n- Automatically initializes [`functions.config()`](https://firebase.google.com/docs/functions/config-env) from a local `config.json` file. Includes module that provides the local copy if running inside `firebase serve --only functions`.\n- Organized Express.js stack\n- Convenient `postdeploy` and `predeploy` actions.\n- Code generation with [hygen](https://github.com/jondot/hygen) (Try: `npx hygen route new \u003cname\u003e`)\n- OpenAPI integration with [swagger-jsdoc](https://github.com/Surnet/swagger-jsdoc). (See: [Sample](functions/src/lib/languages/route.js))\n\n## Setup\n\n- [Setup the Firebase CLI](https://firebase.google.com/docs/cli)\n- [Generate your own repository from this template](https://github.com/au5ton/serverless-bot/generate)\n- Clone your repo\n\n    `git clone \u003cYOUR REPOSITORY\u003e`\n\n- Install dependencies (this will generate a `config.json` file)\n\n    `cd functions \u0026\u0026 npm install`\n\n- Edit `.firebaserc` to represent your Firebase project information.\n\n- Edit `config.json` to set your information. This information is automatically set as [firebase environment](https://firebase.google.com/docs/functions/config-env) configurations in [functions/scripts/predeploy.js](functions/scripts/predeploy.js):\n\n    ```json\n    {\n        \"telegram\": {\n            \"bot_token\": \"77777777:Alskdjaslkdjasl-kjLKjlkasddd\",\n            \"webhook_secret\": \"mysecretendpoint\"\n        },\n        \"gcp\": {\n            \"datacenter\": \"us-central1\",\n            \"project_id\": \"serverless-bot\"\n        }\n    }\n    ```\n- _(Optional) Write your own bot logic code in [functions/src/lib/bot/controller.js](functions/src/lib/bot/controller.js). For testing your environment and deployment, you can leave it as is and test the build-in `/start` command._\n\n    ```javascript\n    // in functions/src/lib/bot/controller.js\n\n    // ...\n    const Telegraf = require('telegraf')\n    const bot = new Telegraf(config.telegram.bot_token, {\n        telegram: { webhookReply: true }\n    })\n\n    bot.command('start', ctx =\u003e {\n        return ctx.reply('Hello from Cloud Function')\n    })\n    // ...\n    ```\n\n- When ready, deploy to Firebase:\n\n    `firebase deploy`\n\n- See if your Telegram bot responds:\n\n    ![demo](img/demo.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fau5ton%2Fserverless-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fau5ton%2Fserverless-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fau5ton%2Fserverless-bot/lists"}