- Access to current schedule data and flight info
- Access to historical data and flight changes
- Search either through direct messages or using the inline method by multiple parameters:
- Flight number
- Destination (including IATA code)
- Company (including IATA code)
- Direction
- Date (text or picker)
- Convinient flight sharing through deep linking
- Store favorite flights
- Python 3.11+
- Asynchronous framework aiogram 3.0+
- MongoDB
- SvologAPI as data source
- Clone repository
git clone git@github.com:jktujg/svo-sked-bot.git
- Create bot via BotFather
- Turn on inline mode in bot settings
- Create
.env
file in root directory and configure as in example - Run
docker compose up -d
For using this method, you need a running web server to which you need to connect an endpoint for receiving updates
Then set UPDATE_METHOD=webhook
and specify this web server and endpoint in .env
file as shown below:
WEBHOOK_BASE=https://yourwebserver.com
WEBHOOK_ENDPOINT=/bot/webhook
WEB_SERVER_HOST=0.0.0.0
WEB_SERVER_PORT=7892
Also in the docker-compose.yml
file for the tg_bot
service you have to add
ports:
- 127.0.0.1:7892:7892
This is necessary to prevent external access to the container while allowing access from the web server
- Create virtual environment and install requirements
python -m venv .venv &&
. ./.venv/bin/activate &&
python -m pip install -r requirements.txt
- Run test script
./test.sh <venv_activation_script> [<unittest_params>]
, for example
./test.sh .venv/bin/activate -v
- Flight update subscription
- Access to seasonal schedule data