{"id":24500001,"url":"https://github.com/miliscripts/telegram-upload-center","last_synced_at":"2025-08-23T19:37:47.070Z","repository":{"id":271789927,"uuid":"914573455","full_name":"MiliScripts/telegram-upload-center","owner":"MiliScripts","description":"A serverless file upload and sharing platform built on Cloudflare Workers and Telegram's Bot API. Upload, manage, and share files effortlessly with a modern web interface. Free file storage powered by Telegram!","archived":false,"fork":false,"pushed_at":"2025-01-09T21:50:43.000Z","size":206,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T22:16:30.987Z","etag":null,"topics":["cloudflare-kv","cloudflare-workers","file-management","file-sharing","file-upload","serverless","telegram-api","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/MiliScripts.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-09T21:32:41.000Z","updated_at":"2025-01-16T08:08:06.000Z","dependencies_parsed_at":"2025-01-09T22:38:03.298Z","dependency_job_id":"cb644d19-c8ae-4977-b8ed-b19a731d2544","html_url":"https://github.com/MiliScripts/telegram-upload-center","commit_stats":null,"previous_names":["miliscripts/telegram-upload-center"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiliScripts%2Ftelegram-upload-center","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiliScripts%2Ftelegram-upload-center/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiliScripts%2Ftelegram-upload-center/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiliScripts%2Ftelegram-upload-center/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MiliScripts","download_url":"https://codeload.github.com/MiliScripts/telegram-upload-center/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243696711,"owners_count":20332824,"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":["cloudflare-kv","cloudflare-workers","file-management","file-sharing","file-upload","serverless","telegram-api","telegram-bot"],"created_at":"2025-01-21T22:16:32.687Z","updated_at":"2025-03-15T07:21:18.752Z","avatar_url":"https://github.com/MiliScripts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram File Upload Center\n\nThis project is a **serverless file upload center** built on **Cloudflare Workers** that leverages **Telegram's Bot API** for free file storage and sharing. It allows users to upload files, which are then sent to a Telegram chat via a bot, and provides a user-friendly interface to manage and download the uploaded files. This guide will walk you through setting up the project **directly using the Cloudflare Workers dashboard** (no Wrangler CLI required).\n\n---\n\n## Table of Contents\n1. [Prerequisites](#prerequisites)\n2. [Step 1: Create a Cloudflare Workers Account](#step-1-create-a-cloudflare-workers-account)\n3. [Step 2: Create a Telegram Bot](#step-2-create-a-telegram-bot)\n4. [Step 3: Get Your Telegram Chat ID](#step-3-get-your-telegram-chat-id)\n5. [Step 4: Create a Cloudflare Worker](#step-4-create-a-cloudflare-worker)\n6. [Step 5: Bind a KV Namespace](#step-5-bind-a-kv-namespace)\n7. [Step 6: Deploy and Test](#step-6-deploy-and-test)\n\n---\n\n## Prerequisites\n- A **Cloudflare account**.\n- A **Telegram account**.\n- Basic knowledge of using web interfaces.\n\n---\n\n## Step 1: Create a Cloudflare Workers Account\n1. Go to the [Cloudflare Workers](https://workers.cloudflare.com/) website.\n2. Click on **Sign Up** and create a new account or log in if you already have one.\n3. Once logged in, navigate to the **Workers** section from the dashboard.\n\n---\n\n## Step 2: Create a Telegram Bot\n1. Open Telegram and search for the **BotFather** (Telegram's official bot for creating bots).\n2. Start a chat with BotFather and use the `/newbot` command.\n3. Follow the instructions:\n   - Choose a name for your bot (e.g., `MyUploadBot`).\n   - Choose a username for your bot (must end with `bot`, e.g., `MyUploadBot_bot`).\n4. Once the bot is created, BotFather will provide you with a **bot token**. Save this token securely.\n\n---\n\n## Step 3: Get Your Telegram Chat ID\n1. Start a chat with your newly created bot on Telegram.\n2. Send any message to the bot (e.g., `/start`).\n3. Open the following URL in your browser (replace `YOUR_BOT_TOKEN` with your actual bot token):\n   ```\n   https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates\n   ```\n4. Look for the `chat` object in the JSON response. The `id` field is your **Chat ID**. Save this ID.\n\n---\n\n## Step 4: Create a Cloudflare Worker\n1. In the Cloudflare Workers dashboard, click **Create a Service**.\n2. Name your worker (e.g., `telegram-upload-center`).\n3. Choose the **HTTP handler** template.\n4. Click **Create Service**.\n5. replace the worker content with workers.js\n6. replace with your token and chat id in first few lines \n7 . deploy\n---\n\n## Step 5: Bind a KV Namespace\n1. In your worker's dashboard, go to the **KV** section.\n2. Click **Create a Namespace** and name it (e.g., `UPLOAD_STORE`).\n3. Once created, go back to your worker's **Settings** \u003e **Variables**.\n4. Under **KV Namespace Bindings**, click **Edit Variables**.\n5. Add a new binding:\n   - Variable name: `UPLOAD_STORE`\n   - KV namespace: Select the namespace you just created.\n\n---\n\n\n## Step 6: Deploy and Test\n3. Visit your worker's URL (provided in the dashboard) to access the upload center.\n4. Test the functionality:\n   - Upload a file.\n   - View the list of uploaded files.\n   - Download or delete files.\n\n---\n\n## Screenshots\n### Upload Page: Drag-and-drop file upload interface.\n![Upload Page](./upload.png)\n\n### File List Page: View and manage uploaded files.\n![File List Page](./FILES.jpg)\n---\n\n\n\n**Star the repo if you find it useful! ⭐**  \n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiliscripts%2Ftelegram-upload-center","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiliscripts%2Ftelegram-upload-center","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiliscripts%2Ftelegram-upload-center/lists"}