answer method

Future<bool> answer(
  1. bool ok, {
  2. List<ShippingOption>? shippingOptions,
  3. String? errorMessage,
})

Answer the recieved shipping query

A wrapper around TeleDart.answerShippingQuery. On success, returns true.

Apart from a bool that indicates if the shipping is possible, it can also take some options that control the shipping.

Check Telegram API documentation for more information about those options.

Implementation

Future<bool> answer(bool ok,
        {List<ShippingOption>? shippingOptions, String? errorMessage}) =>
    _teledart.answerShippingQuery(id, ok,
        shippingOptions: shippingOptions, errorMessage: errorMessage);