Link Search Menu Expand Document

Constructor: birthday

Back to constructors index

Birthday information for a user.

Also used to invite users to gift Telegram Premium subscriptions » to other users with birthdays within a +1/-1 day time range, related to the current day.

Attributes:

NameTypeRequiredDescription
dayintYesBirth day
monthintYesBirth month
yearintOptional(Optional) birth year.

Type: Birthday

Example:

$birthday = ['_' => 'birthday', 'day' => int, 'month' => int, 'year' => int];