- Add `/push` command for admins to broadcast messages to all users with approve/decline confirmation flow (handlers/ads.py) - Add common handler for undefined commands and delete callback - Add `UserRepository.get_users()` to fetch all users - Add `UserService.send_promotion_to_users()` with error logging - Add promotion confirmation keyboard and FSM state - Add PostgreSQL availability check in startup.sh before migrations - Add new text constants for promotion flow
10 lines
164 B
Python
10 lines
164 B
Python
from dataclasses import dataclass
|
|
|
|
from aiogram.types import Message
|
|
|
|
|
|
@dataclass
|
|
class NewPromotionContext:
|
|
creator_id: int
|
|
message: Message | None = None
|