getStarGiftCollections method

Future<Result<PaymentsStarGiftCollectionsBase>> getStarGiftCollections({
  1. required InputPeerBase peer,
  2. required int hash,
})

Get Star Gift Collections.

ID: 981b91dd.

Implementation

Future<Result<PaymentsStarGiftCollectionsBase>> getStarGiftCollections({
  required InputPeerBase peer,
  required int hash,
}) async {
  // Preparing the request.
  final request = PaymentsGetStarGiftCollections(peer: peer, hash: hash);

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<PaymentsStarGiftCollectionsBase>();
}