Class TdApi.SendResoldGift

Enclosing class:
TdApi

public static class TdApi.SendResoldGift extends TdApi.Function<TdApi.Ok>
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 Ok

  • 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.
    long
    The amount of Telegram Stars required 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.
    SendResoldGift(String giftName, TdApi.MessageSender ownerId, long starCount)
    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.
    • starCount

      public long starCount
      The amount of Telegram Stars required 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 Ok

    • SendResoldGift

      public SendResoldGift(String giftName, TdApi.MessageSender ownerId, long starCount)
      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 Ok

      Parameters:
      giftName - Name of the upgraded gift to send.
      ownerId - Identifier of the user or the channel chat that will receive the gift.
      starCount - The amount of Telegram Stars required 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