Package org.drinkless.tdlib
Class TdApi.TransferGift
- Enclosing class:
- TdApi
Sends an upgraded gift to another user or a channel chat.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionUnique identifier of business connection on behalf of which to send the request; for bots only.static final int
Identifier uniquely determining type of the object.Identifier of the user or the channel chat that will receive the gift.Identifier of the gift.long
The amount of Telegram Stars required to pay for the transfer. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which sends an upgraded gift to another user or a channel chat.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. -
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
-
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
public long starCountThe amount of Telegram Stars required to pay for the transfer. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-