title: how can i send photo, caption and 2 inline button in single message telegram bot in php
body: <p><a href="https://i.stack.imgur.com/PuvW7.png" rel="nofollow noreferrer">heres how i wanted</a></p>
  
  <p>or like this <a href="https://t.me/RoobaiOfficaial/2032" rel="nofollow noreferrer">https://t.me/RoobaiOfficaial/2032</a></p>
  
  <p>i am new to coding and unable to get bot to working any help will be appreciated</p>
  
  <p>code how i upload image and set chat id</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form  method="post" enctype="multipart/form-data"&gt;
  
  &lt;input type="text" name="chat_id" value="" /&gt;
  &lt;input type="url" name="photo" value="" /&gt;
  &lt;input type="submit" name="send" action="&lt;?php echo $website.'/sendPhoto'?&gt;"/&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and i add message and create 1 inline button which contains url </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  
  
  $msg= urlencode("test message");
  $token="bot_token";
  $chatId="chat_id";
  $response=($_POST['photo']);
  $response=$response.urldecode($msg);
  $keyboard = [
      'inline_keyboard' =&gt; [
          [
              ['text' =&gt; 'Buy Now', 'url' =&gt; 'https://i.stack.imgur.com/vLHu9.png']
  
          ]
      ]
  
  ];
  $encodedKeyboard = json_encode($keyboard);
  $parameters = 
      array(
          'chat_id' =&gt; $chatId, 
          'text' =&gt; $response,
          'reply_markup' =&gt; $encodedKeyboard
      );
  
  send('sendMessage', $parameters); // function description Below
  
  function send($method, $data)
  {
      $url = "https://api.telegram.org/".$token. "/" . $method;
  
      if (!$curld = curl_init()) {
          exit;
      }
      curl_setopt($curld, CURLOPT_POST, true);
      curl_setopt($curld, CURLOPT_POSTFIELDS, $data);
      curl_setopt($curld, CURLOPT_URL, $url);
      curl_setopt($curld, CURLOPT_RETURNTRANSFER, true);
      $output = curl_exec($curld);
      curl_close($curld);
      return $output;
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>i m getting this type of response but i need it without link <a href="https://i.stack.imgur.com/X7NVd.jpg" rel="nofollow noreferrer">Response</a> </p>