- Fork the Repo
- Make your changes.
- Commit and push to your Git
- Deploy the code to heroku or any other service which you like
- Add Redis DB Server to the Service (Used to save user's details)
- Open Telegram
- Goto BotFather, if link not working search @BotFather in telegram.
- Then type
/start
in Botfather - Click on
/newbot
or type/newbot
- Add Any name you like for the Telegram Bot.
- Add Username for your bot you like which needs to end with
_bot
- Copy the Token generated which will be needed in the next step
- Add below Environment Variables to your Service.
BOT_TOKEN = <token which you got from BotFather>idle
REDIS_URL = <URL for Redis Server>
- Goto your bot in telegram.
- Click on
start
or type /start - Click on
help
or type /help - Add your Amazon affliate tracking id. Example below
/amazon tracking_id-21
- Add your Flipkart affliate tracking id. Example below
/flipkart tracking_id
- Add your Bit.ly Access token. Example below
/bitly API-KETuIB
Note:
- Bot will guide you how to get Bit.ly Access token by below command.
/bitly_setup
- This Bot only supports below URL's.
https://amazon.in
https://amzn.to
http://fkrt.it
https://flipkart.com
- You can open an issue on github if you find any.
-
Goto
-
Continue from the Setup No. 14
-
Fork the project repository
-
Clone your fork
-
Navigate to your local repository
-
Check that your fork is the 'origin' remote by:
git remote -v
- if not add 'origin' remote by:
git remote add origin <URL_OF_YOUR_FORK>
- if not add 'origin' remote by:
-
Add the project repository as the 'upstream' remote by:
git remote add upstream <URL_OF_THIS_PROJECT>
-
Check that you now have two remotes: an origin that points to your fork, and an upstream that points to the project repository by:
git remote -v
-
Pull the latest changes from upstream into your local repository.
git pull upstream main
-
Create a new branch
git checkout -b BRANCH_NAME
-
Make changes in your local repository
-
Commit your changes
-
Push your changes to your fork
git push origin BRANCH_NAME
-
Create Pull Request
baseRepo - base:main <- yourRepo - compare:BRANCH_NAME
-
Add Your description, Add any Images/Videos if required and Submit PR.
-
You can add more commits/comments to the PR.
-
You can delete the Branch (BRANCH_NAME) after your PR has been accepted and merged
-
Sync your local Fork Repo to Updated Project Repo.
git pull upstream main
git push origin main
Thanks, Contributions are welcome! <3.