{"id":16231422,"url":"https://github.com/fabe/telegram-chatgpt-worker","last_synced_at":"2025-03-19T14:30:35.039Z","repository":{"id":188670928,"uuid":"622957203","full_name":"fabe/telegram-chatgpt-worker","owner":"fabe","description":"🤖 A minimal Telegram bot for ChatGPT","archived":false,"fork":false,"pushed_at":"2023-04-03T15:32:49.000Z","size":1635,"stargazers_count":7,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T19:11:56.915Z","etag":null,"topics":["cf-workers","chatgpt","cloudflare","cloudflare-worker","cloudflare-workers","personal-assistant","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabe.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":"2023-04-03T12:08:43.000Z","updated_at":"2024-05-31T22:15:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"e795c5e2-9a63-4d8d-84aa-8a725e19aee2","html_url":"https://github.com/fabe/telegram-chatgpt-worker","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"09d79ba852a0f1280617cb852007c55c46420a92"},"previous_names":["fabe/telegram-chatgpt-worker"],"tags_count":0,"template":true,"template_full_name":"cvzi/telegram-bot-cloudflare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabe%2Ftelegram-chatgpt-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabe%2Ftelegram-chatgpt-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabe%2Ftelegram-chatgpt-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabe%2Ftelegram-chatgpt-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabe","download_url":"https://codeload.github.com/fabe/telegram-chatgpt-worker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243997041,"owners_count":20380980,"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":["cf-workers","chatgpt","cloudflare","cloudflare-worker","cloudflare-workers","personal-assistant","telegram","telegram-bot"],"created_at":"2024-10-10T13:05:32.766Z","updated_at":"2025-03-19T14:30:35.034Z","avatar_url":"https://github.com/fabe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatGPT Telegram Bot on Cloudflare Workers\n\nA minimal example of a Telegram Bot for ChatGPT running on a Cloudflare Worker.\n\n## Setup\n\n1. Get your new bot token from [@BotFather](https://t.me/botfather): https://core.telegram.org/bots#6-botfather\n2. Get an OpenAI API key: https://platform.openai.com/account/api-keys\n3. Sign up to Cloudflare Workers: https://workers.cloudflare.com/\n4. In the Cloudflare Dashboard go to \"Workers\" and then click \"Create a Service\"\n5. Choose a name and click \"Create a Service\" to create the worker\n6. Click on \"Quick Edit\" to change the source code of your new worker\n7. Copy and paste the code from [bot.js](bot.js) into the editor\n8. Replace the `TOKEN` variable in the code with your token from [@BotFather](https://t.me/botfather)\n9. Replace the `API_KEY` variable in the code with your OpenAI API key\n10. Optional: Change the `WEBHOOK` variable to a different path and the `SECRET` variable to a random secret. See https://core.telegram.org/bots/api#setwebhook\n11. Click on \"Save and Deploy\"\n12. In the middle panel append `/registerWebhook` to the url. For example: https://my-worker-123.username.workers.dev/registerWebhook\n13. Click \"Send\". In the right panel should appear `Ok`. If 401 Unauthorized appears, you may have used a wrong bot token.\n14. That's it, now you can send a ChatGPT prompt to your Telegram bot\n\n## Demo\n\n\u003cimg src=\".github/demo.gif\" width=320 alt=\"Demo screen recording of using this bot with Telegram for iOS\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabe%2Ftelegram-chatgpt-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabe%2Ftelegram-chatgpt-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabe%2Ftelegram-chatgpt-worker/lists"}