User Operations¶
User management operations.
- async shared.database.operations.user.check_user_can_create_task(user)[source]¶
Check if user can create a new task based on limits.
- async shared.database.operations.user.get_or_create_user(telegram_id, username=None, first_name=None, last_name=None)[source]¶
Get user by telegram_id or create new user with default free plan.
- async shared.database.operations.user.reset_daily_counters_if_needed(user)[source]¶
Reset daily counters if a day has passed.