toggleStarGiftsPinnedToTop method

Future<Result<Boolean>> toggleStarGiftsPinnedToTop({
  1. required InputPeerBase peer,
  2. required List<InputSavedStarGiftBase> stargift,
})

Toggle Star Gifts Pinned To Top.

ID: 1513e7b0.

Implementation

Future<Result<Boolean>> toggleStarGiftsPinnedToTop({
  required InputPeerBase peer,
  required List<InputSavedStarGiftBase> stargift,
}) async {
  // Preparing the request.
  final request = PaymentsToggleStarGiftsPinnedToTop(
    peer: peer,
    stargift: stargift,
  );

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

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