Skip to content

ChatGPT To Telegram for those who play Chat with ChatGPT Bot on Telegram without using VPN to open ChatGPT directly.

License

Notifications You must be signed in to change notification settings

bsthen/ChatGPT_To_TelegramBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT_To_TelegramBot

Connect ChatGPT To Telegram Bot

Requirement

  • Python3
  • OpenAI
  • Telegram Bot

How To Use

  • create virtual enviroment follow command below:
python3 -m venv env

Then activate command for MacOS or Linux:

source env/bin/activate

or command for Windows:

env\Scripts\activate.bat

Next step install dependency:

pip install -r requirements.txt

Next rename env.sample to .env file.

Get OpenAI Token

Register an account with OpenAI and then go to this link https://beta.openai.com/account/api-keys and create token. Paste Token to .env with OPENAI_API_KEY variable.

Get Telegram Bot Token

Open Telegram App and search for @BotFather Send /newbot to BotFather and follow the instruction with BotFather.

Finally, Copy bot token to .env file with TELEGRAM_API_KEY variable.

Run The program

python3 main.py

About

ChatGPT To Telegram for those who play Chat with ChatGPT Bot on Telegram without using VPN to open ChatGPT directly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages