Class TdApi.TransferGift

Enclosing class:
TdApi

public static class TdApi.TransferGift extends TdApi.Function<TdApi.Ok>
Sends an upgraded gift to another user or a channel chat.

Returns Ok

  • Field Details

    • businessConnectionId

      public String businessConnectionId
      Unique identifier of business connection on behalf of which to send the request; for bots only.
    • receivedGiftId

      public String receivedGiftId
      Identifier of the gift.
    • newOwnerId

      public TdApi.MessageSender newOwnerId
      Identifier of the user or the channel chat that will receive the gift.
    • starCount

      public long starCount
      The amount of Telegram Stars required to pay for the transfer.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • TransferGift

      public TransferGift()
      Default constructor for a function, which sends an upgraded gift to another user or a channel chat.

      Returns Ok

    • TransferGift

      public TransferGift(String businessConnectionId, String receivedGiftId, TdApi.MessageSender newOwnerId, long starCount)
      Creates a function, which sends an upgraded gift to another user or a channel chat.

      Returns Ok

      Parameters:
      businessConnectionId - Unique identifier of business connection on behalf of which to send the request; for bots only.
      receivedGiftId - Identifier of the gift.
      newOwnerId - Identifier of the user or the channel chat that will receive the gift.
      starCount - The amount of Telegram Stars required to pay for the transfer.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR