Skip to content

transferGift

Function · TDLib 1.8.67 · d1085f9c

Sends an upgraded gift to another user or channel chat

transferGift(
  business_connection_id: string,
  received_gift_id: string,
  new_owner_id: MessageSender,
  star_count: int53
) → Ok

business_connection_id

string

Unique identifier of business connection on behalf of which to send the request; for bots only

received_gift_id

string

Identifier of the gift

new_owner_id

MessageSender

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

star_count

int53

The Telegram Star amount required to pay for the transfer