darklight147 / telegram-gpt-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram chatbot with openAI GPT-3

Hello?

Greeting

Keep track of context?

Context

Getting started

Prerequisites

  • Python 3.6+
  • Telegram Bot API token
  • OpenAI API key

Installation

git clone https://github.com/darklight147/telegram-gpt-bot.git
cd telegram-gpt-bot
pip install -r requirements.txt

Configuration

cp .env.example .env

Edit .env file and fill in your Telegram Bot API token and OpenAI API key.

Run

python main.py

# or python3 main.py

Or run with Docker

docker build -t telegram-gpt-bot .
docker run -d --name telegram-gpt-bot telegram-gpt-bot

About


Languages

Language:Python 75.9%Language:Dockerfile 20.6%Language:Shell 3.6%