Skip to content

thesuhu/tele-gpt-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tele GPT-3

Telegram bot using AI GPT-3.

Usage

Clone this repository and install these dependencies by running the following command:

pip install -r requirements.txt

Rename file .env-example to .env and edit the file. Paste your OpenAI api key and Telegram Bot api key:

OPENAI_API_KEY=
TELEGRAM_BOT_API_KEY=

Start the bot by running this command:

python3 main.py

After start the bot, it will create text file authorized_users.txt. Put user Telegram ID to restrict who can use the bot and then restart bot. If you didn't know your Telegram user ID, you can go to @googleimgbot and type /id, the bot will reply info about your user ID.

Open the Telegram app, then search your bot, click START button or type /start command to start conversation.

PaaS

If you want to deploy it on Streamlit, don't forget to create secret first in TOML format.

OPENAI_API_KEY="<your open ai api key>"
TELEGRAM_BOT_API_KEY="<your telegram bot api key>"
LOG_FILE_PATH="bot.log"
INIT_AUTHORIZED_USERS="<your telegram user ID>"
ENV="dev"

About

Telegram bot using AI GPT-3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages