answerShippingQuery method
Future<bool>
answerShippingQuery(
- String shippingQueryId,
- bool ok,
- List<
ShippingOption> ? shippingOptions, - String errorMessage,
inherited
If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot.
Use this method to reply to shipping queries.
On success, True is returned.
Implementation
Future<bool> answerShippingQuery(
String shippingQueryId,
bool ok,
List<ShippingOption>? shippingOptions,
String errorMessage,
) {
return _client.apiCall(_token, 'answerShippingQuery', {
'shipping_query_id': shippingQueryId,
'ok': ok,
'shipping_options': shippingOptions,
'error_message': errorMessage,
});
}