upgradeGift¶
Returns: bool
- class litegram.methods.upgrade_gift.UpgradeGift(*, business_connection_id: str, owned_gift_id: str, keep_original_details: bool | None = None, star_count: int | None = None, **extra_data: Any)[source]¶
Upgrades a given regular gift to a unique gift. Requires the can_transfer_and_upgrade_gifts business bot right. Additionally requires the can_transfer_stars business bot right if the upgrade is paid. Returns
Trueon success.
Usage¶
As bot method¶
result: bool = await bot.upgrade_gift(...)
Method as object¶
Imports:
from litegram.methods.upgrade_gift import UpgradeGiftalias:
from litegram.methods import UpgradeGift
With specific bot¶
result: bool = await bot(UpgradeGift(...))
As reply into Webhook in handler¶
return UpgradeGift(...)