- Note: Formatting the Code before Pushing is Important!!
To use the bot, go to Telegram and search for JAK-Telegram-Bot
you can use the bot from there.
To Clone this Repository, open a terminal in a empty folder and type
git clone https://github.com/Jonak-Adipta-Kalita/JAK-Telegram-Bot.git
To install the required modules, just open a terminal in the directory where this project is cloned. Now type:
pip install virtualenv
virtualenv venv
.\venv\Scripts\activate
pip install -r .\requirements.txt
and hit enter.
Create .env
. Now go to Telegram and search for BotFather
.
In the Chat press Start
or type /start
. Then give your bot a name and then a username
Now copy the Token given by the BotFather
and paste it in the .env
file
TOKEN=<YOUR_BOT_TOKEN>
like this. After you added the bot, open any terminal in the directory and type
python main.py
and hit Enter.
In a terminal, type
.\venv\Scripts\activate
black .
deactivate
and press Enter.