feat(telegram_bot): added campaign creation and updating, added help command

This commit is contained in:
ITQ
2025-02-22 07:26:04 +03:00
parent ec47e7754e
commit c0f35512a1
10 changed files with 349 additions and 55 deletions
@@ -18,10 +18,12 @@ class NotFoundError(BaseModel):
class CampaignTargeting(BaseModel):
gender: Literal["MALE", "FEMALE", "ALL"] | None = None
age_from: Annotated[NonNegativeInt, Field(strict=True, ls=100)] | None = (
age_from: Annotated[NonNegativeInt, Field(strict=False, ls=100)] | None = (
None
)
age_to: Annotated[NonNegativeInt, Field(strict=False, ls=100)] | None = (
None
)
age_to: Annotated[NonNegativeInt, Field(strict=True, ls=100)] | None = None
location: str | None = None