HI! I'll help you make a telegram bot for ProfitSocial.
This bot:
- Donwload .csv statistic for today/yesterday
- Upload stat on Zoho sheets
- Drop link in chat (today/yesterday - every 30 min)
How install:
- You need account on heroku.com and github.com
- Copy this repo on your github
- Go to https://dashboard.heroku.com/new-app and create new app (add name, choose region)
- Go to "Setting" your app and click "Reveal Config Vars", then add variables:
PROFIT_LOGIN = ProfitSocial authorization mail
PROFIT_PASSWORD = ProfitSocial authorization password
TG_TOKEN = api token your telegram bot
CHAT_ID = chat id in telegram, where bot will drop lins
TZ = your Time Zone, example: Europe/Moscow (view all zones https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) - Scroll down and click "Add buildpacks", insert this links
https://github.com/heroku/heroku-buildpack-nodejs.git
https://github.com/jontewks/puppeteer-heroku-buildpack - Go to "Deploy" tab and choose "Deployment method" > GitHub
- Click "Enable Automatics Deploys", if you want update bot in the future
- Click "Deploy branch" and wait deploy
- Choose "Resourses" tab, then OFF "web" switcher and ON "worker" (logs in "More" > "View logs")
- Add your bot in TG chat
WELL DONE!