method ApiMethods.transferGift
ApiMethods.transferGift(args: { business_connection_id: string; owned_gift_id: string; new_owner_chat_id: number; star_count: number; }): true

Transfers an owned unique gift to another user. Requires the can_transfer_and_upgrade_gifts business bot right. Requires can_transfer_stars business bot right if the transfer is paid. Returns True on success.

Parameters

args: { business_connection_id: string; owned_gift_id: string; new_owner_chat_id: number; star_count: number; }

Return Type

true

Usage

import { type ApiMethods } from "types";