{"repo":"deptyped/telegram-file-proxy","free":true,"listed":false,"github":"https://github.com/deptyped/telegram-file-proxy","clone":"git clone https://github.com/deptyped/telegram-file-proxy.git","description":"A proxy server to provide links to files by file_id without exposing the bot's token","language":"Go","stars":36,"topics":["bot","go","golang","proxy","telegram-api","telegram-bot","telegram-bot-api","telegram-bots","telegram"],"license":"MIT","category":"networking-infra","readme_excerpt":"📁 Telegram File Proxy Introduction This proxy allows you to provide users with links to files by file id without exposing your bot's token. This is especially useful for the Telegram Web Apps feature, as it enables you to use files from Telegram directly in your web app. To get a link to a file, simply pass file id of the file as the path: Query Parameters You can also use query parameters to control response headers: - content-type : Sets the Content-Type header. The value must be one of the pre-approved MIME types (e.g., image/jpeg , video/mp4 , application/pdf ). If the value is not allowed, the header will be omitted. - filename : Sets the filename in the Content-Disposition header. This suggests a name for the file when the user downloads it. You can combine both parameters: Usage Building from source 1. Build 2. Run 💡 Pro Tip! Run ./proxy --help to see all available command line arguments. Using Docker Compose Or configuration with command line arguments: Using Docker Compose with a Local Bot API Server Configuration ENV name CLI name Description ------------------- ------------------- ---------------------------------------------------------------------------------------------------------------------- BOT TOKEN bot-token Bot token SERVER PORT server-port Server port (8080 by default) SERVER HOST server-host Server hostname API ROOT api-root Bot API Root (https://api.telegram.org by default) API LOCAL api-local Allows serving files from the local filesystem when using","default_branch":null,"files":null,"tree":[],"storefront":"/r/deptyped","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/deptyped/telegram-file-proxy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}