answer method

Future<bool> answer(
  1. List<InlineQueryResult> results, {
  2. int? cacheTime,
  3. bool? isPersonal,
  4. String? nextOffset,
  5. InlineQueryResultsButton? button,
})

Answer the recieved inline query

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

Apart from a List<InlineQueryResult> of results, it can also take some options that control the inline dialog appearance and behavior.

Check Telegram API documentation for more information about those options.

Implementation

Future<bool> answer(
  List<InlineQueryResult> results, {
  int? cacheTime,
  bool? isPersonal,
  String? nextOffset,
  InlineQueryResultsButton? button,
}) =>
    _teledart.answerInlineQuery(
      id,
      results,
      cacheTime: cacheTime,
      isPersonal: isPersonal,
      nextOffset: nextOffset,
      button: button,
    );