setInlineBotResults method

Future<Result<Boolean>> setInlineBotResults({
  1. required bool gallery,
  2. required bool private,
  3. required int queryId,
  4. required List<InputBotInlineResultBase> results,
  5. required int cacheTime,
  6. String? nextOffset,
  7. InlineBotSwitchPMBase? switchPm,
  8. InlineBotWebViewBase? switchWebview,
})

Set Inline Bot Results.

ID: bb12a419.

Implementation

Future<Result<Boolean>> setInlineBotResults({
  required bool gallery,
  required bool private,
  required int queryId,
  required List<InputBotInlineResultBase> results,
  required int cacheTime,
  String? nextOffset,
  InlineBotSwitchPMBase? switchPm,
  InlineBotWebViewBase? switchWebview,
}) async {
  // Preparing the request.
  final request = MessagesSetInlineBotResults(
    gallery: gallery,
    private: private,
    queryId: queryId,
    results: results,
    cacheTime: cacheTime,
    nextOffset: nextOffset,
    switchPm: switchPm,
    switchWebview: switchWebview,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<Boolean>();
}