Class TdApi.GetReceivedGifts

Enclosing class:
TdApi

public static class TdApi.GetReceivedGifts extends TdApi.Function<TdApi.ReceivedGifts>
Returns gifts received by the given user or chat.

Returns ReceivedGifts

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Unique 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.
    boolean
    Pass true to exclude gifts that can be purchased limited number of times.
    boolean
    Pass true to exclude gifts that are saved to the chat's profile page.
    boolean
    Pass true to exclude gifts that can be purchased unlimited number of times.
    boolean
    Pass true to exclude gifts that aren't saved to the chat's profile page.
    boolean
    Pass true to exclude upgraded gifts.
    int
    The maximum number of gifts to be returned; must be positive and can't be greater than 100.
    Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results.
    Identifier of the gift receiver.
    boolean
    Pass true to sort results by gift price instead of send date.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which returns gifts received by the given user or chat.
    GetReceivedGifts(String businessConnectionId, TdApi.MessageSender ownerId, boolean excludeUnsaved, boolean excludeSaved, boolean excludeUnlimited, boolean excludeLimited, boolean excludeUpgraded, boolean sortByPrice, String offset, int limit)
    Creates a function, which returns gifts received by the given user or 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

    • businessConnectionId

      public String businessConnectionId
      Unique identifier of business connection on behalf of which to send the request; for bots only.
    • ownerId

      public TdApi.MessageSender ownerId
      Identifier of the gift receiver.
    • excludeUnsaved

      public boolean excludeUnsaved
      Pass true to exclude gifts that aren't saved to the chat's profile page. Always true for gifts received by other users and channel chats without canPostMessages administrator right.
    • excludeSaved

      public boolean excludeSaved
      Pass true to exclude gifts that are saved to the chat's profile page. Always false for gifts received by other users and channel chats without canPostMessages administrator right.
    • excludeUnlimited

      public boolean excludeUnlimited
      Pass true to exclude gifts that can be purchased unlimited number of times.
    • excludeLimited

      public boolean excludeLimited
      Pass true to exclude gifts that can be purchased limited number of times.
    • excludeUpgraded

      public boolean excludeUpgraded
      Pass true to exclude upgraded gifts.
    • sortByPrice

      public boolean sortByPrice
      Pass true to sort results by gift price instead of send date.
    • offset

      public String offset
      Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results.
    • limit

      public int limit
      The maximum number of gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetReceivedGifts

      public GetReceivedGifts()
      Default constructor for a function, which returns gifts received by the given user or chat.

      Returns ReceivedGifts

    • GetReceivedGifts

      public GetReceivedGifts(String businessConnectionId, TdApi.MessageSender ownerId, boolean excludeUnsaved, boolean excludeSaved, boolean excludeUnlimited, boolean excludeLimited, boolean excludeUpgraded, boolean sortByPrice, String offset, int limit)
      Creates a function, which returns gifts received by the given user or chat.

      Returns ReceivedGifts

      Parameters:
      businessConnectionId - Unique identifier of business connection on behalf of which to send the request; for bots only.
      ownerId - Identifier of the gift receiver.
      excludeUnsaved - Pass true to exclude gifts that aren't saved to the chat's profile page. Always true for gifts received by other users and channel chats without canPostMessages administrator right.
      excludeSaved - Pass true to exclude gifts that are saved to the chat's profile page. Always false for gifts received by other users and channel chats without canPostMessages administrator right.
      excludeUnlimited - Pass true to exclude gifts that can be purchased unlimited number of times.
      excludeLimited - Pass true to exclude gifts that can be purchased limited number of times.
      excludeUpgraded - Pass true to exclude upgraded gifts.
      sortByPrice - Pass true to sort results by gift price instead of send date.
      offset - Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results.
      limit - The maximum number of gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit.
  • 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