Identifier of the gift to send.
Optional
is_Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them.
Identifier of the user or the channel chat that will receive the gift.
Optional
pay_Pass true to additionally pay for the gift upgrade and allow the receiver to upgrade it for free.
Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed. Must be empty if the receiver enabled paid messages.
Sends a gift to another user or channel chat. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift was sold out. Request type for Tdjson#sendGift.