/bus_lviv_bot

Telegram Bot для відстежування громадського транспорту Львова

Primary LanguageJavaScriptMIT LicenseMIT

Environment variables

BOT_TOKEN - Telegram bot token

API_LOGIN - EasyWay API login

API_PASSWORD - EasyWay API password

Serverless

  • add token to AWS Parameters Store aws ssm put-parameter --name "bus_lviv_bot_token" --type "String" --value "<TOKEN>"
  • add token to EasyWay API login to AWS Parameters Store aws ssm put-parameter --name "bus_lviv_bot_api_login" --type "String" --value "<TOKEN>"
  • add token to EasyWay API password to AWS Parameters Store aws ssm put-parameter --name "bus_lviv_bot_api_password" --type "String" --value "<TOKEN>"

Development

  1. Run localtunnel npm script with BOT_TOKEN environment variable set
  2. Set webhook for Telegram Bot by navigating to URL from output in previous step
  3. Run dev npm script

Built with

telegraf.js

AWS Lambda