sabber-slt / telegram-chatgpt-bot

NodeJS-based bot for ChatGPT that runs on Telegram now features advanced capabilities such as voice chat and image generation.
https://sabber.dev
218 stars 35 forks source link
chatgpt image-generation nodejs openapi telegraf telegram-bot voice

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

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

API KEYS

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