{"id":16370305,"url":"https://github.com/deptyped/telegram-file-proxy","last_synced_at":"2025-03-16T15:33:01.635Z","repository":{"id":101997626,"uuid":"524736451","full_name":"deptyped/telegram-file-proxy","owner":"deptyped","description":"A proxy server to provide links to files by file_id without exposing the bot's token","archived":false,"fork":false,"pushed_at":"2024-08-08T16:33:56.000Z","size":9,"stargazers_count":29,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T00:07:49.008Z","etag":null,"topics":["bot","go","golang","proxy","telegram","telegram-api","telegram-bot","telegram-bot-api","telegram-bots"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/deptyped/telegram-file-proxy","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/deptyped.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}},"created_at":"2022-08-14T17:28:34.000Z","updated_at":"2024-10-10T15:58:46.000Z","dependencies_parsed_at":"2024-10-27T10:58:30.533Z","dependency_job_id":"06c4895a-a5e5-495e-aef5-7c3d3b26d72a","html_url":"https://github.com/deptyped/telegram-file-proxy","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"d5b39df1bed9b8dd7f5e5184d9bf07f95998fade"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deptyped%2Ftelegram-file-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deptyped%2Ftelegram-file-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deptyped%2Ftelegram-file-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deptyped%2Ftelegram-file-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deptyped","download_url":"https://codeload.github.com/deptyped/telegram-file-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822309,"owners_count":20353498,"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":["bot","go","golang","proxy","telegram","telegram-api","telegram-bot","telegram-bot-api","telegram-bots"],"created_at":"2024-10-11T03:04:39.215Z","updated_at":"2025-03-16T15:33:01.368Z","avatar_url":"https://github.com/deptyped.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e📁 Telegram File Proxy\u003c/h1\u003e\n\n[![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/deptyped/telegram-file-proxy?logo=docker)](https://hub.docker.com/r/deptyped/telegram-file-proxy)\n\n### Introduction\n\nUsing this proxy you can provide links to files to users by `file_id` without\nexposing the bot's token. Extremely useful for the WebApp feature to use files\nfrom Telegram in your web app.\n\nTo get a link to a file, simply pass `file_id` of the file as the path:\n\n```bash\nhttp://telegram-file-proxy/\u003cfile_id\u003e\n```\n\n### Usage\n\n#### Building from source\n\n1. Build\n\n```bash\ngo mod download \u0026\u0026 go mod verify \u0026\u0026 go build -o proxy\n```\n\n2. Run\n\n```bash\n./proxy --bot-token 12345:ABCDEFGHIJKLMNOPQRSTUVWXYZ\n```\n\n💡 Pro Tip! Run `./proxy --help` to see all available command line arguments.\n\n#### Using Docker Compose\n\n```yaml\nversion: \"3\"\nservices:\n  telegram-file-proxy:\n    image: deptyped/telegram-file-proxy\n    ports:\n      - \"8080:80\"\n    environment:\n      - BOT_TOKEN= # \u003c-- place your bot token here\n      - SERVER_PORT=80\n```\n\nOr configuration with command line arguments:\n\n```yaml\nversion: \"3\"\nservices:\n  telegram-file-proxy:\n    image: deptyped/telegram-file-proxy\n    ports:\n      - \"8080:80\"\n    command: --bot-token \u003cplace your bot token here\u003e --server-port 80\n```\n\n#### Using Docker Compose with a Local Bot API Server\n\n```yaml\nversion: \"3\"\nservices:\n  telegram-file-proxy:\n    image: deptyped/telegram-file-proxy\n    ports:\n      - \"8080:80\"\n    volumes:\n      - \"./data:/var/lib/telegram-bot-api\"\n    environment:\n      - BOT_TOKEN= # \u003c-- place your bot token here\n      - SERVER_PORT=80\n      - API_ROOT=http://bot-api:8081\n      - API_LOCAL=1\n\n  bot-api:\n    image: aiogram/telegram-bot-api:latest\n    ports:\n      - \"8081:8081\"\n    volumes:\n      - \"./data:/var/lib/telegram-bot-api\"\n    environment:\n      - TELEGRAM_LOCAL=1\n      # Create an application with api id and api hash (get them from https://my.telegram.org/apps)\n      - TELEGRAM_API_ID= # \u003c-- place your api id here\n      - TELEGRAM_API_HASH= # \u003c-- place your api hash here\n```\n\n### Configuration\n\n| ENV name    | CLI name    | Description                                                                                                            |\n| ----------- | ----------- | ---------------------------------------------------------------------------------------------------------------------- |\n| BOT_TOKEN   | bot-token   | Bot token                                                                                                              |\n| SERVER_PORT | server-port | Server port (8080 by default)                                                                                          |\n| SERVER_HOST | server-host | Server hostname                                                                                                        |\n| API_ROOT    | api-root    | Bot API Root (https://api.telegram.org by default)                                                                     |\n| API_LOCAL   | api-local   | Allow providing files from the file system, useful when using a Local Bot API with the `--local` option (0 by default) |\n\nThe values from the command line arguments are loaded first. If there are no\ncommand line arguments, then the values are loaded from the environment\nvariables. **Important!** You cannot use environment variables and command line\narguments at the same time to configure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeptyped%2Ftelegram-file-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeptyped%2Ftelegram-file-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeptyped%2Ftelegram-file-proxy/lists"}