Package org.drinkless.tdlib
Class TdApi.SendResoldGift
- Enclosing class:
- TdApi
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
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier 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
ConstructorsConstructorDescriptionDefault 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, 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. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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
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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-