-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
Chitranjan Gupta edited this page Jul 16, 2023
·
10 revisions
- Install Git in your system from https://git-scm.com.
- Install python interpreter in your system from https://python.org.
- Clone this repository by running the command in your command prompt
git clone https://github.com/chitranjan-gupta/Flipkart-Bot
. - Enter the Flipkart-Bot directory by running the command in your command prompt
cd Flipkart-Bot
. - Create virtual environment by running the command in your command prompt
python -m venv venv
. - Activate virtual environment by running the command in your command prompt
venv\Scripts\activate.bat
. - Install the python libraries by running the command in your command prompt
pip install -U -r requirements.txt
. - Add the token value in the environment variable of your system or Edit the BOT_TOKEN variable in the bot.py.
- Search 'Environment variables'.
- Select the first choice 'Edit System Environment Variables for your account'.
- A popup box will open. Click on 'Environment Variables'.
- A window will open. In the Your Section 'Use variables for Your Name' not on system variable section. Click on New.
- A Dialog box will open. In the Variable Name Section type 'BOT_TOKEN'. And in the variable value section paste the token value which you have copied from Bot-Father
- Click on ok and ok and ok.
- Open the bot.py python file inside any text editor
- Search for BOT_TOKEN
- Paste the token value which you have copied from the telegram right side of the BOT_TOKEN variable
- Save the bot.py file
Run the bot.py by running the command in command prompt python bot.py
Now go and /start the bot in Telegram. If everything went fine, the bot will respond with welcome message.
- Install Git in your system by running the command in your terminal
apt install git
. - Install python interpreter in your system by running the command in your terminal
apt install python3
. - Clone this repository by running the command in your terminal
git clone https://github.com/chitranjan-gupta/Flipkart-Bot
. - Enter the Flipkart-Bot directory by running the command in your terminal
cd Flipkart-Bot
. - Create virtual environment by running the command in your terminal
python3 -m venv venv
. - Activate virtual environment by running the command in your terminal
source venv/bin/activate
. - Install the python libraries by running the command in your terminal
pip3 install -U -r requirements.txt
. - Add the token value in the environment variable of your system or Edit the BOT_TOKEN variable in the bot.py.
- Copy the token from the telegram.
- Set the environment variable by running the command in your terminal
export BOT_TOKEN='your_token'
. For exampleexport BOT_TOKEN='5775884958:AAdhfhjjfjjhf'
- Open the bot.py python file inside any text editor
- Search for BOT_TOKEN
- Paste the token value which you have copied from the telegram right side of the BOT_TOKEN variable
- Save the bot.py file
Run the bot.py by running the command in terminal python3 bot.py
Now go and /start the bot in Telegram. If everything went fine, the bot will respond with welcome message.
- Install F-Droid Android Application in your system from https://f-droid.org.
- Update the repository of F-Droid Application in your system by pulling down inside F-Droid Application.
- Search Termux inside F-Droid Application.
- Install Termux (Terminal emulator with packages) Application (size of nearly 100 Mega Bytes).
- Allow The Installation of Apps from Unknown Source.
- Update the packages of Termux Application by running the command inside Termux Application
pkg upgrade -y
. - Install required packages by running the command in your Termux terminal
pkg install python3 git libxml2 libxslt -y
. - Clone this repository by running the command in your Termux terminal
git clone https://github.com/chitranjan-gupta/Flipkart-Bot
. - Enter the Flipkart-Bot directory by running the command in your Termux terminal
cd Flipkart-Bot
. - Create virtual environment by running the command in your Termux terminal
python3 -m venv venv
. - Activate virtual environment by running the command in your Termux terminal
source venv/bin/activate
. - Install the python library wheel by running the command in your Termux terminal
pip3 install -U wheel
. - Install the python libraries by running the command in your Termux terminal
pip3 install -U -r requirements.txt
. - Add the token value in the environment variable of your system or Edit the BOT_TOKEN variable in the bot.py.
- Copy the token from the telegram.
- Set the environment variable by running the command in your terminal
export BOT_TOKEN='your_token'
. For exampleexport token='5775884958:AAdhfhjjfjjhf'
- Open the bot.py python file inside any text editor
- Search for BOT_TOKEN
- Paste the token value which you have copied from the telegram right side of the BOT_TOKEN variable
- Save the bot.py file
Run the bot.py by running the command in terminal python3 bot.py
Now go and /start the bot in Telegram. If everything went fine, the bot will respond with welcome message.