botCancelStarsSubscription method
Future<Result<Boolean> >
botCancelStarsSubscription({
- required bool restore,
- required InputUserBase userId,
- 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>();
}