Commit Graph

3 Commits

Author SHA1 Message Date
Mattia Mascarello eba906075f chore: Add privacy policy for new users
This commit adds a privacy policy feature for new users. When a new user joins, the code reads the privacy policy from the "POLICY.md" file and sends it to the user in chunks of 4096 characters, respecting Telegram's character limit. This ensures that the privacy policy is sent in a readable format without splitting it in the middle of a line.
2024-05-17 00:31:38 +02:00
Mattia Mascarello 133f789c64 refactor: sort birthdays by remaining time until next birthday
This commit refactors the `list_birthday` function in `main.py` to sort the birthdays by the remaining time until the next birthday. It introduces a new helper function `sort_close` that calculates the remaining time until the next birthday for each birthday in the list. The birthdays are then sorted based on this calculated value.
2024-05-16 11:30:42 +02:00
Mattia Mascarello d08713c359 First Commit 2024-05-16 00:35:28 +02:00