{"id":13642312,"url":"https://github.com/sabber-slt/telegram-chatgpt-bot","last_synced_at":"2025-05-07T15:20:52.491Z","repository":{"id":161084749,"uuid":"632842741","full_name":"sabber-slt/telegram-chatgpt-bot","owner":"sabber-slt","description":"NodeJS-based bot for ChatGPT that runs on Telegram now features advanced capabilities such as voice chat and image generation.","archived":false,"fork":false,"pushed_at":"2023-06-30T21:48:14.000Z","size":17490,"stargazers_count":215,"open_issues_count":3,"forks_count":38,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-31T11:21:09.275Z","etag":null,"topics":["chatgpt","image-generation","nodejs","openapi","telegraf","telegram-bot","voice"],"latest_commit_sha":null,"homepage":"https://sabber.dev","language":"JavaScript","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/sabber-slt.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}},"created_at":"2023-04-26T08:43:46.000Z","updated_at":"2025-03-20T06:39:17.000Z","dependencies_parsed_at":"2023-07-09T17:45:13.601Z","dependency_job_id":null,"html_url":"https://github.com/sabber-slt/telegram-chatgpt-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabber-slt%2Ftelegram-chatgpt-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabber-slt%2Ftelegram-chatgpt-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabber-slt%2Ftelegram-chatgpt-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabber-slt%2Ftelegram-chatgpt-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sabber-slt","download_url":"https://codeload.github.com/sabber-slt/telegram-chatgpt-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252902676,"owners_count":21822276,"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":["chatgpt","image-generation","nodejs","openapi","telegraf","telegram-bot","voice"],"created_at":"2024-08-02T01:01:29.775Z","updated_at":"2025-05-07T15:20:52.470Z","avatar_url":"https://github.com/sabber-slt.png","language":"JavaScript","funding_links":[],"categories":["Chatbots"],"sub_categories":[],"readme":"## TELEGRAM CHATGPT BOT\n\nA lightweight ChatGPT to Telegram bot that lets you interact with a large language model trained by OpenAI.\n\nTelegram provides a suitable platform for using chatgpt due to its high security. By running this code, you will be able to utilize the power of chatting, generating images, and conversing with chatgpt for voice.\n\n# Features\n\n- **New ChatGPT API support.**\n- **2 way Voice messages support!**\n- **AI-powered image generation**\n- **Simply Run Docker compose up -d**\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./demo.gif\" width=\"300\"/\u003e\n\u003c/p\u003e\n\n### How to install ?\n\nIf conversing with chatgpt for voice is not important to you, you can ignore this part. However, to execute the voice, you need to have Docker installed on your operating system in advance, and then run the following code.\n\n```sh\ndocker run --rm -it -p 5002:5002 --entrypoint /bin/bash ghcr.io/coqui-ai/tts-cpu\npython3 TTS/server/server.py --model_name tts_models/en/vctk/vits # To start a server\n```\n\n- In order to use it, you must first acquire an API key from the OpenAI website. [OpenAI API](https://openai.com/)\n- Second acquire telegram token from the BOTFATHER. [Telegram token](https://telegram.me/BotFather)\n- Clone This repo\n- Cd telegram-chatgpt-bot\n- Put your api keys in .env.local\n- Change the name of .env.local to .env\n- If you have installed docker in your system just run docker-compose up -d and ignore rest\n- To install all modules `yarn`\n- To run developer server `yarn dev`\n- You can install pm2 globally before deploying. `yarn add pm2 -g`\n- Then run `pm2 start index.js`\n\n## API KEYS\n\n```sh\nOPENAI_API_KEY= \"your openai api key\"\nTELEGRAM_API_KEY= \"your telegram api key\"\nVOICE_API = \"http://localhost:5002\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabber-slt%2Ftelegram-chatgpt-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsabber-slt%2Ftelegram-chatgpt-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabber-slt%2Ftelegram-chatgpt-bot/lists"}