Class TdApi.ToggleGiftIsSaved

Enclosing class:
TdApi

public static class TdApi.ToggleGiftIsSaved extends TdApi.Function<TdApi.Ok>
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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    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.
    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 Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • receivedGiftId

      public String receivedGiftId
      Identifier of the gift.
    • isSaved

      public boolean 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.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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

      public 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.

      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR