Birthdate

class aiogram.types.birthdate.Birthdate(*, day: int, month: int, year: int | None = None, **extra_data: Any)[source]

Describes the birthdate of a user.

Source: https://core.telegram.org/bots/api#birthdate

day: int

Day of the user’s birth; 1-31

month: int

Month of the user’s birth; 1-12

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

year: int | None

Optional. Year of the user’s birth