{"id":13615331,"url":"https://github.com/HirbodBehnam/file2url-go","last_synced_at":"2025-04-13T21:30:39.549Z","repository":{"id":108181113,"uuid":"433139158","full_name":"HirbodBehnam/file2url-go","owner":"HirbodBehnam","description":"A Telegram bot to convert files to URL for direct download links.","archived":false,"fork":false,"pushed_at":"2022-05-24T09:16:14.000Z","size":47,"stargazers_count":26,"open_issues_count":2,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T00:51:13.510Z","etag":null,"topics":["directlink","downloader","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-29T17:37:48.000Z","updated_at":"2025-02-04T20:30:49.000Z","dependencies_parsed_at":"2024-01-17T00:18:33.028Z","dependency_job_id":"e253089d-5c16-4ce4-aa80-5e8b986a1777","html_url":"https://github.com/HirbodBehnam/file2url-go","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2Ffile2url-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2Ffile2url-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2Ffile2url-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2Ffile2url-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HirbodBehnam","download_url":"https://codeload.github.com/HirbodBehnam/file2url-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248785908,"owners_count":21161372,"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":["directlink","downloader","telegram-bot"],"created_at":"2024-08-01T20:01:12.009Z","updated_at":"2025-04-13T21:30:39.221Z","avatar_url":"https://github.com/HirbodBehnam.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# File 2 URL Bot\n\nA simple bot to convert files sent to it to URLs to make direct download links.\n\n## Features\n\n* Fast download speeds\n* Option to allow only specific users to create download links\n* Range support\n* Database support\n\n## Setup\n\nAt first download the program from [releases](https://github.com/HirbodBehnam/file2url-go/releases). Then before running\nthe application, set these values as environment variables:\n\n```bash\nexport APP_ID=1234\nexport APP_HASH=abcd\nexport BOT_TOKEN=zyxw\nexport ALLOWED_USERS=1,2\n```\n\n`ALLOWED_USERS` is the list of user IDs which are allowed to use the bot. Do not specify this variable in order to make\nthe bot public.\n\n### Running on your server\n\nIf you are planning to run this bot on your server you also have to specify these two environment variables:\n\n```bash\nexport LISTEN=0.0.0.0:12345\nexport URL_PREFIX=my-ip-or-domain:12345\n```\n\n`LISTEN` is the listen address of the server. `URL_PREFIX` will be as the domain/ip of the links which are sent to\nusers.\n\nThen simply run the executable file.\n\n### Running with Heroku\n\nTo run this app on Heroku, you only need to specify one environment variable other than bot id and app hash/id.\n\n```bash\nexport DYNO_NAME=my-dyno-name\n```\n\n### Databases\n\nThis bot will use a database to store the file information which is mapped from a UUID. By default, bot will use an in\nmemory cache to store these values. This each entry has a TTL of one day by default.\n\nYou can change the in memory cache to [bbolt](https://github.com/etcd-io/bbolt) in order to make the data persistent on\ndisk. To enable bbolt, set the environment variable of `BOLT_DB_PATH` to a file which is the database.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHirbodBehnam%2Ffile2url-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHirbodBehnam%2Ffile2url-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHirbodBehnam%2Ffile2url-go/lists"}