Data about the unique gift received and owned by a user or a chat.
OptionalbeTrue, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only
Information about the unique gift
OptionalisTrue, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only
OptionalnextPoint in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now
OptionalownedUnique identifier of the gift for the bot; for gifts received on behalf of business accounts only
Date the gift was sent in Unix time
Sender of the gift if it is a known user
OptionaltransferNumber of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift
Type of the gift, always “unique”
The client that instantiated this
Date the gift can be transferred. If it is in the past, then the gift can be transferred now
Return the timestamp gift can be transferred. If it is in the past, then the gift can be transferred now
Date the message was sent. It is always a positive number, representing a valid date
Return the timestamp message was sent, in milliseconds
Protected_Protected_ProtectedPatches the current instance with new data
The data to patch the instance with
The patched data
Protected_ProtectedUpdates the current instance with new data and returns a clone of the updated instance
The data to update the instance with
A clone of the updated instance
Flatten an object. Any properties that are collections will get converted to an array of keys.
OptionalpropsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Optional. Specific properties to include/exclude, or rename.
Flattened object.
Returns the id instance Chat, User, ChatMember and other
The client that instantiated this