{"id":22360698,"url":"https://github.com/ghashtag/leela-chakra-bot","last_synced_at":"2025-03-26T14:29:37.431Z","repository":{"id":260029376,"uuid":"877681300","full_name":"gHashTag/leela-chakra-bot","owner":"gHashTag","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-29T05:13:30.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T15:47:14.604Z","etag":null,"topics":[],"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/gHashTag.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T04:03:19.000Z","updated_at":"2024-10-29T05:13:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4dca7fe-4213-4a3e-a966-13f1fbc5f651","html_url":"https://github.com/gHashTag/leela-chakra-bot","commit_stats":null,"previous_names":["ghashtag/leela-chakra-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gHashTag%2Fleela-chakra-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gHashTag%2Fleela-chakra-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gHashTag%2Fleela-chakra-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gHashTag%2Fleela-chakra-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gHashTag","download_url":"https://codeload.github.com/gHashTag/leela-chakra-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245670274,"owners_count":20653328,"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":[],"created_at":"2024-12-04T16:18:12.246Z","updated_at":"2025-03-26T14:29:37.416Z","avatar_url":"https://github.com/gHashTag.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grammY Vercel boilerplate\n\n[grammY](https://grammy.dev/) boilerplate to develop and host telegram bots on [Vercel](https://vercel.com/).\n\n## Features\n\n-   Typescript support\n-   Linting and formatting preconfigured\n-   Development friendly environment with Nodemon\n\n## Development\n\n```bash\n# Copy the .env example and change the BOT_TOKEN to match yours\n$ cp .env.example .env\n# Install the dependencies\n$ npm install\n# Run the development environment\n$ npm run dev\n```\n\n## Deployment\n\n#### Terminal\n\n```bash\n# Install vercel cli if you don't have it yet\n$ npm i -g vercel\n# Deploy the project\n$ vercel --prod\n```\n\n#### Vercel\n\nOn your project's page, go to Settings \u003e Environment Variables and add the following variables:\n\n| Name        | Value            |\n| ----------- | ---------------- |\n| `BOT_TOKEN` | _your bot token_ |\n\n\u003e You can also set the webhook URL manually accessing `https://api.telegram.org/bot\u003cbot_token\u003e/setWebhook?url=\u003cwebhook_url\u003e` on your browser\n\nFinally, you should see a \"Hello, world!\" from the bot when typing `/hello` in chat.\n\n## Using Express instead of Vercel's API\n\nBy default `grammy-vercel-boilerplate` does not use extra dependencies, but in case you want to use Express, first add it as a dependency\n\n```sh\n$ npm install express\n```\n\nAnd then edit the contents of `api/index.ts` to\n\n```js\nrequire(\"../src/index\");\n\nimport express from \"express\";\nimport { webhookCallback } from \"grammy\";\n\nimport bot from \"../src/core/bot\";\n\nconst app = express();\n\napp.use(express.json());\napp.use(`/api/index`, webhookCallback(bot));\n\nexport default app;\n```\n\n## Contributing\n\nPull requests are welcome. If you have any suggestions, you can also create an [issue](https://github.com/neumanf/grammy-vercel-boilerplate/issues).\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghashtag%2Fleela-chakra-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghashtag%2Fleela-chakra-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghashtag%2Fleela-chakra-bot/lists"}