74af231e3b
Add [verification]: add full verification dialog system
2025-11-07 17:35:02 +05:00
0fb8c2ba6a
Add [verification]: add dialog without checking verification
2025-11-07 15:45:15 +05:00
00d87119d2
Fix [verification]: fix type & session errors
2025-11-07 15:44:08 +05:00
7f2d57b1d1
Fix [refactor]: fix bugs & refactor code
2025-11-07 13:53:51 +05:00
Vladimir
8a3b99a4f1
Revert "feat(verification): add infrastructure for user verification"
...
This reverts commit 5070cf8191 .
2025-11-07 12:01:01 +05:00
Vladimir
5070cf8191
feat(verification): add infrastructure for user verification
...
- **FSM States:** Added `VerificationStates` to manage the dialog flow.
- **Services:** Implemented `get_or_create_user` and `verify_student` to encapsulate business logic.
- **Middleware Chain:** Refactored the middleware to a clean, sequential chain (`Database`, `TelegramUser`, `Registration`) where each has a single responsibility.
- **Verification Status:** Introduced a `VerificationStatus` enum for clear and type-safe results from the verification service.
2025-11-04 19:26:33 +05:00
Vladimir
305c31d4b0
feat(verification): add infrastructure for user verification
...
- **FSM States:** Added `VerificationStates` to manage the dialog flow.
- **Services:** Implemented `get_or_create_user` and `verify_student` to encapsulate business logic.
- **Middleware Chain:** Refactored the middleware to a clean, sequential chain (`Database`, `TelegramUser`, `Registration`) where each has a single responsibility.
- **Verification Status:** Introduced a `VerificationStatus` enum for clear and type-safe results from the verification service.
2025-11-04 19:26:22 +05:00
Vladimir
1023547cfc
Merge remote-tracking branch 'origin/develop' into feature/verification
...
# Conflicts:
# src/bot/services/__init__.py
# src/bot/utils/filters/chat_type.py
# src/bot/utils/states/verification.py
# src/database/__init__.py
# src/database/models.py
2025-11-04 16:30:44 +05:00
27b423e091
Hotfix: fix pyrefly incorrect errors
2025-11-04 16:04:10 +05:00
ede1124d8a
Add [trigger]: add triggers for router registry class
2025-11-04 15:59:56 +05:00
b1d0284cfa
Merge pull request 'feature/handlers' ( #11 ) from feature/handlers into develop
...
Reviewed-on: #11
2025-11-04 14:20:18 +05:00
91856f791d
Add [(un)verified]: add handlers for verified/unverified users
2025-11-04 14:17:44 +05:00
b14caeef84
Add [(un)verified]: add verification status filter
2025-11-04 14:16:57 +05:00
d861451e25
Add [logging]: add logging for the program args & config settings
2025-11-04 13:06:54 +05:00
78fa3d5d34
Add [docs]: provide docs for new funcs, add additional comments & tags info
2025-11-04 12:52:51 +05:00
806df6aab0
Update CONTIBUTE.md
2025-11-03 15:21:25 +05:00
22e87e8110
Update the daddy docker configurations
2025-11-03 15:18:57 +05:00
9a21373281
add [bot image]: add the bot docker image
2025-11-03 03:27:53 +05:00
5e84cdfebf
Add: add the docker deploy script
2025-11-03 02:35:53 +05:00
47e993ae2a
Fix: fix bot image requires .env file
2025-11-03 02:29:42 +05:00
b4ee51ee68
Update [ignores]: update all ignore files
2025-11-03 02:21:08 +05:00
a90c8652a0
Change: [flags]: add database flag for the project
2025-11-03 02:04:29 +05:00
1c5edbaa60
Change [scripts]: The logic of the scripts is completely separated from the main code
2025-11-03 02:00:53 +05:00
0ded0fa64e
Update [docker]: move the locales compile process to the Dockerfile
2025-11-01 17:08:25 +05:00
83e91c58c4
Add [docker]: add logs volume & update commands
2025-11-01 16:03:32 +05:00
8e35f456f9
Merge pull request 'Add [database]: add telegram user middleware' ( #10 ) from feature/database into develop
...
Reviewed-on: #10
2025-11-01 16:02:43 +05:00
11a48cd629
Add [database]: add telegram user middleware
2025-11-01 16:00:35 +05:00
af1322d9ba
Merge pull request 'feature/database' ( #9 ) from feature/database into develop
...
Reviewed-on: #9
2025-11-01 15:22:49 +05:00
37b8eb29a4
Hoxfix: fix all bugs with imports
2025-11-01 15:10:05 +05:00
99e0966a0c
Hotfix: change module path
2025-11-01 15:04:24 +05:00
3ae9b3cd72
Update [db]: finally update bot struct
2025-11-01 15:01:36 +05:00
05486d6f4b
Add [redis]: move redis to database package
2025-11-01 14:48:35 +05:00
563668dabe
Add [db middleware]: add db dispatcher middleware & update code struct
2025-11-01 14:43:29 +05:00
Vladimir
475d6ee699
feat(verification): add filters, states and services for user verification
2025-10-31 21:06:19 +05:00
43a2002889
Refactor [database]: update function for connect to db name
2025-10-30 18:39:49 +05:00
619b2be6ea
Merge pull request 'feature/redis' ( #8 ) from feature/redis into develop
...
Reviewed-on: #8
2025-10-30 18:34:17 +05:00
293a3c66b9
Add [redis]: add redis FSM storage
2025-10-30 18:29:02 +05:00
7f3f601aa7
Add [redis]: add redis image for docker-compose
2025-10-30 18:24:56 +05:00
2779098b1e
Add [redis]: add new env-vars for config, update docs
2025-10-30 18:24:24 +05:00
79c435031b
Merge pull request 'feature/database' ( #7 ) from feature/database into develop
...
Reviewed-on: #7
2025-10-29 00:27:54 +05:00
839fab48f4
Add [database]: add base database models & logic
2025-10-27 19:38:09 +05:00
35eed1e193
Add [database]: add the Postgres database to the Docker Compose config
2025-10-27 19:37:15 +05:00
cda8c9527f
Add [database]: add env-config settings for the project database vars
2025-10-27 19:35:35 +05:00
0e9d20b405
Add [database]: add the asyncpg dependency
2025-10-27 19:34:45 +05:00
1d0e66a14f
Fix: fix markdown text
2025-10-25 18:14:17 +05:00
66bd78f49d
Fix: fix markdown text
2025-10-25 18:13:19 +05:00
644c39730a
Fix: remove unusable module & add dev debendencies for nixos
2025-10-25 18:08:11 +05:00
988af9bd27
Add CONTRIBUTE.md
2025-10-25 18:07:07 +05:00
dcc315b30a
Update: add fixme for router registry
2025-10-24 17:10:29 +05:00
c690226d8a
Add [messages & callbacks]: add the bot menu keyboard & update register router
2025-10-24 17:06:24 +05:00