{"id":18803019,"url":"https://github.com/scristobal/telegramgpt","last_synced_at":"2025-10-06T02:59:11.962Z","repository":{"id":147535977,"uuid":"616153757","full_name":"scristobal/TelegramGPT","owner":"scristobal","description":"Like ChatGPT but in Telegram","archived":false,"fork":false,"pushed_at":"2025-09-08T12:35:39.000Z","size":76,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T14:53:12.176Z","etag":null,"topics":["bot","chatgpt","chatgpt-bot","openai","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scristobal.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-19T19:01:52.000Z","updated_at":"2025-05-02T08:12:16.000Z","dependencies_parsed_at":"2023-11-10T11:20:51.980Z","dependency_job_id":"9b525890-9af6-46cf-b0b7-aca4f78b5f7f","html_url":"https://github.com/scristobal/TelegramGPT","commit_stats":null,"previous_names":["scristobal/telegramgpt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scristobal/TelegramGPT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scristobal%2FTelegramGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scristobal%2FTelegramGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scristobal%2FTelegramGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scristobal%2FTelegramGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scristobal","download_url":"https://codeload.github.com/scristobal/TelegramGPT/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scristobal%2FTelegramGPT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278551509,"owners_count":26005389,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","chatgpt","chatgpt-bot","openai","telegram","telegram-bot"],"created_at":"2024-11-07T22:32:41.197Z","updated_at":"2025-10-06T02:59:11.932Z","avatar_url":"https://github.com/scristobal.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TelegramGPT 🤖💬\n\nLike ChatGPT but in Telegram\n\nA Telegram bot that uses OpenAI's chat completion API in the backend. That is the same backend as ChatGPT.\n\n## Config\n\n### Telegram and OpenAI tokens\n\nSet your [Telegram bot token](https://core.telegram.org/bots/features#creating-a-new-bot) with `TELOXIDE_TOKEN` and your [OpenAI API key](https://platform.openai.com/account/api-keys) with `OPENAI_API_KEY`. Access to `gpt-4` is required.\n\n### Storage (optional)\n\nOptionally you can store the dialogs using a Redis or SQLite. This prevents your conversations to wipe when the bot is restarted.\n\nTo setup Redis use `REDIS_URL` and to setup SQLite use `SQLITE_FILE`. Redis has priority over SQLite. If none is set memory storage is used.\n\n## Run\n\n### Locally\n\nRename `.env.template` to `.env` and fill in with your secrets. Launch the bot with `cargo run`. If you don't have rust, you need to [install Rust](https://www.rust-lang.org/tools/install).\n\n### Docker\n\nArguably, the easiest way to get it running is to use Docker. This does not require rust to be installed, but you need [Docker engine](https://docs.docker.com/engine/install/) and (optionally) [docker compose](https://docs.docker.com/compose/install/).\n\n### Cloud\n\nEven simpler would be to deploy on cloud, but it might cost you money. A [fly.io](https://fly.io/docs/languages-and-frameworks/dockerfile/) config file is provided, you can also deploy a [Redis](https://fly.io/docs/reference/redis/) over there. Free tier works jut fine for a few users.\n\n## Usage\n\nThe bot will answer to private messages as you would expect. On groups it will only answer to reply messages, it has no access to any other messages. Start a new conversation with `/start`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscristobal%2Ftelegramgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscristobal%2Ftelegramgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscristobal%2Ftelegramgpt/lists"}