Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iamwavecut/telegram-chatgpt-bot

Simple Telegram bot integration to OpenAI ChatGPT API, written in Go
https://github.com/iamwavecut/telegram-chatgpt-bot

chat chat-bot chat-bots chatbot chatgpt chatgpt-api go golang openai openai-api openai-chat openai-chatgpt telegram telegram-bot

Last synced: about 2 months ago
JSON representation

Simple Telegram bot integration to OpenAI ChatGPT API, written in Go

Awesome Lists containing this project

README

        

# Simple Telegram bot integration to OpenAI ChatGPT API

---
## Disclaimer
> ⚠️ This code represents a working instance of the bot named [@net_nebot on Telegram](https://t.me/net_nebot). Other bots may be running the same code, and may be used for malicious purposes. Use at your own risk!

> This is not an official OpenAI nor Telegram product. This is a community project.

> The code is provided as is, and is not guaranteed to work.
---
## Self-hosting
The easiest way to self-host the bot is to build a Docker image and run it on a server of your choice. The Dockerfile is provided in the repository.

You will need to provide the following arguments to the build command:
```shell
docker build -t telegram-chatgpt-bot . \
--build-arg OPENAI_TOKEN= \
--build-arg BOT_TOKEN= \
--build-arg CHAT_MODEL=
```

You can also run the bot locally
```shell
docker run -d --restart always --name telegram-chatgpt-bot telegram-chatgpt-bot
```
---
## Translations
The bot is currently available in the following languages: English, Russian, Belarusian, Ukrainian. Feel free to contribute translations for other languages! The ChatGPT API itself understands a lot more languages, so go give it a try!