Changes:
General:
- Implemented logging(loguru) throughout back and front
ends(primarily error handlers)
Frontend:
- Implemented setting commands for telegram bot command
menu
Backend:
- A schema and a table for bot are created in PGSQL DB
if there are no any
Changes:
Frontend:
- Added and adjusted command handlers for /start, /cat,
/subscribe, /unsubscribe, and /subscription_modify
- Implemented mass send function to send images for all
subscribed users
- Configured scheduler to call function above at 12:00 every day
- Added psycopg2 error exception for each handler
Backend:
- Changed PostgreSQL DB Users table structure(id,
chat_id, images_amount) and adjusted all functions'
arguments and executes to match these changes
- Added a function to fetch selected images_amount for a
set chat_id
- Slightly optimized GetObjectExtension function
- Allowed all functions that work with currentDay to
accept int values
- Added a script for batch population of MinIO bucket
with images from ./files/<day number>/ directory
Src:
- Updated requirements.txt
- Added test file to gitignore
- Created table of users with chat_ids(UserTable.sql)
- Added check of empty table into get_last_id
- Modified get_user to return a chat_id instead of username
- Changed download function in ISwork to send URL instead
- reworked config to grab values from .env
- Added a requirements file(with modules needed for bot to function)
- Added a separate bot initialization file for simpler launching
- reworked config to grab values from .env
- Added a requirements file(with modules needed for bot to function)
- Added a separate bot initialization file for simpler launching