setInlineBotResults method
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,
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>();
}