Skip to content

Latest commit

 

History

History
103 lines (68 loc) · 2.77 KB

README.md

File metadata and controls

103 lines (68 loc) · 2.77 KB


telegram-openai-chatbot

View Demo (it may be dead) · Report Bug

About The Project

This is a very simple chatbot which is dealing with OpenAi API

Built With

Getting Started

The idea of this bot is only chating with you, follow the instructions below to deploy and use it

Prerequisites

  • Get a free API Key from OpenAi

  • Get API_HASH and API_ID from here and get BOT_TOKEN from Botfather

  • Add OPENAI_API_KEY, API_HASH, API_ID to .env file

Installation

  1. Clone the repo:
git clone https://github.com/ObaidaNa/telegram-openai-chatbot.git

Change directory:

cd telegram-openai-chatbot

then install requirements:

pip install -r requirements.txt
  1. Generate session string using by running:
python generate_session_str.py
  1. Copy the session string and past it in STRING_SESSION in .env file

Usage

Simply run the main.py file:

python main.py

and enjoy the AI chatbot ;)

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

@ObaidaNa - [email protected]