setBotShippingResults method
Future<Result<Boolean> >
setBotShippingResults({
- required int queryId,
- String? error,
- List<
ShippingOptionBase> ? shippingOptions,
Set Bot Shipping Results.
ID: e5f672fa
.
Implementation
Future<Result<Boolean>> setBotShippingResults({
required int queryId,
String? error,
List<ShippingOptionBase>? shippingOptions,
}) async {
// Preparing the request.
final request = MessagesSetBotShippingResults(
queryId: queryId,
error: error,
shippingOptions: shippingOptions,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}