Price & Stock tracking telegram bot deployable on Google Apps Script (GAS) for Amazon & Flipkart
Source code for @flipkartX_bot
This can be deployed using Google Apps Script (GAS)
The project uses 3-page spreadsheet to keep a record of all products it is tracking and trackes them in a phased manner to avoid runtime errors and track everything effectively.
Deploy project on GAS by the following steps :
- Open Google Apps Script (GAS) and create a 'New Project'.
- In the default
Code.gs
file copy the code contents from Code.js script given in repo. - Create a Google Spreadsheet and ensure it have three sheets in it, copy it's sheet id as you will be needing it for your environment variable.
- In this file configure your environment variables ( such as
botToken
,botName
, ... ) - Tap on
+
along side the files to add a new file and copy-paste all the files one-by-one with any name of your choice easier for maintainence. - After copying the whole script, tap
Deploy
menu and select option to create a new deployment. - Select the type of deployment as
Web App
and chooseAnyone
in theWho has access
dropdown menu. - Deploy and copy the script url and set it as your bot's webhook ( you may do it manually or use the setWebhook.js script from your GAS by modifying variable
script
) - All set! Your bot is ready to use.
- This Project is Apache-2.0 Licensed
- Copyright 2021 Vishal Das