Data about the message about a unique gift that was sent or received.
Information about the gift
OptionallastFor gifts bought from other users, the price paid for the gift
OptionalnextPoint in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, or “resale” for gifts bought from other users
OptionalownedUnique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
OptionaltransferNumber of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift
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
Protected_cloneProtected_patchProtected_updateFlatten 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.
The client that instantiated this