Telegram bot which checks the image in chat for the fact that it is a photo of the monitor or screenshot.
Based on Aiogram and tensorflow
Use next environment variables:
-
ANTIPHOTOSBOT_TELEGRAM_TOKEN={YOUR_TOKEN}
- telegram token(other variables is not necessary and have default values)
-
ANTIPHOTOSBOT_ALLOWED_CHATS=-10010101,-10000101010
- whitelist chats. If it empty or not added to envs, whitelist mode will be turned off.
Python: Add to system environment that variables.
Docker compose: create .env
file and fill it with that variables.
Then run in console command:
docker-compose up -d
pip3 install -r requirements.txt
pip3 install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime
python main.py