Skip to content

buyGiftUpgrade

Function · TDLib 1.8.67 · d1085f9c

Pays for upgrade of a regular gift that is owned by another user or channel chat

buyGiftUpgrade(
  owner_id: MessageSender,
  prepaid_upgrade_hash: string,
  star_count: int53
) → Ok

owner_id

MessageSender

Identifier of the user or the channel chat that owns the gift

prepaid_upgrade_hash

string

Prepaid upgrade hash as received along with the gift

star_count

int53

The Telegram Star amount the user agreed to pay for the upgrade; must be equal to gift.upgrade_star_count