Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (21 loc) · 1.13 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.13 KB

This project is no longer supported.

Please use bus-lviv-bot repository


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