answerInlineQuery method

Future<bool> answerInlineQuery(
  1. String inlineQueryId,
  2. List<InlineQueryResult> results, {
  3. int? cacheTime,
  4. bool? isPersonal,
  5. String? nextOffset,
  6. String? switchPmText,
  7. String? switchPmParameter,
})
inherited

Use this method to send answers to an inline query.

On success, True is returned. No more than 50 results per query are allowed.

Implementation

Future<bool> answerInlineQuery(
  String inlineQueryId,
  List<InlineQueryResult> results, {
  int? cacheTime,
  bool? isPersonal,
  String? nextOffset,
  String? switchPmText,
  String? switchPmParameter,
}) {
  return _client.apiCall(_token, 'answerInlineQuery', {
    'inline_query_id': inlineQueryId,
    'results': results,
    'cache_time': cacheTime,
    'is_personal': isPersonal,
    'next_offset': nextOffset,
    'switch_pm_text': switchPmText,
    'switch_pm_parameter': switchPmParameter,
  });
}