peyk.platforms.telegram.types.birthdate

Classes

Birthdate(day, month[, year])

Describes the birthdate of a user.

class peyk.platforms.telegram.types.birthdate.Birthdate(day: int, month: int, year: int | None = None)[source]

Bases: object

Describes the birthdate of a user.

Variables:
  • day (int) – Day of the user’s birth; 1-31

  • month (int) – Month of the user’s birth; 1-12

  • year (int | None) – Year of the user’s birth

day: int
month: int
year: int | None = None
classmethod from_dict(data: dict | None) Birthdate | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.