Skip to content

Commit 13ca898

Browse files
authored
working with python virtual env.
1 parent 875c209 commit 13ca898

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,22 @@ This is a template for creating Telegram bots using Pyrogram, MongoDB, and Pytho
2121

2222
2. Install the dependencies:
2323

24+
25+
```bash
26+
#optional
27+
python3 -m venv env
28+
source env/bin/activate # in mac OS
29+
env/Scripts/activate.bat #In CMD
30+
env/Scripts/Activate.ps1 #In Powershel
31+
```
32+
2433
```bash
2534
pip install -r requirements.txt
2635
```
2736

28-
3. Set up your MongoDB database and get the connection URI.
37+
4. Set up your MongoDB database and get the connection URI.
2938

30-
4. Create a `.env` file in the project root and add your MongoDB connection URI and your Telegram bot token:
39+
5. Create a `.env` file in the project root and add your MongoDB connection URI and your Telegram bot token:
3140

3241
```plaintext
3342
DATABASE_URI=your-mongodb-connection-uri
@@ -37,7 +46,7 @@ This is a template for creating Telegram bots using Pyrogram, MongoDB, and Pytho
3746
BOT_TOKEN=your-bot-token
3847
```
3948

40-
5. Run the bot:
49+
6. Run the bot:
4150

4251
```bash
4352
python bot.py

0 commit comments

Comments
 (0)