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