Class TransferGift

java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<TransferGift,Boolean>
io.github.natanimn.telebof.requests.service.TransferGift

public class TransferGift extends AbstractBaseRequest<TransferGift,Boolean>
TransferGift class. Returns True on success.
Since:
19 August 2025
See Also:
  • Constructor Details

    • TransferGift

      public TransferGift(String businessConnectionId, String ownedGiftId, long neOwnerChatId, Api api)
      Required
      Parameters:
      businessConnectionId - Unique identifier of the business connection
      ownedGiftId - Unique identifier of the regular gift that should be transferred
      neOwnerChatId - Unique identifier of the chat which will own the gift
      api - api
  • Method Details

    • starCount

      public TransferGift starCount(Integer starCount)
      Optional
      Parameters:
      starCount - The amount of Telegram Stars that will be paid for the transfer from the business account balance
      Returns:
      TransferGift