using express for the server running the bot with webhooks.
and telegraf for telegram bot api.
deployed on heroku.
the bot is integrated with yahoo finance api fetching stock data.
yahoo finance docs from rapid api site.
and google trends for fetching stock trends (future)
Make sure you:
- run npm install
- add the folowing environment variables:
- PORT
- BOT_TOKEN
- RAPID_HOST
- RAPID_KEY
- WEBHOOK_BASE_URL
- WEBHOOK_PATH
if you run development add those variables to utils/dev.env
file
for development run npm run devserver
for production run npm run start
HEROKU deployment: