code: public boolean answerInlineQuery(String inlineQueryId, InlineQueryResponse inlineQueryResponse) {
  
          if (inlineQueryId != null && inlineQueryResponse != null) {
  
              HttpResponse<String> response;
              JSONObject jsonResponse;
  
              try {
                  MultipartBody requests = Unirest.post(getBotAPIUrl() + "answerInlineQuery")
                          .field("inline_query_id", inlineQueryId)
                          .field("results", GSON.toJson(inlineQueryResponse.getResults()))
                          .field("cache_time", inlineQueryResponse.getCacheTime())
                          .field("is_personal", inlineQueryResponse.isPersonal())
                          .field("next_offset", inlineQueryResponse.getNextOffset())
                          .field("switch_pm_text", inlineQueryResponse.getSwitchPmText())
                          .field("switch_pm_parameter", inlineQueryResponse.getSwitchPmParameter());
  
                  response = requests.asString();
                  jsonResponse = Utils.processResponse(response);
  
                  if (jsonResponse != null) {
  
                      if (jsonResponse.getBoolean("result")) return true;
                  }
              } catch (UnirestException e) {
                  e.printStackTrace();
              }
          }
  
          return false;
      }
docs: This allows you to respond to an inline query with an InlineQueryResponse object
  
  @param inlineQueryId         The ID of the inline query you are responding to
  @param inlineQueryResponse   The InlineQueryResponse object that you want to send to the user
  
  @return True if the response was sent successfully, otherwise False