transferGift¶
Returns: bool
- class litegram.methods.transfer_gift.TransferGift(*, business_connection_id: str, owned_gift_id: str, new_owner_chat_id: int, star_count: int | None = None, **extra_data: Any)[source]¶
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
Trueon success.
Usage¶
As bot method¶
result: bool = await bot.transfer_gift(...)
Method as object¶
Imports:
from litegram.methods.transfer_gift import TransferGiftalias:
from litegram.methods import TransferGift
With specific bot¶
result: bool = await bot(TransferGift(...))
As reply into Webhook in handler¶
return TransferGift(...)