Data about the gift that can be sent by the bot.
Unique identifier of the gift
OptionalpublisherInformation about the chat that published the gift
OptionalremainingThe number of remaining gifts of this type that can be sent; for limited gifts only
The number of Telegram Stars that must be paid to send the sticker
The sticker that represents the gift
OptionaltotalThe total number of the gifts of this type that can be sent; for limited gifts only
OptionalupgradeThe number of Telegram Stars that must be paid to upgrade the gift to a unique one
The client that instantiated this
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
Checks if this gift is equal to another gift.
The other object to compare with.
True if both objects are instances of Gift and are equal based on key properties, otherwise false.
Sends a gift to the given user. The gift can't be converted to Telegram Stars by the user.
Unique identifier of the target user that will receive the gift.
Optionaloptions: Omit<out parameters.
Returns True on success.
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