Class GetChatGifts


public class GetChatGifts extends AbstractBaseRequest<GetChatGifts,OwnedGifts>
  • Constructor Details

    • GetChatGifts

      public GetChatGifts(Object chatId, Api api)
  • Method Details

    • excludeUnsaved

      public GetChatGifts excludeUnsaved(Boolean excludeUnsaved)
      Optional
      Parameters:
      excludeUnsaved - Pass True to exclude gifts that aren't saved to the chat's profile page. Always True, unless the bot has the can_post_messages administrator right in the channel.
      Returns:
      GetChatGifts
    • excludeSaved

      public GetChatGifts excludeSaved(Boolean excludeSaved)
      Optional
      Parameters:
      excludeSaved - Pass True to exclude gifts that are saved to the chat's profile page. Always False, unless the bot has the can_post_messages administrator right in the channel.
      Returns:
      GetChatGifts
    • excludeUnlimited

      public GetChatGifts excludeUnlimited(Boolean excludeUnlimited)
      Optional
      Parameters:
      excludeUnlimited - Pass True to exclude gifts that can be purchased an unlimited number of times
      Returns:
      GetChatGifts
    • excludeLimitedUpgradable

      public GetChatGifts excludeLimitedUpgradable(Boolean excludeLimitedUpgradable)
      Optional
      Parameters:
      excludeLimitedUpgradable - Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique
      Returns:
      GetChatGifts
    • excludeLimitedNonUpgradable

      public GetChatGifts excludeLimitedNonUpgradable(Boolean excludeLimitedNonUpgradable)
      Optional
      Parameters:
      excludeLimitedNonUpgradable - Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique
      Returns:
      GetChatGifts
    • excludeFromBlockchain

      public GetChatGifts excludeFromBlockchain(Boolean excludeFromBlockchain)
      Optional
      Parameters:
      excludeFromBlockchain - Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram
      Returns:
      GetChatGifts
    • excludeUnique

      public GetChatGifts excludeUnique(Boolean excludeUnique)
      Optional
      Parameters:
      excludeUnique - Pass True to exclude unique gifts
      Returns:
      GetChatGifts
    • sortByPrice

      public GetChatGifts sortByPrice(Boolean sortByPrice)
      Optional
      Parameters:
      sortByPrice - Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
      Returns:
      GetChatGifts
    • offset

      public GetChatGifts offset(String offset)
      Optional
      Parameters:
      offset - Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results
      Returns:
      GetChatGifts
    • limit

      public GetChatGifts limit(int limit)
      Optional
      Parameters:
      limit - The maximum number of gifts to be returned; 1-100. Defaults to 100
      Returns:
      GetChatGifts