Class TdApi.SendResoldGift

Enclosing class:
TdApi

public static class TdApi.SendResoldGift extends TdApi.Function<TdApi.GiftResaleResult>
Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method.

Returns GiftResaleResult

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    Name of the upgraded gift to send.
    Identifier of the user or the channel chat that will receive the gift.
    The price that the user agreed to pay for the gift.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method.
    Creates a function, which sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • giftName

      public String giftName
      Name of the upgraded gift to send.
    • ownerId

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

      public TdApi.GiftResalePrice price
      The price that the user agreed to pay for the gift.
    • CONSTRUCTOR

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

    • SendResoldGift

      public SendResoldGift()
      Default constructor for a function, which sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method.

      Returns GiftResaleResult

    • SendResoldGift

      public SendResoldGift(String giftName, TdApi.MessageSender ownerId, TdApi.GiftResalePrice price)
      Creates a function, which sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method.

      Returns GiftResaleResult

      Parameters:
      giftName - Name of the upgraded gift to send.
      ownerId - Identifier of the user or the channel chat that will receive the gift.
      price - The price that the user agreed to pay for the gift.
  • 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