Telegram spider bot that weaves for you web chart. Or in common language gives you an image of radar chart based on the data provided.
- Create a Telegram bot using BotFather
- Create a Google sheet with data to parse and draw chart
- Create a Google service account and get credentials
- Add creds.json with Google service account details to the root of the project
- Deploy this bot to Heroku or whatever you want
- Set environment variables
- Send
/start
to your bot - Then you can type Павутинка 10, де 10 - номер рядка в таблиці
TELEGRAM_TOKEN
- Telegram bot tokenSHEET_ID
- Google sheet id with data to parse and draw chartGOOGLE_CREDENTIALS
- Google service account credentials in JSON format, if not provided, creds.json will be usedWEBHOOK_DOMAIN
- Domain name for webhook, your heroku app name for examplePORT
- Port for webhook, 443 for example, when using Heroku it will be set automatically
- Go to Google API Console
- Create a new project
- Enable Google Sheets API
- Create a service account
- Create a key for the service account
- Download the key
- Add the key to the root of the project and rename it to creds.json or set GOOGLE_CREDENTIALS environment variable