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 Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
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, 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 TypeMethodDescriptionint
Returns 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. -
starCount
public long starCountThe amount of Telegram Stars required 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
Ok
-
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
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-