getStarGifts method

Future<Result<PaymentsStarGiftsBase>> getStarGifts({
  1. required int hash,
})

Get Star Gifts.

ID: c4563590.

Implementation

Future<Result<PaymentsStarGiftsBase>> getStarGifts({
  required int hash,
}) async {
  // Preparing the request.
  final request = PaymentsGetStarGifts(hash: hash);

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

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