botCancelStarsSubscription method

Future<Result<Boolean>> botCancelStarsSubscription({
  1. required bool restore,
  2. required InputUserBase userId,
  3. required String chargeId,
})

Bot Cancel Stars Subscription.

ID: 6dfa0622.

Implementation

Future<Result<Boolean>> botCancelStarsSubscription({
  required bool restore,
  required InputUserBase userId,
  required String chargeId,
}) async {
  // Preparing the request.
  final request = PaymentsBotCancelStarsSubscription(
    restore: restore,
    userId: userId,
    chargeId: chargeId,
  );

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

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