title: How can I create Answer Inline Query with URL
body: <p>How can I create AnswerInlineQuery with URL? I can't find any more details for that query, all sample code is about Telegram SDK, I need to code like this (URL  post, not class)</p>
  
  <p>I tried this:</p>
  
  <pre><code>$data = array();
  $data['inline_query_id']= $inline_query_id;//sample : 1515027006022511114
  $data['results']='[
    {
      "type": "article",
      "id": "001",
      "title": "UC Browser",
      "message_text": "Text of the first message",
      "parse_mode": "Markdown",
      "disable_web_page_preview": true,
      "url": "telegram.com",
      "hide_url": true,
      "description": "Optional. Short description of the result",
      "thumb_url": "http://icons.iconarchive.com/icons/martz90/circle/64/uc-browser-icon.png",
      "thumb_width": 64,
      "thumb_height": 64
    },
    {
      "type": "article",
      "id": "002",
      "title": "Bitcoin",
      "message_text": "*Text of the second message*",
      "parse_mode": "Markdown",
      "disable_web_page_preview": true,
      "url": "bitcoin.org",
      "hide_url": true,
      "description": "Short description of the result",
      "thumb_url": "http://www.coinwarz.com/content/images/bitcoin-64x64.png",
      "thumb_width": 64,
      "thumb_height": 64
    }
  ]';
  
  $ch = curl_init();
  $curlConfig = array(
      CURLOPT_URL =&gt; 'https://api.telegram.org/bot' . TOKEN . '/answerInlineQuery',
      CURLOPT_POST =&gt; true,
      CURLOPT_RETURNTRANSFER =&gt; true,
      CURLOPT_SAFE_UPLOAD =&gt; true,
      CURLOPT_POSTFIELDS =&gt; 'params=' . json_encode($data),
      CURLOPT_VERBOSE =&gt; true,
  );
  curl_setopt_array($ch, $curlConfig);
  $result = curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>But result is:</p>
  
  <pre><code>Result : {"ok":false,"error_code":400,"description":"Bad Request: QUERY_ID_INVALID"}
  </code></pre>
  
  <p>and I tried this too:</p>
  
  <pre><code> $mResult = '[
        {
          "type": "article",
          "id": "001",
          "title": "UC Browser",
          "message_text": "Text of the first message",
          "parse_mode": "Markdown",
          "disable_web_page_preview": true,
          "url": "telegram.com",
          "hide_url": true,
          "description": "Optional. Short description of the result",
          "thumb_url": "http://icons.iconarchive.com/icons/martz90/circle/64/uc-browser-icon.png",
          "thumb_width": 64,
          "thumb_height": 64
        },
        {
          "type": "article",
          "id": "002",
          "title": "Bitcoin",
          "message_text": "*Text of the second message*",
          "parse_mode": "Markdown",
          "disable_web_page_preview": true,
          "url": "bitcoin.org",
          "hide_url": true,
          "description": "Short description of the result",
          "thumb_url": "http://www.coinwarz.com/content/images/bitcoin-64x64.png",
          "thumb_width": 64,
          "thumb_height": 64
        }
      ]';
  $url= "https://api.telegram.org/bot" . TOKEN . "/answerInlineQuery?inline_query_id=" . $inline_query_id . "&amp;results=" . json_encode($mResult);
  file_get_contents($url);
  </code></pre>
  
  <p>and this returns:</p>
  
  <pre><code>Result : {"ok":false,"error_code":400,"description":"Bad Request: QUERY_ID_INVALID"}
  </code></pre>