Skip to content

This bot shows trams locations in Ekaterinburg city using official data got from http://ettu.ru

Notifications You must be signed in to change notification settings

AleX83Xpert/ekb-tram-bot

Repository files navigation

This bot shows trams locations in Ekaterinburg city using official data got from http://ettu.ru

Demo

See boot in action: @EkbTramBot

Screenshots

Chat with bot

image

Inline messages

image

image

Settings .env

You must set tokens&keys using .env file:

BOT_TOKEN="..."

# Use next two values if you use MapQuest service
# MAP_SERVICE="MAPQUEST"
# MAP_SERVICE_CONFIG={"key": "<key>"}

#
# OR
#

# Use next two values if you use MapBox service
# MAP_SERVICE="MAPBOX"
# MAP_SERVICE_CONFIG={"accessToken": "<token>"}

ETTU_API_KEY="111"

BOT_TOKEN

This is your telegram bot token

MAP_SERVICE

There are two possible values: MAPQUEST and MAPBOX

MAPQUEST

To show map tiles and markers bot uses static Map API: https://developer.mapquest.com/documentation/static-map-api/v5/

Please get the key here: https://developer.mapquest.com/user/me/apps

MAPBOX

Uses the MapBox service: https://docs.maptiler.com/cloud/api/static-maps/

You may gey token here: https://cloud.maptiler.com/account/keys/

ETTU_API_KEY

I don't know, just copy this value from http://map.ettu.ru

Starting

npm i
npm build
npm start

or

docker-compose up -d

About

This bot shows trams locations in Ekaterinburg city using official data got from http://ettu.ru

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published