{"id":30531706,"url":"https://github.com/itisuniqueofficial/telegram-storage-bot","last_synced_at":"2025-08-27T09:18:47.094Z","repository":{"id":298713466,"uuid":"1000867765","full_name":"itisuniqueofficial/telegram-storage-bot","owner":"itisuniqueofficial","description":"A simple, self-hosted Telegram Cloud Storage Bot that allows users to upload any file, receive a unique File ID and retrieve it anytime using a deep link. The bot supports all Telegram media types and includes an admin broadcast system.","archived":false,"fork":false,"pushed_at":"2025-08-22T17:39:45.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-22T19:59:31.937Z","etag":null,"topics":["api","bot","python","python-telegram-bot","storage","telegram"],"latest_commit_sha":null,"homepage":"https://t.me/reportcloudstorage_bot","language":"Python","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/itisuniqueofficial.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}},"created_at":"2025-06-12T12:51:25.000Z","updated_at":"2025-08-22T17:39:48.000Z","dependencies_parsed_at":"2025-06-12T14:04:01.605Z","dependency_job_id":null,"html_url":"https://github.com/itisuniqueofficial/telegram-storage-bot","commit_stats":null,"previous_names":["itisuniqueofficial/telegram-storage-bot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/itisuniqueofficial/telegram-storage-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisuniqueofficial%2Ftelegram-storage-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisuniqueofficial%2Ftelegram-storage-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisuniqueofficial%2Ftelegram-storage-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisuniqueofficial%2Ftelegram-storage-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itisuniqueofficial","download_url":"https://codeload.github.com/itisuniqueofficial/telegram-storage-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisuniqueofficial%2Ftelegram-storage-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272313713,"owners_count":24912244,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"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":["api","bot","python","python-telegram-bot","storage","telegram"],"created_at":"2025-08-27T09:18:44.537Z","updated_at":"2025-08-27T09:18:47.079Z","avatar_url":"https://github.com/itisuniqueofficial.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Storage Bot\n\nA simple, self-hosted Telegram Cloud Storage Bot that allows users to upload any file, receive a unique File ID and retrieve it anytime using a deep link. The bot supports all Telegram media types and includes an admin broadcast system.\n\n---\n\n## Features\n\n* 🔐 Private Cloud Storage using Telegram\n* 📁 Supports documents, photos, videos, audio, voice, video notes, and text files.\n* 🆔 Generates unique File IDs and deep links for easy retrieval.\n* 📊 Session-based file statistics.\n* 📣 Admin-only announcement/broadcast system.\n* 📄 User tracking for announcements (`users.txt`).\n* 🧩 Built using Python + python-telegram-bot + pyTelegramBotAPI.\n\n---\n\n## Demo\n\nYou can test the bot live:\n👉 [@reportcloudstorage\\_bot](https://t.me/reportcloudstorage_bot)\n\n---\n\n## Installation\n\n### 1️⃣ Clone Repository\n\n```bash\ngit clone https://github.com/itisuniqueofficial/telegram-storage-bot.git\ncd telegram-storage-bot\n```\n\n### 2️⃣ Install Requirements\n\n```bash\npip install python-telegram-bot==13.15\npip install pyTelegramBotAPI\n```\n\n\u003e ⚠️ You must use `python-telegram-bot` version 13.x as your code is written for v13 API.\n\n### 3️⃣ Update Configuration\n\nEdit `bot.py` and replace:\n\n```python\nBOT_TOKEN = 'TELEGRAM_BOT_TOKEN'\nGROUP_CHAT_ID = TELEGRAM_GROUP_CHAT_ID\nADMIN_ID = TELEGRAM_USER_ID\n```\n\nWith:\n\n* `BOT_TOKEN`: Your bot token from @BotFather.\n* `GROUP_CHAT_ID`: The Telegram Group ID where files will be forwarded and stored.\n* `ADMIN_ID`: Your own Telegram User ID for admin-only features.\n\n### 4️⃣ Run the Bot\n\n```bash\npython bot.py\n```\n\nThe bot will start polling and be ready to use.\n\n---\n\n## Usage\n\n### Upload File\n\n* Send any file to the bot.\n* The bot will save it, generate a unique File ID and reply with a deep link.\n\n### Retrieve File\n\n* Use the deep link:\n\n```\nhttps://t.me/\u003cyour_bot_username\u003e?start=\u003cFileID\u003e\n```\n\n### Commands\n\n* `/start` — Start interaction or retrieve file by deep link.\n* `/help` — Show usage instructions.\n* `/stats` — Show session stats.\n* `/announce` — Admin-only: broadcast message (reply to a message).\n\n---\n\n## Announcement System\n\n* Admin can reply to any message with `/announce`.\n* The bot will send that message to all users listed in `users.txt`.\n* Supports text, photo, video, audio, documents, voice, and video notes.\n\n---\n\n## File Storage Logic\n\n* Files are forwarded and stored inside your specified Telegram group.\n* The File ID is simply a combination of timestamp, user ID, and message ID.\n\n---\n\n## File Structure\n\n```\nusers.txt — All unique user IDs are stored here.\nbot.py — Main bot script.\n```\n\n---\n\n## Security Notice\n\n* The bot doesn’t store actual files locally.\n* Telegram handles the physical file storage inside your group.\n* File ID only maps to Telegram group forwarded message IDs.\n\n---\n\n## Credits\n\n* Developed by **It Is Unique Official**\n* GitHub: [itisuniqueofficial](https://github.com/itisuniqueofficial)\n\n---\n\n## License\n\nThis project is licensed under the [MIT License](https://github.com/itisuniqueofficial/telegram-storage-bot/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitisuniqueofficial%2Ftelegram-storage-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitisuniqueofficial%2Ftelegram-storage-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitisuniqueofficial%2Ftelegram-storage-bot/lists"}