{"id":50969700,"url":"https://github.com/mithun-ctrl/ai-file-store-bot","last_synced_at":"2026-06-19T00:34:13.673Z","repository":{"id":339435222,"uuid":"1158544320","full_name":"mithun-ctrl/ai-file-store-bot","owner":"mithun-ctrl","description":"FIle store bot with AI","archived":false,"fork":false,"pushed_at":"2026-02-19T17:17:52.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-19T20:42:35.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mithun-ctrl.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-15T14:54:04.000Z","updated_at":"2026-02-19T17:17:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mithun-ctrl/ai-file-store-bot","commit_stats":null,"previous_names":["mithun-ctrl/ai-file-store-bot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mithun-ctrl/ai-file-store-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithun-ctrl%2Fai-file-store-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithun-ctrl%2Fai-file-store-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithun-ctrl%2Fai-file-store-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithun-ctrl%2Fai-file-store-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mithun-ctrl","download_url":"https://codeload.github.com/mithun-ctrl/ai-file-store-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithun-ctrl%2Fai-file-store-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34513020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-19T00:34:12.772Z","updated_at":"2026-06-19T00:34:13.657Z","avatar_url":"https://github.com/mithun-ctrl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# file-link-store-bot\n\nTelegram file indexing bot for private channels.\n\nOfficial bot name: **File Link Store Bot**.\n\nThis bot:\n- Stores files posted in a configured channel.\n- Generates deep links (`/start \u003clinkId\u003e`) to retrieve stored files.\n- Supports user search with pagination (10 result buttons per page).\n- Uses regex-based metadata extraction.\n\n## How it works\n1. You post files in your source Telegram channel.\n2. Bot listens to `channel_post`, stores file info in MongoDB, and creates a `linkId`.\n3. Users search with `/search \u003cquery\u003e`.\n4. Bot returns buttons that open deep links.\n5. Opening deep link sends back original stored file(s).\n\n## Requirements\n- Node.js 20+\n- MongoDB (local or cloud)\n- Telegram bot token from `@BotFather`\n- Bot username (without `@`)\n- Telegram channel ID to index\n\n## Quick start (local)\n\n1. Clone and install:\n\n```bash\ngit clone https://github.com/mithun-ctrl/ai-file-store-bot.git file-link-store-bot\ncd file-link-store-bot\nnpm install\n```\n\n2. Create env file:\n\n```bash\ncp .env.example .env\n```\n\n3. Edit `.env` values.\n\n4. Run:\n\n```bash\nnpm run start\n```\n\nFor development:\n\n```bash\nnpm run dev\n```\n\n## Environment variables\n\n| Variable | Required | Description |\n|---|---|---|\n| `BOT_TOKEN` | Yes | Bot token from `@BotFather` |\n| `BOT_USERNAME` | Yes | Bot username without `@` |\n| `DB_URI` | Yes | MongoDB connection string |\n| `DB_CHANNEL_ID` | Yes | Telegram channel ID to index (example: `-1001234567890`) |\n| `PORT` | No | HTTP port for the express status endpoint (default: `8080`) |\n\n## Telegram setup checklist\n1. Create bot with `@BotFather`.\n2. Add bot to your source channel as admin.\n3. Post a test file in that channel.\n4. Make sure `DB_CHANNEL_ID` matches that channel.\n\nNote: For private channels, if invite link looks like `https://t.me/c/1234567890/5`, use `-1001234567890` as `DB_CHANNEL_ID`.\n\n## Bot commands\n- `/search \u003cquery\u003e`: search stored files and show paginated result buttons (10 per page).\n- `/start \u003clinkId\u003e`: fetch file(s) for a generated deep link.\n\n## Health endpoint\n- Default URL: `http://\u003cserver-ip\u003e:\u003cPORT\u003e/`\n- Returns JSON: `{ \"botSatus\": \"Bot is Running..\" }`\n- Only `/` is exposed.\n\n## Production VPS deployment\nDetailed production steps are documented in:\n\n- `docs/VPS_DEPLOYMENT.md`\n\nIt covers:\n- Ubuntu server setup\n- Node.js + MongoDB preparation\n- systemd service setup\n- logs, restart, and upgrade flow\n- security basics\n\nDocker-based deployment was removed; rely on the process manager guidance above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmithun-ctrl%2Fai-file-store-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmithun-ctrl%2Fai-file-store-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmithun-ctrl%2Fai-file-store-bot/lists"}