{"id":18015441,"url":"https://github.com/hirbodbehnam/filetourl-bot","last_synced_at":"2025-03-26T18:31:13.631Z","repository":{"id":45282954,"uuid":"280805130","full_name":"HirbodBehnam/FileToUrl-Bot","owner":"HirbodBehnam","description":"A Telegram bot to convert files to URL without disk usage","archived":false,"fork":false,"pushed_at":"2021-12-24T11:30:40.000Z","size":9,"stargazers_count":14,"open_issues_count":1,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T06:31:46.284Z","etag":null,"topics":["telegram","telegtam-bot"],"latest_commit_sha":null,"homepage":"","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/HirbodBehnam.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}},"created_at":"2020-07-19T06:17:57.000Z","updated_at":"2025-03-08T02:10:21.000Z","dependencies_parsed_at":"2022-08-22T19:00:40.469Z","dependency_job_id":null,"html_url":"https://github.com/HirbodBehnam/FileToUrl-Bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2FFileToUrl-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2FFileToUrl-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2FFileToUrl-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2FFileToUrl-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HirbodBehnam","download_url":"https://codeload.github.com/HirbodBehnam/FileToUrl-Bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245712617,"owners_count":20660270,"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":["telegram","telegtam-bot"],"created_at":"2024-10-30T04:13:55.766Z","updated_at":"2025-03-26T18:31:13.260Z","avatar_url":"https://github.com/HirbodBehnam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File To Url Bot\nA Telegram bot to convert files to URL without disk usage\n\n## Why this?\n* No disk usage: Only file IDs are saved and files are streamed to client when they request it. Also links are generated as soon as the user gives the file to bot.\n* Easy to use: Just give the URL that bot gives you to the download manager and let it download the file.\n* Private use (optional): The bot only responds to your commands and not anyone else.\n## Why not this?\n* ~~No download resume support: I tried to create resume support but I'm a noob and I couldn't create it.~~ Now the it supports resumes but if you resume the download, it will be super slow because I had to reduce the request size to 4KB from 64KB. For some reasons (that I don't know) if I choose a bigger chunk size, in about half of conditions, it gives me an error about ` An invalid limit was provided`.\n* High CPU usage: This is not because of bad programming, the Telegram encryption is a bit heavy and if a lot of users start to download some files, your server will suffer from high CPU usage.\n\n## How to install?\nI have tested this bot on Python 3.6.9. I'm not sure if it works on older versions or not.\n\nFirst install some pip packages:\n```sh\npython3 -m pip install --user -r requirements.txt\n```\nNow clone this repository and edit `main.py` file. Change `Domain`, `Port`, `api_id`, `api_hash` and `bot_token`.\n\nIf you want to create a private bot, add your id (which is an int) to `admins` set; Otherwise everyone can use your bot.\n\nIf you want to use TLS webserver, add `ssl_context` to `web._run_app(app, port=Port)`. [More Info](https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.run_app)\n\nNow simply run\n\n```sh\npython3 main.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirbodbehnam%2Ffiletourl-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhirbodbehnam%2Ffiletourl-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirbodbehnam%2Ffiletourl-bot/lists"}