Skip to content

ObaidaNa/telegram-openai-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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 - obaidana@protonmail.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published