answerInlineQuery method
Future<bool>
answerInlineQuery(
- String inlineQueryId,
- List<
InlineQueryResult> results, { - int? cacheTime,
- bool? isPersonal,
- String? nextOffset,
- String? switchPmText,
- 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,
});
}