Skip to content

sendResoldGift

Function · TDLib 1.8.67 · d1085f9c

Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method

sendResoldGift(
  gift_name: string,
  owner_id: MessageSender,
  price: GiftResalePrice,
  text: FormattedText,
  is_private: Bool
) → GiftResaleResult

gift_name

string

Name of the upgraded gift to send

owner_id

MessageSender

Identifier of the user or the channel chat that will receive the gift

price

GiftResalePrice

The price that the user agreed to pay for the gift

text

FormattedText

Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. Must be empty if the receiver enabled paid messages and the price of the gift is less than the price of a paid message to the user

is_private

Bool

Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them