Data about the gift that can be sent by the bot.
Unique identifier of the gift
Optional
remainingThe 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
Optional
totalThe total number of the gifts of this type that can be sent; for limited gifts only
The client that instantiated this
Protected
_cloneProtected
_patchProtected
_updateChecks 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.
Optional
options: Omit<{ out parameters.
Returns True on success.
Flatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this