Package org.drinkless.tdlib
Class TdApi.GiftSettings
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.GiftSettings
- Enclosing class:
- TdApi
Contains settings for gift receiving for a user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionTypes of gifts accepted by the user; for Telegram Premium users only.static final int
Identifier uniquely determining type of the object.boolean
True, if a button for sending a gift to the user or by the user must always be shown in the input field. -
Constructor Summary
ConstructorsConstructorDescriptionContains settings for gift receiving for a user.GiftSettings
(boolean showGiftButton, TdApi.AcceptedGiftTypes acceptedGiftTypes) Contains settings for gift receiving for a user. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
showGiftButton
public boolean showGiftButtonTrue, if a button for sending a gift to the user or by the user must always be shown in the input field. -
acceptedGiftTypes
Types of gifts accepted by the user; for Telegram Premium users only. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GiftSettings
public GiftSettings()Contains settings for gift receiving for a user. -
GiftSettings
Contains settings for gift receiving for a user.- Parameters:
showGiftButton
- True, if a button for sending a gift to the user or by the user must always be shown in the input field.acceptedGiftTypes
- Types of gifts accepted by the user; for Telegram Premium users only.
-
-
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
-