-
Clone this repository to your local machine by running the following command in your terminal:
git clone https://github.com/tanyyyming/GDSC-TelegramBot-Workshop-2024.git
-
Create a virtual environment called
venv
by running the following command at the root of the project directory:python3 -m venv venv
-
Activate the virtual environment by running the following command:
source venv/bin/activate
-
Install the required packages by running the following command:
pip3 install -r requirements.txt
-
Create a
.env
file at the root of the project directory to store your telegram bot token and your image captioning API key securely:BOT_TOKEN = "your bot token as a string" API_KEY = "your api key as a string"
-
Create an empty
data/
directory at the root of the project directory to store the images that you want to caption. -
Run the following command to start the bot:
python3 bot.py
pyromancerboom / gdsc-telegrambot-workshop-2024 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tanyyyming/gdsc-telegrambot-workshop-2024