send_resold_gift()¶
- Client.send_resold_gift()¶
Send an upgraded gift that is available for resale to another user or channel chat.
Note
Gifts already owned by the current user must be transferred using
transfer_gift()
and can’t be passed to this method.Usable by Users Bots
- Parameters:¶
gift_link (
str
) – Link to the gift.new_owner_chat_id (
int
|str
) – Unique identifier (int) or username (str) of the target chat you want to transfer the star gift to. For your personal cloud (Saved Messages) you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str).
- Returns:¶
Message
– On success, the sent message is returned.
Example
# Transfer gift to another user await app.send_resold_gift(gift_link="https://t.me/nft/NekoHelmet-9215", new_owner_chat_id=123)