Skip to content

Add Telegram “Project Alerts” bot MVP (aiogram) - #1

Open
dkoraitest wants to merge 1 commit into
mainfrom
codex/create-telegram-bot-for-project-alerts
Open

Add Telegram “Project Alerts” bot MVP (aiogram)#1
dkoraitest wants to merge 1 commit into
mainfrom
codex/create-telegram-bot-for-project-alerts

Conversation

@dkoraitest

Copy link
Copy Markdown
Owner

Motivation

  • Provide a minimal MVP for a Telegram-based project reminders bot that supports CRUD tasks, role-based access, deadline reminders with color indicators, participants and document links, and a simple text report.
  • Ship a runnable skeleton to iterate on: bot entrypoint, DB models, services and handlers so reminders can be scheduled and messages formatted.

Description

  • Add an aiogram-based bot entrypoint in app/main.py with an AsyncIOScheduler job that runs send_daily_reminders and registers routers for start, tasks, report, notifications, and admin handlers.
  • Implement DB models in app/models.py (users, projects, tasks, participants, notifications_log) and async session management in app/db.py, plus settings in app/config.py and requirements.txt for dependencies.
  • Implement services: app/services/tasks.py (task lifecycle, participants, status emoji mapping), app/services/notifications.py (daily reminder selection, message building, single-send anti-spam checks, safe sending only to numeric tg_user_id, eager-load Task.project), and app/services/reports.py (counts and simple risky calculation).
  • Implement handlers and UX: app/handlers/start.py, app/handlers/tasks.py (FSM for create/edit with added edit_value state and selectinload usage), app/handlers/admin.py (inline /admin set_role handling), app/handlers/report.py, app/handlers/notifications.py, plus keyboard utilities in app/keyboards.py and a permissions filter in app/permissions.py.
  • Add README.md with quickstart, .gitignore, and small fixes/guardrails (e.g. skip non-numeric tg_user_id when sending reminders).

Testing

  • No automated tests were run on these changes.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant