{"id":22065253,"url":"https://github.com/jgcarrillo/joserrabot","last_synced_at":"2026-04-04T20:32:53.073Z","repository":{"id":243377570,"uuid":"550833515","full_name":"jgcarrillo/joserrabot","owner":"jgcarrillo","description":"Telegram bot for weather, public transport and reminders.","archived":false,"fork":false,"pushed_at":"2023-06-05T16:27:42.000Z","size":3667,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-07-11T19:40:45.438Z","etag":null,"topics":["axios","grammy","javascript","telegram","telegram-bot","typescript","vercel"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgcarrillo.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":"2022-10-13T12:01:43.000Z","updated_at":"2024-07-01T05:05:53.000Z","dependencies_parsed_at":"2024-06-08T13:26:35.385Z","dependency_job_id":"83f81dc8-8a1c-475d-a082-ba9da29cf20d","html_url":"https://github.com/jgcarrillo/joserrabot","commit_stats":null,"previous_names":["jgcarrillo/joserrabot"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jgcarrillo/joserrabot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgcarrillo%2Fjoserrabot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgcarrillo%2Fjoserrabot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgcarrillo%2Fjoserrabot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgcarrillo%2Fjoserrabot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgcarrillo","download_url":"https://codeload.github.com/jgcarrillo/joserrabot/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgcarrillo%2Fjoserrabot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: 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":["axios","grammy","javascript","telegram","telegram-bot","typescript","vercel"],"created_at":"2024-11-30T19:15:56.345Z","updated_at":"2026-04-04T20:32:53.023Z","avatar_url":"https://github.com/jgcarrillo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](docs/images/banner.jpg)\n\n\u003cdiv align=\"center\"\u003e\n    \u003cb\u003eTelegram bot made with NodeJS, TypeScript and GrammY to create reminders and check the weather\u003c/b\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cbr/\u003e\n    \u003cimg src=\"./docs/images/usage.gif\" /\u003e\n\u003c/div\u003e\n\n## Table of contents 👇\n\n- [✨ Explanation](#-explanation)\n- [🚀 Installation](#-installation)\n- [🎨 Features](#-features)\n- [🚩 Issues](#-issues)\n- [🕸️ Vercel configuration](#-vercel-configuration)\n- [💛 Contact](#-contact)\n\n### ✨ Explanation\n\nIf you want to start to chat with the bot, simply search in Telegram for _@larguebot_ or _@joserrabot_. At the moment, the bot **only support private chats**, so you won't be able to add the bot to a group chat. To change that, go to `BotFather`, select your bot and go to _Bot Settings_ and then _Allow Groups_.\n\n### 🚀 Installation\n\n- `git clone`. Main and develop branches are currently the same.\n- Go to `bot.ts` and uncomment the `bot.start()` line.\n- Comment the code below `bot.start()`.\n- `npm run dev` to run development server (local).\n\n### 🎨 Features\n\n- Weather forecast with [Open Weather Map](https://openweathermap.org/)\n- Database of reminders with [Mongo Atlas Database](https://www.mongodb.com/atlas/database)\n- Conversations with [GrammY Conversations](https://grammy.dev/plugins/conversations.html#simple-example)\n- Internal [session storage](https://grammy.dev/plugins/session.html#sessions-and-storing-data-built-in)\n- User authentication with custom password\n\n### 🚩 Issues\n\n[See this example](https://github.com/grammyjs/examples/tree/main/vercel-bot)\n\n### 🕸️ Vercel Configuration\n\nCreate a `vercel.json` file in your root folder and add the following:\n\n```json\n{\n  \"functions\": {\n    \"api/bot.ts\": {\n      \"memory\": 1024,\n      \"maxDuration\": 10\n    }\n  }\n}\n```\n\nThis line `export default webhookCallback(bot, 'http');` at the end of the `bot.ts` file do the trick!\n\nIn vercel, set the following data:\n\n- Output directory: `build`\n- Install command: `npm install`\n\nSet then the **environment variables**. Later, create the webhook with the following command. **Be sure to use the domain to your application**, I mean, avoid `https://joserrabot-d140bs3z9-jgcarrillo.vercel.app/` with the numbers and create the webhook with `https://joserrabot.vercel.app/`.\n\n- Set the webhook: `https://api.telegram.org/bot{bot-key}/setWebhook?url={host-url}`\n\nIn this case the correct url to create the webhook is `https://joserrabot.vercel.app/api/bot`. Don't forget to add the `/api/bot` at the end of the URL of Vercel.\n\nOther useful commands are:\n\n- Info about webhook: `https://api.telegram.org/bot{bot-key}/getWebhookInfo`\n- Delete webhook: `https://api.telegram.org/bot{bot-key}/deleteWebhook`\n\n### 💛 Contact\n\nIf you have some doubts or need to ask something about the project, feel free to reach me here:\n\n- Twitter: [https://twitter.com/jgcarrillo](https://twitter.com/jgcarrillo_)\n- LinkedIn: [https://es.linkedin.com/in/jgcarrilloweb](https://es.linkedin.com/in/jgcarrilloweb)\n- Website: [https://jgcarrillo.com/](https://jgcarrillo.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgcarrillo%2Fjoserrabot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgcarrillo%2Fjoserrabot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgcarrillo%2Fjoserrabot/lists"}