inlineQuery_toJson method

FutureOr<Map?> inlineQuery_toJson({
  1. required Map update,
  2. required TelegramClientData telegramClientData,
  3. required bool is_lite,
  4. bool? isUseCache,
  5. Duration? durationCacheExpire,
})

method InlineQueryData

Implementation

FutureOr<Map?> inlineQuery_toJson({
  required Map update,
  required TelegramClientData telegramClientData,
  required bool is_lite,
  bool? isUseCache,
  Duration? durationCacheExpire,
}) async {
  // http://0.0.0.0:8704/classtd_1_1td__api_1_1message.html
  if (update["@type"] == "updateNewInlineQuery") {
    final Map callback_query = await inlineQuery_InlineQuery(
      inlineQuery: update,
      telegramClientData: telegramClientData,
      is_lite: is_lite,
      isUseCache: isUseCache,
      durationCacheExpire: durationCacheExpire,
    );
    return {
      "@type": "updateInlineQuery",
      "inline_query": callback_query,
    };
  }

  return null;
}