Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months ago
JSON representation
Simple Telegram bot integration to OpenAI ChatGPT API, written in Go
- Host: GitHub
- URL: https://github.com/iamwavecut/telegram-chatgpt-bot
- Owner: iamwavecut
- License: mit
- Created: 2023-03-13T21:52:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T21:05:37.000Z (3 months ago)
- Last Synced: 2024-10-29T23:37:04.723Z (3 months ago)
- Topics: chat, chat-bot, chat-bots, chatbot, chatgpt, chatgpt-api, go, golang, openai, openai-api, openai-chat, openai-chatgpt, telegram, telegram-bot
- Language: Go
- Homepage: https://t.me/net_nebot
- Size: 252 KB
- Stars: 84
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-ai-client - telegram-chatgpt-bot - Simple Telegram bot integration to OpenAI ChatGPT API, written in Go (🔧 Others)
- awesome-chatgpt-api - iamwavecut/telegram-chatgpt-bot
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!