Package org.drinkless.tdlib
Class TdApi.ToggleGiftIsSaved
- Enclosing class:
- TdApi
Toggles whether a gift is shown on the current user's or the channel's profile page; requires canPostMessages administrator right in the channel chat.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
Pass true to display the gift on the user's or the channel's profile page; pass false to remove it from the profile page.Identifier of the gift. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which toggles whether a gift is shown on the current user's or the channel's profile page; requires canPostMessages administrator right in the channel chat.ToggleGiftIsSaved
(String receivedGiftId, boolean isSaved) Creates a function, which toggles whether a gift is shown on the current user's or the channel's profile page; requires canPostMessages administrator right in the 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
-
receivedGiftId
Identifier of the gift. -
isSaved
public boolean isSavedPass true to display the gift on the user's or the channel's profile page; pass false to remove it from the profile page. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ToggleGiftIsSaved
public ToggleGiftIsSaved()Default constructor for a function, which toggles whether a gift is shown on the current user's or the channel's profile page; requires canPostMessages administrator right in the channel chat.Returns
Ok
-
ToggleGiftIsSaved
Creates a function, which toggles whether a gift is shown on the current user's or the channel's profile page; requires canPostMessages administrator right in the channel chat.Returns
Ok
- Parameters:
receivedGiftId
- Identifier of the gift.isSaved
- Pass true to display the gift on the user's or the channel's profile page; pass false to remove it from the profile page.
-
-
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
-