{"id":20984057,"url":"https://github.com/vauth/filestream-cf","last_synced_at":"2025-04-07T13:04:57.900Z","repository":{"id":256537346,"uuid":"851705492","full_name":"Vauth/filestream-cf","owner":"Vauth","description":"File To Link Telegram Bot Using Cloudflare Workers.","archived":false,"fork":false,"pushed_at":"2025-01-27T16:31:44.000Z","size":90,"stargazers_count":36,"open_issues_count":0,"forks_count":77,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-31T12:03:53.948Z","etag":null,"topics":["cloudflare-workers","file-to-link","filestream","filestreambot","filetolinkbot","serverless","stream","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"https://support@execalchat.t.me","language":"JavaScript","has_issues":false,"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/Vauth.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":"2024-09-03T15:16:27.000Z","updated_at":"2025-03-26T03:21:07.000Z","dependencies_parsed_at":"2024-11-19T05:54:09.858Z","dependency_job_id":"ff5875e9-9d07-40a0-b3db-1d6c49d2f01e","html_url":"https://github.com/Vauth/filestream-cf","commit_stats":null,"previous_names":["vauth/filestream-cf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vauth%2Ffilestream-cf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vauth%2Ffilestream-cf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vauth%2Ffilestream-cf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vauth%2Ffilestream-cf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vauth","download_url":"https://codeload.github.com/Vauth/filestream-cf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657276,"owners_count":20974344,"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":["cloudflare-workers","file-to-link","filestream","filestreambot","filetolinkbot","serverless","stream","telegram-bot","telegram-bot-api"],"created_at":"2024-11-19T05:51:17.839Z","updated_at":"2025-04-07T13:04:57.869Z","avatar_url":"https://github.com/Vauth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamfile Worker\r\nFile To Link Telegram Bot Using Cloudflare Workers.\r\n\r\n\u003cbr\u003e\r\n\r\n## 🗂 Variables\r\n```javascript\r\nconst BOT_TOKEN = \"BOT_TOKEN\"; // Insert your bot token.\r\nconst BOT_WEBHOOK = \"/endpoint\"; // Let it be as it is.\r\nconst BOT_SECRET = \"BOT_SECRET\"; // Insert a powerful secret text.\r\nconst BOT_OWNER = 123456789; // Insert your telegram account id.\r\nconst BOT_CHANNEL = -100123456789; // Insert telegram channel id.\r\nconst SIA_SECRET = \"SIA_SECRET\"; // Insert a powerful secret text.\r\nconst PUBLIC_BOT = false; // Make your bot public.\r\n```\r\n\r\n### Setup:\r\n- Get `BOT_TOKEN` from [@botfather](https://t.me/botfather).\r\n    - Turn on `inline mode` in bot settings.\r\n    - Disable `inline feedback` for better results.\r\n- Change `BOT_WEBHOOK` with your preferred webhook.\r\n- Change `BOT_SECRET` with a powerful secret text (only `[A-Z, a-z, 0-9, _, -]` are allowed).\r\n- Change `SIA_SECRET` with a powerful secret text using [password-generator](https://1password.com/password-generator).\r\n- Change `PUBLIC_BOT` to make your bot public (only `[true, false]` are allowed).\r\n- Get `BOT_OWNER` from [@idbot](https://t.me/username_to_id_bot).\r\n- Get `BOT_CHANNEL` id by forwarding a message from channel to [@idbot](https://t.me/username_to_id_bot).\r\n  - Channel **ID** must start with `-100`.\r\n  - Bot must be **admin** in channel with **edit rights**.\r\n\r\n\u003cbr\u003e\r\n\r\n## ⚙️Deploy\r\n- Create a [Cloudflare](https://www.cloudflare.com/) **account**.\r\n- Navigate to `Workers \u0026 Pages \u003e Create \u003e Create Worker`.\r\n- Deploy the worker by clicking **Deploy**.\r\n- Edit the code by clicking **Edit Code**.\r\n- **Maunally:**\r\n    - Upload `worker.js` into **Cloudflare**.\r\n    - Modify the [variables](#-variables).\r\n- **Dynamic:**\r\n    - Generate the code using [code generator](https://vauth.github.io/filestream-cf/).\r\n    - Copy paste the generated code to cloudflare workers.\r\n- Finally, **Deploy**.\r\n\r\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/vauth/filestream-cf)\r\n### Setup:\r\n- Once you deployed the bot on Cloudflare.\r\n- Check `XXX.XXXX.workers.dev/getMe` to verify your bot authorization.\r\n- Open `XXX.XXXX.workers.dev/registerWebhook` to register your bot webhook.\r\n- Then you can start using your bot.\r\n\r\n\u003cbr\u003e\r\n\r\n## 📚 Response\r\n```python\r\nTelegram Link: t.me/usernamebot/?start=GRJUYMDDJRFGK\r\nInline Link: @usernamebot GRJUYMDDJRFGK\r\nDownload Link: XX.XX.workers.dev/?file=GRJUYMDDJRFGK\r\nStream Link: XX.XX.workers.dev/?file=GRJUYMDDJRFGK\u0026mode=inline\r\n```\r\n\r\n### Limitation:\r\n- Telegram Link: `\u003c4.00GB`\r\n- Inline Link: `\u003c4.00GB`\r\n- Download Link: `\u003c20.00MB`\r\n- Stream Link: `\u003c20.00MB`\r\n\r\n\u003cbr\u003e\r\n\r\n## 📷 Screenshot\r\n\r\n\u003ca href=\"#Screenshot\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/09101285-c68c-44a1-aaa1-e2d5c4c0cf90\" width=\"300px\"\u003e\u003c/a\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvauth%2Ffilestream-cf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvauth%2Ffilestream-cf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvauth%2Ffilestream-cf/lists"}