To follow this tutorial, you will need:
- Python 3.8 or higher
- A Telegram account and a smartphone
- An OpenAI account and an API key
Clone the repository
Project repo: https://github.com/
conda create -n telebot python=3.8 -y
conda activate telebot
pip install -r requirements.txt
https://docs.aiogram.dev/en/latest/
-
Search for botfather
-
/newbot
- mybot88
- mybot88_bot
- Now click on url to access the bot
- Make sure you collect the access token
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TELEGRAM_BOT_TOKEN=xxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx