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 business_connection_id, String owned_gift_id, long new_owner_chat_id, Api api)
      Required
      Parameters:
      business_connection_id - Unique identifier of the business connection
      owned_gift_id - Unique identifier of the regular gift that should be transferred
      new_owner_chat_id - Unique identifier of the chat which will own the gift
      api - api
  • Method Details

    • starCount

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