Fetches RE ads from SS.lv and notifies about matches to the chosen Telegram chat.
- Create a Telegram bot
- In
.env.local
, set theTG_URI
env variable tohttps://api.telegram.org/bot<X>:<Y>/sendMessage?chat_id=<Z>
, wherebot<X>:<Y>
is the API token and<Z>
is the chat ID. How to get the chat ID. composer install
./app.php update
Works best from cron.
This repository is set up to deploy after every push to main
on GitHub (GH) through Deployer. To replicate this experience:
- Generate SSH key #1 on the server.
- Add the public key #1 to the GH profile — this will allow Deployer to fetch code from the repository.
- Generate SSH key #2 anywhere.
- Add the public key #2 to
~/.ssh/authorized_keys
on the server. - Add the private key #2 to the GH repository secrets as
PRIVATE_KEY
— this will allow Deployer to log into the server and do its thing. - Update the repository, host, user, and path in
deploy.php