Skip to content
프로젝트

sabber-slt/telegram-chatgpt-bot

GitHub에서 보기

소개

NodeJS-based bot for ChatGPT that runs on Telegram now features advanced capabilities such as voice chat and image generation.

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • New ChatGPT API support.
  • 2 way Voice messages support!
  • AI-powered image generation
  • Simply Run Docker compose up -d

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

TELEGRAM CHATGPT BOT

A lightweight ChatGPT to Telegram bot that lets you interact with a large language model trained by OpenAI.

Telegram 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.

Features

  • New ChatGPT API support.
  • 2 way Voice messages support!
  • AI-powered image generation
  • Simply Run Docker compose up -d

How to install ?

If 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.

docker run --rm -it -p 5002:5002 --entrypoint /bin/bash ghcr.io/coqui-ai/tts-cpu
python3 TTS/server/server.py --model_name tts_models/en/vctk/vits # To start a server
  • In order to use it, you must first acquire an API key from the OpenAI website. OpenAI API
  • Second acquire telegram token from the BOTFATHER. Telegram token
  • Clone This repo
  • Cd telegram-chatgpt-bot
  • Put your api keys in .env.local
  • Change the name of .env.local to .env
  • If you have installed docker in your system just run docker-compose up -d and ignore rest
  • To install all modules yarn
  • To run developer server yarn dev
  • You can install pm2 globally before deploying. yarn add pm2 -g
  • Then run pm2 start index.js

API KEYS

OPENAI_API_KEY= "your openai api key"
TELEGRAM_API_KEY= "your telegram api key"
VOICE_API = "http://localhost:5002"

관련 프로젝트 살펴보기

불러오는 중…