{"id":17488637,"url":"https://github.com/daohoangson/bubby","last_synced_at":"2025-04-22T15:25:23.050Z","repository":{"id":206293730,"uuid":"716261294","full_name":"daohoangson/bubby","owner":"daohoangson","description":"Telegram bot powered by OpenAI","archived":false,"fork":false,"pushed_at":"2024-07-22T02:27:44.000Z","size":1758,"stargazers_count":19,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-22T21:06:06.031Z","etag":null,"topics":["assistant","aws","dall-e-3","gpt-4o-mini","openai","sst","telegram"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/daohoangson.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-11-08T19:11:04.000Z","updated_at":"2024-12-10T14:12:55.000Z","dependencies_parsed_at":"2024-11-08T18:01:39.424Z","dependency_job_id":"acd2ae74-fd15-4f56-aae4-c96e9e4a29c9","html_url":"https://github.com/daohoangson/bubby","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"a64ffd556a379fec03f4f0493dc035c68af69fdf"},"previous_names":["daohoangson/bubby"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daohoangson%2Fbubby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daohoangson%2Fbubby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daohoangson%2Fbubby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daohoangson%2Fbubby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daohoangson","download_url":"https://codeload.github.com/daohoangson/bubby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250265947,"owners_count":21402199,"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":["assistant","aws","dall-e-3","gpt-4o-mini","openai","sst","telegram"],"created_at":"2024-10-19T04:08:42.316Z","updated_at":"2025-04-22T15:25:23.023Z","avatar_url":"https://github.com/daohoangson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram bot powered by OpenAI\n\n## Usage\n\n| Chat with `gpt-4o-mini`           | Analyze image                                       | Generate with `dall-e-3`                                                  |\n| --------------------------------- | --------------------------------------------------- | ------------------------------------------------------------------------- |\n| ![Chat](screenshots/001_chat.jpg) | ![Analyze image](screenshots/002_analyze_image.jpg) | ![Analyze then generate image](screenshots/003_analyze_then_generate.jpg) |\n\n## Roadmap\n\n- [x] Integrate with [Assistants API](https://platform.openai.com/docs/assistants/overview)\n- [x] Use [GPT-4o mini](https://platform.openai.com/docs/models/gpt-4o-mini) for conversation\n- [x] Use [DALL-E 3](https://platform.openai.com/docs/models/dall-e) for image generation\n- [x] Use [whisper-1](https://platform.openai.com/docs/models/whisper) for speech to text transcription\n- [x] Use [tts-1](https://platform.openai.com/docs/models/tts) for text to speech synthesis\n- [x] Add support for memory recall\n- [ ] Allow bot to search for old messages, and maybe continue previous conversation\n- [ ] Add support for reminders\n- [ ] Add support for Google Mail\n\n## Development\n\n```shell\n# this project uses PNPM instead of NPM\nnpm install --global pnpm\n\n# install dependencies\npnpm install\n\n# set secrets for the local stage, use `--stage prod` for production\n# see the full list of secrets below\npnpm sst secrets set KEY VALUE\n\n# this project use SST to deploy to AWS\n# use its dev command for https://docs.sst.dev/live-lambda-development\npnpm dev\n```\n\n### Secrets\n\n| KEY                           | VALUE                                                          |\n| ----------------------------- | -------------------------------------------------------------- |\n| OPENAI_API_KEY                | Create new secret key at https://platform.openai.com/api-keys  |\n| OPENAI_ASSISTANT_ID           | Create new assistant at https://platform.openai.com/assistants |\n| TELEGRAM_ADMIN_IDS            | Comma separated list of Telegram user IDs                      |\n| TELEGRAM_BOT_TOKEN            | Chat with https://t.me/BotFather to create a new bot           |\n| TELEGRAM_WEBHOOK_SECRET_TOKEN | Use random.org or similar tool to generate a secret token      |\n\n- OpenAI assistant doesn't need to be fully configured, the instruction and tools will be set per run\n- Only admin can initiate chat with the bot\n- Admin can invite the bot to a group chat, it will reply to everyone\n\n## Deployment\n\n```shell\n# set secrets for the production stage\npnpm sst secrets set --stage prod KEY VALUE\n\n# go production!\npnpm run deploy --stage prod\n```\n\nThis project has been setup to be deployed automatically with GitHub Actions.\nA few manual steps are required:\n\n- Setup OpenID Connect to authenticate with AWS https://docs.sst.dev/going-to-production#manual-setup\n- Update `.github/workflows/sst.yml` to use the correct `role-to-assume` and `aws-region`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaohoangson%2Fbubby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaohoangson%2Fbubby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaohoangson%2Fbubby/lists"}