This section provides an overview of how the DeRisk Alert system operates.
Here is a demo video of how it works
Click
This diagram shows the ordering and structure of the database for the DeRisk Alert system:
- python3.11
- poetry
- docker
- docker-compose
To receive alerts via Telegram, follow these steps to set up your Telegram bot:
To get a token and create a chatbot, you need to find a bot named BotFather in the Telegram messenger.
In the BotFather bot, you need to write the command /newbot
. After that, BotFather will prompt you to enter:
- the name of your bot that users will see;
- uri of the bot, i.e. the link to the bot that will be added to the link https://t.me/{youruri}.
After the data is entered and it has passed validation, BotFather will respond with a message that will contain the API token of the created bot.
Done! At this moment, the bot has already been created, and it is possible to subscribe to it by finding it in Telegram search or by following the link.
git clone https://github.com/CarmineOptions/derisk-research.git
cd web_app
Create .env
file or just rename .env.example
--> .env
mv .env.example .env
DB_NAME=#
DB_USER=#
DB_PASSWORD=#
DB_HOST=db
DB_PORT=#
IP_INFO_TOKEN=#
TELEGRAM_TOKEN= # token telegram from botfather
REDIS_HOST=redis
REDIS_PORT=6379
DATA_HANDLER_URL=# url to data handler
docker-compose up -d --build
docker-compose down